Version 2.1.0.rc1
Freeze the version constants, and don't bother checking whether they're already defined (that usually indicates a problem with requires).
This commit is contained in:
parent
d6c971a804
commit
d9cb98b4b7
|
@ -1,6 +1,6 @@
|
|||
module RestClient
|
||||
VERSION_INFO = [2, 1, 0, 'rc1'] unless defined?(self::VERSION_INFO)
|
||||
VERSION = VERSION_INFO.map(&:to_s).join('.') unless defined?(self::VERSION)
|
||||
VERSION_INFO = [2, 1, 0, 'rc1'].freeze
|
||||
VERSION = VERSION_INFO.map(&:to_s).join('.').freeze
|
||||
|
||||
def self.version
|
||||
VERSION
|
||||
|
|
Loading…
Reference in New Issue