executable-hooks 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/executable-hooks/version.rb +1 -1
- data/lib/executable-hooks/wrapper.rb +1 -1
- metadata +4 -4
|
@@ -45,9 +45,9 @@ this can potentially break 'executable-hooks' and gem executables overall!
|
|
|
45
45
|
wrapper_path = File.expand_path( "bin/#{wrapper_name}", full_gem_path )
|
|
46
46
|
|
|
47
47
|
if File.exist?(wrapper_path) && !File.exist?(destination)
|
|
48
|
+
FileUtils.mkdir_p(bindir) unless File.exist?(bindir)
|
|
48
49
|
# exception based on Gem::Installer.generate_bin
|
|
49
50
|
raise Gem::FilePermissionError.new(bindir) unless File.writable?(bindir)
|
|
50
|
-
FileUtils.mkdir_p(bindir)
|
|
51
51
|
FileUtils.cp(wrapper_path, destination)
|
|
52
52
|
File.chmod(0775, destination)
|
|
53
53
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: executable-hooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 1.2.
|
|
9
|
+
- 5
|
|
10
|
+
version: 1.2.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Michal Papis
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-10-
|
|
18
|
+
date: 2013-10-12 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: tf
|