1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Reuse lib method

https://github.com/bundler/bundler/commit/4589a57852
This commit is contained in:
David Rodríguez 2019-08-03 14:07:11 +02:00 committed by Hiroshi SHIBATA
parent ef2d415802
commit 50a91fcd10
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -196,7 +196,6 @@ module Spec
end
def gembin(cmd)
lib = File.expand_path("../../../lib", __FILE__)
old = ENV["RUBYOPT"]
ENV["RUBYOPT"] = "#{ENV["RUBYOPT"]} -I#{lib}"
cmd = bundled_app("bin/#{cmd}") unless cmd.to_s.include?("/")