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.
Celebrating Whyday on Codebrawl
Codebrawl is doing a last minute programming contest to celebrate Whyday. The contest ends on Monday, so be quick or you’ll miss the prize!
Rails 3.0.10 Application with JRuby. #jruby #rails
I just posted a blog about using JRuby and Rails 3.0.10. Rails3.0.10 and Jruby [more inside]
Migrating from Webrat to Capybara
This is a collection of tips on how to migrate from Webrat to Capybara using RSpec.
FREE Course On Ruby’s Cross Platform GUI App Toolkit - Shoes
RubyLearning is celebrating _why day today and is offering a FREE course on Ruby’s Cross Platform GUI App Toolkit - Shoes. Steve Klabnik is the guest mentor. Registrations have started.
Ruby wrapper for Getclicky API
I just launched the gem for handle the Getclicky API
Improvements for gedit, the great gnome text editor :)
You can get better Ruby syntax highlighting, highlighted Gemfile.lock files and proper highlighting for .js.erb, .yml.erb and similar files :)
A Gentle Intriduction to CarrierWave
Trevor Turk offers an intro to how to set up and use CarrierWave, and why you might care.
Steam Condenser v1.0.0 released
After three years of active development I’m proud to announce the first stable release of Steam Condenser. [more inside]
Different ways of code reuse in RSpec
I just blogged about helper methods, custom matchers, shared examples, shared contexts and programmatic example generation in RSpec. Keep your tests DRY!
Faye 0.6.4 with updated WebSocket support
Faye is a simple pub/sub server for the web, and I just put out a release that adds support for the new WebSocket protocol used by Firefox 6 and Chrome 14.
Finding Unused Methods Statically
Laser can see when you don’t use a method, even through some interesting cases with send and public_send. See how it works, and when it doesn’t!
New Gem For Retrieving Random Results From Active Record
Do things like Model.my_scope.where(:enabled => true).random(10). Also, it performs much better than using order by random() when dealing with large record sets. Check it out!
Rails nursery
What if you don’t want to install yet another rails version just to try it out? Put it to Rails Nursery! Then you can get rid of it with a simple command.
Free e-book: Learn Ruby The Hard Way
Thanks in part to Fog Creek Software’s generous parental leave policy, I was able to translate Zed Shaw’s Learn Python The Hard Way to Ruby and give it away for free. Check out it: Learn Ruby The Hard Way
SMS Messages and Phone Calls with Twilio (Episode 104 from the SD Ruby podcast)
Brian Levine shows how easy it is to add phone services to your application using Twilio. Twilio wraps powerful telecom infrastructure with a simple REST API and offers pay-as-you-go pricing with cloud scalability. Watch episode.
Rails 3 Asset Pipeline & Google Closure
Rails 3.1.0 is on the horizon and Asset Pipeline is the king of the show. A hands on look at some of the internals + example of extending the Asset Pipeline to support Google’s Closure library.
gem install sub_diff
Apply regular expression replacements to strings while presenting the result in a “diff” like format: https://github.com/shuber/sub_diff
Technical Debt
The Ruby Rogues discussed Technical Debt, where it comes from, how to recognize it, and how to avoid it. Our panel included James Edward Gray II, Aaron Patterson, Josh Susser, and Charles Max Wood
An AngelList-like (but much crappier) project, now open sourced!
Here’s the repo (please read the project readme): https://github.com/fredwu/angel_nest [more inside]
Thoughts on Mocking
A few months ago I wrote a two part article about my thoughts about using mock objects for testing Ruby code. You can now find both part 1 and part 2 over on the RBP blog. When I originally released these to the Practicing Ruby newsletter subscribers, they generated a very interesting conversation. I’m hoping to see more of the same now that they’re publicly available.
Vendor - Bringing Bundler to iOS?
Using and sharing iOS libraries is tragically difficult given the maturity of the framework, the number of active developers, and the size of the open source community. Compare with Rails which has RubyGems and Bundler, and you have to ask: Why is there no equivalent solution for iOS? In our latest post, we discuss the feasibility of a new approach to iOS dependency management. We would love to hear your feedback.
Rails Misapprehensions: The Dependency Injection Pattern
A discussion about the Dependency Injection pattern in Ruby/Rails, and the role of components in Rails.