21 May 2012

The Ruby Reflector

 
Star Following

  Source Favicon
By Jason Seifer of The Ruby Show 8 months ago.
Email
  Source Favicon
By Peter Cooper of Ruby Inside 8 months ago.
Email

Yuki ' yugui' Sonoda on Ruby 1.9.3

At RubyConf Taiwan (held August 26-27, 2011), core team member Yuki ' yugui' Sonoda gave a talk called Ruby 1.9.3 and Ruby 1.9 Development which outlined her current thinking on Ruby 1.9.3, Ruby 1.9.4, and Ruby 2.0. It's not very long and worth a watch.

You can watch the video on Vimeo or see the slides on SlideShare. Alternatively, you may see the video embedded above.

Yugui's …

rubyinside.com Read
  Source Favicon
By Jason Seifer of The Ruby Show 8 months ago.
Email
  Source Favicon
By Gregory Brown of Practicing Ruby 10 months ago.
Email

…a harder problem than simply testing code you write using Ruby. To account for this, mspec does all sorts of neat things, allowing tests to be restricted to particular versions, implementations, and even specific patch levels of different Ruby packages. Another interesting aspect of mspec's implementation is that because it's designed to help Ruby implementers test their work, the code for implementing the testing framework intentionally uses a minimal subset of Ruby functionality. …

blog.rubybestpractices.com Read
  Source Favicon
By algorithms of Segment7 11 months ago.
Email

New Features

Add header reference methods to Mechanize::File so that a reponse object gets compatible with Net:: HTTPResponse.

Mechanize#click accepts a regexp or string to click a button/link in the current page. It works as expected when not passed a string or regexp.

Provide a way to only follow permanent redirects (301) automatically: agent.redirect_ok = :permanent GH #73

Mechanize now supports HTML5 meta charset. GH #113

Documented various Mechanize accessors…

blog.segment7.net Read
  Source Favicon
On Alex R. Young 1 year ago.
Email

Bonus Features

This simple script actually gives me things I didn't have before — rsync can be run in dry run mode, which allows me to see what will happen before I commit to deploying. I can tag each deploy in git if I want, then easily switch between versions. It's also easy to see where a deployment fails, because I can see the line in the script and look at the command.

Tools like Bundler make library management on the remote server much easier. I also write package.json …

alexyoung.org Read
  Source Favicon
By Mike Perham of Mike Perham 1 year ago.
Email

…other processes which load the exact same code. Threads are notoriously tricky to get correct so girl friday uses Actors for the equivalent behavior in a simpler and safer API.

I have issues with the other contenders in the space:

delayed_job - stores jobs in your RDBMS and polls for jobs which is a terribly unscalable idea. Spins off processes instead of threads.

resque - forks a new process for every message. Safe but memory hungry.

The biggest caveat with girl friday is …

mikeperham.com Read
  Source Favicon
By techarch of The "Tech. Arch." 1 year ago.
Email

Intro

A few years ago I integrated Twitter with a Ruby application, mainly to display a subset of my timeline.

Later I added the ability to post tweets. All this became possible using Susan Potter ‘s "most-excellent" Twitter4R gem.

Back in late 2010, Twitter upgraded its API from simple id/password authentication to OAuth authentication. The Twitter4R gem was then also enhanced to leverage the OAuth-Ruby library. …

blog.monnet-usa.com Read
  Source Favicon
By Ilya Grigorik of igvita.com 1 year ago.
Email

Goliath: Architecture & Features

At its core Goliath is an app server like Mongrel or Thin - it is built around a Rack API - but due to its fully asynchronous nature it is also not a direct substitute. Instead Goliath is both an app server and a lightweight framework designed to meet the following goals: fully asynchronous processing , middleware support , simple configuration , high-performance, and arguably most importantly, readable …

igvita.com Read
  Source Favicon
By Ilya Grigorik of igvita.com over 1 year ago.
Email

…language - but what fun would that be? For the curious, Ruby 1.9 Pickaxe is probably the single best resource to get yourself up to speed. To give you a flavor, below is a list of my favorite 30 tips, tricks and features - feel free to clone the gist and add your own!

New Ruby 1.9 Features, Tips & Tricks

In case you can't preview the gist: direct link , or see the raw file .

igvita.com Read