executable-hooks 1.6.0 → 1.7.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/DEVELOPMENT.md +11 -0
- data/Gemfile +0 -2
- data/bin/ruby_executable_hooks +2 -4
- data/executable-hooks.gemspec +2 -2
- data/lib/executable-hooks/regenerate_binstubs_command.rb +3 -2
- data/lib/executable-hooks/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdb5b943670246df725fe42125161c01e9c6b44191d893c90f8647c770a6ff50
|
4
|
+
data.tar.gz: b7900850ed8642cf506be73497d81753607799f888b1cfda16abf000d19cf916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae6f28b2f63be0f697cd0f7a6dcf51ef4ae26da6ec25db8acf2587852f9fdc5d15641399ced26961672145b8a02155ec1f6203585cae8641097425ee6375bf7
|
7
|
+
data.tar.gz: c29d8fea14a406f701b5c035f9691fe22d23e84a3eaa286aa5834733c03bb2f3707673ca47fadd7a9bc2f3c26d1740587eef3e7d5dc4dff63f113245b4fd72e9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
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
|
+
|
14
|
+
## 1.6.1
|
15
|
+
date: 2021-01-26
|
16
|
+
|
17
|
+
- Avoid Ruby 2.7 warning, merge #38
|
18
|
+
|
3
19
|
## 1.6.0
|
4
20
|
date: 2018-10-25
|
5
21
|
|
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,13 +10,11 @@ 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
|
|
17
|
-
if
|
18
|
-
(index = content.index("\n#!ruby\n")) && index > 0
|
19
|
-
then
|
17
|
+
if (index = content.index("\n#!ruby\n")) && index > 0
|
20
18
|
skipped_content = content.slice!(0..index)
|
21
19
|
start_line = skipped_content.count("\n") + 1
|
22
20
|
eval content, binding, $0, start_line
|
data/executable-hooks.gemspec
CHANGED
@@ -6,10 +6,10 @@ 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
|
-
s.homepage = "https://github.com/
|
12
|
+
s.homepage = "https://github.com/rvm/executable-hooks"
|
13
13
|
s.summary = %q{
|
14
14
|
Hook into rubygems executables allowing extra actions to be taken before executable is run.
|
15
15
|
}
|
@@ -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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: executable-hooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Papis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tf
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.4'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- mpapis@gmail.com
|
30
30
|
executables:
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- ".gitignore"
|
37
37
|
- ".travis.yml"
|
38
38
|
- CHANGELOG.md
|
39
|
+
- DEVELOPMENT.md
|
39
40
|
- Gemfile
|
40
41
|
- LICENSE
|
41
42
|
- README.md
|
@@ -55,9 +56,9 @@ files:
|
|
55
56
|
- test-tf-bundle/bundle_comment_test.sh
|
56
57
|
- test-tf-truffleruby/truffleruby_comment_test.sh
|
57
58
|
- test-tf/rubygems_comment_test.sh
|
58
|
-
homepage: https://github.com/
|
59
|
+
homepage: https://github.com/rvm/executable-hooks
|
59
60
|
licenses:
|
60
|
-
- Apache
|
61
|
+
- Apache-2.0
|
61
62
|
metadata: {}
|
62
63
|
post_install_message: |
|
63
64
|
# In case of problems run the following command to update binstubs:
|
@@ -76,9 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
77
|
- !ruby/object:Gem::Version
|
77
78
|
version: '0'
|
78
79
|
requirements: []
|
79
|
-
|
80
|
-
|
81
|
-
signing_key:
|
80
|
+
rubygems_version: 3.4.10
|
81
|
+
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Hook into rubygems executables allowing extra actions to be taken before
|
84
84
|
executable is run.
|