mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] RUBY_ENGINE should always be defined after 1.8.7
d6c9196d18
This commit is contained in:
parent
d2d6d5c988
commit
7255f55dba
6 changed files with 16 additions and 33 deletions
|
@ -12,8 +12,7 @@ module Bundler
|
|||
end
|
||||
File.open File.join(bundler_path, "setup.rb"), "w" do |file|
|
||||
file.puts "require 'rbconfig'"
|
||||
file.puts "# ruby 1.8.7 doesn't define RUBY_ENGINE"
|
||||
file.puts "ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'"
|
||||
file.puts "ruby_engine = RUBY_ENGINE"
|
||||
file.puts "ruby_version = RbConfig::CONFIG[\"ruby_version\"]"
|
||||
file.puts "path = File.expand_path('..', __FILE__)"
|
||||
paths.each do |path|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue