1
0
Fork 0
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:
David Rodríguez 2019-04-12 19:05:26 +02:00 committed by Hiroshi SHIBATA
parent d2d6d5c988
commit 7255f55dba
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
6 changed files with 16 additions and 33 deletions

View file

@ -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|