When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...
The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...
When your gems complain about invalid gemspecs and illformed requirements, it is most probably an error resulting from the transition...
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...
Imagine you have a piece of code that tries to send a request to a remote server. Now the server...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...
Sometimes it might be helpful to have a version history for a gem, e.g. when you want to see if...
ProgressBar is a simple Ruby library for displaying progress of long-running tasks on the console. It is intended to...
The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...
This describes all the steps you'll need to get Solr up and running for your project using the Sunspot...
Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...
Gem to get Ruby 1.9 features in Ruby 1.8.
Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites.
Sometimes you want one distinct version of RubyGems to be installed to replicate the same behavior across multiple servers.
This note summarizes the ruby exception hierarchy. Exception NoMemoryError ScriptError LoadError NotImplementedError SyntaxError SignalException Interrupt Timeout::Error # < ruby 1.9.2 StandardError...
Our gitpt script to generate git commits from Pivotal Tracker stories has been tweaked and polished and is now part...
Using .downcase or .upcase on strings containing umlauts does not work as expected in Ruby versions before 2.4. It leaves...
When selecting records in a date range, take care not to do it like this: start_date = Date.parse('2007-05...
Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...
Note: capistrano_colors was merged into Capistrano starting from v2.13.5. However, this requires Ruby 1.9+. If you cannot upgrade Capistrano...
Ruby bindings for Sundown, a fast and full-featured Markdown parser that lets you define renders for arbitrary output formats...
Guide to writing CLI scripts in Ruby that play nice with pipe chains.
When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...