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.
Using MiniTest::Spec With Rails
A simple working solution for using MiniTest::Spec With Rails by tricking ActiveSupport::TestCase to subclass it. I also discuss using the Rails.backtrace_cleaner and MiniShoulda with Rails too.
ClassyEnum: Give Your Enums Some Class
ClassyEnum is a class based enumerator gem for Rails.
A Rails Testing Charity Workshop (The Day Before RailsConf 2011)
Jeff Casimir has announced that he’s running a Rails testing workshop for charity the day before RailsConf 2011 kicks off (so on May 15, 2011). Your instructors will be Jeff Casimir, Nick Gauthier, Matt Yoho, Marc Peabody and you’ll learn all about RSpec, Test::Unit, Capybara, Cucumber and more. If you want to be fully “test fluent” before the conference starts, it sounds like a good session.
_why's Illustrated Foreword
I’ve posted images of the foreword that why the lucky stiff produced for Beginning Ruby. A lot of people haven’t seen them and they’re another delightful part of the _why oeuvre.
Interview with Baq Haidri
Podcast interview with Baq Haidri of LinkedIn about how she was introduced to Ruby, how LinkedIn leverages JRuby, and why she loves programming.
Wriggle: A simple directory crawler DSL.
Wriggle is a gem that makes it easy to find directories by name or files by name or extension.
Interview with Caike Souza from EnvyLabs
José Costa from WyeWorks has interviewed Caike Souza from EnvyLabs, enjoy it.
htty, the HTTP TTY
htty is a console application for interacting with web servers. It’s a fun way to explore web APIs and to learn the ins and outs of HTTP. Install it by typing gem install htty and keep up at #htty and @get_htty.
Why Rubyists should try Elixir
José Valim explains why Ruby developers should try Elixir, a small language which adds a bit of Ruby syntax and Object Orientation to Erlang VM.
MacRuby example app for StatusMenu app
This is an example for an app in the status menu complete with an icon and custom view inside the menu. Clone the git repository (it’s for xcode 4).
Compass, SASS, and 960 Grid
I just released a video detailing how to get set up with Compass, SASS, and the 960 grid system. It also goes into some of the workings of SASS. SASS is a super handy way of writing stylesheets.
Apotomo 1.1.1
We’ve just released apotomo 1.1.1, about some of the changes..you can now manipulate your apotomo widgets with simpler event bubling More examples and exercises are comming soon :)
A further look into Code highlighting
This time I use Coderay as the code highlighter, I don’t go into much detail on that itself but delve into monkey patching and highline and throw in a heredoc also. [more inside]
rails_best_practices 0.7.4 released
rails_best_practices 0.7.4 released, it brings SchemaPrepare, which makes reviews more accurate, see more here.
my experience to upgrade mongoid
I have written a serial of posts to introduce my experience how to upgrade mongoid from 2.0.0.beta.19 to 2.0.0.rc.7, check them out here.
Taking Stock of JRuby Web Servers
Nick Sieger’s blog post on JRuby web servers helps you decide which server to use to build and deploy your app.
Mneme: Scalable Duplicate Filtering Service (HTTP, Ruby, Redis)
Mneme is an HTTP web-service for recording and identifying previously seen records - aka, duplicate detection. It is powered by Goliath, Redis, and a collection of bloomfilters under the hood. Check out the source on github.
Redis and Rails Guide
A guide of sort on Using Redis with Ruby on Rails
Generate MP3 waveforms with Ruby and R
I used Ruby and R to generate a waveform from an MP3 file to count the number of beeps in the Singapore MRT’s “door closing” warning.
Hello, Lunchy!
Lunchy is a friendy wrapper for OSX’s launchctl, making it easier to start and stop your Homebrew or MacPorts daemons.
MacRuby 0.10 Released
Laurent Sansonetti has released MacRuby 0.10, the latest version of the Mac OS X-focused Ruby implementation. 0.10 is the latest stepping stone on the way to a forthcoming 1.0 release and includes XCode 4 support and an improved macruby_deploy system.
Using Solr and Sunspot to Search Within Words
Following our series on Solr/Sunspot I wrote a blog post showing how you can configure Solr and Sunspot to search within a word. Such as searching for “Awe” within “Awesome”.
Message Expectations on methods that receive multiple messages with RSpec
I just posted this tip which shows a method to avoid MockExpectation errors when specifying methods that are called multiple times within execution. Check it out!
Another Cool Reason Ruby is Slow: implicit super
Some close details of implicit super reveal another example where Ruby is more flexible at the expense of easy optimizations.
A voting extension from scratch for Rails 3 (blog series)
I just started a blog series about building a voting extension from scratch for Rails 3. There will be presumably seven posts in this series. The main focus while putting this gem together will be on current best practices (using Bundler, setting up RSpec, inheriting from ActiveSupport::Concern, setting up generators, …). Here is part 1 - overview and setup. The complete code and installable gem is already available at the make_voteable GitHub repository.