Skip to content
This repository
Browse code

Rename Version constant to VERSION. Closes #2802.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 5cb2aa722deea44a9aac1ec2469611759a22bf75 1 parent fc51104
authored November 17, 2005
2  actionmailer/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
  4
+
3 5
 * Stricter matching for implicitly multipart filenames excludes files ending in unsupported extensions (such as foo.rhtml.bak) and without a two-part content type (such as foo.text.rhtml or foo.text.really.plain.rhtml).  #2398 [Dave Burt <dave@burt.id.au>, Jeremy Kemper]
4 6
 
5 7
 
2  actionmailer/Rakefile
@@ -9,7 +9,7 @@ require File.join(File.dirname(__FILE__), 'lib', 'action_mailer', 'version')
9 9
 
10 10
 PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
11 11
 PKG_NAME      = 'actionmailer'
12  
-PKG_VERSION   = ActionMailer::Version::STRING + PKG_BUILD
  12
+PKG_VERSION   = ActionMailer::VERSION::STRING + PKG_BUILD
13 13
 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14 14
 
15 15
 RELEASE_NAME  = "REL #{PKG_VERSION}"
2  actionmailer/lib/action_mailer/version.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module ActionMailer
2  
-  module Version #:nodoc:
  2
+  module VERSION #:nodoc:
3 3
     MAJOR = 1
4 4
     MINOR = 1
5 5
     TINY  = 3
2  actionpack/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
  4
+
3 5
 * Correct time_zone_options_for_select docs.  #2892 [pudeyo@rpi.com]
4 6
 
5 7
 * Remove the unused, slow response_dump and session_dump variables from error pages.  #1222 [lmarlow@yahoo.com]
2  actionpack/Rakefile
@@ -9,7 +9,7 @@ require File.join(File.dirname(__FILE__), 'lib', 'action_pack', 'version')
9 9
 
10 10
 PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
11 11
 PKG_NAME      = 'actionpack'
12  
-PKG_VERSION   = ActionPack::Version::STRING + PKG_BUILD
  12
+PKG_VERSION   = ActionPack::VERSION::STRING + PKG_BUILD
13 13
 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14 14
 
15 15
 RELEASE_NAME  = "REL #{PKG_VERSION}"
2  actionpack/lib/action_pack/version.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module ActionPack
2  
-  module Version #:nodoc:
  2
+  module VERSION #:nodoc:
3 3
     MAJOR = 1
4 4
     MINOR = 11
5 5
     TINY  = 0
2  actionwebservice/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
  4
+
3 5
 * Fix that XML-RPC date/time values did not have well-defined behaviour (#2516, #2534). This fix has one caveat, in that we can't support pre-1970 dates from XML-RPC clients.
4 6
 
5 7
 *0.9.3* (November 7th, 2005)
2  actionwebservice/Rakefile
@@ -10,7 +10,7 @@ require File.join(File.dirname(__FILE__), 'lib', 'action_web_service', 'version'
10 10
 
11 11
 PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
12 12
 PKG_NAME      = 'actionwebservice'
13  
-PKG_VERSION   = ActionWebService::Version::STRING + PKG_BUILD
  13
+PKG_VERSION   = ActionWebService::VERSION::STRING + PKG_BUILD
14 14
 PKG_FILE_NAME   = "#{PKG_NAME}-#{PKG_VERSION}"
15 15
 PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}"
16 16
 
2  actionwebservice/lib/action_web_service/version.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module ActionWebService
2  
-  module Version
  2
+  module VERSION
3 3
     MAJOR = 0
4 4
     MINOR = 9
5 5
     TINY  = 3
2  activerecord/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
  4
+
3 5
 * Introducing the Firebird adapter.  Quote columns and use attribute_condition more consistently.  Setup guide: http://wiki.rubyonrails.com/rails/pages/Firebird+Adapter  #1874 [Ken Kunz <kennethkunz@gmail.com>]
4 6
 
5 7
 * SQLServer: active? and reconnect! methods for handling stale connections.  #428 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
2  activerecord/Rakefile
@@ -9,7 +9,7 @@ require File.join(File.dirname(__FILE__), 'lib', 'active_record', 'version')
9 9
 
10 10
 PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
11 11
 PKG_NAME      = 'activerecord'
12  
-PKG_VERSION   = ActiveRecord::Version::STRING + PKG_BUILD
  12
+PKG_VERSION   = ActiveRecord::VERSION::STRING + PKG_BUILD
13 13
 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14 14
 
15 15
 RELEASE_NAME  = "REL #{PKG_VERSION}"
2  activerecord/lib/active_record/version.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module ActiveRecord
2  
-  module Version #:nodoc:
  2
+  module VERSION #:nodoc:
3 3
     MAJOR = 1
4 4
     MINOR = 13
5 5
     TINY  = 0
4  activesupport/CHANGELOG
... ...
@@ -1,3 +1,7 @@
  1
+*SVN*
  2
+
  3
+* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
  4
+
1 5
 *1.2.3* (November 7th, 2005)
2 6
 
3 7
 * Change Inflector#constantize to use eval instead of const_get. [Nicholas Seckar]
2  activesupport/Rakefile
@@ -6,7 +6,7 @@ require File.join(File.dirname(__FILE__), 'lib', 'active_support', 'version')
6 6
 
7 7
 PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
8 8
 PKG_NAME      = 'activesupport'
9  
-PKG_VERSION   = ActiveSupport::Version::STRING + PKG_BUILD
  9
+PKG_VERSION   = ActiveSupport::VERSION::STRING + PKG_BUILD
10 10
 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
11 11
 
12 12
 RELEASE_NAME  = "REL #{PKG_VERSION}"
2  activesupport/lib/active_support/version.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module ActiveSupport
2  
-  module Version #:nodoc:
  2
+  module VERSION #:nodoc:
3 3
     MAJOR = 1
4 4
     MINOR = 2
5 5
     TINY  = 3
2  railties/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
  4
+
3 5
 * Update to latest script.aculo.us version (as of [3031])
4 6
 
5 7
 * Eliminate Subversion dependencies in scripts/plugin.  Correct install options.  Introduce --force option to reinstall a plugin.  Remove useless --long option for list.  Use --quiet to quiet the download output and --revision to update to a specific svn revision.  #2842 [Chad Fowler, Rick Olson]
2  railties/Rakefile
@@ -11,7 +11,7 @@ require File.join(File.dirname(__FILE__), 'lib', 'rails_version')
11 11
 
12 12
 PKG_BUILD       = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
13 13
 PKG_NAME        = 'rails'
14  
-PKG_VERSION     = Rails::Version::STRING + PKG_BUILD
  14
+PKG_VERSION     = Rails::VERSION::STRING + PKG_BUILD
15 15
 PKG_FILE_NAME   = "#{PKG_NAME}-#{PKG_VERSION}"
16 16
 PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}"
