From d9cb98b4b73ec65c7c58d487a629ea476aced29a Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Wed, 5 Jul 2017 04:29:59 -0400 Subject: [PATCH] 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). --- lib/restclient/version.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/restclient/version.rb b/lib/restclient/version.rb index d2bbf28..e9c37c9 100644 --- a/lib/restclient/version.rb +++ b/lib/restclient/version.rb @@ -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