From 460e264aa954a141c622fcec2d4533a5b0f68ef3 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Thu, 15 Dec 2011 17:02:17 +0900 Subject: Added a check for the gemspec/rakefile included VERSION constant so bundler does not puke warnings. --- lib/axlsx/version.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/axlsx/version.rb b/lib/axlsx/version.rb index 72bb6e99..7d217c22 100644 --- a/lib/axlsx/version.rb +++ b/lib/axlsx/version.rb @@ -1,4 +1,7 @@ module Axlsx # version - VERSION="1.0.14" + # When using bunle exec rake and referencing the gem on github or locally + # it will use the gemspec, which preloads this constant for the gem's version. + # We check to make sure that it has not already been loaded + VERSION="1.0.14" unless Axlsx.const_defined? :VERSION end -- cgit v1.2.3