executable-hooks 1.2.3 → 1.2.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.4
4
+ date: 2013-10-10
5
+
6
+ - raise exception if can not write to bindir, fix #9
7
+
3
8
  ## 1.2.3
4
9
  date: 2013-09-24
5
10
 
@@ -1,3 +1,3 @@
1
1
  module ExecutableHooks
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
@@ -45,6 +45,8 @@ 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
+ # exception based on Gem::Installer.generate_bin
49
+ raise Gem::FilePermissionError.new(bindir) unless File.writable?(bindir)
48
50
  FileUtils.mkdir_p(bindir)
49
51
  FileUtils.cp(wrapper_path, destination)
50
52
  File.chmod(0775, destination)
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: executable-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ hash: 23
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 4
10
+ version: 1.2.4
5
11
  platform: ruby
6
12
  authors:
7
13
  - Michal Papis
@@ -9,16 +15,19 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2013-09-24 00:00:00 Z
18
+ date: 2013-10-10 00:00:00 Z
13
19
  dependencies:
14
20
  - !ruby/object:Gem::Dependency
15
21
  name: tf
16
22
  prerelease: false
17
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
18
25
  requirements:
19
- - &id002
20
- - ">="
26
+ - - ">="
21
27
  - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
22
31
  version: "0"
23
32
  type: :development
24
33
  version_requirements: *id001
@@ -54,25 +63,35 @@ files:
54
63
  homepage: https://github.com/mpapis/executable-hooks
55
64
  licenses:
56
65
  - Apache 2.0
57
- metadata: {}
58
-
59
66
  post_install_message:
60
67
  rdoc_options: []
61
68
 
62
69
  require_paths:
63
70
  - lib
64
71
  required_ruby_version: !ruby/object:Gem::Requirement
72
+ none: false
65
73
  requirements:
66
- - *id002
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
79
+ version: "0"
67
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
+ none: false
68
82
  requirements:
69
- - *id002
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
88
+ version: "0"
70
89
  requirements: []
71
90
 
72
91
  rubyforge_project:
73
- rubygems_version: 2.0.9
92
+ rubygems_version: 1.8.27
74
93
  signing_key:
75
- specification_version: 4
94
+ specification_version: 3
76
95
  summary: Hook into rubygems executables allowing extra actions to be taken before executable is run.
77
96
  test_files: []
78
97
 
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA512:
3
- data.tar.gz: 0282325c2ee28b86c046233840f3b90f8f4489c51a3b822a69f086d82ec87328b0f642ab7e0ef6af46c882a1d1eedcd5c73e33205ae5aca117b48fbbfdf45216
4
- metadata.gz: ffdc5ac4a0fffb1a06d43b7417bdfd4768452a1c98ef1b75f7643ed473f692c97ac53883257f46e14c3913396e99d2a7628da94d453b521dbfd07f18263a5b51
5
- SHA1:
6
- data.tar.gz: 068d4000d7ede6f2b9daab483d3a112cebc51b3d
7
- metadata.gz: e44bf373cd2db06e388aecc33a621fbde83aa95d