Skip to content

Commit

Permalink
dynamic slug_vendor_base detection code
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Nov 14, 2011
1 parent 479d2e8 commit 84df89e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/language_pack/ruby.rb
Expand Up @@ -64,11 +64,7 @@ def default_path
# the relative path to the bundler directory of gems
# @return [String] resulting path
def slug_vendor_base
if ruby_version_rbx?
"vendor/bundle/rbx/1.8"
else
"vendor/bundle/ruby/1.9.1"
end
@slug_vendor_base ||= run(%q(ruby -e "require 'rbconfig';puts \"vendor/bundle/#{RUBY_ENGINE}/#{RbConfig::CONFIG['ruby_version']}\""))
end

# the relative path to the vendored ruby directory
Expand Down

0 comments on commit 84df89e

Please sign in to comment.