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.
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] [more inside]
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. [more inside]
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.
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.