lib/radius/version.rb in radius-ts-1.1.0 vs lib/radius/version.rb in radius-ts-1.3.0
- old
+ new
@@ -1,14 +1,8 @@
-module Radius
- module Version
- Major = '1'
- Minor = '1'
- Tiny = '0'
-
- class << self
- def to_s
- [Major, Minor, Tiny].join('.')
- end
- alias :to_str :to_s
+module Radius #:nodoc:
+ def self.version
+ @version ||= begin
+ filename = File.join(File.dirname(__FILE__), '..', '..', 'VERSION')
+ IO.read(filename).strip
end
end
end