summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/version.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-12-15 17:02:17 +0900
committerRandy Morgan <[email protected]>2011-12-15 17:02:17 +0900
commit460e264aa954a141c622fcec2d4533a5b0f68ef3 (patch)
treebcea53dd526965109a42bd3500e79a9804f44041 /lib/axlsx/version.rb
parent8123745202afee56a46e82423e76ea44b50f53ae (diff)
downloadcaxlsx-460e264aa954a141c622fcec2d4533a5b0f68ef3.tar.gz
caxlsx-460e264aa954a141c622fcec2d4533a5b0f68ef3.zip
Added a check for the gemspec/rakefile included VERSION constant so bundler does not puke warnings.
Diffstat (limited to 'lib/axlsx/version.rb')
-rw-r--r--lib/axlsx/version.rb5
1 files changed, 4 insertions, 1 deletions
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