rubygems-await 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.pre-commit-config.yaml +15 -0
- data/lib/rubygems/await/version.rb +1 -1
- data/lib/rubygems/await.rb +14 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b140ca3266a6223ba91683b0096e37cde3efc34fef00684ec3655dc6227f58dc
|
4
|
+
data.tar.gz: d85557ae16306162fc82ea4192ef6007e365a043468f5af4ed063dbaaccd48ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 287a2178214202a9297c0e00322e8563db75c6ed336aa1bf06d41fb88ffeaa51c554cf5b3289e415a83018979040bb88d223900661911ed5d34c0ee95c00943e
|
7
|
+
data.tar.gz: 3032bba00c833ef13d783755c1f6986323edd980ff23ea147926d13860e7a79300650a6f5fda9902f4006b415e768f3cf26bf9cdb3dc4fce76c0a8026526fe8e
|
@@ -0,0 +1,15 @@
|
|
1
|
+
repos:
|
2
|
+
- repo: https://github.com/gitleaks/gitleaks
|
3
|
+
rev: v8.16.3
|
4
|
+
hooks:
|
5
|
+
- id: gitleaks
|
6
|
+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
7
|
+
rev: 3.0.0
|
8
|
+
hooks:
|
9
|
+
- id: RuboCop
|
10
|
+
- id: shellcheck
|
11
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
12
|
+
rev: v4.4.0
|
13
|
+
hooks:
|
14
|
+
- id: end-of-file-fixer
|
15
|
+
- id: trailing-whitespace
|
data/lib/rubygems/await.rb
CHANGED
@@ -253,8 +253,20 @@ module Rubygems
|
|
253
253
|
|
254
254
|
def process_element(name, tuples)
|
255
255
|
cic = compact_index_client
|
256
|
-
cic.
|
257
|
-
|
256
|
+
if cic.respond_to?(:update_info, true)
|
257
|
+
cic.send :update_info, name
|
258
|
+
elsif cic.respond_to?(:info)
|
259
|
+
cic.info name
|
260
|
+
else
|
261
|
+
raise NotImplementedError,
|
262
|
+
"unsupported bundler version: #{Bundler::VERSION}. " \
|
263
|
+
"#{cic.class} does not respond to #info or #update_info"
|
264
|
+
end
|
265
|
+
info = if defined?(::Bundler::CompactIndexClient::Parser)
|
266
|
+
cic.info(name)
|
267
|
+
else
|
268
|
+
cic.instance_variable_get(:@cache).dependencies(name)
|
269
|
+
end
|
258
270
|
|
259
271
|
info.each do |version, platform|
|
260
272
|
tuple = Gem::NameTuple.new(name, version, platform)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-await
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giddins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -32,6 +32,7 @@ executables:
|
|
32
32
|
extensions: []
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
|
+
- ".pre-commit-config.yaml"
|
35
36
|
- ".rubocop.yml"
|
36
37
|
- CHANGELOG.md
|
37
38
|
- CODE_OF_CONDUCT.md
|
@@ -68,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
69
|
- !ruby/object:Gem::Version
|
69
70
|
version: '3.2'
|
70
71
|
requirements: []
|
71
|
-
rubygems_version: 3.5.
|
72
|
+
rubygems_version: 3.5.11
|
72
73
|
signing_key:
|
73
74
|
specification_version: 4
|
74
75
|
summary: A RubyGems plugin with a command to wait until gems are available.
|