rubygems-update 2.0.5 → 2.0.6
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -3
- data.tar.gz.sig +0 -0
- data/History.txt +14 -0
- data/Manifest.txt +2 -0
- data/Rakefile +2 -0
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/commands/query_command.rb +11 -6
- data/lib/rubygems/commands/search_command.rb +2 -0
- data/lib/rubygems/ext/builder.rb +3 -1
- data/lib/rubygems/ext/ext_conf_builder.rb +2 -2
- data/lib/rubygems/remote_fetcher.rb +7 -2
- data/lib/rubygems/test_case.rb +2 -0
- data/test/rubygems/test_gem_commands_query_command.rb +28 -0
- data/test/rubygems/test_gem_commands_search_command.rb +17 -0
- data/test/rubygems/test_gem_ext_builder.rb +58 -0
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +4 -1
- metadata +15 -10
- 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: 20b09e317bc95a310a8d74ccce5c3f7d55a6bd7f
|
4
|
+
data.tar.gz: 4200093f2e3cde152d34915dcf61fa5e2761093c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e95e5fc3e38b9f9db81612d6181f02a4bc239d0a352a5009d4763b912a8c0a9e200a851cc0ecc1b5370f81301b4cb52c6fac36be903d7d063b8d601fcce811bb
|
7
|
+
data.tar.gz: ecd8145cbd2bfa8f29e9d7243d6743ea2945474d83429d4f616fed1e6136294c95a6c846e36834f7e7327d72f45be3947a4125c51f952a025a736690caa398a6
|
checksums.yaml.gz.sig
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
+
=== 2.0.6 / 2013-07-24
|
4
|
+
|
5
|
+
Bug fixes:
|
6
|
+
|
7
|
+
* Fixed the `--no-install` and `-I` options to `gem list` and friends. Bug
|
8
|
+
#593 by Blargel.
|
9
|
+
* Fixed crash when installing gems with extensions under the `-V` flag. Bug
|
10
|
+
#601 by Nick Hoffman.
|
11
|
+
* Fixed race condition retrieving HTTP connections in Gem::Request on JRuby.
|
12
|
+
Bug #597 by Hemant Kumar.
|
13
|
+
* Fixed building extensions on ruby 1.9.3 under mingw. Bug #594 by jonforums,
|
14
|
+
Bug #599 by Chris Riesbeck
|
15
|
+
* Restored default of remote search to `gem search`.
|
16
|
+
|
3
17
|
=== 2.0.5 / 2013-07-11
|
4
18
|
|
5
19
|
Bug fixes:
|
data/Manifest.txt
CHANGED
@@ -188,6 +188,7 @@ test/rubygems/test_gem_commands_owner_command.rb
|
|
188
188
|
test/rubygems/test_gem_commands_pristine_command.rb
|
189
189
|
test/rubygems/test_gem_commands_push_command.rb
|
190
190
|
test/rubygems/test_gem_commands_query_command.rb
|
191
|
+
test/rubygems/test_gem_commands_search_command.rb
|
191
192
|
test/rubygems/test_gem_commands_server_command.rb
|
192
193
|
test/rubygems/test_gem_commands_setup_command.rb
|
193
194
|
test/rubygems/test_gem_commands_sources_command.rb
|
@@ -204,6 +205,7 @@ test/rubygems/test_gem_dependency_installer.rb
|
|
204
205
|
test/rubygems/test_gem_dependency_list.rb
|
205
206
|
test/rubygems/test_gem_dependency_resolver.rb
|
206
207
|
test/rubygems/test_gem_doctor.rb
|
208
|
+
test/rubygems/test_gem_ext_builder.rb
|
207
209
|
test/rubygems/test_gem_ext_cmake_builder.rb
|
208
210
|
test/rubygems/test_gem_ext_configure_builder.rb
|
209
211
|
test/rubygems/test_gem_ext_ext_conf_builder.rb
|
data/Rakefile
CHANGED
data/lib/rubygems.rb
CHANGED
@@ -14,7 +14,7 @@ class Gem::Commands::QueryCommand < Gem::Command
|
|
14
14
|
summary = 'Query gem information in local or remote repositories')
|
15
15
|
super name, summary,
|
16
16
|
:name => //, :domain => :local, :details => false, :versions => true,
|
17
|
-
:installed =>
|
17
|
+
:installed => nil, :version => Gem::Requirement.default
|
18
18
|
|
19
19
|
add_option('-i', '--[no-]installed',
|
20
20
|
'Check for installed gem') do |value, options|
|
@@ -67,15 +67,20 @@ class Gem::Commands::QueryCommand < Gem::Command
|
|
67
67
|
name = options[:name]
|
68
68
|
prerelease = options[:prerelease]
|
69
69
|
|
70
|
-
|
70
|
+
unless options[:installed].nil? then
|
71
71
|
if name.source.empty? then
|
72
72
|
alert_error "You must specify a gem name"
|
73
73
|
exit_code |= 4
|
74
|
-
elsif installed? name, options[:version] then
|
75
|
-
say "true"
|
76
74
|
else
|
77
|
-
|
78
|
-
|
75
|
+
installed = installed? name, options[:version]
|
76
|
+
installed = !installed unless options[:installed]
|
77
|
+
|
78
|
+
if installed then
|
79
|
+
say "true"
|
80
|
+
else
|
81
|
+
say "false"
|
82
|
+
exit_code |= 1
|
83
|
+
end
|
79
84
|
end
|
80
85
|
|
81
86
|
terminate_interaction exit_code
|
data/lib/rubygems/ext/builder.rb
CHANGED
@@ -23,11 +23,13 @@ class Gem::Ext::Builder
|
|
23
23
|
make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
|
24
24
|
end
|
25
25
|
|
26
|
+
destdir = '"DESTDIR=%s"' % ENV['DESTDIR'] if RUBY_VERSION > '2.0'
|
27
|
+
|
26
28
|
['', 'install'].each do |target|
|
27
29
|
# Pass DESTDIR via command line to override what's in MAKEFLAGS
|
28
30
|
cmd = [
|
29
31
|
make_program,
|
30
|
-
|
32
|
+
destdir,
|
31
33
|
target
|
32
34
|
].join(' ').rstrip
|
33
35
|
run(cmd, results, "make #{target}".rstrip)
|
@@ -50,14 +50,14 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
|
|
50
50
|
destent.exist? or File.rename(ent.path, destent.path)
|
51
51
|
end
|
52
52
|
end
|
53
|
-
|
54
|
-
results
|
55
53
|
ensure
|
56
54
|
ENV["RUBYOPT"] = rubyopt
|
57
55
|
ENV["DESTDIR"] = destdir
|
58
56
|
end
|
59
57
|
end
|
60
58
|
t.unlink if t and t.path
|
59
|
+
|
60
|
+
results
|
61
61
|
ensure
|
62
62
|
FileUtils.rm_rf tmp_dest if tmp_dest
|
63
63
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rubygems/user_interaction'
|
3
|
+
require 'thread'
|
3
4
|
require 'uri'
|
4
5
|
require 'resolv'
|
5
6
|
|
@@ -72,6 +73,7 @@ class Gem::RemoteFetcher
|
|
72
73
|
Socket.do_not_reverse_lookup = true
|
73
74
|
|
74
75
|
@connections = {}
|
76
|
+
@connections_mutex = Mutex.new
|
75
77
|
@requests = Hash.new 0
|
76
78
|
@proxy_uri =
|
77
79
|
case proxy
|
@@ -391,8 +393,11 @@ class Gem::RemoteFetcher
|
|
391
393
|
end
|
392
394
|
|
393
395
|
connection_id = [Thread.current.object_id, *net_http_args].join ':'
|
394
|
-
|
395
|
-
connection = @
|
396
|
+
|
397
|
+
connection = @connections_mutex.synchronize do
|
398
|
+
@connections[connection_id] ||= Net::HTTP.new(*net_http_args)
|
399
|
+
@connections[connection_id]
|
400
|
+
end
|
396
401
|
|
397
402
|
if https?(uri) and not connection.started? then
|
398
403
|
configure_connection_for_https(connection)
|
data/lib/rubygems/test_case.rb
CHANGED
@@ -195,6 +195,34 @@ pl (1)
|
|
195
195
|
assert_equal '', @ui.error
|
196
196
|
end
|
197
197
|
|
198
|
+
def test_execute_installed_inverse
|
199
|
+
@cmd.handle_options %w[-n a --no-installed]
|
200
|
+
|
201
|
+
e = assert_raises Gem::MockGemUi::TermError do
|
202
|
+
use_ui @ui do
|
203
|
+
@cmd.execute
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
assert_equal "false\n", @ui.output
|
208
|
+
assert_equal '', @ui.error
|
209
|
+
|
210
|
+
assert_equal 1, e.exit_code
|
211
|
+
end
|
212
|
+
|
213
|
+
def test_execute_installed_inverse_not_installed
|
214
|
+
@cmd.handle_options %w[-n not_installed --no-installed]
|
215
|
+
|
216
|
+
assert_raises Gem::MockGemUi::SystemExitException do
|
217
|
+
use_ui @ui do
|
218
|
+
@cmd.execute
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
assert_equal "true\n", @ui.output
|
223
|
+
assert_equal '', @ui.error
|
224
|
+
end
|
225
|
+
|
198
226
|
def test_execute_installed_no_name
|
199
227
|
@cmd.handle_options %w[--installed]
|
200
228
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rubygems/test_case'
|
2
|
+
require 'rubygems/commands/search_command'
|
3
|
+
|
4
|
+
class TestGemCommandsSearchCommand < Gem::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
super
|
8
|
+
|
9
|
+
@cmd = Gem::Commands::SearchCommand.new
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_initialize
|
13
|
+
assert_equal :remote, @cmd.defaults[:domain]
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'rubygems/test_case'
|
2
|
+
require 'rubygems/ext'
|
3
|
+
|
4
|
+
class TestGemExtBuilder < Gem::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
super
|
8
|
+
|
9
|
+
@ext = File.join @tempdir, 'ext'
|
10
|
+
@dest_path = File.join @tempdir, 'prefix'
|
11
|
+
|
12
|
+
FileUtils.mkdir_p @ext
|
13
|
+
FileUtils.mkdir_p @dest_path
|
14
|
+
|
15
|
+
@orig_DESTDIR = ENV['DESTDIR']
|
16
|
+
end
|
17
|
+
|
18
|
+
def teardown
|
19
|
+
ENV['DESTDIR'] = @orig_DESTDIR
|
20
|
+
|
21
|
+
super
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_class_make
|
25
|
+
ENV['DESTDIR'] = 'destination'
|
26
|
+
results = []
|
27
|
+
|
28
|
+
Dir.chdir @ext do
|
29
|
+
open 'Makefile', 'w' do |io|
|
30
|
+
io.puts <<-MAKEFILE
|
31
|
+
all:
|
32
|
+
\t@#{Gem.ruby} -e "puts %Q{all: \#{ENV['DESTDIR']}}"
|
33
|
+
|
34
|
+
install:
|
35
|
+
\t@#{Gem.ruby} -e "puts %Q{install: \#{ENV['DESTDIR']}}"
|
36
|
+
MAKEFILE
|
37
|
+
end
|
38
|
+
|
39
|
+
Gem::Ext::Builder.make @dest_path, results
|
40
|
+
end
|
41
|
+
|
42
|
+
results = results.join "\n"
|
43
|
+
|
44
|
+
|
45
|
+
if RUBY_VERSION > '2.0' then
|
46
|
+
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}"$%, results
|
47
|
+
assert_match %r%"DESTDIR=#{ENV['DESTDIR']}" install$%, results
|
48
|
+
else
|
49
|
+
refute_match %r%"DESTDIR=#{ENV['DESTDIR']}"$%, results
|
50
|
+
refute_match %r%"DESTDIR=#{ENV['DESTDIR']}" install$%, results
|
51
|
+
end
|
52
|
+
|
53
|
+
assert_match %r%^all: destination$%, results
|
54
|
+
assert_match %r%^install: destination$%, results
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
@@ -27,7 +27,10 @@ class TestGemExtExtConfBuilder < Gem::TestCase
|
|
27
27
|
output = []
|
28
28
|
|
29
29
|
Dir.chdir @ext do
|
30
|
-
|
30
|
+
result =
|
31
|
+
Gem::Ext::ExtConfBuilder.build 'extconf.rb', nil, @dest_path, output
|
32
|
+
|
33
|
+
assert_same result, output
|
31
34
|
end
|
32
35
|
|
33
36
|
assert_match(/^#{Gem.ruby} extconf.rb/, output[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.0.
|
4
|
+
version: 2.0.6
|
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-07-
|
35
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: minitest
|
@@ -40,28 +40,28 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '5.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ~>
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
50
|
+
version: '5.0'
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: rdoc
|
53
53
|
requirement: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - ~>
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
57
|
+
version: '4.0'
|
58
58
|
type: :development
|
59
59
|
prerelease: false
|
60
60
|
version_requirements: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
62
|
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
64
|
+
version: '4.0'
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
name: builder
|
67
67
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,14 +124,14 @@ dependencies:
|
|
124
124
|
requirements:
|
125
125
|
- - ~>
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: '3.
|
127
|
+
version: '3.7'
|
128
128
|
type: :development
|
129
129
|
prerelease: false
|
130
130
|
version_requirements: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
132
|
- - ~>
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '3.
|
134
|
+
version: '3.7'
|
135
135
|
description: |-
|
136
136
|
RubyGems is a package management framework for Ruby.
|
137
137
|
|
@@ -361,6 +361,7 @@ files:
|
|
361
361
|
- test/rubygems/test_gem_commands_pristine_command.rb
|
362
362
|
- test/rubygems/test_gem_commands_push_command.rb
|
363
363
|
- test/rubygems/test_gem_commands_query_command.rb
|
364
|
+
- test/rubygems/test_gem_commands_search_command.rb
|
364
365
|
- test/rubygems/test_gem_commands_server_command.rb
|
365
366
|
- test/rubygems/test_gem_commands_setup_command.rb
|
366
367
|
- test/rubygems/test_gem_commands_sources_command.rb
|
@@ -377,6 +378,7 @@ files:
|
|
377
378
|
- test/rubygems/test_gem_dependency_list.rb
|
378
379
|
- test/rubygems/test_gem_dependency_resolver.rb
|
379
380
|
- test/rubygems/test_gem_doctor.rb
|
381
|
+
- test/rubygems/test_gem_ext_builder.rb
|
380
382
|
- test/rubygems/test_gem_ext_cmake_builder.rb
|
381
383
|
- test/rubygems/test_gem_ext_configure_builder.rb
|
382
384
|
- test/rubygems/test_gem_ext_ext_conf_builder.rb
|
@@ -427,13 +429,14 @@ files:
|
|
427
429
|
- util/create_certs.rb
|
428
430
|
- .gemtest
|
429
431
|
homepage: http://rubygems.org
|
430
|
-
licenses:
|
432
|
+
licenses:
|
433
|
+
- MIT
|
431
434
|
metadata: {}
|
432
435
|
post_install_message:
|
433
436
|
rdoc_options:
|
434
437
|
- --main
|
435
438
|
- README.rdoc
|
436
|
-
- --title=RubyGems 2.0.
|
439
|
+
- --title=RubyGems 2.0.6 Documentation
|
437
440
|
require_paths:
|
438
441
|
- hide_lib_for_update
|
439
442
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -478,6 +481,7 @@ test_files:
|
|
478
481
|
- test/rubygems/test_gem_commands_pristine_command.rb
|
479
482
|
- test/rubygems/test_gem_commands_push_command.rb
|
480
483
|
- test/rubygems/test_gem_commands_query_command.rb
|
484
|
+
- test/rubygems/test_gem_commands_search_command.rb
|
481
485
|
- test/rubygems/test_gem_commands_server_command.rb
|
482
486
|
- test/rubygems/test_gem_commands_setup_command.rb
|
483
487
|
- test/rubygems/test_gem_commands_sources_command.rb
|
@@ -494,6 +498,7 @@ test_files:
|
|
494
498
|
- test/rubygems/test_gem_dependency_list.rb
|
495
499
|
- test/rubygems/test_gem_dependency_resolver.rb
|
496
500
|
- test/rubygems/test_gem_doctor.rb
|
501
|
+
- test/rubygems/test_gem_ext_builder.rb
|
497
502
|
- test/rubygems/test_gem_ext_cmake_builder.rb
|
498
503
|
- test/rubygems/test_gem_ext_configure_builder.rb
|
499
504
|
- test/rubygems/test_gem_ext_ext_conf_builder.rb
|
metadata.gz.sig
CHANGED
Binary file
|