This project is archived and is in readonly mode.

#3901 ✓resolved
Michael Bleigh

[PATCH] Generator 'gem' command doesn't accept versions

Reported by Michael Bleigh | February 8th, 2010 @ 08:03 PM

In master, the gem command of generators will append to the Gemfile an unescaped version string. For example, with this command:

gem 'rspec', '>=2.0.0.a5'

The Gemfile will look like so at the end:

gem "rspec", >=2.0.0.a5

The attached patch fixes this behavior and adds tests both for the version escaping as well as testing to make sure each gem gets its own line.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>


Referenced by