Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11069 (new enhancement)

Opened 10 months ago

[PATCH] pessimistic version constraint for RAILS_GEM_VERSION

Reported by: mislav Assigned to: core
Priority: normal Milestone: 2.x
Component: Railties Version: edge
Severity: minor Keywords: tiny
Cc:

Description

When generating Rails skeleton with, say, 2.0.2 gem, it generates this in environment.rb:

RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION

I propose putting in the pessimistic version constraint ~>:

RAILS_GEM_VERSION = '~> 2.0.2'

That will make the app load any 2.0.x gem (above 2.0.2). Useful for point releases with bug/security fixes.

Attachments

gem-version.diff (0.8 kB) - added by mislav on 02/10/08 13:33:17.

Change History

02/10/08 13:33:17 changed by mislav

  • attachment gem-version.diff added.