[Rails] What happened to Rails::Version::STRING in Rails 1.0.0?

Rafał Komorowski
Mon, 02 Jan 2006 01:02:42 -0000

Hello,

Maybe it''s a silly question, but I cannot find anything in Rails
changelog or google it out.
There is a Rails::Version module (since version 0.14.something) that
gives me a version number of Rails, similarily to Rails::Info module.
Apparently in Rails version 1.0 (or maybe sooner) the name of the
module was changed from ''Version'' to
''VERSION'' which breaks my
debugging template. Is there any reason for this change?
Of course I understand that there''s no need to look behind 1.0 and
bother to keep the compatibility with anything older than 1.0, but
I''d like to widen my Ruby and Rails knowledge.

In 0.14.3 it looks like this:

	module Rails
	  module Version #:nodoc:
	    MAJOR = 0
	    MINOR = 14
	    TINY  = 3

	    STRING = [MAJOR, MINOR, TINY].join(''.'')
	  end
	end

and in 1.0.0 it looks like this:

	module Rails
	  module VERSION #:nodoc:
	    MAJOR = 1
	    MINOR = 0
	    TINY  = 0

	    STRING = [MAJOR, MINOR, TINY].join(''.'')
	  end
	end


--

Rafa? Komorowski
komor@mac.com
GG: 4083718
<http://homepage.mac.com/komor/iblog/>