executable-hooks 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA512:
|
3
|
-
data.tar.gz: 494470f263730eb7308becc9012b1447df3e43159dd10ab6d92baec783dacc6436b646f1ccbff0bc77822f7f34fe18b1bf2773b68056a3ff8cab68436952a515
|
4
|
-
metadata.gz: 92d5aac126ef3f17a7e229e9495ee336b6431745935e333b86c1f1046684a98c483ce1a81d89b9dbfb39fcc451e752bc94362ee4f246808e08729539fe12c8a3
|
5
2
|
SHA1:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
3
|
+
data.tar.gz: 6bca2965635c5b28af835801e0133c8936f9eee4
|
4
|
+
metadata.gz: 783bacc41e69e60e9eb9f3079f23890dc5d56ea2
|
5
|
+
SHA512:
|
6
|
+
data.tar.gz: 0785726aa6db6768efaf97cf723e2d167a6764b78152dfa695a7ce54ec057a594291d1e1a6d603386b25c285d47315bcc1adc4ed30873602d9c9d401fc3f859a
|
7
|
+
metadata.gz: 2ad2ad4de5f6298d15322ffa5b6f30157b3390d38cd517254b729beb9179e1797b6c4b5d8c561571bf696621f2ee779bf87b97794dc84ab041125b3527868069
|
data/CHANGELOG.md
CHANGED
@@ -40,7 +40,7 @@ module ExecutableHooksInstaller
|
|
40
40
|
which = which.gsub(/\$(\w+)/) do
|
41
41
|
case $1
|
42
42
|
when "env"
|
43
|
-
|
43
|
+
env_path
|
44
44
|
when "ruby"
|
45
45
|
"#{Gem.ruby}#{opts}"
|
46
46
|
when "exec"
|
@@ -58,11 +58,14 @@ module ExecutableHooksInstaller
|
|
58
58
|
elsif opts then
|
59
59
|
"#!/bin/sh\n'exec' #{ruby_name.dump} '-x' \"$0\" \"$@\"\n#{shebang}"
|
60
60
|
else
|
61
|
-
|
62
|
-
"#!#{@env_path} #{ruby_name}"
|
61
|
+
"#!#{env_path} #{ruby_name}"
|
63
62
|
end
|
64
63
|
end
|
65
64
|
|
65
|
+
def self.env_path
|
66
|
+
@env_path ||= Gem::Installer::ENV_PATHS.find {|path| File.executable?(path) }
|
67
|
+
end
|
68
|
+
|
66
69
|
# Return the text for an application file.
|
67
70
|
def self.bundler_app_script_text(inst, bin_file_name)
|
68
71
|
<<-TEXT
|
@@ -66,7 +66,7 @@ class RegenerateBinstubsCommand < Gem::Command
|
|
66
66
|
return false if executable_shebangs.detect{|path, lines| !lines[0] =~ /^#!\// }
|
67
67
|
puts "#{spec.name} #{spec.version}"
|
68
68
|
executable_shebangs.map do |path, lines|
|
69
|
-
lines[0] = "
|
69
|
+
lines[0] = "#!#{ExecutableHooksInstaller.env_path} #{ExecutableHooks::Wrapper.expanded_wrapper_name}"
|
70
70
|
File.open(path, "w") do |file|
|
71
71
|
file.puts(lines)
|
72
72
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: executable-hooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Papis
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-16 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tf
|