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 +4 -4
- data/lib/rubygems/await/version.rb +1 -1
- data/lib/rubygems/await.rb +9 -5
- data/lib/rubygems/commands/await_command.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7aa95f9ae9cf362a45db3e468784c20a34a3d4eb4f4c6defad953d42783ed53
|
4
|
+
data.tar.gz: 56bd242a22cd3a473cd62493605891d0ca978fe740c6f68c41eb8ae6836f07ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cbe9b0affd9a4b6bb0e7469616ebf04dd43505c606ae92c2f24ffca74cdb42f9c4d65f5ddeac85d80247e3a20e96228141f294ba5fafc45d1a64f45f56cd7ee
|
7
|
+
data.tar.gz: 792367dc130c7b88f4b038418149d70ff85f6c6f7c26548a8b09a3f2749b44b5b41cbcdf90580f7e5bd9c0db87b7a2821ac7cfb7c5c1a7f16a5a47adb94933ac
|
data/lib/rubygems/await.rb
CHANGED
@@ -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 =
|
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)
|
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.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-
|
11
|
+
date: 2024-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|