executable-hooks 1.6.1 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/DEVELOPMENT.md +11 -0
- data/Gemfile +0 -2
- data/bin/ruby_executable_hooks +1 -1
- data/executable-hooks.gemspec +1 -1
- data/lib/executable-hooks/regenerate_binstubs_command.rb +3 -2
- data/lib/executable-hooks/version.rb +1 -1
- metadata +44 -65
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fdb5b943670246df725fe42125161c01e9c6b44191d893c90f8647c770a6ff50
|
4
|
+
data.tar.gz: b7900850ed8642cf506be73497d81753607799f888b1cfda16abf000d19cf916
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aae6f28b2f63be0f697cd0f7a6dcf51ef4ae26da6ec25db8acf2587852f9fdc5d15641399ced26961672145b8a02155ec1f6203585cae8641097425ee6375bf7
|
7
|
+
data.tar.gz: c29d8fea14a406f701b5c035f9691fe22d23e84a3eaa286aa5834733c03bb2f3707673ca47fadd7a9bc2f3c26d1740587eef3e7d5dc4dff63f113245b4fd72e9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.7.1
|
4
|
+
date: 2024-01-07
|
5
|
+
|
6
|
+
- Replace use of File.exists? by File.exist? #41
|
7
|
+
- Use Gem::Installer.at instead of Gem::Installer.new #40
|
8
|
+
|
9
|
+
## 1.6.2
|
10
|
+
date: 2021-01-26
|
11
|
+
|
12
|
+
- Converts end_with? to match for Ruby 1.8.6 compatibility #37
|
13
|
+
|
3
14
|
## 1.6.1
|
4
15
|
date: 2021-01-26
|
5
16
|
|
data/DEVELOPMENT.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Releasing
|
2
|
+
|
3
|
+
- update `lib/executable-hooks/version.rb` with new version (use semantic versioning)
|
4
|
+
- update `CHANGELOG.md` with changes relevant to running hooks
|
5
|
+
- git commit changes with version as comment
|
6
|
+
- git tag version
|
7
|
+
- `git push`
|
8
|
+
- `git push --tags`
|
9
|
+
- use ruby 1.8.7 for releasing `rvm use 1.8.7 --install`
|
10
|
+
- `gem build executable-hooks.gemspec`
|
11
|
+
- `gem push executable-hooks-1.6.1.gem` - update version
|
data/Gemfile
CHANGED
data/bin/ruby_executable_hooks
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
Gem::ExecutableHooks.run($0)
|
11
11
|
rescue LoadError
|
12
12
|
warn "unable to load executable-hooks/hooks" if ENV.key?('ExecutableHooks_DEBUG')
|
13
|
-
end unless $0.
|
13
|
+
end unless $0.match(/\/executable-hooks-uninstaller$/)
|
14
14
|
|
15
15
|
content = File.read($0)
|
16
16
|
|
data/executable-hooks.gemspec
CHANGED
@@ -6,7 +6,7 @@ Kernel.load(File.expand_path("../lib/executable-hooks/version.rb", __FILE__))
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "executable-hooks"
|
8
8
|
s.version = ExecutableHooks::VERSION
|
9
|
-
s.license = 'Apache
|
9
|
+
s.license = 'Apache-2.0'
|
10
10
|
s.authors = ["Michal Papis"]
|
11
11
|
s.email = ["mpapis@gmail.com"]
|
12
12
|
s.homepage = "https://github.com/rvm/executable-hooks"
|
@@ -120,7 +120,8 @@ class RegenerateBinstubsCommand < Gem::Command
|
|
120
120
|
cache_gem = File.join(org_gem_path, 'cache', spec.file_name)
|
121
121
|
if File.exist? cache_gem
|
122
122
|
puts "#{spec.name} #{spec.version}"
|
123
|
-
|
123
|
+
installer_method = Gem::Installer.respond_to?(:at) ? :at : :new
|
124
|
+
inst = Gem::Installer.public_send installer_method, Dir[cache_gem].first, :wrappers => true, :force => true, :install_dir => org_gem_path, :bin_dir => options[:bin_dir]
|
124
125
|
ExecutableHooksInstaller.bundler_generate_bin(inst)
|
125
126
|
else
|
126
127
|
false
|
@@ -128,7 +129,7 @@ class RegenerateBinstubsCommand < Gem::Command
|
|
128
129
|
end
|
129
130
|
|
130
131
|
def existing_gem_path(full_name)
|
131
|
-
expanded_gem_paths.find{|path| File.
|
132
|
+
expanded_gem_paths.find{|path| File.exist?(File.join(path, 'gems', full_name))}
|
132
133
|
end
|
133
134
|
|
134
135
|
def expanded_gem_paths
|
metadata
CHANGED
@@ -1,51 +1,42 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: executable-hooks
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 6
|
9
|
-
- 1
|
10
|
-
version: 1.6.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.7.1
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Michal Papis
|
14
|
-
autorequire:
|
8
|
+
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2024-01-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: tf
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 4
|
33
|
-
version: "0.4"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.4'
|
34
20
|
type: :development
|
35
|
-
|
36
|
-
|
37
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.4'
|
27
|
+
description:
|
28
|
+
email:
|
38
29
|
- mpapis@gmail.com
|
39
|
-
executables:
|
30
|
+
executables:
|
40
31
|
- executable-hooks-uninstaller
|
41
|
-
extensions:
|
32
|
+
extensions:
|
42
33
|
- ext/wrapper_installer/extconf.rb
|
43
34
|
extra_rdoc_files: []
|
44
|
-
|
45
|
-
|
46
|
-
- .
|
47
|
-
- .travis.yml
|
35
|
+
files:
|
36
|
+
- ".gitignore"
|
37
|
+
- ".travis.yml"
|
48
38
|
- CHANGELOG.md
|
39
|
+
- DEVELOPMENT.md
|
49
40
|
- Gemfile
|
50
41
|
- LICENSE
|
51
42
|
- README.md
|
@@ -65,42 +56,30 @@ files:
|
|
65
56
|
- test-tf-bundle/bundle_comment_test.sh
|
66
57
|
- test-tf-truffleruby/truffleruby_comment_test.sh
|
67
58
|
- test-tf/rubygems_comment_test.sh
|
68
|
-
has_rdoc: true
|
69
59
|
homepage: https://github.com/rvm/executable-hooks
|
70
|
-
licenses:
|
71
|
-
- Apache
|
60
|
+
licenses:
|
61
|
+
- Apache-2.0
|
62
|
+
metadata: {}
|
72
63
|
post_install_message: |
|
73
64
|
# In case of problems run the following command to update binstubs:
|
74
65
|
gem regenerate_binstubs
|
75
|
-
|
76
66
|
rdoc_options: []
|
77
|
-
|
78
|
-
require_paths:
|
67
|
+
require_paths:
|
79
68
|
- lib
|
80
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
-
|
82
|
-
requirements:
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
83
71
|
- - ">="
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
version: "0"
|
89
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
|
-
requirements:
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
92
76
|
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
version: "0"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
98
79
|
requirements: []
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
summary: Hook into rubygems executables allowing extra actions to be taken before executable is run.
|
80
|
+
rubygems_version: 3.4.10
|
81
|
+
signing_key:
|
82
|
+
specification_version: 4
|
83
|
+
summary: Hook into rubygems executables allowing extra actions to be taken before
|
84
|
+
executable is run.
|
105
85
|
test_files: []
|
106
|
-
|