Skip to content

Commit 27356ca

Browse files
authored
Converts end_with? to match for Ruby 1.8.6 compatibility (#37)
1 parent dc21f3f commit 27356ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ruby_executable_hooks

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ begin
1010
Gem::ExecutableHooks.run($0)
1111
rescue LoadError
1212
warn "unable to load executable-hooks/hooks" if ENV.key?('ExecutableHooks_DEBUG')
13-
end unless $0.end_with?('/executable-hooks-uninstaller')
13+
end unless $0.match(/\/executable-hooks-uninstaller$/)
1414

1515
content = File.read($0)
1616

0 commit comments

Comments
 (0)