[rubygems/rubygems] Fix RubyGems warnings about missing shebang
https://github.com/rubygems/rubygems/commit/362c960497
This commit is contained in:
parent
c262861e5c
commit
9bf3210adb
@ -115,7 +115,8 @@ RSpec.describe "bundle binstubs <gem>" do
|
|||||||
build_gem "prints_loaded_gems", "1.0" do |s|
|
build_gem "prints_loaded_gems", "1.0" do |s|
|
||||||
s.executables = "print_loaded_gems"
|
s.executables = "print_loaded_gems"
|
||||||
s.bindir = "exe"
|
s.bindir = "exe"
|
||||||
s.write "exe/print_loaded_gems", <<-R
|
s.write "exe/print_loaded_gems", <<~R
|
||||||
|
#!/usr/bin/env ruby
|
||||||
specs = Gem.loaded_specs.values.reject {|s| s.default_gem? }
|
specs = Gem.loaded_specs.values.reject {|s| s.default_gem? }
|
||||||
puts specs.map(&:full_name).sort.inspect
|
puts specs.map(&:full_name).sort.inspect
|
||||||
R
|
R
|
||||||
|
@ -153,7 +153,7 @@ module Spec
|
|||||||
|
|
||||||
build_gem "bundler", "0.9" do |s|
|
build_gem "bundler", "0.9" do |s|
|
||||||
s.executables = "bundle"
|
s.executables = "bundle"
|
||||||
s.write "bin/bundle", "puts 'FAIL'"
|
s.write "bin/bundle", "#!/usr/bin/env ruby\nputs 'FAIL'"
|
||||||
end
|
end
|
||||||
|
|
||||||
# The bundler 0.8 gem has a rubygems plugin that always loads :(
|
# The bundler 0.8 gem has a rubygems plugin that always loads :(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user