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.
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.
gem install web
I just pushed out the first version of web, a library for caching HTTP service responses.
Sprinkle: Build remote servers in repeatable way
I give an introduction to Sprinkle. Sprinkle uses Ruby’s DSL to define packages/steps that are going to execute on remote servers, so that makes it easy to read and write.
New version of acts_as_taggable_on gem has been released
We have just updated acts_as_taggable_on gem to 2.1.0 version. This will be the last version which supports rails 2.
Upgrading to Mac OS Lion killed my Rails App
I just upgraded to Lion. I had a few issues. Check out the post especially if you are using imagemagick or homebrew.
Guide to writing Ruby gems
I wrote a bunch of posts for beginners about how to get started writing a new Ruby gem. I’ll be adding more posts soon, but for now I’ve finished four short posts. [more inside]
Whyday contrib: Viiite, an alternative to Benchmark
I dediced to release Viiite for whyday, whatever the features I would have written. So, a first release is out now! Any ideas welcome for next release.
JSON Audit: View what parts of JSON you actually use in your app
I’ve created a JS project that uses getters/setters in JS to watch usage of objects. If you attach the auditor to JSON objects immediately after they’ve been retrieved you can use your app and then open a window to see which parts of the JSON object were actually used. You can see the project on GitHub.
Generate easy, up-to-date Rails API docs with Cucumber
After adding JSON API capability to an existing Rails’ site I needed to write API documentation. I hate writing docs, and I bet you do too. So I figured out a way to have Cucumber do it for me.