17 17
 
2  railties/bin/rails
@@ -12,7 +12,7 @@ end
12 12
 Signal.trap("INT") { puts; exit }
13 13
 
14 14
 require File.dirname(__FILE__) + '/../lib/rails_version'
15  
-abort "Rails #{Rails::Version::STRING}" if %w(--version -v).include? ARGV.first
  15
+abort "Rails #{Rails::VERSION::STRING}" if %w(--version -v).include? ARGV.first
16 16
 
17 17
 require File.dirname(__FILE__) + '/../lib/rails_generator'
18 18
 
2  railties/lib/initializer.rb
@@ -123,7 +123,7 @@ def require_frameworks
123 123
       configuration.frameworks.each { |framework| require(framework.to_s) }
124 124
     end
125 125
     
126  
-    # Loads Rails::Version and Rails::Info.
  126
+    # Loads Rails::VERSION and Rails::Info.
127 127
     # TODO: Make this work via dependencies.rb/const_missing instead.
128 128
     def load_framework_info
129 129
       require 'rails_info'
4  railties/lib/rails_info.rb
@@ -26,7 +26,7 @@ def components
26 26
       
27 27
       def component_version(component)
28 28
         require "#{component}/version"
29  
-        "#{component.classify}::Version::STRING".constantize
  29
+        "#{component.classify}::VERSION::STRING".constantize
30 30
       end
31 31
     
32 32
       def edge_rails_revision(info = svn_info)
@@ -70,7 +70,7 @@ def svn_info
70 70
   
71 71
     # The Rails version.
72 72
     property 'Rails version' do
73  
-      Rails::Version::STRING
  73
+      Rails::VERSION::STRING
74 74
     end
75 75
   
76 76
     # Versions of each Rails component (Active Record, Action Pack, 
2  railties/lib/rails_version.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module Rails
2  
-  module Version #:nodoc:
  2
+  module VERSION #:nodoc:
3 3
     MAJOR = 0
4 4
     MINOR = 14
5 5
     TINY  = 3
4  railties/test/rails_info_test.rb
@@ -62,7 +62,7 @@ def test_property_with_block
62 62
   end
63 63
   
64 64
   def test_component_version
65  
-    assert_property 'Active Support version', ActiveSupport::Version::STRING
  65
+    assert_property 'Active Support version', ActiveSupport::VERSION::STRING
66 66
   end
67 67
 
68 68
 protected
@@ -89,4 +89,4 @@ def assert_property(property_name, value)
89 89
       property_defined? property_name
90 90
     assert_equal value, properties.value_for(property_name)
91 91
   end
92  
-end
  92
+end

0 notes on commit 5cb2aa7

Please sign in to comment.
Something went wrong with that request. Please try again.