diff options
author | Katsuhiko Nishimra <ktns.87@gmail.com> | 2013-04-29 19:40:19 +0900 |
---|---|---|
committer | Katsuhiko Nishimra <ktns.87@gmail.com> | 2013-05-01 01:33:28 +0900 |
commit | 14b7adcf544f989209c28ac426c4e9dfe4be3790 (patch) | |
tree | 8de387a594dce01ee4a46b24ffb35ce4361419b9 /ext | |
parent | 309f9513da8de66e7720b93944a2de6c49c374cd (diff) |
Use OpenBabel::VERISON to build gem
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openbabel/extconf.rb | 6 |
1 files changed, 4 insertions, 2 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']) |