executable-hooks 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ExecutableHooks
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
@@ -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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 4
10
- version: 1.2.4
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-10 00:00:00 Z
18
+ date: 2013-10-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: tf