rubygems-update 2.2.1 → 2.2.2
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +29 -0
- data/Manifest.txt +1 -0
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/available_set.rb +3 -0
- data/lib/rubygems/commands/generate_index_command.rb +1 -1
- data/lib/rubygems/config_file.rb +3 -2
- data/lib/rubygems/dependency_installer.rb +1 -0
- data/lib/rubygems/ext/ext_conf_builder.rb +5 -1
- data/lib/rubygems/installer.rb +1 -1
- data/lib/rubygems/package/tar_header.rb +1 -1
- data/lib/rubygems/remote_fetcher.rb +24 -16
- data/lib/rubygems/request.rb +4 -4
- data/lib/rubygems/request_set.rb +8 -0
- data/lib/rubygems/resolver.rb +2 -0
- data/lib/rubygems/resolver/api_set.rb +6 -1
- data/lib/rubygems/resolver/best_set.rb +20 -1
- data/lib/rubygems/resolver/composed_set.rb +11 -0
- data/lib/rubygems/resolver/git_set.rb +3 -0
- data/lib/rubygems/resolver/index_set.rb +4 -0
- data/lib/rubygems/resolver/installer_set.rb +15 -1
- data/lib/rubygems/resolver/lock_set.rb +2 -0
- data/lib/rubygems/resolver/set.rb +17 -0
- data/lib/rubygems/resolver/vendor_set.rb +2 -0
- data/lib/rubygems/security.rb +3 -3
- data/lib/rubygems/source/git.rb +14 -0
- data/lib/rubygems/specification.rb +22 -22
- data/lib/rubygems/test_case.rb +29 -1
- data/lib/rubygems/version.rb +17 -11
- data/test/rubygems/test_gem.rb +28 -30
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +41 -27
- data/test/rubygems/test_gem_installer.rb +6 -2
- data/test/rubygems/test_gem_package_tar_header.rb +14 -0
- data/test/rubygems/test_gem_platform.rb +5 -1
- data/test/rubygems/test_gem_remote_fetcher.rb +3 -3
- data/test/rubygems/test_gem_request.rb +69 -0
- data/test/rubygems/test_gem_request_set.rb +21 -0
- data/test/rubygems/test_gem_resolver.rb +8 -0
- data/test/rubygems/test_gem_resolver_api_set.rb +41 -0
- data/test/rubygems/test_gem_resolver_best_set.rb +50 -0
- data/test/rubygems/test_gem_resolver_composed_set.rb +18 -0
- data/test/rubygems/test_gem_resolver_git_set.rb +15 -0
- data/test/rubygems/test_gem_resolver_index_set.rb +35 -0
- data/test/rubygems/test_gem_resolver_installer_set.rb +70 -0
- data/test/rubygems/test_gem_source_git.rb +43 -0
- data/test/rubygems/test_gem_specification.rb +9 -12
- data/test/rubygems/test_gem_version.rb +10 -0
- metadata +5 -3
- metadata.gz.sig +0 -0
@@ -27,6 +27,26 @@ class TestGemSourceGit < Gem::TestCase
|
|
27
27
|
assert_path_exists File.join @source.install_dir, 'a.gemspec'
|
28
28
|
end
|
29
29
|
|
30
|
+
def test_checkout_local
|
31
|
+
@source.remote = false
|
32
|
+
|
33
|
+
@source.checkout
|
34
|
+
|
35
|
+
install_dir = File.join Gem.dir, 'bundler', 'gems', "a-#{@head[0..11]}"
|
36
|
+
|
37
|
+
refute_path_exists File.join install_dir, 'a.gemspec'
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_checkout_local_cached
|
41
|
+
@source.cache
|
42
|
+
|
43
|
+
@source.remote = false
|
44
|
+
|
45
|
+
@source.checkout
|
46
|
+
|
47
|
+
assert_path_exists File.join @source.install_dir, 'a.gemspec'
|
48
|
+
end
|
49
|
+
|
30
50
|
def test_checkout_submodules
|
31
51
|
source = Gem::Source::Git.new @name, @repository, 'master', true
|
32
52
|
|
@@ -54,6 +74,14 @@ class TestGemSourceGit < Gem::TestCase
|
|
54
74
|
end
|
55
75
|
end
|
56
76
|
|
77
|
+
def test_cache_local
|
78
|
+
@source.remote = false
|
79
|
+
|
80
|
+
@source.cache
|
81
|
+
|
82
|
+
refute_path_exists @source.repo_cache_dir
|
83
|
+
end
|
84
|
+
|
57
85
|
def test_dir_shortref
|
58
86
|
@source.cache
|
59
87
|
|
@@ -99,6 +127,12 @@ class TestGemSourceGit < Gem::TestCase
|
|
99
127
|
assert_equal expected, @source.install_dir
|
100
128
|
end
|
101
129
|
|
130
|
+
def test_install_dir_local
|
131
|
+
@source.remote = false
|
132
|
+
|
133
|
+
assert_nil @source.install_dir
|
134
|
+
end
|
135
|
+
|
102
136
|
def test_repo_cache_dir
|
103
137
|
expected =
|
104
138
|
File.join Gem.dir, 'cache', 'bundler', 'git', "a-#{@hash}"
|
@@ -211,6 +245,15 @@ class TestGemSourceGit < Gem::TestCase
|
|
211
245
|
assert_equal extension_dir, b_spec.extension_dir
|
212
246
|
end
|
213
247
|
|
248
|
+
def test_specs_local
|
249
|
+
source = Gem::Source::Git.new @name, @repository, 'master', true
|
250
|
+
source.remote = false
|
251
|
+
|
252
|
+
capture_io do
|
253
|
+
assert_empty source.specs
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
214
257
|
def test_uri_hash
|
215
258
|
assert_equal @hash, @source.uri_hash
|
216
259
|
|
@@ -1789,20 +1789,17 @@ dependencies: []
|
|
1789
1789
|
end
|
1790
1790
|
|
1791
1791
|
def test_require_paths
|
1792
|
-
enable_shared
|
1793
|
-
|
1792
|
+
enable_shared 'no' do
|
1793
|
+
ext_spec
|
1794
1794
|
|
1795
|
-
|
1796
|
-
|
1797
|
-
@ext.require_path = 'lib'
|
1795
|
+
@ext.require_path = 'lib'
|
1798
1796
|
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1797
|
+
ext_install_dir = Pathname(@ext.extension_dir)
|
1798
|
+
full_gem_path = Pathname(@ext.full_gem_path)
|
1799
|
+
relative_install_dir = ext_install_dir.relative_path_from full_gem_path
|
1802
1800
|
|
1803
|
-
|
1804
|
-
|
1805
|
-
RbConfig::CONFIG['ENABLE_SHARED'] = enable_shared
|
1801
|
+
assert_equal [relative_install_dir.to_s, 'lib'], @ext.require_paths
|
1802
|
+
end
|
1806
1803
|
end
|
1807
1804
|
|
1808
1805
|
def test_source
|
@@ -2951,9 +2948,9 @@ end
|
|
2951
2948
|
|
2952
2949
|
def with_syck
|
2953
2950
|
begin
|
2951
|
+
verbose, $VERBOSE = $VERBOSE, nil
|
2954
2952
|
require "yaml"
|
2955
2953
|
old_engine = YAML::ENGINE.yamler
|
2956
|
-
verbose, $VERBOSE = $VERBOSE, nil
|
2957
2954
|
YAML::ENGINE.yamler = 'syck'
|
2958
2955
|
load 'rubygems/syck_hack.rb'
|
2959
2956
|
rescue NameError
|
@@ -3,6 +3,9 @@ require "rubygems/version"
|
|
3
3
|
|
4
4
|
class TestGemVersion < Gem::TestCase
|
5
5
|
|
6
|
+
class V < ::Gem::Version
|
7
|
+
end
|
8
|
+
|
6
9
|
def test_bump
|
7
10
|
assert_bumped_version_equal "5.3", "5.2.4"
|
8
11
|
end
|
@@ -37,6 +40,13 @@ class TestGemVersion < Gem::TestCase
|
|
37
40
|
assert_equal v('1.1'), Gem::Version.create(ver)
|
38
41
|
end
|
39
42
|
|
43
|
+
def test_class_new_subclass
|
44
|
+
v1 = Gem::Version.new '1'
|
45
|
+
v2 = V.new '1'
|
46
|
+
|
47
|
+
refute_same v1, v2
|
48
|
+
end
|
49
|
+
|
40
50
|
def test_eql_eh
|
41
51
|
assert_version_eql "1.2", "1.2"
|
42
52
|
refute_version_eql "1.2", "1.2.0"
|
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.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
@@ -32,7 +32,7 @@ cert_chain:
|
|
32
32
|
KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
|
33
33
|
wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
|
34
34
|
-----END CERTIFICATE-----
|
35
|
-
date: 2014-
|
35
|
+
date: 2014-02-05 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: minitest
|
@@ -464,6 +464,7 @@ files:
|
|
464
464
|
- test/rubygems/test_gem_resolver_api_set.rb
|
465
465
|
- test/rubygems/test_gem_resolver_api_specification.rb
|
466
466
|
- test/rubygems/test_gem_resolver_best_set.rb
|
467
|
+
- test/rubygems/test_gem_resolver_composed_set.rb
|
467
468
|
- test/rubygems/test_gem_resolver_conflict.rb
|
468
469
|
- test/rubygems/test_gem_resolver_dependency_request.rb
|
469
470
|
- test/rubygems/test_gem_resolver_git_set.rb
|
@@ -537,7 +538,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
537
538
|
version: '0'
|
538
539
|
requirements: []
|
539
540
|
rubyforge_project: rubygems-update
|
540
|
-
rubygems_version: 2.2.
|
541
|
+
rubygems_version: 2.2.1
|
541
542
|
signing_key:
|
542
543
|
specification_version: 4
|
543
544
|
summary: RubyGems is a package management framework for Ruby
|
@@ -619,6 +620,7 @@ test_files:
|
|
619
620
|
- test/rubygems/test_gem_resolver_api_set.rb
|
620
621
|
- test/rubygems/test_gem_resolver_api_specification.rb
|
621
622
|
- test/rubygems/test_gem_resolver_best_set.rb
|
623
|
+
- test/rubygems/test_gem_resolver_composed_set.rb
|
622
624
|
- test/rubygems/test_gem_resolver_conflict.rb
|
623
625
|
- test/rubygems/test_gem_resolver_dependency_request.rb
|
624
626
|
- test/rubygems/test_gem_resolver_git_set.rb
|
metadata.gz.sig
CHANGED
Binary file
|