rubygems-update 2.4.7 → 2.4.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.txt +6 -0
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/remote_fetcher.rb +1 -1
- data/test/rubygems/test_gem_remote_fetcher.rb +30 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 628e3b112ee81a73e5c1570bd8d92f656cd1270a
|
4
|
+
data.tar.gz: d3bdbbcfba8a3ec257cd6e55946cf6afb6e6eba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5874130383cb363d0f953b09df44484bd9f21595f371f712b1566cb4cc8e5aee34cb01953a661afb077dc4fa89658c0735f3502888a44f31b1cdd135a7e1d818
|
7
|
+
data.tar.gz: b3c162f82fe34a9436a8c46834285dfb64c59f2af57dee90a83f23c3ae4fe49347a4a399dbe645cc1e06736e98df853fa637e0ab9f90ee9a0a1b0cb2bf5b8fa9
|
data/History.txt
CHANGED
data/lib/rubygems.rb
CHANGED
@@ -196,6 +196,36 @@ gems:
|
|
196
196
|
dns.verify
|
197
197
|
end
|
198
198
|
|
199
|
+
def test_api_endpoint_ignores_trans_domain_values_that_starts_with_original
|
200
|
+
uri = URI.parse "http://example.com/foo"
|
201
|
+
target = MiniTest::Mock.new
|
202
|
+
target.expect :target, "example.combadguy.com"
|
203
|
+
|
204
|
+
dns = MiniTest::Mock.new
|
205
|
+
dns.expect :getresource, target, [String, Object]
|
206
|
+
|
207
|
+
fetch = Gem::RemoteFetcher.new nil, dns
|
208
|
+
assert_equal URI.parse("http://example.com/foo"), fetch.api_endpoint(uri)
|
209
|
+
|
210
|
+
target.verify
|
211
|
+
dns.verify
|
212
|
+
end
|
213
|
+
|
214
|
+
def test_api_endpoint_ignores_trans_domain_values_that_end_with_original
|
215
|
+
uri = URI.parse "http://example.com/foo"
|
216
|
+
target = MiniTest::Mock.new
|
217
|
+
target.expect :target, "badexample.com"
|
218
|
+
|
219
|
+
dns = MiniTest::Mock.new
|
220
|
+
dns.expect :getresource, target, [String, Object]
|
221
|
+
|
222
|
+
fetch = Gem::RemoteFetcher.new nil, dns
|
223
|
+
assert_equal URI.parse("http://example.com/foo"), fetch.api_endpoint(uri)
|
224
|
+
|
225
|
+
target.verify
|
226
|
+
dns.verify
|
227
|
+
end
|
228
|
+
|
199
229
|
def test_cache_update_path
|
200
230
|
uri = URI 'http://example/file'
|
201
231
|
path = File.join @tempdir, 'file'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '5.
|
21
|
+
version: '5.7'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '5.
|
28
|
+
version: '5.7'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rdoc
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|