rubygems-await 0.5.0 → 0.5.1

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: 10e1a7c6f2fd38db7465b38a3c588f9220d074bcef67c3891612d0e79673fc9a
4
- data.tar.gz: 1a19045734c1a922f4f4b93f051ade46155a45d501bd0e6509ae1eb695f35beb
3
+ metadata.gz: a7aa95f9ae9cf362a45db3e468784c20a34a3d4eb4f4c6defad953d42783ed53
4
+ data.tar.gz: 56bd242a22cd3a473cd62493605891d0ca978fe740c6f68c41eb8ae6836f07ba
5
5
  SHA512:
6
- metadata.gz: df5ae29e5019fc2ed1941199f3cab44e8c60bb71a07bac9553c5949bdf0b7efc8048d5e05dfb2bac4ea799837b5cddf39317c0e877f13d37e514b7f7df623eb6
7
- data.tar.gz: 62be45546fd49b042ec3e1aa5655c4a68039aa664e5816246c5a8c9d1d8792cb2bb33dacb8eabf94b534a4d21a02e30592f381bb9ed5c102633997dccd33bdba
6
+ metadata.gz: 4cbe9b0affd9a4b6bb0e7469616ebf04dd43505c606ae92c2f24ffca74cdb42f9c4d65f5ddeac85d80247e3a20e96228141f294ba5fafc45d1a64f45f56cd7ee
7
+ data.tar.gz: 792367dc130c7b88f4b038418149d70ff85f6c6f7c26548a8b09a3f2749b44b5b41cbcdf90580f7e5bd9c0db87b7a2821ac7cfb7c5c1a7f16a5a47adb94933ac
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubygems
4
4
  module Await
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
@@ -1,10 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "await/version"
4
+ require "bundler/vendored_uri"
4
5
  require "rubygems/remote_fetcher"
6
+ require "set"
5
7
 
6
8
  module Rubygems
7
9
  module Await
10
+ URI = defined?(Gem::URI) ? Gem::URI : Bundler::URI
11
+
8
12
  class Error < StandardError; end
9
13
 
10
14
  class Awaiter
@@ -24,7 +28,7 @@ module Rubygems
24
28
  def initialize(gems, source, deadline, name_indent = 10)
25
29
  @gems = gems
26
30
  @source = source
27
- @source_uri = Bundler::URI.parse(source)
31
+ @source_uri = URI.parse(source)
28
32
  @deadline = deadline
29
33
  @name_indent = name_indent
30
34
  end
@@ -112,13 +116,13 @@ module Rubygems
112
116
  end
113
117
 
114
118
  def downloader
115
- remote = Bundler::Source::Rubygems::Remote.new URI(source)
119
+ remote = Bundler::Source::Rubygems::Remote.new URI.parse(source)
116
120
  fetcher = Bundler::Fetcher.new(remote)
117
121
  fetcher.send(:downloader)
118
122
  end
119
123
 
120
124
  def compact_index_client
121
- remote = Bundler::Source::Rubygems::Remote.new URI(source)
125
+ remote = Bundler::Source::Rubygems::Remote.new URI.parse(source)
122
126
  fetcher = Bundler::Fetcher.new(remote)
123
127
  client =
124
128
  if Bundler::VERSION < "2.5.0"
@@ -136,7 +140,7 @@ module Rubygems
136
140
  if Bundler.rubygems.respond_to?(:gem_remote_fetcher)
137
141
  Bundler.rubygems.gem_remote_fetcher
138
142
  else
139
- remote = Bundler::Source::Rubygems::Remote.new URI(source)
143
+ remote = Bundler::Source::Rubygems::Remote.new URI.parse(source)
140
144
  fetcher = Bundler::Fetcher.new(remote)
141
145
  raise "unsupported bundler version" unless fetcher.respond_to?(:gem_remote_fetcher)
142
146
 
@@ -145,7 +149,7 @@ module Rubygems
145
149
  end
146
150
 
147
151
  def index_fetcher
148
- remote = Bundler::Source::Rubygems::Remote.new URI(source)
152
+ remote = Bundler::Source::Rubygems::Remote.new URI.parse(source)
149
153
  fetcher = Bundler::Fetcher.new(remote)
150
154
  if Bundler::VERSION < "2.5.0"
151
155
  Bundler::Fetcher::Index.new(fetcher.send(:downloader), remote, fetcher.uri)
@@ -66,6 +66,7 @@ module Gem
66
66
  Bundler::Thor::Shell::Color.const_set(:UNDERLINE,
67
67
  "\e[4m")
68
68
  end
69
+ Bundler.ui.level = "silent" if options[:silent]
69
70
 
70
71
  gems = options[:args].map do |s|
71
72
  if s.end_with?(".gem")
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.0
4
+ version: 0.5.1
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-01-06 00:00:00.000000000 Z
11
+ date: 2024-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler