When you do something like this in your code: def var_value @var ||= some_expensive_calculation end

On recent/fresh installations of Ruby 1.8.7 you may encounter this error why calling any bundled binary (or just bundle exec...

Assert rmagick provision ... Gemfile gem 'rmagick', '2.13.2' # at this moment the latest stable version config/initializer/carrierwave.rb require 'carrierwave/processing/rmagick' ... and define a...

Install and configure the AWS Command Line Interface Show existing certificates to test if the AWS Cli is working:

I'm creating certificate requests with this command: openssl req -new -out www.example.com.csr -keyout www.example.com.key -newkey rsa:2048 -nodes

Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...

stackoverflow.com

You're better off using debugger-ruby_core_source: gem install debugger-ruby_core_source If you can't do...

Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...

If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...

makandra dev

The mysql2 gem in version 0.3.13 might break while compiling on older patch releases of Ruby 1.9.3 within rvm:

dusen 0.4.8 and edge_rider 0.2.3 no longer depend on Rails (they still depend on ActiveRecord). That means you can...

After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.

bundler.io

bundle open BUNDLED_GEM will open the BUNDLED_GEM's source code in your default editor.

robots.thoughtbot.com

Bundler 1.4.0 (still beta) can install gems in parallel, making a run of bundle install much faster.

makandracards.com

So you're hunting down a regression (or just a bug) and want to use git bisect to find out...

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra dev

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

railway.at

Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...

You can detect city and country from an IP address by using the GeoLite database. This is a flat file...

tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...

github.com

When using the json gem, you might run into this error when using JSON.parse: >> json = 'foo'.to_json >> JSON.parse(json...

For example if you use rvm and get this message: ERROR: Loading command: install (LoadError) no such file to load...

Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...