Skip to content

Commit 6014412

Browse files
committed
Restore support for ruby-1.8.6, fixes #34
1 parent 4b9c4b0 commit 6014412

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/executable-hooks/regenerate_binstubs_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def try_to_fix_binstubs(spec, executables, wrapper_name)
9191
return false if executable_paths.include?(nil) # not found
9292
executable_shebangs =
9393
executable_paths.map do |path|
94-
[path, File.readlines(path).map(&:chomp)]
94+
[path, File.readlines(path).map{|l|l.chomp}]
9595
end
9696
return false if executable_shebangs.detect{|path, lines| !(lines[0] =~ /^#!\//) }
9797
puts "#{spec.name} #{spec.version}"

lib/rubygems_plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Set the custom_shebang if user did not set one
1515
Gem.pre_install do |gem_installer|
16-
options = if gem_installer.methods.map(&:to_s).include?('options')
16+
options = if gem_installer.methods.map{|m|m.to_s}.include?('options')
1717
gem_installer.options
1818
end
1919
ExecutableHooks::Wrapper.new(options).install

0 commit comments

Comments
 (0)