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.
fog 0.7.0 Release: Cloudformation, RDS, VirtualBox, DNSimple DNS
geemus covers key improvements in the fog 0.7.0 release and stuff to be tackled before fog 1.0.
Tweet later with Delayed Job
I wrote a walkthrough on how to schedule jobs for the future using Delayed Job.
Resort - positionless sorting for your Rails 3 models
We just wrote an article about our latest gem to make your Rails 3 models sortable.
Improving IRB history
I just posted Improving IRB history.
pngqr & qrscanner: encode and decode QR codes without Java
QR codes are those 2D barcodes that can store over 1000 characters and even include error correction. Read more
Kata 1.0.5 released
A kata is defined as an exercise in programming which helps hone your skills through practice and repetition. Authoring katas is done in blogs but you can’t really test yourself. This gem provides a DSL to author the kata and administer it as a test providing feedback for evaluation. It also provides basic github repo setup so that you can chart solution progress over time. Check it out on github.
Journeta P2P gem v0.2.2, now w/Ruby 1.9.2 and JRuby 1.6 support.
A long-needed update release has just been posted, which includes support for fully-native internal threading for both Ruby 1.9 and JRuby 1.6. [GitHub] Read more
Whois 2.0 released
One year after the first major release, almost 2 years after the first commit, 1k commits and 59 versions after, I’m very proud to announce Whois 2.0. You can read more about this release in my blog post.
MountainWest RubyConf Live Streaming
MWRC is streaming the conference live!
Twitter, OAuth, and Ruby on Rails integrated cookbook-style in the console
A while ago I put together some no-nonsense, cookbook-style instructions for getting Twitter (and it’s somewhat cumbersome oauth mechanism) integrated into your Rails application. But the Twitter gem changed some oauth things when it went 1.0, so I have updated my instructions to reflect the new authorization steps. Read more
Stubbing Class Constants when Testing
I just posted Stubbing Class Constants when Testing that uses a little trick to “stub” class constants when testing with RSpec. Check it out!
Meet Ace: A New Generational Static Sites Generator!
I bet you know Nanoc, Webby and similar tools. Well, forget them and take a look at Ace! Sources of my blog are written in Ace and they are available on GitHub, check them! I also wrote an introduction to Ace, take a look if you want to know more!
rails_best_practices 0.7.2 released
I just released rails_best_practices 0.7.2, it allows writing your own check list, I believe you will like it, see more here.
Bundler Usage -- Manage your Gemfile
I just blogged Manage Gemfile.
Slop 1.0.0 is here!
I’ve just released Slop version 1.0.0. Slop is a simple, easy to use option parser. 1.0.0 includes a completely new, cleaner API with a much simpler interface. Here’s an example of the new Slop: https://gist.github.com/872910
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.