rubygems-update 2.2.0.rc.1 → 2.2.0
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 +3 -2
- data.tar.gz.sig +0 -0
- data/History.txt +4 -1
- data/lib/rubygems.rb +3 -6
- data/lib/rubygems/commands/install_command.rb +27 -5
- data/test/rubygems/test_gem_commands_install_command.rb +26 -0
- data/test/rubygems/test_gem_ext_builder.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5fa16de744ce2ed895d0e7df7961e93c05bb2a5
|
4
|
+
data.tar.gz: 62d47904fc5dc3ac7109b09f7cde08bd4ca88ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bee054acc56218d99769f2d18b692ad696587896c6f260b102dc864e7ce52a3b3f7a522411f740882a4e45e2ae42ae71ed88677d5efedeeb2cf526e6cf03f5cf
|
7
|
+
data.tar.gz: 75c31cee8fe53b38c222abb3cd9036865f1c0fecd820459aaf996a8f1d6f1439c4663eaa5ac58c02f5296c88424a1c9f75b969163c16da43bde966a2c2f1531b
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
1
|
+
����`e��|C8���,Z�t�5
|
2
|
-
�
|
2
|
+
���O�viN��I�@�,�����q��ޥ��A�ޑֳ��$�D٢���6:U�S�=���8���Z���=:��i�i�����8mv?XI!��I.$y1Rg�i�����g����{2�&f#����p7r��{����]t��ꃊ�s1pg]y�)�[`d/�hu����l���S>Bޛf�eIV�b�G
|
3
|
+
N��a�L1�L�>� ��BNxVi�����Y�Ќ)�e}��z$Q"�U�A인/
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/rubygems.rb
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
require 'rbconfig'
|
9
9
|
|
10
10
|
module Gem
|
11
|
-
VERSION = '2.2.0
|
11
|
+
VERSION = '2.2.0'
|
12
12
|
end
|
13
13
|
|
14
14
|
# Must be first since it unloads the prelude from 1.9.2
|
@@ -568,11 +568,8 @@ module Gem
|
|
568
568
|
end
|
569
569
|
|
570
570
|
##
|
571
|
-
# The index to insert activated gem paths into the $LOAD_PATH.
|
572
|
-
#
|
573
|
-
# Defaults to the site lib directory unless gem_prelude.rb has loaded paths,
|
574
|
-
# then it inserts the activated gem's paths before the gem_prelude.rb paths
|
575
|
-
# so you can override the gem_prelude.rb default $LOAD_PATH paths.
|
571
|
+
# The index to insert activated gem paths into the $LOAD_PATH. The activated
|
572
|
+
# gem's paths are inserted before site lib directory by default.
|
576
573
|
|
577
574
|
def self.load_path_insert_index
|
578
575
|
index = $LOAD_PATH.index ConfigMap[:sitelibdir]
|
@@ -69,7 +69,7 @@ class Gem::Commands::InstallCommand < Gem::Command
|
|
69
69
|
o[:explain] = v
|
70
70
|
end
|
71
71
|
|
72
|
-
@installed_specs =
|
72
|
+
@installed_specs = []
|
73
73
|
end
|
74
74
|
|
75
75
|
def arguments # :nodoc:
|
@@ -200,10 +200,8 @@ to write the specification by hand. For example:
|
|
200
200
|
|
201
201
|
req = Gem::Requirement.create(version)
|
202
202
|
|
203
|
-
if options[:ignore_dependencies]
|
204
|
-
|
205
|
-
inst.install
|
206
|
-
@installed_specs.push(inst.spec)
|
203
|
+
if options[:ignore_dependencies] then
|
204
|
+
install_gem_without_dependencies name, req
|
207
205
|
else
|
208
206
|
inst = Gem::DependencyInstaller.new options
|
209
207
|
|
@@ -227,6 +225,30 @@ to write the specification by hand. For example:
|
|
227
225
|
end
|
228
226
|
end
|
229
227
|
|
228
|
+
def install_gem_without_dependencies name, req # :nodoc:
|
229
|
+
gem = nil
|
230
|
+
|
231
|
+
if remote? then
|
232
|
+
dependency = Gem::Dependency.new name, req
|
233
|
+
dependency.prerelease = options[:prerelease]
|
234
|
+
|
235
|
+
fetcher = Gem::RemoteFetcher.fetcher
|
236
|
+
gem = fetcher.download_to_cache dependency
|
237
|
+
end
|
238
|
+
|
239
|
+
if local? and not gem then
|
240
|
+
source = Gem::Source::Local.new
|
241
|
+
spec = source.find_gem name, req
|
242
|
+
|
243
|
+
gem = source.download spec
|
244
|
+
end
|
245
|
+
|
246
|
+
inst = Gem::Installer.new gem, options
|
247
|
+
inst.install
|
248
|
+
|
249
|
+
@installed_specs.push(inst.spec)
|
250
|
+
end
|
251
|
+
|
230
252
|
def install_gems # :nodoc:
|
231
253
|
exit_code = 0
|
232
254
|
|
@@ -533,6 +533,32 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
533
533
|
assert_match "1 gem installed", @ui.output
|
534
534
|
end
|
535
535
|
|
536
|
+
def test_install_gem_ignore_dependencies_both
|
537
|
+
spec = quick_spec 'a', 2
|
538
|
+
|
539
|
+
util_build_gem spec
|
540
|
+
|
541
|
+
FileUtils.mv spec.cache_file, @tempdir
|
542
|
+
|
543
|
+
@cmd.options[:ignore_dependencies] = true
|
544
|
+
|
545
|
+
@cmd.install_gem 'a', '>= 0'
|
546
|
+
|
547
|
+
assert_equal %w[a-2], @cmd.installed_specs.map { |s| s.full_name }
|
548
|
+
end
|
549
|
+
|
550
|
+
def test_install_gem_ignore_dependencies_remote
|
551
|
+
spec_fetcher do |fetcher|
|
552
|
+
fetcher.gem 'a', 2
|
553
|
+
end
|
554
|
+
|
555
|
+
@cmd.options[:ignore_dependencies] = true
|
556
|
+
|
557
|
+
@cmd.install_gem 'a', '>= 0'
|
558
|
+
|
559
|
+
assert_equal %w[a-2], @cmd.installed_specs.map { |spec| spec.full_name }
|
560
|
+
end
|
561
|
+
|
536
562
|
def test_parses_requirement_from_gemname
|
537
563
|
spec_fetcher do |fetcher|
|
538
564
|
fetcher.gem 'a', 2
|
@@ -228,7 +228,7 @@ install:
|
|
228
228
|
|
229
229
|
assert_match %r%#{Regexp.escape Gem.ruby} extconf\.rb%,
|
230
230
|
File.read(gem_make_out)
|
231
|
-
assert_match
|
231
|
+
assert_match %r%: No such file%,
|
232
232
|
File.read(gem_make_out)
|
233
233
|
|
234
234
|
refute_path_exists @spec.gem_build_complete_path
|
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.0
|
4
|
+
version: 2.2.0
|
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: 2013-12-
|
35
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: minitest
|
metadata.gz.sig
CHANGED
Binary file
|