summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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