[前][次][番号順一覧][スレッド一覧]

ruby-changes:47705

From: nobu <ko1@a...>
Date: Sun, 10 Sep 2017 20:53:03 +0900 (JST)
Subject: [ruby-changes:47705] nobu:r59821 (trunk): cli_spec.rb: prefer BUNDLE_RUBY

nobu	2017-09-10 20:52:56 +0900 (Sun, 10 Sep 2017)

  New Revision: 59821

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59821

  Log:
    cli_spec.rb: prefer BUNDLE_RUBY
    
    * spec/bundler/bundler/cli_spec.rb: prefer BUNDLE_RUBY over env
      hack.  on macOS 10.11 or later, some system commands, e.g.
      /bin/sh and /usr/bin/env, clear DYLD_LIBRARY_PATH environment
      variable which is necessary to run not-yet installed command.

  Modified files:
    trunk/spec/bundler/bundler/cli_spec.rb
Index: spec/bundler/bundler/cli_spec.rb
===================================================================
--- spec/bundler/bundler/cli_spec.rb	(revision 59820)
+++ spec/bundler/bundler/cli_spec.rb	(revision 59821)
@@ -15,7 +15,8 @@ RSpec.describe "bundle executable" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/bundler/cli_spec.rb#L15
 
   it "looks for a binary and executes it if it's named bundler-<task>" do
     File.open(tmp("bundler-testtasks"), "w", 0o755) do |f|
-      f.puts "#!/usr/bin/env ruby\nputs 'Hello, world'\n"
+      ruby = ENV['BUNDLE_RUBY'] || "/usr/bin/env ruby"
+      f.puts "#!#{ruby}\nputs 'Hello, world'\n"
     end
 
     with_path_added(tmp) do

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]