diff options
author | ojab <ojab@ojab.ru> | 2016-07-16 13:39:20 +0000 |
---|---|---|
committer | ojab <ojab@ojab.ru> | 2016-07-16 16:14:57 +0000 |
commit | 5077d5eaf2acf96164f0fbd1d1b6dfb0a132b853 (patch) | |
tree | d37845e4db90d112b89829025eedf20a96e504d8 /lib/bundler/cli/exec.rb | |
parent | c90329aef3d0ff4b5e3d4434fd522c4e626c109c (diff) | |
download | bundler-5077d5eaf2acf96164f0fbd1d1b6dfb0a132b853.tar.gz |
Add JRuby shebang to ruby_shebang? check
It allows commands to be executed via `.kernel_load` on JRuby
Diffstat (limited to 'lib/bundler/cli/exec.rb')
-rw-r--r-- | lib/bundler/cli/exec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb index 4371887f..f8cd35b1 100644 --- a/lib/bundler/cli/exec.rb +++ b/lib/bundler/cli/exec.rb @@ -77,6 +77,7 @@ module Bundler def ruby_shebang?(file) possibilities = [ "#!/usr/bin/env ruby\n", + "#!/usr/bin/env jruby\n", "#!#{Gem.ruby}\n", ] first_line = File.open(file, "rb") {|f| f.read(possibilities.map(&:size).max) } |