executable-hooks 1.3.1 → 1.3.2
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
2
|
SHA1:
|
3
|
-
data.tar.gz:
|
4
|
-
metadata.gz:
|
3
|
+
data.tar.gz: c6d0e07559a393e32f639010a23c1768c2c17de4
|
4
|
+
metadata.gz: 7c112f1e4747066cf4a9e229e7d48e9040b47745
|
5
5
|
SHA512:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
6
|
+
data.tar.gz: bc74ad2e0a9481ee4c386f6b48cb1d71264d967b98d47beef5745187f413cfdcde35cb918acba381810ffcf9c98e1a69ba321221af2f8007fdf002181700e287
|
7
|
+
metadata.gz: 0780a086ab4873cc086c7e86cf803f3b67f1c06dda798e94e88f022a5dbf9f7cb8eec9a41f416f6afe5b17dd03071e5cf18156361614498ead2b5695aeb2624c
|
data/CHANGELOG.md
CHANGED
@@ -65,11 +65,14 @@ class RegenerateBinstubsCommand < Gem::Command
|
|
65
65
|
end
|
66
66
|
return false if executable_shebangs.detect{|path, lines| !lines[0] =~ /^#!\// }
|
67
67
|
puts "#{spec.name} #{spec.version}"
|
68
|
+
executable_mode = 0111
|
68
69
|
executable_shebangs.map do |path, lines|
|
69
70
|
lines[0] = "#!#{ExecutableHooksInstaller.env_path} #{ExecutableHooks::Wrapper.expanded_wrapper_name}"
|
70
71
|
File.open(path, "w") do |file|
|
71
72
|
file.puts(lines)
|
72
73
|
end
|
74
|
+
mode = File.stat(path).mode
|
75
|
+
File.chmod(mode | executable_mode, path) if mode & executable_mode != executable_mode
|
73
76
|
end
|
74
77
|
end
|
75
78
|
|
@@ -28,6 +28,7 @@ Warning:
|
|
28
28
|
Found custom_shebang: '#{Gem.configuration[:custom_shebang]}',
|
29
29
|
Expected custom_shebang: '#{expected_shebang}',
|
30
30
|
this can potentially break 'executable-hooks' and gem executables overall!
|
31
|
+
Check your '~/.gemrc' and '/etc/gemrc' for 'custom_shebang' and remove it.
|
31
32
|
")
|
32
33
|
end
|
33
34
|
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.2
|
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-
|
12
|
+
date: 2014-06-06 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tf
|