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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Introducing MongoHydrator
MongoHydrator is a new gem that makes the expansion of embedded MongoDB IDs into full subdocuments easy and efficient.
modernizr-rails: a new gem for including the modernizr javascript library in your Rails 3.1 apps
A simple gem wrapper that allows the use of the Modernizr.js library in your Rails 3.1 apps via the new asset pipeline: https://github.com/russfrisch/modernizr-rails Enjoy!
Codebrawl's very first code contest has started
This week, the challenge is to create your own formatter for RSpec 2. Your solution should solve a problem you’re facing with the existing formatters (like, I don’t know how long my specs are going to take or I don’t notice when my suite is done running) or you can do something completely crazy and funny. Good luck!
Against Ruby 1.9's Hash Syntax
Phil Nash discusses why he doesn’t like the Ruby 1.9 Hash syntax. Lively debate ensues in the comments.
rack-protection released - You should use protection!
rack-protection is a collection of Rack middleware to protect you against common, opportunistic attack. Use it for your Rack, Sinatra or Rails application and finally sleep well again.
My Weekend Project: BundleWatcher
BundleWatcher will help you keep track of updates to the gems your projects use, just by uploading your Gemfile.lock.
Rollable v0.1.2; now less crappy!
Saturday I released a new version of rollable, agnostic roles for Rails. Now no longer breaks is_a? (Yeah, seriously) and works with Rake 0.9.
How to manipulate data easily? Try Alf, fresh 0.9.0 release and looking for contributors!
I just launched Alf 0.9.0, a ruby library and commandline tool to manipulate data easily. This is a call for contributors towards a stable 1.0.0 in a few weeks
Ruby Adventure
I’m planning to travel across the USA and pair program with as many people as possible. If you know a meetup I should attend or want to pair with me, go to my site and send me an email. I’m very interested in learning and sharing knowledge with as many people as possible.
Exceptions as flow control in JRuby is suboptimal
I just saw a blog post by Chris Heald that used profiling to find some libraries that were using exceptions as flow control, which causes issues in JRuby . Seems worth a read if you use JRuby.
[Tutorial] Using Thor To Create A CLI
We figure out how to use Thor to create a command line interface by reproducing the login functionality of Cloud Foundry’s VMC gem.
Automate your application's development environment with Guard
As applications become more complex, you might find yourself repeating particular actions over and over again in your development environment. Learn how you can automate such actions using the Guard RubyGem.
Django 1.3 vs Rails 3: A not so final showdown
I’ve just wrote a short comparison of Django and Rails.
Rexpl - an interactive bytecode console for Rubinius
I just wrote an article about the motivations behind this bytecode REPL, for all Rubinius lovers!
MakeWatchable and MakeFlaggable ActiveRecord extensions
Just released two small ActiveRecord Rails extensions: MakeWatchable (for adding watchers to something) and MakeFlaggable (to flag something). You may get this functionality also by some other (mostly larger) extensions or implementing it directly in your app, but I prefer very problem specific and small extensions … and that is what those are.
RubyEvents: Really simple Ruby style events/callbacks
RubyEvents is a really simple event implementation that hooks into the Object class by default; it can also be used to extend modules and classes as needed with event functionality. Now all your objects can join in the fun of firing events! RubyEvents even offers you callbacks on already defined methods, without having to do the hard work yourself, allowing callbacks on standard library methods without having to monkey patch!
BostonRB June Video Presentations: MacRuby
MacRuby core contributor Joshua Ballanco presented at the June meeting for BostonRB. Part 1 (1hour) Part 2 (30 min)
Bricks: a hybrid object factory/builder, for DRYer tests
Bricks is a hybrid implementation of the object factory/builder patterns, bringing together the convenience of object factories and the flexibility of object builders. If you ever wished you could use several named factories at the same time to build a single object, this is for you.
TcpSyslog is now a gem
Tech-Angels has just launched TcpSyslog 1.0.0 gem. TcpSyslog is rails logger using syslog with TCP instead of UPD.
vim-bundler: bundler like solution for managing vim plugins
I put it there
Ruby Midwest 2011 - Call for Speakers ends 6/25 - Early Bird almost over!
Call for Speakers ends June 25, 2011: Submit a proposal to come share your excitement, experience, and expertise with fellow Rubyists in the Midwest! [more inside]
I just launched simple_eav. Allows you ...
I just launched simple_eav. Allows you to create and persist any number of attributes for a model without a mapped db column. Useful when absolutely necessary otherwise keep writing migrations and pretend this gem doesn’t exist.
GemAWeek Episode 3 - Capybara
Just released episode 3 of GemAWeek: All about Integration Testing with Capybara and RSpec. Check it out for a lightweight alternative to Cucumber.
Redis_orm: Yet Another ORM for Redis
I used a couple of gems to work with Redis key-value store (redis-objects, dm-redis-adapter with dm-core, ohm) but all of them have some drawbacks (even ohm does not have polymorphic associations yet), so I decided to write an ORM for Redis. [more inside]