RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

3 ways to monkey-patch without making a mess

When you first try Ruby, monkey patching is amazing. It makes Ruby a joy to read and write. That is, until you hit weird problems that are impossible to debug. But what’s the alternative? Waiting for blank? to make it into core Ruby before you’re allowed to have nice user input handling? How can you write monkey patches that won’t make you want to fire yourself for incompetence the next time you see them?

Ruby Gem of the Week Series @ Planet Ruby - Week #1 factbook, Week #2 hoe, Week #3 slideshow

Hello, I’ve started a new Ruby Gem of the Week series (w/ web feed) that presents a new Ruby library every week on Thursday on Planet Ruby. So far the gems presented include: Week #3 - slideshow gem - a free web alternative to PowerPoint and Keynote in Ruby; Week #2 - hoe gem - build, package and publish gems with hoe rake tasks; Week #1 - factbook gem - turn the world factbook into open structured data e.g JSON – Happy Planet. Cheers. PS: Have your say! Guest posts more than welcome.

Trip: concurrent tracer built on Thread#set_trace_func.

trip is a concurrent tracer for the ruby programming language. It yields control between two threads, most likely the main thread and a thread that trip creates. It is implemented in pure ruby(no C) and with the help of “Thread#set_trace_func”. It can be useful when building developer tools like a debugger or if you want to step through code progmatically at runtime.

Dragonfly processed elements tracking with two layer cache – Memcached na ActiveRecord

Default thumbnails tracking for Dragonfly can be a bit slow - since it performs DB query each time you request an image. here’s a solution that’s using two cache layers: memcached and underneath a DB cache storage.

Loading older posts