rubygems-update 3.2.17 → 3.2.21
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/Manifest.txt +3 -0
- data/Rakefile +6 -6
- data/bundler/CHANGELOG.md +54 -0
- data/bundler/bundler.gemspec +2 -3
- data/bundler/lib/bundler.rb +2 -1
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli.rb +13 -33
- data/bundler/lib/bundler/cli/check.rb +4 -2
- data/bundler/lib/bundler/cli/install.rb +6 -7
- data/bundler/lib/bundler/cli/outdated.rb +9 -10
- data/bundler/lib/bundler/definition.rb +29 -82
- data/bundler/lib/bundler/feature_flag.rb +0 -2
- data/bundler/lib/bundler/fetcher/compact_index.rb +1 -1
- data/bundler/lib/bundler/fetcher/index.rb +0 -1
- data/bundler/lib/bundler/friendly_errors.rb +2 -4
- data/bundler/lib/bundler/index.rb +1 -2
- data/bundler/lib/bundler/installer.rb +1 -8
- data/bundler/lib/bundler/man/bundle-add.1 +1 -1
- data/bundler/lib/bundler/man/bundle-binstubs.1 +1 -1
- data/bundler/lib/bundler/man/bundle-cache.1 +1 -1
- data/bundler/lib/bundler/man/bundle-check.1 +1 -1
- data/bundler/lib/bundler/man/bundle-clean.1 +1 -1
- data/bundler/lib/bundler/man/bundle-config.1 +1 -7
- data/bundler/lib/bundler/man/bundle-config.1.ronn +0 -8
- data/bundler/lib/bundler/man/bundle-doctor.1 +1 -1
- data/bundler/lib/bundler/man/bundle-exec.1 +1 -1
- data/bundler/lib/bundler/man/bundle-gem.1 +1 -1
- data/bundler/lib/bundler/man/bundle-info.1 +1 -1
- data/bundler/lib/bundler/man/bundle-init.1 +1 -1
- data/bundler/lib/bundler/man/bundle-inject.1 +1 -1
- data/bundler/lib/bundler/man/bundle-install.1 +1 -1
- data/bundler/lib/bundler/man/bundle-list.1 +1 -1
- data/bundler/lib/bundler/man/bundle-lock.1 +1 -1
- data/bundler/lib/bundler/man/bundle-open.1 +1 -1
- data/bundler/lib/bundler/man/bundle-outdated.1 +1 -1
- data/bundler/lib/bundler/man/bundle-platform.1 +1 -1
- data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
- data/bundler/lib/bundler/man/bundle-remove.1 +1 -1
- data/bundler/lib/bundler/man/bundle-show.1 +1 -1
- data/bundler/lib/bundler/man/bundle-update.1 +1 -1
- data/bundler/lib/bundler/man/bundle-viz.1 +1 -1
- data/bundler/lib/bundler/man/bundle.1 +1 -1
- data/bundler/lib/bundler/man/gemfile.5 +1 -1
- data/bundler/lib/bundler/plugin/api/source.rb +14 -0
- data/bundler/lib/bundler/resolver.rb +15 -96
- data/bundler/lib/bundler/resolver/spec_group.rb +0 -24
- data/bundler/lib/bundler/rubygems_ext.rb +2 -2
- data/bundler/lib/bundler/rubygems_integration.rb +4 -3
- data/bundler/lib/bundler/settings.rb +21 -3
- data/bundler/lib/bundler/source.rb +11 -0
- data/bundler/lib/bundler/source/rubygems.rb +24 -11
- data/bundler/lib/bundler/source/rubygems_aggregate.rb +64 -0
- data/bundler/lib/bundler/source_list.rb +35 -10
- data/bundler/lib/bundler/source_map.rb +58 -0
- data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +2 -2
- data/bundler/lib/bundler/version.rb +1 -1
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/command.rb +2 -0
- data/lib/rubygems/commands/build_command.rb +1 -1
- data/lib/rubygems/config_file.rb +1 -1
- data/lib/rubygems/ext/ext_conf_builder.rb +4 -4
- data/lib/rubygems/installer.rb +4 -0
- data/lib/rubygems/request.rb +1 -1
- data/lib/rubygems/specification.rb +0 -2
- data/lib/rubygems/specification_policy.rb +5 -4
- data/lib/rubygems/test_case.rb +106 -18
- data/lib/rubygems/util/licenses.rb +107 -2
- data/rubygems-update.gemspec +1 -1
- data/setup.rb +1 -2
- data/test/rubygems/packages/ill-formatted-platform-1.0.0.10.gem +0 -0
- data/test/rubygems/test_bundled_ca.rb +2 -2
- data/test/rubygems/test_deprecate.rb +3 -3
- data/test/rubygems/test_gem.rb +33 -31
- data/test/rubygems/test_gem_bundler_version_finder.rb +3 -5
- data/test/rubygems/test_gem_command.rb +13 -1
- data/test/rubygems/test_gem_command_manager.rb +5 -5
- data/test/rubygems/test_gem_commands_build_command.rb +10 -10
- data/test/rubygems/test_gem_commands_cert_command.rb +36 -36
- data/test/rubygems/test_gem_commands_check_command.rb +5 -5
- data/test/rubygems/test_gem_commands_cleanup_command.rb +24 -24
- data/test/rubygems/test_gem_commands_contents_command.rb +3 -3
- data/test/rubygems/test_gem_commands_dependency_command.rb +2 -2
- data/test/rubygems/test_gem_commands_environment_command.rb +1 -1
- data/test/rubygems/test_gem_commands_fetch_command.rb +9 -9
- data/test/rubygems/test_gem_commands_help_command.rb +8 -1
- data/test/rubygems/test_gem_commands_install_command.rb +60 -60
- data/test/rubygems/test_gem_commands_list_command.rb +1 -1
- data/test/rubygems/test_gem_commands_lock_command.rb +1 -1
- data/test/rubygems/test_gem_commands_open_command.rb +8 -9
- data/test/rubygems/test_gem_commands_owner_command.rb +3 -3
- data/test/rubygems/test_gem_commands_pristine_command.rb +14 -14
- data/test/rubygems/test_gem_commands_push_command.rb +6 -11
- data/test/rubygems/test_gem_commands_query_command.rb +7 -7
- data/test/rubygems/test_gem_commands_server_command.rb +2 -2
- data/test/rubygems/test_gem_commands_setup_command.rb +21 -21
- data/test/rubygems/test_gem_commands_signin_command.rb +13 -6
- data/test/rubygems/test_gem_commands_sources_command.rb +5 -5
- data/test/rubygems/test_gem_commands_specification_command.rb +6 -6
- data/test/rubygems/test_gem_commands_uninstall_command.rb +4 -4
- data/test/rubygems/test_gem_commands_unpack_command.rb +2 -2
- data/test/rubygems/test_gem_commands_update_command.rb +10 -10
- data/test/rubygems/test_gem_commands_which_command.rb +3 -3
- data/test/rubygems/test_gem_commands_yank_command.rb +1 -1
- data/test/rubygems/test_gem_config_file.rb +9 -9
- data/test/rubygems/test_gem_dependency.rb +12 -6
- data/test/rubygems/test_gem_dependency_installer.rb +4 -4
- data/test/rubygems/test_gem_doctor.rb +30 -30
- data/test/rubygems/test_gem_ext_builder.rb +20 -20
- data/test/rubygems/test_gem_ext_cmake_builder.rb +4 -4
- data/test/rubygems/test_gem_ext_configure_builder.rb +4 -4
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +14 -13
- data/test/rubygems/test_gem_ext_rake_builder.rb +1 -1
- data/test/rubygems/test_gem_gemcutter_utilities.rb +8 -14
- data/test/rubygems/test_gem_install_update_options.rb +9 -9
- data/test/rubygems/test_gem_installer.rb +162 -140
- data/test/rubygems/test_gem_local_remote_options.rb +1 -1
- data/test/rubygems/test_gem_package.rb +48 -48
- data/test/rubygems/test_gem_package_old.rb +9 -9
- data/test/rubygems/test_gem_package_tar_header.rb +5 -5
- data/test/rubygems/test_gem_package_tar_reader_entry.rb +8 -8
- data/test/rubygems/test_gem_package_tar_writer.rb +18 -20
- data/test/rubygems/test_gem_package_task.rb +2 -2
- data/test/rubygems/test_gem_path_support.rb +1 -1
- data/test/rubygems/test_gem_rdoc.rb +9 -9
- data/test/rubygems/test_gem_remote_fetcher.rb +17 -18
- data/test/rubygems/test_gem_request.rb +2 -2
- data/test/rubygems/test_gem_request_connection_pools.rb +1 -1
- data/test/rubygems/test_gem_request_set.rb +15 -14
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +16 -16
- data/test/rubygems/test_gem_request_set_lockfile.rb +3 -3
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +3 -3
- data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +4 -4
- data/test/rubygems/test_gem_requirement.rb +13 -13
- data/test/rubygems/test_gem_resolver.rb +11 -11
- data/test/rubygems/test_gem_resolver_best_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_git_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_git_specification.rb +2 -2
- data/test/rubygems/test_gem_resolver_index_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_installer_set.rb +4 -4
- data/test/rubygems/test_gem_resolver_local_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_vendor_set.rb +2 -2
- data/test/rubygems/test_gem_security.rb +5 -5
- data/test/rubygems/test_gem_security_policy.rb +27 -27
- data/test/rubygems/test_gem_security_signer.rb +7 -7
- data/test/rubygems/test_gem_security_trust_dir.rb +4 -4
- data/test/rubygems/test_gem_server.rb +2 -2
- data/test/rubygems/test_gem_silent_ui.rb +9 -9
- data/test/rubygems/test_gem_source.rb +2 -2
- data/test/rubygems/test_gem_source_fetch_problem.rb +1 -1
- data/test/rubygems/test_gem_source_git.rb +11 -11
- data/test/rubygems/test_gem_source_specific_file.rb +1 -1
- data/test/rubygems/test_gem_spec_fetcher.rb +1 -1
- data/test/rubygems/test_gem_specification.rb +86 -106
- data/test/rubygems/test_gem_stream_ui.rb +1 -1
- data/test/rubygems/test_gem_stub_specification.rb +4 -4
- data/test/rubygems/test_gem_uninstaller.rb +16 -16
- data/test/rubygems/test_gem_util.rb +8 -6
- data/test/rubygems/test_gem_version.rb +4 -13
- data/test/rubygems/test_kernel.rb +6 -4
- data/test/rubygems/test_project_sanity.rb +1 -1
- data/test/rubygems/test_remote_fetch_error.rb +1 -1
- data/test/rubygems/test_require.rb +12 -14
- data/test/test_changelog_generator.rb +1 -2
- metadata +6 -3
@@ -16,7 +16,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
|
16
16
|
fetcher.gem 'a', 2
|
17
17
|
end
|
18
18
|
|
19
|
-
|
19
|
+
assert_path_not_exist File.join(@tempdir, 'cache'), 'sanity check'
|
20
20
|
|
21
21
|
@cmd.options[:args] = %w[a]
|
22
22
|
|
@@ -28,9 +28,9 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
|
28
28
|
|
29
29
|
a2 = specs['a-2']
|
30
30
|
|
31
|
-
|
31
|
+
assert_path_exist(File.join(@tempdir, a2.file_name),
|
32
32
|
"#{a2.full_name} not fetched")
|
33
|
-
|
33
|
+
assert_path_not_exist File.join(@tempdir, 'cache'),
|
34
34
|
'gem repository directories must not be created'
|
35
35
|
end
|
36
36
|
|
@@ -40,7 +40,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
|
40
40
|
fetcher.gem 'a', 2
|
41
41
|
end
|
42
42
|
|
43
|
-
|
43
|
+
assert_path_not_exist File.join(@tempdir, 'cache'), 'sanity check'
|
44
44
|
|
45
45
|
@cmd.options[:args] = %w[a]
|
46
46
|
@cmd.options[:version] = req('>= 0.1')
|
@@ -52,9 +52,9 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
|
52
52
|
end
|
53
53
|
|
54
54
|
a2 = specs['a-2']
|
55
|
-
|
55
|
+
assert_path_exist(File.join(@tempdir, a2.file_name),
|
56
56
|
"#{a2.full_name} not fetched")
|
57
|
-
|
57
|
+
assert_path_not_exist File.join(@tempdir, 'cache'),
|
58
58
|
'gem repository directories must not be created'
|
59
59
|
end
|
60
60
|
|
@@ -75,7 +75,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
|
75
75
|
|
76
76
|
a2 = specs['a-2']
|
77
77
|
|
78
|
-
|
78
|
+
assert_path_exist(File.join(@tempdir, a2.file_name),
|
79
79
|
"#{a2.full_name} not fetched")
|
80
80
|
end
|
81
81
|
|
@@ -97,7 +97,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
|
97
97
|
|
98
98
|
a2_pre = specs['a-2.a']
|
99
99
|
|
100
|
-
|
100
|
+
assert_path_exist(File.join(@tempdir, a2_pre.file_name),
|
101
101
|
"#{a2_pre.full_name} not fetched")
|
102
102
|
end
|
103
103
|
|
@@ -118,7 +118,7 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
|
118
118
|
|
119
119
|
a1 = specs['a-1']
|
120
120
|
|
121
|
-
|
121
|
+
assert_path_exist(File.join(@tempdir, a1.file_name),
|
122
122
|
"#{a1.full_name} not fetched")
|
123
123
|
end
|
124
124
|
end
|
@@ -35,6 +35,13 @@ class TestGemCommandsHelpCommand < Gem::TestCase
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def test_gem_help_build
|
39
|
+
util_gem 'build' do |out, err|
|
40
|
+
assert_match(/-C PATH *Run as if gem build was started in <PATH>/, out)
|
41
|
+
assert_equal '', err
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
38
45
|
def test_gem_help_commands
|
39
46
|
mgr = Gem::CommandManager.new
|
40
47
|
|
@@ -48,7 +55,7 @@ class TestGemCommandsHelpCommand < Gem::TestCase
|
|
48
55
|
if Gem::HAVE_OPENSSL
|
49
56
|
assert_empty err
|
50
57
|
|
51
|
-
refute_match
|
58
|
+
refute_match %r{No command found for }, out
|
52
59
|
end
|
53
60
|
end
|
54
61
|
end
|
@@ -37,7 +37,7 @@ class TestGemCommandsInstallCommand < Gem::TestCase
|
|
37
37
|
@cmd.options[:args] = %w[a]
|
38
38
|
|
39
39
|
use_ui @ui do
|
40
|
-
|
40
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
41
41
|
@cmd.execute
|
42
42
|
end
|
43
43
|
end
|
@@ -59,7 +59,7 @@ class TestGemCommandsInstallCommand < Gem::TestCase
|
|
59
59
|
assert @cmd.options[:version].satisfied_by?(a2_pre.version)
|
60
60
|
|
61
61
|
use_ui @ui do
|
62
|
-
|
62
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
63
63
|
@cmd.execute
|
64
64
|
end
|
65
65
|
end
|
@@ -82,7 +82,7 @@ class TestGemCommandsInstallCommand < Gem::TestCase
|
|
82
82
|
orig_dir = Dir.pwd
|
83
83
|
begin
|
84
84
|
Dir.chdir @tempdir
|
85
|
-
|
85
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
86
86
|
@cmd.execute
|
87
87
|
end
|
88
88
|
ensure
|
@@ -110,7 +110,7 @@ class TestGemCommandsInstallCommand < Gem::TestCase
|
|
110
110
|
orig_dir = Dir.pwd
|
111
111
|
begin
|
112
112
|
Dir.chdir @tempdir
|
113
|
-
e =
|
113
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
114
114
|
@cmd.execute
|
115
115
|
end
|
116
116
|
assert_equal 2, e.exit_code
|
@@ -142,7 +142,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
142
142
|
orig_dir = Dir.pwd
|
143
143
|
begin
|
144
144
|
Dir.chdir orig_dir
|
145
|
-
|
145
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
146
146
|
@cmd.execute
|
147
147
|
end
|
148
148
|
ensure
|
@@ -173,7 +173,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
173
173
|
begin
|
174
174
|
Dir.chdir @tempdir
|
175
175
|
FileUtils.rm_r [@gemhome, "gems"]
|
176
|
-
|
176
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
177
177
|
@cmd.execute
|
178
178
|
end
|
179
179
|
ensure
|
@@ -187,8 +187,8 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
187
187
|
end
|
188
188
|
|
189
189
|
def test_execute_no_user_install
|
190
|
-
|
191
|
-
|
190
|
+
pend 'skipped on MS Windows (chmod has no effect)' if win_platform?
|
191
|
+
pend 'skipped in root privilege' if Process.uid.zero?
|
192
192
|
|
193
193
|
specs = spec_fetcher do |fetcher|
|
194
194
|
fetcher.gem 'a', 2
|
@@ -207,7 +207,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
207
207
|
FileUtils.chmod 0555, @gemhome
|
208
208
|
|
209
209
|
Dir.chdir @tempdir
|
210
|
-
|
210
|
+
assert_raise Gem::FilePermissionError do
|
211
211
|
@cmd.execute
|
212
212
|
end
|
213
213
|
ensure
|
@@ -225,7 +225,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
225
225
|
@cmd.options[:args] = %w[no_such_gem]
|
226
226
|
|
227
227
|
use_ui @ui do
|
228
|
-
e =
|
228
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
229
229
|
@cmd.execute
|
230
230
|
end
|
231
231
|
assert_equal 2, e.exit_code
|
@@ -244,7 +244,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
244
244
|
@cmd.options[:args] = %w[no_such_gem]
|
245
245
|
|
246
246
|
use_ui @ui do
|
247
|
-
e =
|
247
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
248
248
|
@cmd.execute
|
249
249
|
end
|
250
250
|
assert_equal 2, e.exit_code
|
@@ -257,7 +257,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
257
257
|
def test_execute_no_gem
|
258
258
|
@cmd.options[:args] = %w[]
|
259
259
|
|
260
|
-
|
260
|
+
assert_raise Gem::CommandLineError do
|
261
261
|
@cmd.execute
|
262
262
|
end
|
263
263
|
end
|
@@ -268,7 +268,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
268
268
|
@cmd.options[:args] = %w[nonexistent]
|
269
269
|
|
270
270
|
use_ui @ui do
|
271
|
-
e =
|
271
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
272
272
|
@cmd.execute
|
273
273
|
end
|
274
274
|
assert_equal 2, e.exit_code
|
@@ -285,7 +285,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
285
285
|
@cmd.options[:args] = ['foo']
|
286
286
|
|
287
287
|
use_ui @ui do
|
288
|
-
e =
|
288
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
289
289
|
@cmd.execute
|
290
290
|
end
|
291
291
|
|
@@ -301,7 +301,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
301
301
|
|
302
302
|
def test_execute_http_proxy
|
303
303
|
use_ui @ui do
|
304
|
-
e =
|
304
|
+
e = assert_raise ArgumentError, @ui.error do
|
305
305
|
@cmd.handle_options %w[-p=foo.bar.com]
|
306
306
|
end
|
307
307
|
|
@@ -327,7 +327,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
327
327
|
@cmd.options[:args] = %w[nonexistent]
|
328
328
|
|
329
329
|
use_ui @ui do
|
330
|
-
e =
|
330
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
331
331
|
@cmd.execute
|
332
332
|
end
|
333
333
|
assert_equal 2, e.exit_code
|
@@ -351,7 +351,7 @@ ERROR: Could not find a valid gem 'bar' (= 0.5) (required by 'foo' (>= 0)) in a
|
|
351
351
|
@cmd.options[:suggest_alternate] = false
|
352
352
|
|
353
353
|
use_ui @ui do
|
354
|
-
e =
|
354
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
355
355
|
@cmd.execute
|
356
356
|
end
|
357
357
|
|
@@ -376,7 +376,7 @@ ERROR: Could not find a valid gem 'nonexistent_with_hint' (>= 0) in any reposit
|
|
376
376
|
@cmd.options[:args] = [misspelled]
|
377
377
|
|
378
378
|
use_ui @ui do
|
379
|
-
e =
|
379
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
380
380
|
@cmd.execute
|
381
381
|
end
|
382
382
|
|
@@ -401,7 +401,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
401
401
|
@cmd.options[:args] = [misspelled]
|
402
402
|
|
403
403
|
use_ui @ui do
|
404
|
-
e =
|
404
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
405
405
|
@cmd.execute
|
406
406
|
end
|
407
407
|
|
@@ -423,7 +423,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
423
423
|
@cmd.options[:install_dir] = "whatever"
|
424
424
|
|
425
425
|
use_ui @ui do
|
426
|
-
|
426
|
+
assert_raise Gem::MockGemUi::TermError do
|
427
427
|
@cmd.execute
|
428
428
|
end
|
429
429
|
end
|
@@ -443,7 +443,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
443
443
|
@cmd.options[:args] = %w[a]
|
444
444
|
|
445
445
|
use_ui @ui do
|
446
|
-
|
446
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
447
447
|
@cmd.execute
|
448
448
|
end
|
449
449
|
end
|
@@ -461,7 +461,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
461
461
|
@cmd.options[:args] = %w[a]
|
462
462
|
|
463
463
|
use_ui @ui do
|
464
|
-
|
464
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
465
465
|
@cmd.execute
|
466
466
|
end
|
467
467
|
end
|
@@ -478,7 +478,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
478
478
|
@cmd.options[:args] = %w[a:1]
|
479
479
|
|
480
480
|
use_ui @ui do
|
481
|
-
|
481
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
482
482
|
@cmd.execute
|
483
483
|
end
|
484
484
|
end
|
@@ -496,7 +496,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
496
496
|
@cmd.options[:args] = %w[a]
|
497
497
|
|
498
498
|
use_ui @ui do
|
499
|
-
|
499
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
500
500
|
@cmd.execute
|
501
501
|
end
|
502
502
|
end
|
@@ -526,7 +526,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
526
526
|
@cmd.options[:args] = %w[a]
|
527
527
|
|
528
528
|
use_ui @ui do
|
529
|
-
|
529
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
530
530
|
@cmd.execute
|
531
531
|
end
|
532
532
|
end
|
@@ -547,7 +547,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
547
547
|
@cmd.options[:args] = %w[a]
|
548
548
|
|
549
549
|
use_ui @ui do
|
550
|
-
|
550
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
551
551
|
@cmd.execute
|
552
552
|
end
|
553
553
|
end
|
@@ -565,7 +565,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
565
565
|
@cmd.options[:args] = %w[a]
|
566
566
|
|
567
567
|
use_ui @ui do
|
568
|
-
|
568
|
+
assert_raise Gem::MockGemUi::TermError do
|
569
569
|
@cmd.execute
|
570
570
|
end
|
571
571
|
end
|
@@ -585,7 +585,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
585
585
|
@cmd.options[:args] = %w[a]
|
586
586
|
|
587
587
|
use_ui @ui do
|
588
|
-
|
588
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
589
589
|
@cmd.execute
|
590
590
|
end
|
591
591
|
end
|
@@ -605,7 +605,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
605
605
|
@cmd.options[:args] = %w[a]
|
606
606
|
|
607
607
|
use_ui @ui do
|
608
|
-
|
608
|
+
assert_raise Gem::MockGemUi::TermError do
|
609
609
|
@cmd.execute
|
610
610
|
end
|
611
611
|
end
|
@@ -625,7 +625,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
625
625
|
@cmd.options[:args] = %w[a]
|
626
626
|
|
627
627
|
use_ui @ui do
|
628
|
-
|
628
|
+
assert_raise Gem::MockGemUi::TermError do
|
629
629
|
@cmd.execute
|
630
630
|
end
|
631
631
|
end
|
@@ -657,7 +657,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
657
657
|
|
658
658
|
begin
|
659
659
|
Dir.chdir @tempdir
|
660
|
-
|
660
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
661
661
|
@cmd.execute
|
662
662
|
end
|
663
663
|
ensure
|
@@ -667,8 +667,8 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
667
667
|
|
668
668
|
wait_for_child_process_to_exit
|
669
669
|
|
670
|
-
|
671
|
-
|
670
|
+
assert_path_exist File.join(a2.doc_dir, 'ri')
|
671
|
+
assert_path_exist File.join(a2.doc_dir, 'rdoc')
|
672
672
|
end
|
673
673
|
|
674
674
|
def test_execute_rdoc_with_path
|
@@ -694,7 +694,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
694
694
|
|
695
695
|
begin
|
696
696
|
Dir.chdir @tempdir
|
697
|
-
|
697
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
698
698
|
@cmd.execute
|
699
699
|
end
|
700
700
|
ensure
|
@@ -704,7 +704,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
704
704
|
|
705
705
|
wait_for_child_process_to_exit
|
706
706
|
|
707
|
-
|
707
|
+
assert_path_exist 'whatever/doc/a-2', 'documentation not installed'
|
708
708
|
end
|
709
709
|
|
710
710
|
def test_execute_saves_build_args
|
@@ -730,7 +730,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
730
730
|
|
731
731
|
begin
|
732
732
|
Dir.chdir @tempdir
|
733
|
-
|
733
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
734
734
|
@cmd.execute
|
735
735
|
end
|
736
736
|
ensure
|
@@ -739,7 +739,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
739
739
|
end
|
740
740
|
|
741
741
|
path = a2.build_info_file
|
742
|
-
|
742
|
+
assert_path_exist path
|
743
743
|
|
744
744
|
assert_equal args, a2.build_args
|
745
745
|
end
|
@@ -752,7 +752,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
752
752
|
@cmd.options[:args] = %w[a]
|
753
753
|
|
754
754
|
use_ui @ui do
|
755
|
-
|
755
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
756
756
|
@cmd.execute
|
757
757
|
end
|
758
758
|
end
|
@@ -772,7 +772,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
772
772
|
@cmd.options[:args] = %w[a]
|
773
773
|
|
774
774
|
use_ui @ui do
|
775
|
-
|
775
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
776
776
|
@cmd.execute
|
777
777
|
end
|
778
778
|
end
|
@@ -812,7 +812,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
812
812
|
|
813
813
|
use_ui @ui do
|
814
814
|
Dir.chdir @tempdir do
|
815
|
-
|
815
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
816
816
|
@cmd.execute
|
817
817
|
end
|
818
818
|
end
|
@@ -844,7 +844,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
844
844
|
orig_dir = Dir.pwd
|
845
845
|
begin
|
846
846
|
Dir.chdir @tempdir
|
847
|
-
|
847
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
848
848
|
@cmd.execute
|
849
849
|
end
|
850
850
|
ensure
|
@@ -862,7 +862,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
862
862
|
@cmd.options[:version] = Gem::Requirement.new("> 1")
|
863
863
|
|
864
864
|
use_ui @ui do
|
865
|
-
e =
|
865
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
866
866
|
@cmd.execute
|
867
867
|
end
|
868
868
|
|
@@ -889,7 +889,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
889
889
|
@cmd.options[:args] = %w[a:1 b:1]
|
890
890
|
|
891
891
|
use_ui @ui do
|
892
|
-
|
892
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
893
893
|
@cmd.execute
|
894
894
|
end
|
895
895
|
end
|
@@ -912,7 +912,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
912
912
|
orig_dir = Dir.pwd
|
913
913
|
begin
|
914
914
|
Dir.chdir @tempdir
|
915
|
-
|
915
|
+
assert_raise Gem::MockGemUi::SystemExitException do
|
916
916
|
@cmd.execute
|
917
917
|
end
|
918
918
|
ensure
|
@@ -1007,7 +1007,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1007
1007
|
orig_dir = Dir.pwd
|
1008
1008
|
begin
|
1009
1009
|
Dir.chdir @tempdir
|
1010
|
-
e =
|
1010
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
1011
1011
|
@cmd.execute
|
1012
1012
|
end
|
1013
1013
|
ensure
|
@@ -1029,7 +1029,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1029
1029
|
orig_dir = Dir.pwd
|
1030
1030
|
begin
|
1031
1031
|
Dir.chdir @tempdir
|
1032
|
-
e =
|
1032
|
+
e = assert_raise Gem::MockGemUi::TermError do
|
1033
1033
|
@cmd.execute
|
1034
1034
|
end
|
1035
1035
|
ensure
|
@@ -1052,7 +1052,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1052
1052
|
@cmd.options[:args] = %w[a]
|
1053
1053
|
|
1054
1054
|
use_ui @ui do
|
1055
|
-
|
1055
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1056
1056
|
@cmd.execute
|
1057
1057
|
end
|
1058
1058
|
end
|
@@ -1079,7 +1079,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1079
1079
|
@cmd.options[:gemdeps] = @gemdeps
|
1080
1080
|
|
1081
1081
|
use_ui @ui do
|
1082
|
-
|
1082
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1083
1083
|
@cmd.execute
|
1084
1084
|
end
|
1085
1085
|
end
|
@@ -1103,7 +1103,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1103
1103
|
@cmd.options[:gemdeps] = @gemdeps
|
1104
1104
|
|
1105
1105
|
use_ui @ui do
|
1106
|
-
|
1106
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1107
1107
|
@cmd.execute
|
1108
1108
|
end
|
1109
1109
|
end
|
@@ -1128,7 +1128,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1128
1128
|
@cmd.options[:gemdeps] = @gemdeps
|
1129
1129
|
|
1130
1130
|
use_ui @ui do
|
1131
|
-
|
1131
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1132
1132
|
@cmd.execute
|
1133
1133
|
end
|
1134
1134
|
end
|
@@ -1150,7 +1150,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1150
1150
|
@cmd.options[:gemdeps] = @gemdeps
|
1151
1151
|
|
1152
1152
|
use_ui @ui do
|
1153
|
-
|
1153
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1154
1154
|
@cmd.execute
|
1155
1155
|
end
|
1156
1156
|
end
|
@@ -1173,7 +1173,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1173
1173
|
@cmd.options[:gemdeps] = @gemdeps
|
1174
1174
|
|
1175
1175
|
use_ui @ui do
|
1176
|
-
|
1176
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1177
1177
|
@cmd.execute
|
1178
1178
|
end
|
1179
1179
|
end
|
@@ -1200,7 +1200,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1200
1200
|
@cmd.options[:gemdeps] = @gemdeps
|
1201
1201
|
|
1202
1202
|
use_ui @ui do
|
1203
|
-
|
1203
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1204
1204
|
@cmd.execute
|
1205
1205
|
end
|
1206
1206
|
end
|
@@ -1227,7 +1227,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1227
1227
|
@cmd.options[:gemdeps] = @gemdeps
|
1228
1228
|
|
1229
1229
|
use_ui @ui do
|
1230
|
-
|
1230
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1231
1231
|
@cmd.execute
|
1232
1232
|
end
|
1233
1233
|
end
|
@@ -1259,7 +1259,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1259
1259
|
@cmd.options[:gemdeps] = @gemdeps
|
1260
1260
|
|
1261
1261
|
use_ui @ui do
|
1262
|
-
|
1262
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1263
1263
|
@cmd.execute
|
1264
1264
|
end
|
1265
1265
|
end
|
@@ -1294,7 +1294,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1294
1294
|
@cmd.options[:gemdeps] = @gemdeps
|
1295
1295
|
|
1296
1296
|
use_ui @ui do
|
1297
|
-
|
1297
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1298
1298
|
@cmd.execute
|
1299
1299
|
end
|
1300
1300
|
end
|
@@ -1379,7 +1379,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1379
1379
|
@cmd.options[:args] = %w[a]
|
1380
1380
|
|
1381
1381
|
use_ui @ui do
|
1382
|
-
|
1382
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1383
1383
|
@cmd.execute
|
1384
1384
|
end
|
1385
1385
|
end
|
@@ -1406,7 +1406,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1406
1406
|
@cmd.options[:args] = %w[a]
|
1407
1407
|
|
1408
1408
|
use_ui @ui do
|
1409
|
-
|
1409
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1410
1410
|
@cmd.execute
|
1411
1411
|
end
|
1412
1412
|
end
|
@@ -1435,7 +1435,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1435
1435
|
@cmd.options[:args] = %w[a]
|
1436
1436
|
|
1437
1437
|
use_ui @ui do
|
1438
|
-
|
1438
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1439
1439
|
@cmd.execute
|
1440
1440
|
end
|
1441
1441
|
end
|
@@ -1465,7 +1465,7 @@ ERROR: Possible alternatives: non_existent_with_hint
|
|
1465
1465
|
@cmd.options[:args] = %w[a]
|
1466
1466
|
|
1467
1467
|
use_ui @ui do
|
1468
|
-
|
1468
|
+
assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
|
1469
1469
|
@cmd.execute
|
1470
1470
|
end
|
1471
1471
|
end
|