Added v 0.3.1 snapshot.
[twitter4r-core.git] / lib / twitter / version.rb
blob2c8ef0843dbde1cfa3dc3d1d1ead6205001a1290
1 # version.rb contains <tt>Twitter::Version</tt> that provides helper
2 # methods related to versioning of the <tt>Twitter4R</tt> project.
4 module Twitter::Version #:nodoc:
5   MAJOR = 0
6   MINOR = 3
7   REVISION = 1
8   class << self
9     # Returns X.Y.Z formatted version string
10     def to_version
11       "#{MAJOR}.#{MINOR}.#{REVISION}"
12     end
13     
14     # Returns X-Y-Z formatted version name
15     def to_name
16       "#{MAJOR}_#{MINOR}_#{REVISION}"
17     end
18   end
19 end