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.
Webmachine v0.1.0 released
I just released the first version of Webmachine (gem) (code) in advance of my RubyConf talk. Webmachine is an HTTP toolkit that lets you focus on building resources declaratively, while transparently handling the hard parts of content-negotiation, conditional requests, and proper response codes.
Hire a Guard for Your Project
If you aren’t using Guard to automate your development projects (Ruby and otherwise), you should be! Learn the basics and get started with this new post.
jQuery Mobile & Rails
A few helpful hints from my first jQuery Mobile & Rails project. Includes advice on mobile page ids, data attributes, page layouts and testing with Capybara-WebKit.
Valium: The Cure for Your ActiveRecord Instantiation Woes
I just released a tiny little gem called Valium that makes it simpler to get at your attribute values (properly cast and deserialized) without going through the pain of ActiveRecord instantiation. Here’s the blog post.
Raad 0.3.1 released
I just released version 0.3.1 of Raad - Ruby as a daemon lightweight service wrapper. Raad is a non-intrusive, lightweight, simple Ruby daemon wrapper. Basically a simple class which implements the start and stop methods, can be used seamlessly as a daemon or a normal console app.
How to - Master/Slave cluster Engineyard setup with Chef
I just released a chef cookbook to nearly automatically configure master/multiple slave clusters on Engineyard using Seamless Database Pool.
Filet 0.2.1 just released
I just released version 0.2.1 of Filet. Filet is a small DSL on top of test unit to help you write acceptance tests, similar to Steak. It also supports some nice features as nested contexts and setup methods and works with several ruby implementations.
When Developers Go To Great Length To Save Typing 4 Letters
When you’re using Rails, swapping a new web server in is pretty painless. But if you want the “rails server” command to pick up your new web server as a default - it will require a little bit of hacking. This shows you how and does a bit of a dive into Rails and Rack in the process.
Creating asynchronous web services with Goliath
Wrote a post explaining how to use Goliath framework to build Asynchronous web services. Shared sample configs for deployment using Capistrano and God monitoring.
My JRuby Port of a Game by Minecraft's Creator
Last weekend, hundreds of coders took part in Ludem Dare, a 48 hour game coding contest. Minecraft’s creator “Notch” created a cool little game in Java called Prelude of the Chambered. So far, I’ve spent two days porting it to JRuby. It’s not complete but you can play the first few minutes OK now (get weapon, push rocks, kill bats, etc.) The performance is nowhere near as good as in Java but that’s the next step, so if you’re a JRuby expert, I expect pull requests.. :-)
Manageable Content - Rails 3.1 Content Management Engine
This is a tutorial post about a gem I have just released: manageable_content. It is a content management framework for Rails 3.1. It provides a basic mapping between controllers to manageable contents. More detailed info can be found on the README file. The idea was to create a simple to use and generic content manager for Rails. The source code is available in GitHub.
Be Careful How You Override
There’s a number of ways to goof up overriding methods in Ruby. Some methods can’t be overridden safely, period. Some methods need to call super
or they’ll likely break a lot of code. Laser, a ruby static analysis tool in development, and it knows a lot about Ruby - read how it can now detect many of these errors!
Replace The Rails Console With Pry
Information on how to replace the rails console with pry.
Absentee Camper: @mention absent Campfire users and they get notified
Over the course of a few hours, I decided to scratch an itch I had and absentee_camper was born. It’s a Ruby library that will monitor a Campfire room for @mentioned users and notify them via email if they aren’t in the room at the time the message is sent. The email contains the message in which the user was mentioned. [more inside]
Calendar About Nothing Invades My Shell: Introducing seinfeld.sh
A quick introduction to a weekend project: seinfeld.sh. Inspired by my terminal outputting the last login date, seinfeld.sh shows the date of your last open source contribution as tracked by Calendar About Nothing.
Test Multiple Rubies by Combining Bundler and RVM
If you’re supporting multiple ruby platforms, you can combine RVM and Bundler for testing compatibility.
Saying thanks to OSS maintainers
Over the last few days, Mendicant University students and staff said thanks to OSS maintainers by making tiny contributions to their projects. We did this because we were inspired by rubythankful.com and wondered if there was a way we could take it a step farther. You’re encouraged to follow in our footsteps and do the same for a project you love!
Datagrid: Reporting made easy in Rails App
Datagrid provides you DSL to build ActiveRecord based reports with filters and sortable columns to represent table like data. This is something that was never done before.
Re-license Ruby-GSSAPI
I just re-licensed Ruby-GSSAPI under the MIT license. http://bitly.com/ruby_gssapi
Pakyow: Punch Packing Application Framework
I would like to announce Pakyow, a new application framework for Ruby. In Pakyow, view logic is separate from the view, allowing views to consist only of HTML. This allows front-end and back-end development roles to be well defined, leading to better code.
Say Thanks to Project Maintainers with a Tweet: #rubythankful
rubythankful.com by Michael Bleigh automatically displays all tweets marked with the hashtag #rubythankful, to provide a easy way for you to say thank you for the hard work of Ruby project maintainers. Saying thanks is a way of contributing, so when a library, app or screencast makes your life a little better, please take a moment to tweet.
Create an Invoice Using your Git commit history
The Big Bucks, No Whammies gem takes your git commit history and generates a line item invoice. Simply specify the time range, billing rate, company info, and the location of the git repo, and BBNW does the rest. A sample invoice can be viewed here.
Tire for ElasticSearch updated
A 0.2 version of the Tire gem for ElasticSearch has been released with much improved support for ActiveRecord models and lots of small fixes. gem install tire
and check out the „ActiveModel Integration” chapter in the Readme.