diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-11 10:18:57 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-11 13:26:28 +0100 |
commit | ee32b4aab00973bb8e7c4b0703bbdecffa9319ff (patch) | |
tree | ce9c7296eb035edfddd04a669539171447d35fb7 | |
parent | 239204583275e83c706be61cefee614eeb2f716f (diff) | |
download | morph-ee32b4aab00973bb8e7c4b0703bbdecffa9319ff.tar.gz |
import: Don't hardcode the Ruby version in use
We can discover the Gem install path at build-time with `gem environment
home`.
-rwxr-xr-x | import/rubygems.to_chunk | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/import/rubygems.to_chunk b/import/rubygems.to_chunk index 0c1ed124..0bcc8c88 100755 --- a/import/rubygems.to_chunk +++ b/import/rubygems.to_chunk @@ -22,8 +22,6 @@ require 'logger' require 'optparse' require 'yaml' -BASEROCK_RUBY_VERSION = '2.0.0' - BUILD_DEPENDENCY_WHITELIST = [ 'hoe', # rake is bundled with Ruby, so it is not included in the whitelist. @@ -138,7 +136,7 @@ class RubyGemChunkMorphologyGenerator description = 'Automatically generated by rubygems.to_chunk' bin_dir = "\"$DESTDIR/$PREFIX/bin\"" - gem_dir = "\"$DESTDIR/$PREFIX/lib/ruby/gems/#{BASEROCK_RUBY_VERSION}\"" + gem_dir = "\"$DESTDIR/$(gem environment home)\"" # There's more splitting to be done, but putting the docs in the # correct artifact is the single biggest win for enabling smaller |