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.
JRuby 1.6 is released!
For everyone that hasn’t heard about it yet, JRuby 1.6 was released about 22 hours ago: “9 months, 2500 commits, 1.9.2 support, C exts, and more!”. In addition to that, Charles Oliver Nutter just released an interesting blog post entitled JRuby 1.6 Released … Now What?.
Notable Projects using Sinatra + Padrino
The Padrino team just released a blog post highlighting several interesting applications and libraries using and extending Rack, Sinatra and the Padrino ruby web stack. We are very interested in hearing about other projects leveraging Padrino that we are not yet aware of! Please reach out to us and/or update the wiki projects page with anything missing.
Dead simple daemon lib in ~ 100 loc
If you feel like most of the ruby daemon libs out there are overly complex or unstable, try forker. My goal was to write the simplest code possible to daemonize code, redirect output and manage the pidfile. Been using it in production to run resque workers on ubuntu and it has been rock solid for me.
DataMapper And Sharing Common Properties
DataMapper And Sharing Common Properties How to share common behavior and properties across model classes with datamapper.
Review: The Rails 3 Way (Obie Fernandez)
Here’s my review of The Rails 3 Way by Obie Fernandez.
Ruby + Gosu = Fun!
I had a bit of good time with Gosu on Ruby and wanted to share some thoughts and experience
Using delayed_job as a user driven scheduler
Are you looking for a way to schedule and reschedule jobs? delayed_job is a popular plugin used to handle long running tasks in the background. Another use for it, perhaps not as well documented, is to schedule tasks at a specific time. Here is a post illustrating a couple of ways to do so
to_lang updated to 0.3.0: translate strings in batches or via command line
My language translation gem, to_lang, has been updated to version 0.3.0. In addition to running translations directly on string objects, you can now translate arrays of strings at once, or use the new command line utility for quick jobs.
Intend to extend (Ruby metaprogramming)
Another post about metaprogramming in Ruby. As it is such an essential topic it is in my opinion always nice to see it from different views. This post examines the various approaches how to get new methods in existing classes and instances.
Agery 1.0 for Generating Arrays of Ages
Agery is a set of extensions to Ruby’s Integer class to assist developers in generating arrays of ages. It’s designed to help generate data used when pricing is dependent upon age. Supports neat tricks like: 2.seniors + 1.teenager #=> [65, 65, 13], 1.over_21 #=> [21], and 2.under_18 #=> [17, 17]. See the README for more examples and further introduction.
Nickel extracts date, time, and message information from naturally worded text.
I just open sourced Nickel, the natural language parser that powers Natural Inputs. Install with ‘gem install nickel’. Source is on github. Enjoy!
Capybara, Selenium and SSL testing
Wrote a post about all these things and more. Also starring: nginx, database_cleaner and seed data.
LivingSocial acquires InfoEther (Kilmer, Fowler, Vanderburg et al.)
InfoEther is a popular Ruby and Rails consultancy and one of America’s first. Several well known Rubyists work there including Rich Kilmer, Chad Fowler, Tom Copeland and Bruce Williams. Today they’ve announced they’ve been acquired by ‘social commerce’ company LivingSocial. One heck of a recruitment drive!
Local gem documentation that doesn't need a server
I just updated Bdoc: a server-less local gem documentation browser that generates a single HTML file allowing you to easily browse and filter through the gem docs on your local machine. Bdoc isn’t new… but it’s been in desperate need of an update for a while… now it’s up-to-date. “gem install bdoc” now! Here’s what it looks like:
TorqueBox Benchmarked Against Other JRuby, MRI, & REE Servers
Round 2 of the TorqueBox benchmarks have been posted comparing how quickly TorqueBox, Trinidad, GlassFish, Passenger, Unicorn, and Thin can run Redmine. http://torquebox.org/news/2011/03/14/benchmarking-torquebox-round2/
rack-pygmentize
Howdy, I just released rack-pygmentize, it’s all about colourfying and awesomifying your code blocks in the middleware stack so you can just add the middleware and forget about it
Testing Rails 3 controller with Rack
A few words about testing Rails 3 controllers in full isolation, using Rack.
Keep Controllers Organized: The Shared Helper Method
I just launched an article that explains a method to keep your controllers organized. I’d really like to know how do you do the same thing!
Ruby beats Haskell (sometimes)
I just posted an article about why choosing the right algorithm choosing the right algorithm is usually more important that choosing the right programming language.
Translations management engine, with support for Redis and MongoDB
Inspired by recent railscasts episode, I just made a few changes to my translations engine, which was re-born with new home and name, with support for Redis, MongoDB and nicer UI out of the box. Testers and comments needed!
Sorcery v0.2.0 released - Twitter, Facebook, tutorials in wiki
Sorcery is my authentication gem, which is in the works for 2 months now. It’s main goal is to give an easy API for building custom authentication flows. This is version 0.2.0 of the gem which adds support for OAuth (currently twitter & facebook). [more inside]
Rails one-liner to get URLs from rake routes
Rake routes is a little wordy to send to someone who needs a list of the URLs your Rails app uses. So I created a bash one-liner to make my life easier.
Continuous deployment with whiskey_disk
Continuous deployment rocks. Whiskey_disk makes it super easy. Here’s how to set it up on your servers.