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:
Andy Brody 2017-07-05 04:29:59 -04:00
parent d6c971a804
commit d9cb98b4b7
1 changed files with 2 additions and 2 deletions

View File

@ -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