rubygems-update 1.8.10 → 1.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/rubygems.rb +3 -3
- data/lib/rubygems/commands/dependency_command.rb +1 -1
- data/lib/rubygems/commands/query_command.rb +1 -1
- data/lib/rubygems/dependency.rb +1 -1
- data/lib/rubygems/dependency_list.rb +1 -1
- data/lib/rubygems/deprecate.rb +42 -40
- data/lib/rubygems/gem_path_searcher.rb +1 -1
- data/lib/rubygems/indexer.rb +1 -1
- data/lib/rubygems/platform.rb +1 -1
- data/lib/rubygems/server.rb +1 -1
- data/lib/rubygems/source_index.rb +6 -6
- data/lib/rubygems/specification.rb +2 -2
- data/test/rubygems/test_gem.rb +3 -3
- data/test/rubygems/test_gem_dependency.rb +3 -3
- data/test/rubygems/test_gem_dependency_list.rb +1 -1
- data/test/rubygems/test_gem_gem_path_searcher.rb +9 -9
- data/test/rubygems/test_gem_platform.rb +1 -1
- data/test/rubygems/test_gem_server.rb +6 -6
- data/test/rubygems/test_gem_source_index.rb +14 -14
- data/test/rubygems/test_gem_specification.rb +4 -4
- metadata +10 -11
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/rubygems.rb
CHANGED
@@ -118,7 +118,7 @@ require "rubygems/deprecate"
|
|
118
118
|
# -The RubyGems Team
|
119
119
|
|
120
120
|
module Gem
|
121
|
-
VERSION = '1.8.
|
121
|
+
VERSION = '1.8.11'
|
122
122
|
|
123
123
|
##
|
124
124
|
# Raised when RubyGems is unable to load or activate a gem. Contains the
|
@@ -956,7 +956,7 @@ module Gem
|
|
956
956
|
# Returns the Gem::SourceIndex of specifications that are in the Gem.path
|
957
957
|
|
958
958
|
def self.source_index
|
959
|
-
@@source_index ||= Deprecate.skip_during do
|
959
|
+
@@source_index ||= Gem::Deprecate.skip_during do
|
960
960
|
SourceIndex.new Gem::Specification.dirs
|
961
961
|
end
|
962
962
|
end
|
@@ -1262,7 +1262,7 @@ require 'rubygems/custom_require'
|
|
1262
1262
|
|
1263
1263
|
module Gem
|
1264
1264
|
class << self
|
1265
|
-
extend Deprecate
|
1265
|
+
extend Gem::Deprecate
|
1266
1266
|
deprecate :activate_dep, "Specification#activate", 2011, 6
|
1267
1267
|
deprecate :activate_spec, "Specification#activate", 2011, 6
|
1268
1268
|
deprecate :cache, "Gem::source_index", 2011, 8
|
@@ -59,7 +59,7 @@ class Gem::Commands::DependencyCommand < Gem::Command
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# TODO: deprecate for real damnit
|
62
|
-
dependency = Deprecate.skip_during {
|
62
|
+
dependency = Gem::Deprecate.skip_during {
|
63
63
|
Gem::Dependency.new pattern, options[:version]
|
64
64
|
}
|
65
65
|
dependency.prerelease = options[:prerelease]
|
@@ -79,7 +79,7 @@ class Gem::Commands::QueryCommand < Gem::Command
|
|
79
79
|
|
80
80
|
req = Gem::Requirement.default
|
81
81
|
# TODO: deprecate for real
|
82
|
-
dep = Deprecate.skip_during { Gem::Dependency.new name, req }
|
82
|
+
dep = Gem::Deprecate.skip_during { Gem::Dependency.new name, req }
|
83
83
|
|
84
84
|
if local? then
|
85
85
|
if prerelease and not both? then
|
data/lib/rubygems/dependency.rb
CHANGED
@@ -35,7 +35,7 @@ class Gem::Dependency
|
|
35
35
|
if Regexp === name then
|
36
36
|
msg = ["NOTE: Dependency.new w/ a regexp is deprecated.",
|
37
37
|
"Dependency.new called from #{Gem.location_of_caller.join(":")}"]
|
38
|
-
warn msg.join("\n") unless Deprecate.skip
|
38
|
+
warn msg.join("\n") unless Gem::Deprecate.skip
|
39
39
|
end
|
40
40
|
|
41
41
|
type = Symbol === requirements.last ? requirements.pop : :runtime
|
data/lib/rubygems/deprecate.rb
CHANGED
@@ -11,58 +11,60 @@
|
|
11
11
|
# # ...
|
12
12
|
# end
|
13
13
|
#
|
14
|
-
# extend Deprecate
|
14
|
+
# extend Gem::Deprecate
|
15
15
|
# deprecate :instance_method, "X.z", 2011, 4
|
16
16
|
#
|
17
17
|
# class << self
|
18
|
-
# extend Deprecate
|
18
|
+
# extend Gem::Deprecate
|
19
19
|
# deprecate :klass_method, :none, 2011, 4
|
20
20
|
# end
|
21
21
|
# end
|
22
22
|
|
23
|
-
module
|
23
|
+
module Gem
|
24
|
+
module Deprecate
|
24
25
|
|
25
|
-
|
26
|
-
|
27
|
-
|
26
|
+
def self.skip # :nodoc:
|
27
|
+
@skip ||= false
|
28
|
+
end
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
def self.skip= v # :nodoc:
|
31
|
+
@skip = v
|
32
|
+
end
|
32
33
|
|
33
|
-
|
34
|
-
|
34
|
+
##
|
35
|
+
# Temporarily turn off warnings. Intended for tests only.
|
35
36
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
def skip_during
|
38
|
+
Gem::Deprecate.skip, original = true, Gem::Deprecate.skip
|
39
|
+
yield
|
40
|
+
ensure
|
41
|
+
Gem::Deprecate.skip = original
|
42
|
+
end
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
##
|
45
|
+
# Simple deprecation method that deprecates +name+ by wrapping it up
|
46
|
+
# in a dummy method. It warns on each call to the dummy method
|
47
|
+
# telling the user of +repl+ (unless +repl+ is :none) and the
|
48
|
+
# year/month that it is planned to go away.
|
48
49
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
50
|
+
def deprecate name, repl, year, month
|
51
|
+
class_eval {
|
52
|
+
old = "_deprecated_#{name}"
|
53
|
+
alias_method old, name
|
54
|
+
define_method name do |*args, &block| # TODO: really works on 1.8.7?
|
55
|
+
klass = self.kind_of? Module
|
56
|
+
target = klass ? "#{self}." : "#{self.class}#"
|
57
|
+
msg = [ "NOTE: #{target}#{name} is deprecated",
|
58
|
+
repl == :none ? " with no replacement" : ", use #{repl}",
|
59
|
+
". It will be removed on or after %4d-%02d-01." % [year, month],
|
60
|
+
"\n#{target}#{name} called from #{Gem.location_of_caller.join(":")}",
|
61
|
+
]
|
62
|
+
warn "#{msg.join}." unless Gem::Deprecate.skip
|
63
|
+
send old, *args, &block
|
64
|
+
end
|
65
|
+
}
|
66
|
+
end
|
66
67
|
|
67
|
-
|
68
|
+
module_function :deprecate, :skip_during
|
69
|
+
end
|
68
70
|
end
|
data/lib/rubygems/indexer.rb
CHANGED
@@ -377,7 +377,7 @@ class Gem::Indexer
|
|
377
377
|
# Collect specifications from .gem files from the gem directory.
|
378
378
|
|
379
379
|
def collect_specs(gems = gem_file_list)
|
380
|
-
Deprecate.skip_during do
|
380
|
+
Gem::Deprecate.skip_during do
|
381
381
|
index = Gem::SourceIndex.new
|
382
382
|
|
383
383
|
map_gems_to_specs(gems).each do |spec|
|
data/lib/rubygems/platform.rb
CHANGED
data/lib/rubygems/server.rb
CHANGED
@@ -462,7 +462,7 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
|
462
462
|
|
463
463
|
add_date res
|
464
464
|
|
465
|
-
index = Deprecate.skip_during { Marshal.dump Gem.source_index }
|
465
|
+
index = Gem::Deprecate.skip_during { Marshal.dump Gem.source_index }
|
466
466
|
|
467
467
|
if req.request_method == 'HEAD' then
|
468
468
|
res['content-length'] = index.length
|
@@ -72,7 +72,7 @@ class Gem::SourceIndex
|
|
72
72
|
# loaded spec.
|
73
73
|
|
74
74
|
def self.load_specification(file_name)
|
75
|
-
Deprecate.skip_during do
|
75
|
+
Gem::Deprecate.skip_during do
|
76
76
|
Gem::Specification.load Gem::Path.new(file_name)
|
77
77
|
end
|
78
78
|
end
|
@@ -121,7 +121,7 @@ class Gem::SourceIndex
|
|
121
121
|
spec_files = Dir[File.join(spec_dir, "*.gemspec")]
|
122
122
|
|
123
123
|
spec_files.each do |spec_file|
|
124
|
-
gemspec = Deprecate.skip_during do
|
124
|
+
gemspec = Gem::Deprecate.skip_during do
|
125
125
|
Gem::Specification.load spec_file
|
126
126
|
end
|
127
127
|
add_spec gemspec if gemspec
|
@@ -193,7 +193,7 @@ class Gem::SourceIndex
|
|
193
193
|
# Add gem specifications to the source index.
|
194
194
|
|
195
195
|
def add_specs(*gem_specs)
|
196
|
-
Deprecate.skip_during do
|
196
|
+
Gem::Deprecate.skip_during do
|
197
197
|
gem_specs.each do |spec|
|
198
198
|
add_spec spec
|
199
199
|
end
|
@@ -251,7 +251,7 @@ class Gem::SourceIndex
|
|
251
251
|
def find_name(gem_name, requirement = Gem::Requirement.default)
|
252
252
|
dep = Gem::Dependency.new gem_name, requirement
|
253
253
|
|
254
|
-
Deprecate.skip_during do
|
254
|
+
Gem::Deprecate.skip_during do
|
255
255
|
search dep
|
256
256
|
end
|
257
257
|
end
|
@@ -364,7 +364,7 @@ module Gem
|
|
364
364
|
end
|
365
365
|
|
366
366
|
class Gem::SourceIndex
|
367
|
-
extend Deprecate
|
367
|
+
extend Gem::Deprecate
|
368
368
|
|
369
369
|
deprecate :all_gems, :none, 2011, 10
|
370
370
|
|
@@ -394,7 +394,7 @@ class Gem::SourceIndex
|
|
394
394
|
deprecate :specification, "Specification.find", 2011, 11
|
395
395
|
|
396
396
|
class << self
|
397
|
-
extend Deprecate
|
397
|
+
extend Gem::Deprecate
|
398
398
|
|
399
399
|
deprecate :from_gems_in, :none, 2011, 10
|
400
400
|
deprecate :from_installed_gems, :none, 2011, 10
|
@@ -329,7 +329,7 @@ class Gem::Specification
|
|
329
329
|
|
330
330
|
def self.all
|
331
331
|
warn "NOTE: Specification.all called from #{caller.first}" unless
|
332
|
-
Deprecate.skip
|
332
|
+
Gem::Deprecate.skip
|
333
333
|
_all
|
334
334
|
end
|
335
335
|
|
@@ -2104,7 +2104,7 @@ class Gem::Specification
|
|
2104
2104
|
self.platform = Gem::Platform.new @platform
|
2105
2105
|
end
|
2106
2106
|
|
2107
|
-
extend Deprecate
|
2107
|
+
extend Gem::Deprecate
|
2108
2108
|
|
2109
2109
|
deprecate :test_suite_file, :test_file, 2011, 10
|
2110
2110
|
deprecate :test_suite_file=, :test_file=, 2011, 10
|
data/test/rubygems/test_gem.rb
CHANGED
@@ -435,7 +435,7 @@ class TestGem < Gem::TestCase
|
|
435
435
|
|
436
436
|
def test_self_available?
|
437
437
|
util_make_gems
|
438
|
-
Deprecate.skip_during do
|
438
|
+
Gem::Deprecate.skip_during do
|
439
439
|
assert(Gem.available?("a"))
|
440
440
|
assert(Gem.available?("a", "1"))
|
441
441
|
assert(Gem.available?("a", ">1"))
|
@@ -937,7 +937,7 @@ class TestGem < Gem::TestCase
|
|
937
937
|
end
|
938
938
|
|
939
939
|
def test_self_source_index
|
940
|
-
Deprecate.skip_during do
|
940
|
+
Gem::Deprecate.skip_during do
|
941
941
|
assert_kind_of Gem::SourceIndex, Gem.source_index
|
942
942
|
end
|
943
943
|
end
|
@@ -1093,7 +1093,7 @@ class TestGem < Gem::TestCase
|
|
1093
1093
|
# @abin_path = File.join spec.full_gem_path, spec.bindir, 'abin'
|
1094
1094
|
# FileUtils.mkdir_p File.join(stem, "gems", "test-3")
|
1095
1095
|
|
1096
|
-
Deprecate.skip_during do
|
1096
|
+
Gem::Deprecate.skip_during do
|
1097
1097
|
expected = [File.join(@gemhome, "gems", "a-4", "lib")]
|
1098
1098
|
assert_equal expected, Gem.latest_load_paths
|
1099
1099
|
end
|
@@ -63,7 +63,7 @@ class TestGemDependency < Gem::TestCase
|
|
63
63
|
assert_match dep("a", ">= 0"), dep("a", "1"), "match version"
|
64
64
|
refute_match dep("a"), Object.new
|
65
65
|
|
66
|
-
Deprecate.skip_during do
|
66
|
+
Gem::Deprecate.skip_during do
|
67
67
|
assert_match dep(/a/, ">= 0"), d, "match simple regexp"
|
68
68
|
assert_match dep(/a|b/, ">= 0"), d, "match scary regexp"
|
69
69
|
refute_match dep(/a/), dep("b")
|
@@ -72,7 +72,7 @@ class TestGemDependency < Gem::TestCase
|
|
72
72
|
|
73
73
|
def test_equals_tilde_escape
|
74
74
|
refute_match dep("a|b"), dep("a", "1")
|
75
|
-
Deprecate.skip_during do
|
75
|
+
Gem::Deprecate.skip_during do
|
76
76
|
assert_match dep(/a|b/), dep("a", "1")
|
77
77
|
end
|
78
78
|
end
|
@@ -88,7 +88,7 @@ class TestGemDependency < Gem::TestCase
|
|
88
88
|
def test_equals_tilde_spec
|
89
89
|
assert_match dep("a", ">= 0"), spec("a", "0")
|
90
90
|
assert_match dep("a", "1"), spec("a", "1")
|
91
|
-
Deprecate.skip_during do
|
91
|
+
Gem::Deprecate.skip_during do
|
92
92
|
assert_match dep(/a/, ">= 0"), spec("a", "0")
|
93
93
|
assert_match dep(/a|b/, ">= 0"), spec("b", "0")
|
94
94
|
refute_match dep(/a/, ">= 0"), spec("b", "0")
|
@@ -28,7 +28,7 @@ class TestGemDependencyList < Gem::TestCase
|
|
28
28
|
util_clear_gems
|
29
29
|
install_specs @a1, @b2
|
30
30
|
|
31
|
-
deps = Deprecate.skip_during { Gem::DependencyList.from_source_index }
|
31
|
+
deps = Gem::Deprecate.skip_during { Gem::DependencyList.from_source_index }
|
32
32
|
|
33
33
|
assert_equal %w[b-2 a-1], deps.dependency_order.map { |s| s.full_name }
|
34
34
|
end
|
@@ -29,23 +29,23 @@ class TestGemGemPathSearcher < Gem::TestCase
|
|
29
29
|
@fetcher = Gem::FakeFetcher.new
|
30
30
|
Gem::RemoteFetcher.fetcher = @fetcher
|
31
31
|
|
32
|
-
@gps = Deprecate.skip_during { Gem::GemPathSearcher.new }
|
32
|
+
@gps = Gem::Deprecate.skip_during { Gem::GemPathSearcher.new }
|
33
33
|
end
|
34
34
|
|
35
35
|
def test_find
|
36
|
-
Deprecate.skip_during do
|
36
|
+
Gem::Deprecate.skip_during do
|
37
37
|
assert_equal @foo1, @gps.find('foo')
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
def test_find_all
|
42
|
-
Deprecate.skip_during do
|
42
|
+
Gem::Deprecate.skip_during do
|
43
43
|
assert_equal [@foo1], @gps.find_all('foo')
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
47
|
def test_init_gemspecs
|
48
|
-
Deprecate.skip_during do
|
48
|
+
Gem::Deprecate.skip_during do
|
49
49
|
util_clear_gems
|
50
50
|
util_setup_spec_fetcher @foo1, @foo2, @bar1, @bar2
|
51
51
|
expected = [@bar2, @bar1, @foo2, @foo1].map(&:full_name)
|
@@ -55,7 +55,7 @@ class TestGemGemPathSearcher < Gem::TestCase
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def test_lib_dirs_for
|
58
|
-
Deprecate.skip_during do
|
58
|
+
Gem::Deprecate.skip_during do
|
59
59
|
lib_dirs = @gps.lib_dirs_for(@foo1)
|
60
60
|
expected = File.join @gemhome, 'gems', @foo1.full_name, '{lib,lib2}'
|
61
61
|
|
@@ -64,20 +64,20 @@ class TestGemGemPathSearcher < Gem::TestCase
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def test_lib_dirs_for_nil_require_paths
|
67
|
-
Deprecate.skip_during do
|
67
|
+
Gem::Deprecate.skip_during do
|
68
68
|
assert_nil @gps.lib_dirs_for(@nrp)
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
72
|
def test_matching_file_eh
|
73
|
-
Deprecate.skip_during do
|
73
|
+
Gem::Deprecate.skip_during do
|
74
74
|
refute @gps.matching_file?(@foo1, 'bar')
|
75
75
|
assert @gps.matching_file?(@foo1, 'foo')
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
79
|
def test_matching_files
|
80
|
-
Deprecate.skip_during do
|
80
|
+
Gem::Deprecate.skip_during do
|
81
81
|
assert_equal [], @gps.matching_files(@foo1, 'bar')
|
82
82
|
|
83
83
|
expected = File.join @foo1.full_gem_path, 'lib', 'foo.rb'
|
@@ -87,7 +87,7 @@ class TestGemGemPathSearcher < Gem::TestCase
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def test_matching_files_nil_require_paths
|
90
|
-
Deprecate.skip_during do
|
90
|
+
Gem::Deprecate.skip_during do
|
91
91
|
assert_empty @gps.matching_files(@nrp, 'foo')
|
92
92
|
end
|
93
93
|
end
|
@@ -138,7 +138,7 @@ class TestGemPlatform < Gem::TestCase
|
|
138
138
|
def test_empty
|
139
139
|
platform = Gem::Platform.new 'cpu-other_platform1'
|
140
140
|
assert_respond_to platform, :empty?
|
141
|
-
assert_equal false, Deprecate.skip_during { platform.empty? }
|
141
|
+
assert_equal false, Gem::Deprecate.skip_during { platform.empty? }
|
142
142
|
end
|
143
143
|
|
144
144
|
def test_to_s
|
@@ -33,7 +33,7 @@ class TestGemServer < Gem::TestCase
|
|
33
33
|
data = StringIO.new "GET /Marshal.#{Gem.marshal_version} HTTP/1.0\r\n\r\n"
|
34
34
|
@req.parse data
|
35
35
|
|
36
|
-
Deprecate.skip_during do
|
36
|
+
Gem::Deprecate.skip_during do
|
37
37
|
@server.Marshal @req, @res
|
38
38
|
end
|
39
39
|
|
@@ -41,7 +41,7 @@ class TestGemServer < Gem::TestCase
|
|
41
41
|
assert_match %r| \d\d:\d\d:\d\d |, @res['date']
|
42
42
|
assert_equal 'application/octet-stream', @res['content-type']
|
43
43
|
|
44
|
-
Deprecate.skip_during do
|
44
|
+
Gem::Deprecate.skip_during do
|
45
45
|
si = Gem::SourceIndex.new
|
46
46
|
si.add_specs @a1, @a2
|
47
47
|
|
@@ -53,7 +53,7 @@ class TestGemServer < Gem::TestCase
|
|
53
53
|
data = StringIO.new "GET /Marshal.#{Gem.marshal_version}.Z HTTP/1.0\r\n\r\n"
|
54
54
|
@req.parse data
|
55
55
|
|
56
|
-
Deprecate.skip_during do
|
56
|
+
Gem::Deprecate.skip_during do
|
57
57
|
@server.Marshal @req, @res
|
58
58
|
end
|
59
59
|
|
@@ -61,7 +61,7 @@ class TestGemServer < Gem::TestCase
|
|
61
61
|
assert_match %r| \d\d:\d\d:\d\d |, @res['date']
|
62
62
|
assert_equal 'application/x-deflate', @res['content-type']
|
63
63
|
|
64
|
-
Deprecate.skip_during do
|
64
|
+
Gem::Deprecate.skip_during do
|
65
65
|
si = Gem::SourceIndex.new
|
66
66
|
si.add_specs @a1, @a2
|
67
67
|
|
@@ -73,7 +73,7 @@ class TestGemServer < Gem::TestCase
|
|
73
73
|
data = StringIO.new "GET /latest_specs.#{Gem.marshal_version} HTTP/1.0\r\n\r\n"
|
74
74
|
@req.parse data
|
75
75
|
|
76
|
-
Deprecate.skip_during do
|
76
|
+
Gem::Deprecate.skip_during do
|
77
77
|
@server.latest_specs @req, @res
|
78
78
|
end
|
79
79
|
|
@@ -88,7 +88,7 @@ class TestGemServer < Gem::TestCase
|
|
88
88
|
data = StringIO.new "GET /latest_specs.#{Gem.marshal_version}.gz HTTP/1.0\r\n\r\n"
|
89
89
|
@req.parse data
|
90
90
|
|
91
|
-
Deprecate.skip_during do
|
91
|
+
Gem::Deprecate.skip_during do
|
92
92
|
@server.latest_specs @req, @res
|
93
93
|
end
|
94
94
|
|
@@ -9,11 +9,11 @@ class TestGemSourceIndex < Gem::TestCase
|
|
9
9
|
|
10
10
|
util_setup_fake_fetcher
|
11
11
|
|
12
|
-
@source_index = Deprecate.skip_during { Gem.source_index }
|
12
|
+
@source_index = Gem::Deprecate.skip_during { Gem.source_index }
|
13
13
|
end
|
14
14
|
|
15
15
|
def test_find_name
|
16
|
-
Deprecate.skip_during do
|
16
|
+
Gem::Deprecate.skip_during do
|
17
17
|
assert_equal [@a1, @a2, @a3a], @source_index.find_name('a')
|
18
18
|
assert_equal [@a2], @source_index.find_name('a', '= 2')
|
19
19
|
assert_equal [], @source_index.find_name('bogusstring')
|
@@ -31,7 +31,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def test_find_name_empty_cache
|
34
|
-
Deprecate.skip_during do
|
34
|
+
Gem::Deprecate.skip_during do
|
35
35
|
empty_source_index = Gem::SourceIndex.new
|
36
36
|
assert_equal [], empty_source_index.find_name("foo")
|
37
37
|
end
|
@@ -39,7 +39,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
39
39
|
|
40
40
|
# HACK: deprecated impl is failing tests, but I may want to port it over
|
41
41
|
def test_latest_specs
|
42
|
-
Deprecate.skip_during do
|
42
|
+
Gem::Deprecate.skip_during do
|
43
43
|
p1_ruby = quick_spec 'p', '1'
|
44
44
|
p1_platform = quick_spec 'p', '1' do |spec|
|
45
45
|
spec.platform = Gem::Platform::CURRENT
|
@@ -87,7 +87,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def test_load_gems_in
|
90
|
-
Deprecate.skip_during do
|
90
|
+
Gem::Deprecate.skip_during do
|
91
91
|
spec_dir1 = File.join @gemhome, 'specifications'
|
92
92
|
spec_dir2 = File.join @tempdir, 'gemhome2', 'specifications'
|
93
93
|
|
@@ -118,7 +118,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
118
118
|
|
119
119
|
# REFACTOR: move to test_gem_commands_outdated_command.rb
|
120
120
|
def test_outdated
|
121
|
-
Deprecate.skip_during do
|
121
|
+
Gem::Deprecate.skip_during do
|
122
122
|
util_setup_spec_fetcher
|
123
123
|
|
124
124
|
assert_equal [], @source_index.outdated
|
@@ -139,7 +139,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def test_prerelease_specs_kept_in_right_place
|
142
|
-
Deprecate.skip_during do
|
142
|
+
Gem::Deprecate.skip_during do
|
143
143
|
gem_a1_alpha = quick_spec 'abba', '1.a'
|
144
144
|
@source_index.add_spec gem_a1_alpha
|
145
145
|
|
@@ -151,7 +151,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
151
151
|
end
|
152
152
|
|
153
153
|
def test_refresh_bang
|
154
|
-
Deprecate.skip_during do
|
154
|
+
Gem::Deprecate.skip_during do
|
155
155
|
a1_spec = File.join @gemhome, "specifications", @a1.spec_name
|
156
156
|
|
157
157
|
FileUtils.mv a1_spec, @tempdir
|
@@ -171,7 +171,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
171
171
|
end
|
172
172
|
|
173
173
|
def test_remove_spec
|
174
|
-
Deprecate.skip_during do
|
174
|
+
Gem::Deprecate.skip_during do
|
175
175
|
si = Gem.source_index
|
176
176
|
|
177
177
|
expected = si.gems.keys.sort
|
@@ -189,7 +189,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
189
189
|
end
|
190
190
|
|
191
191
|
def test_search
|
192
|
-
Deprecate.skip_during do
|
192
|
+
Gem::Deprecate.skip_during do
|
193
193
|
requirement = Gem::Requirement.create '= 9'
|
194
194
|
with_version = Gem::Dependency.new(/^a/, requirement)
|
195
195
|
assert_equal [@a_evil9], @source_index.search(with_version)
|
@@ -203,7 +203,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
203
203
|
end
|
204
204
|
|
205
205
|
def test_search_platform
|
206
|
-
Deprecate.skip_during do
|
206
|
+
Gem::Deprecate.skip_during do
|
207
207
|
util_set_arch 'x86-my_platform1'
|
208
208
|
|
209
209
|
a1 = quick_spec 'a', '1'
|
@@ -226,7 +226,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
226
226
|
end
|
227
227
|
|
228
228
|
def test_signature
|
229
|
-
Deprecate.skip_during do
|
229
|
+
Gem::Deprecate.skip_during do
|
230
230
|
sig = @source_index.gem_signature('foo-1.2.3')
|
231
231
|
assert_equal 64, sig.length
|
232
232
|
assert_match(/^[a-f0-9]{64}$/, sig)
|
@@ -234,7 +234,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
234
234
|
end
|
235
235
|
|
236
236
|
def test_specification
|
237
|
-
Deprecate.skip_during do
|
237
|
+
Gem::Deprecate.skip_during do
|
238
238
|
assert_equal @a1, @source_index.specification(@a1.full_name)
|
239
239
|
|
240
240
|
assert_nil @source_index.specification("foo-1.2.4")
|
@@ -242,7 +242,7 @@ class TestGemSourceIndex < Gem::TestCase
|
|
242
242
|
end
|
243
243
|
|
244
244
|
def test_index_signature
|
245
|
-
Deprecate.skip_during do
|
245
|
+
Gem::Deprecate.skip_during do
|
246
246
|
sig = @source_index.index_signature
|
247
247
|
assert_match(/^[a-f0-9]{64}$/, sig)
|
248
248
|
end
|
@@ -222,7 +222,7 @@ bindir:
|
|
222
222
|
end
|
223
223
|
|
224
224
|
def test_self_load_legacy_ruby
|
225
|
-
spec = Deprecate.skip_during do
|
225
|
+
spec = Gem::Deprecate.skip_during do
|
226
226
|
eval LEGACY_RUBY_SPEC
|
227
227
|
end
|
228
228
|
assert_equal 'keyedlist', spec.name
|
@@ -404,7 +404,7 @@ bindir:
|
|
404
404
|
|
405
405
|
assert @a2.activated?
|
406
406
|
|
407
|
-
Deprecate.skip_during do
|
407
|
+
Gem::Deprecate.skip_during do
|
408
408
|
assert @a2.loaded?
|
409
409
|
end
|
410
410
|
end
|
@@ -677,7 +677,7 @@ bindir:
|
|
677
677
|
end
|
678
678
|
|
679
679
|
def test_installation_path
|
680
|
-
Deprecate.skip_during do
|
680
|
+
Gem::Deprecate.skip_during do
|
681
681
|
assert_equal @gemhome, @a1.installation_path
|
682
682
|
|
683
683
|
@a1.instance_variable_set :@loaded_from, nil
|
@@ -977,7 +977,7 @@ end
|
|
977
977
|
end
|
978
978
|
|
979
979
|
def test_to_ruby_legacy
|
980
|
-
gemspec1 = Deprecate.skip_during do
|
980
|
+
gemspec1 = Gem::Deprecate.skip_during do
|
981
981
|
eval LEGACY_RUBY_SPEC
|
982
982
|
end
|
983
983
|
ruby_code = gemspec1.to_ruby
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 33
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 11
|
10
|
+
version: 1.8.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Weirich
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
x52qPcexcYZR7w==
|
39
39
|
-----END CERTIFICATE-----
|
40
40
|
|
41
|
-
date: 2011-
|
41
|
+
date: 2011-10-03 00:00:00 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: minitest
|
@@ -46,14 +46,13 @@ dependencies:
|
|
46
46
|
requirement: &id001 !ruby/object:Gem::Requirement
|
47
47
|
none: false
|
48
48
|
requirements:
|
49
|
-
- -
|
49
|
+
- - ~>
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
hash:
|
51
|
+
hash: 15
|
52
52
|
segments:
|
53
53
|
- 2
|
54
|
-
-
|
55
|
-
|
56
|
-
version: 2.3.1
|
54
|
+
- 6
|
55
|
+
version: "2.6"
|
57
56
|
type: :development
|
58
57
|
version_requirements: *id001
|
59
58
|
- !ruby/object:Gem::Dependency
|
@@ -404,7 +403,7 @@ post_install_message:
|
|
404
403
|
rdoc_options:
|
405
404
|
- --main
|
406
405
|
- README.rdoc
|
407
|
-
- --title=RubyGems 1.8.
|
406
|
+
- --title=RubyGems 1.8.11 Documentation
|
408
407
|
require_paths:
|
409
408
|
- hide_lib_for_update
|
410
409
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -430,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
430
429
|
requirements: []
|
431
430
|
|
432
431
|
rubyforge_project: rubygems
|
433
|
-
rubygems_version: 1.8.
|
432
|
+
rubygems_version: 1.8.10
|
434
433
|
signing_key:
|
435
434
|
specification_version: 3
|
436
435
|
summary: RubyGems is a package management framework for Ruby
|
metadata.gz.sig
CHANGED
Binary file
|