summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatsuhiko Nishimra <ktns.87@gmail.com>2013-04-29 19:40:19 +0900
committerKatsuhiko Nishimra <ktns.87@gmail.com>2013-05-01 01:33:28 +0900
commit14b7adcf544f989209c28ac426c4e9dfe4be3790 (patch)
tree8de387a594dce01ee4a46b24ffb35ce4361419b9
parent309f9513da8de66e7720b93944a2de6c49c374cd (diff)
Use OpenBabel::VERISON to build gem
-rw-r--r--ext/openbabel/extconf.rb6
-rw-r--r--openbabel.gemspec7
2 files changed, 9 insertions, 4 deletions
diff --git a/ext/openbabel/extconf.rb b/ext/openbabel/extconf.rb
index c260508..ae9c3f2 100644
--- a/ext/openbabel/extconf.rb
+++ b/ext/openbabel/extconf.rb
@@ -1,9 +1,11 @@
require 'fileutils'
require 'tmpdir'
require 'mkmf'
+$:.unshift File.expand_path('../../../lib', __FILE__)
+require 'openbabel/version'
-ob_num_ver="2.3.1"
-ob_ver="openbabel-"+ob_num_ver
+ob_num_ver = OpenBabel::VERSION
+ob_ver = "openbabel-"+ob_num_ver
RUBY=File.join(RbConfig::CONFIG['bindir'],
RbConfig::CONFIG['ruby_install_name'])
diff --git a/openbabel.gemspec b/openbabel.gemspec
index 3441b95..948df52 100644
--- a/openbabel.gemspec
+++ b/openbabel.gemspec
@@ -1,6 +1,9 @@
+$:.unshift File.expand_path('../lib', __FILE__)
+require 'openbabel/version'
+
Gem::Specification.new do |s|
s.name = "openbabel"
- s.version = "2.3.1.6"
+ s.version = OpenBabel::GEMVERSION
s.authors = ["Andreas Maunz, Christoph Helma"]
s.date = %q{2012-04-03}
@@ -12,6 +15,6 @@ Gem::Specification.new do |s|
s.summary = %q{OpenBabel!}
s.test_files = ["test/test_openbabel.rb"]
- s.files = ["Rakefile", "lib/openbabel.rb"]
+ s.files = %w{Rakefile lib/openbabel.rb lib/openbabel/version.rb}
s.extensions = ['ext/openbabel/extconf.rb']
end