Automatically run bundle exec if required

Posted Over 13 years ago by Henning Koch.

There will probably be better solutions as we become more experienced with using Bundler, and more command line tools become...

Load order of the environment

Posted Over 13 years ago by Henning Koch.

Rails 3, 4, 5, 6 config/application.rb config/environment.rb before the initialize! call (we don't usually edit this file)

Scope to records with a given state in state_machine

Posted Over 13 years ago by Henning Koch.

The state_machine gem ships with a scope with_state. This scope has some problems in complex queries or scope...

Bundler for Rails 2.3.x

Posted Over 13 years ago by Thomas Eisenbarth.

Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.

Recursively remove unnecessary executable-flags

Posted Over 13 years ago by Arne Hartherz.

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

Boolean attributes and pretty enumerations in Cucumber Factory 1.7

Posted Over 13 years ago by Henning Koch.
github.com

Boolean attributes can now be set by appending "which", "that" or "who" at the end: Given there is a movie...

How Rails and MySQL are handling time zones

Posted Over 13 years ago by Tobias Kraze.

When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...

Run a POP3 server on a directory of mail files with popthis

Posted Over 13 years ago.

popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis

Marry Capybara with SSL-enabled applications

Posted Over 13 years ago by Henning Koch.

Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...

rspec_candy is now a gem

Posted Almost 12 years ago by Henning Koch.
github.com

Our awesome collection of rspec helpers (formerly known as "spec_candy.rb") is now available as a gem. It works, it is...

Announcing YARD 0.6.0 (gnuu.org)

Posted Over 13 years ago by Lexy.
gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...

Build a JSON API for a Rails application

Posted Over 13 years ago by Henning Koch.
github.com

Try our Apify gem which solves many problems you will be having.

Error installing the raspell gem

Posted Over 13 years ago.

When you get this while installing the raspell gem: ERROR: Error installing raspell: ERROR: Failed to build gem native extension...

Aspell Error - No word lists can be found for the language XY

Posted Over 13 years ago.

When you get this error: No word lists can be found for the language "de". An aspell dictionary is missing...

stefankroes's ancestry at master - GitHub

Posted Over 13 years ago by Lexy.
github.com

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

Release gem; Deploy gem; Update a gem created with Jeweler

Posted Over 13 years ago by Henning Koch.

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

Better output for Cucumber

Posted Over 13 years ago by Henning Koch.
github.com

We built cucumber_spinner to have a progress bar for Cucumber features, which also outputs failing scenarios as soon as...

Better Output for RSpec

Posted Over 13 years ago by Tobias Kraze.

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

Concurrent Tests

Posted Over 13 years ago by Lexy.

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...

Parse XML or HTML with Nokogiri

Posted Over 13 years ago by Tobias Kraze.

To parse XML-documents, I recommend the gem nokogiri. A few hints: xml = Nokogiri::XML(" foo bar ") parses an xml...

Rails - Multi Language with Fast_Gettext

Posted Over 13 years ago.

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

Automatically build sprites with Lemonade

Posted Over 13 years ago by Tobias Kraze.

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

Using Passenger for development (with optional SSL)

Posted Over 13 years ago by Lexy.

install apache sudo apt-get install ruby1.8-dev sudo gem install passenger sudo passenger-install-apache2-module follow the instructions

Freeze (vendor, unpack) a single Ruby gem with and without Bundler

Posted About 13 years ago by Henning Koch.

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