In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...

github.com

home_run is an implementation of ruby’s Date/DateTime classes in C, with much better performance (20-200x) than...

thinkvitamin.com

Increasingly web application developers and entrepreneurs are turning to the “Software As A Service” (SaaS) model to monetize their products...

blog.peepcode.com

The Rails router has been written and rewritten at least four times2, including a recent rewrite for the upcoming Rails...

github.com

Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

has_attached_file( :avatar, :styles => { :large => "300x300", :small => "100x100" }, :convert_options => { all => "-colorspace RGB" } )

Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...

With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...

makandra dev

To test concurrent code, you will need to run multiple threads. Unfortunately, when you use blocking system calls (e.g. locks...

makandra dev

rspec_spinner is a progress bar for RSpec which outputs failing examples as they happen (instead of all at the...

For arrays of objects, uniq does not work as expected, since it uses strict equality. So [[1], [1]].uniq() == [[1...

makandra dev

Install gem and plugin sudo gem install parallel script/plugin install git://github.com/grosser/parallel_tests.git Adapt config/database.yml test: database: xxx_test<%= ENV...

sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...

See the lemonade descriptions. Unfortunately, the gem has a few problems: it does not work with Sass2...

When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...

To improve installation times of gems you can use the following approach: gem install xyz --no-document To permanently ignore...

This can happen during development when classes without automatic reloading are pointing to classes with automatic reloading. E.g. some class...

web.archive.org

This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...

Append this to your ~/.bashrc: export PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s...

To run a single test file: rake test:units TEST=test/unit/post_test.rb rake test:functionals TEST=test/functional/posts_controller_test.rb rake test:integration TEST...

If you would like to checkout the branch groups, you can simply say this in recent versions of Git: