diff options
| author | Randy Morgan <[email protected]> | 2011-12-15 17:02:17 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-12-15 17:02:17 +0900 |
| commit | 460e264aa954a141c622fcec2d4533a5b0f68ef3 (patch) | |
| tree | bcea53dd526965109a42bd3500e79a9804f44041 /axlsx.gemspec | |
| parent | 8123745202afee56a46e82423e76ea44b50f53ae (diff) | |
| download | caxlsx-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 'axlsx.gemspec')
| -rw-r--r-- | axlsx.gemspec | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/axlsx.gemspec b/axlsx.gemspec index 622b6a0f..f8b0d464 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -1,13 +1,6 @@ # This will recursively require rake when using rake 0.9.2.2 and bundler #require 'rake' - -begin - require File.expand_path(File.dirname(__FILE__) + '/lib/axlsx/version.rb') unless Axlsx::VERSION -rescue NameError=>e - # As far as I can tell, when a consuming application points to github, bundler runs the Gemfile, which in turn - # kicks this and then includes axlsx. As we are defining Axlsx::VERSION here, we see a - # warning: already initialized constant VERSION -end +require File.expand_path(File.dirname(__FILE__) + '/lib/axlsx/version.rb') Gem::Specification.new do |s| s.name = 'axlsx' |
