Commit Graph

22 Commits

Author SHA1 Message Date
Prem Sichanugrist 2dd2fcf896
Introduce `Rails.gem_version`
This method return `Gem::Version.new(Rails.version)`, suggesting a more
reliable way to perform version comparison.

Example:

    Rails.version #=> "4.1.2"
    Rails.gem_version #=> #<Gem::Version "4.1.2">

    Rails.version > "4.1.10" #=> false
    Rails.gem_version > Gem::Version.new("4.1.10") #=> true
    Gem::Requirement.new("~> 4.1.2") =~ Rails.gem_version #=> true

This was originally introduced as `.version` by @charliesome in #8501
but got reverted in #10002 since it was not backward compatible.

Also, updating template for `rake update_versions`.
2014-03-05 12:37:38 -05:00
Yves Senn c554d170e6 update version to 4.2.0.alpha 2014-02-23 13:14:43 +01:00
Rafael Mendonça França 8b20c72dd8 Preparing for 4.1.0.beta2 release 2014-02-18 15:45:20 -03:00
David Heinemeier Hansson f706d5f945 Its beta1 all around 2013-12-17 16:10:57 -08:00
Rafael Mendonça França feb44b9213 rails/master is now 4.1.0.beta 2013-04-29 13:15:24 -03:00
David Heinemeier Hansson 1ec64297f9 Bump version to rc1 2013-04-29 08:29:18 -07:00
Santiago Pastorino 78defbb78e Fix release task after ceb3b8717b 2013-04-01 18:26:34 -03:00
Charlie Somerville ceb3b8717b reverts changes to Rails.version made in #8501 2013-03-30 14:16:46 +11:00
Charlie Somerville c07e1515f7 Add version method to top level modules 2013-03-21 19:56:07 +11:00
David Heinemeier Hansson c0bc9ce38c Preparing for 4.0.0.beta1 release 2013-02-25 08:31:50 -06:00
David Heinemeier Hansson 632fa15fa4 rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00
David Heinemeier Hansson 9d6e52b55e Party like its R-C-UNO! 2011-12-19 18:34:57 -06:00
Santiago Pastorino 35cdd256c0 Master version is 3.2.0.beta 2011-06-30 10:18:36 -03:00
David Heinemeier Hansson 82857adc56 Bump versions for rc1 2011-05-21 20:56:52 -05:00
David Heinemeier Hansson 169ae75e09 Prepare for beta1 2011-05-04 20:21:05 -05:00
Carl Lerche ccd2f3ede5 Update the version.rb files to include a PRE part 2010-11-16 17:19:46 -08:00
David Heinemeier Hansson 21b1f29720 Master is now targeting 3.1.0.beta 2010-08-23 21:44:57 -05:00
David Heinemeier Hansson 856fc4bbc3 Prep for RC 2010-07-26 12:53:25 -05:00
José Valim 7710a8cb6b Ops, this should be beta4. 2010-06-24 04:31:07 -07:00
José Valim ee309d506c Update versions (otherwise you install a gem from source as beta3 but internally it's beta2) and update CHANGELOG. 2010-04-10 12:17:34 +02:00
David Heinemeier Hansson 46aee9f1f0 Bump this guy too 2010-04-01 13:47:48 -07:00
Bryan Helmkamp b1769fe0bd Add `rake update_versions` task at root for quickly updating all components 2010-03-02 00:32:41 -05:00