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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7aa95f9ae9cf362a45db3e468784c20a34a3d4eb4f4c6defad953d42783ed53
4
- data.tar.gz: 56bd242a22cd3a473cd62493605891d0ca978fe740c6f68c41eb8ae6836f07ba
3
+ metadata.gz: b140ca3266a6223ba91683b0096e37cde3efc34fef00684ec3655dc6227f58dc
4
+ data.tar.gz: d85557ae16306162fc82ea4192ef6007e365a043468f5af4ed063dbaaccd48ec
5
5
  SHA512:
6
- metadata.gz: 4cbe9b0affd9a4b6bb0e7469616ebf04dd43505c606ae92c2f24ffca74cdb42f9c4d65f5ddeac85d80247e3a20e96228141f294ba5fafc45d1a64f45f56cd7ee
7
- data.tar.gz: 792367dc130c7b88f4b038418149d70ff85f6c6f7c26548a8b09a3f2749b44b5b41cbcdf90580f7e5bd9c0db87b7a2821ac7cfb7c5c1a7f16a5a47adb94933ac
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubygems
4
4
  module Await
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.3"
6
6
  end
7
7
  end
@@ -253,8 +253,20 @@ module Rubygems
253
253
 
254
254
  def process_element(name, tuples)
255
255
  cic = compact_index_client
256
- cic.send :update_info, name
257
- info = cic.instance_variable_get(:@cache).dependencies(name)
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.1
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-04-06 00:00:00.000000000 Z
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.3
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.