rubygems-update 2.5.1 → 2.5.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
- data/.travis.yml +46 -0
- data/CONTRIBUTING.rdoc +98 -27
- data/History.txt +44 -1
- data/MAINTAINERS.md +4 -0
- data/Manifest.txt +4 -0
- data/POLICIES.rdoc +61 -0
- data/appveyor.yml +6 -1
- data/lib/gauntlet_rubygems.rb +1 -0
- data/lib/rubygems.rb +3 -2
- data/lib/rubygems/available_set.rb +1 -0
- data/lib/rubygems/basic_specification.rb +4 -4
- data/lib/rubygems/command.rb +7 -2
- data/lib/rubygems/command_manager.rb +1 -0
- data/lib/rubygems/commands/build_command.rb +5 -0
- data/lib/rubygems/commands/cert_command.rb +1 -0
- data/lib/rubygems/commands/check_command.rb +1 -0
- data/lib/rubygems/commands/cleanup_command.rb +1 -0
- data/lib/rubygems/commands/contents_command.rb +1 -0
- data/lib/rubygems/commands/dependency_command.rb +3 -2
- data/lib/rubygems/commands/environment_command.rb +3 -3
- data/lib/rubygems/commands/fetch_command.rb +1 -0
- data/lib/rubygems/commands/generate_index_command.rb +1 -0
- data/lib/rubygems/commands/help_command.rb +1 -0
- data/lib/rubygems/commands/install_command.rb +1 -0
- data/lib/rubygems/commands/list_command.rb +1 -0
- data/lib/rubygems/commands/lock_command.rb +1 -0
- data/lib/rubygems/commands/mirror_command.rb +1 -0
- data/lib/rubygems/commands/open_command.rb +1 -0
- data/lib/rubygems/commands/outdated_command.rb +1 -0
- data/lib/rubygems/commands/owner_command.rb +1 -0
- data/lib/rubygems/commands/pristine_command.rb +1 -0
- data/lib/rubygems/commands/push_command.rb +1 -0
- data/lib/rubygems/commands/query_command.rb +12 -5
- data/lib/rubygems/commands/rdoc_command.rb +1 -0
- data/lib/rubygems/commands/search_command.rb +1 -0
- data/lib/rubygems/commands/server_command.rb +1 -0
- data/lib/rubygems/commands/setup_command.rb +1 -0
- data/lib/rubygems/commands/sources_command.rb +1 -0
- data/lib/rubygems/commands/specification_command.rb +1 -0
- data/lib/rubygems/commands/stale_command.rb +1 -0
- data/lib/rubygems/commands/uninstall_command.rb +1 -0
- data/lib/rubygems/commands/unpack_command.rb +1 -0
- data/lib/rubygems/commands/update_command.rb +1 -0
- data/lib/rubygems/commands/which_command.rb +1 -0
- data/lib/rubygems/commands/yank_command.rb +11 -15
- data/lib/rubygems/compatibility.rb +1 -0
- data/lib/rubygems/config_file.rb +6 -4
- data/lib/rubygems/core_ext/kernel_gem.rb +1 -0
- data/lib/rubygems/core_ext/kernel_require.rb +1 -0
- data/lib/rubygems/defaults.rb +1 -0
- data/lib/rubygems/dependency.rb +3 -2
- data/lib/rubygems/dependency_installer.rb +1 -0
- data/lib/rubygems/dependency_list.rb +1 -0
- data/lib/rubygems/deprecate.rb +1 -0
- data/lib/rubygems/doctor.rb +1 -0
- data/lib/rubygems/errors.rb +1 -0
- data/lib/rubygems/exceptions.rb +2 -2
- data/lib/rubygems/ext.rb +1 -0
- data/lib/rubygems/ext/build_error.rb +1 -0
- data/lib/rubygems/ext/builder.rb +1 -0
- data/lib/rubygems/ext/cmake_builder.rb +1 -0
- data/lib/rubygems/ext/configure_builder.rb +1 -0
- data/lib/rubygems/ext/ext_conf_builder.rb +15 -4
- data/lib/rubygems/ext/rake_builder.rb +1 -0
- data/lib/rubygems/gem_runner.rb +1 -0
- data/lib/rubygems/gemcutter_utilities.rb +9 -3
- data/lib/rubygems/indexer.rb +1 -0
- data/lib/rubygems/install_default_message.rb +1 -0
- data/lib/rubygems/install_message.rb +1 -0
- data/lib/rubygems/install_update_options.rb +6 -0
- data/lib/rubygems/installer.rb +12 -5
- data/lib/rubygems/installer_test_case.rb +1 -0
- data/lib/rubygems/local_remote_options.rb +2 -1
- data/lib/rubygems/mock_gem_ui.rb +1 -0
- data/lib/rubygems/name_tuple.rb +2 -1
- data/lib/rubygems/package.rb +3 -2
- data/lib/rubygems/package/digest_io.rb +1 -0
- data/lib/rubygems/package/file_source.rb +1 -0
- data/lib/rubygems/package/io_source.rb +1 -0
- data/lib/rubygems/package/old.rb +4 -4
- data/lib/rubygems/package/source.rb +1 -0
- data/lib/rubygems/package/tar_header.rb +1 -0
- data/lib/rubygems/package/tar_reader.rb +1 -0
- data/lib/rubygems/package/tar_reader/entry.rb +1 -0
- data/lib/rubygems/package/tar_test_case.rb +1 -0
- data/lib/rubygems/package/tar_writer.rb +1 -0
- data/lib/rubygems/package_task.rb +1 -0
- data/lib/rubygems/path_support.rb +15 -5
- data/lib/rubygems/platform.rb +1 -0
- data/lib/rubygems/psych_additions.rb +1 -0
- data/lib/rubygems/psych_tree.rb +1 -0
- data/lib/rubygems/rdoc.rb +1 -0
- data/lib/rubygems/remote_fetcher.rb +1 -0
- data/lib/rubygems/request.rb +3 -2
- data/lib/rubygems/request/connection_pools.rb +1 -0
- data/lib/rubygems/request/http_pool.rb +1 -0
- data/lib/rubygems/request/https_pool.rb +1 -0
- data/lib/rubygems/request_set.rb +14 -8
- data/lib/rubygems/request_set/gem_dependency_api.rb +54 -6
- data/lib/rubygems/request_set/lockfile.rb +3 -3
- data/lib/rubygems/request_set/lockfile/parser.rb +18 -9
- data/lib/rubygems/request_set/lockfile/tokenizer.rb +1 -0
- data/lib/rubygems/requirement.rb +1 -0
- data/lib/rubygems/resolver.rb +2 -0
- data/lib/rubygems/resolver/activation_request.rb +18 -5
- data/lib/rubygems/resolver/api_set.rb +1 -0
- data/lib/rubygems/resolver/api_specification.rb +1 -0
- data/lib/rubygems/resolver/best_set.rb +1 -0
- data/lib/rubygems/resolver/composed_set.rb +1 -0
- data/lib/rubygems/resolver/conflict.rb +1 -0
- data/lib/rubygems/resolver/current_set.rb +1 -0
- data/lib/rubygems/resolver/dependency_request.rb +1 -0
- data/lib/rubygems/resolver/git_set.rb +1 -0
- data/lib/rubygems/resolver/git_specification.rb +1 -0
- data/lib/rubygems/resolver/index_set.rb +1 -0
- data/lib/rubygems/resolver/index_specification.rb +1 -0
- data/lib/rubygems/resolver/installed_specification.rb +1 -0
- data/lib/rubygems/resolver/installer_set.rb +1 -0
- data/lib/rubygems/resolver/local_specification.rb +1 -0
- data/lib/rubygems/resolver/lock_set.rb +4 -5
- data/lib/rubygems/resolver/lock_specification.rb +6 -2
- data/lib/rubygems/resolver/molinillo.rb +1 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo.rb +5 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb +10 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb +6 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +3 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb +1 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb +2 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb +3 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb +8 -7
- data/lib/rubygems/resolver/requirement_list.rb +1 -0
- data/lib/rubygems/resolver/set.rb +1 -0
- data/lib/rubygems/resolver/source_set.rb +48 -0
- data/lib/rubygems/resolver/spec_specification.rb +1 -0
- data/lib/rubygems/resolver/specification.rb +1 -0
- data/lib/rubygems/resolver/stats.rb +1 -0
- data/lib/rubygems/resolver/vendor_set.rb +1 -0
- data/lib/rubygems/resolver/vendor_specification.rb +1 -0
- data/lib/rubygems/security.rb +3 -2
- data/lib/rubygems/security/policies.rb +1 -0
- data/lib/rubygems/security/policy.rb +2 -2
- data/lib/rubygems/security/signer.rb +1 -0
- data/lib/rubygems/security/trust_dir.rb +1 -0
- data/lib/rubygems/server.rb +1 -0
- data/lib/rubygems/source.rb +1 -0
- data/lib/rubygems/source/git.rb +1 -0
- data/lib/rubygems/source/installed.rb +1 -0
- data/lib/rubygems/source/local.rb +1 -0
- data/lib/rubygems/source/lock.rb +1 -0
- data/lib/rubygems/source/specific_file.rb +1 -0
- data/lib/rubygems/source/vendor.rb +1 -0
- data/lib/rubygems/source_list.rb +2 -1
- data/lib/rubygems/source_local.rb +1 -0
- data/lib/rubygems/source_specific_file.rb +1 -0
- data/lib/rubygems/spec_fetcher.rb +1 -0
- data/lib/rubygems/specification.rb +11 -6
- data/lib/rubygems/stub_specification.rb +1 -0
- data/lib/rubygems/syck_hack.rb +1 -0
- data/lib/rubygems/test_case.rb +15 -3
- data/lib/rubygems/test_utilities.rb +1 -0
- data/lib/rubygems/text.rb +1 -1
- data/lib/rubygems/uninstaller.rb +1 -0
- data/lib/rubygems/uri_formatter.rb +1 -0
- data/lib/rubygems/user_interaction.rb +1 -0
- data/lib/rubygems/util.rb +2 -1
- data/lib/rubygems/util/licenses.rb +14 -0
- data/lib/rubygems/util/list.rb +1 -0
- data/lib/rubygems/validator.rb +1 -0
- data/lib/rubygems/version.rb +5 -1
- data/lib/rubygems/version_option.rb +1 -0
- data/lib/ubygems.rb +1 -0
- data/setup.rb +1 -0
- data/test/rubygems/bad_rake.rb +1 -0
- data/test/rubygems/bogussources.rb +1 -0
- data/test/rubygems/fake_certlib/openssl.rb +1 -0
- data/test/rubygems/fix_openssl_warnings.rb +1 -0
- data/test/rubygems/foo/discover.rb +1 -0
- data/test/rubygems/good_rake.rb +1 -0
- data/test/rubygems/plugin/exception/rubygems_plugin.rb +1 -0
- data/test/rubygems/plugin/load/rubygems_plugin.rb +1 -0
- data/test/rubygems/plugin/standarderror/rubygems_plugin.rb +1 -0
- data/test/rubygems/rubygems/commands/crash_command.rb +1 -0
- data/test/rubygems/rubygems_plugin.rb +1 -0
- data/test/rubygems/sff/discover.rb +1 -0
- data/test/rubygems/simple_gem.rb +1 -0
- data/test/rubygems/test_bundled_ca.rb +39 -40
- data/test/rubygems/test_config.rb +1 -0
- data/test/rubygems/test_deprecate.rb +1 -0
- data/test/rubygems/test_gem.rb +1 -1
- data/test/rubygems/test_gem_available_set.rb +1 -0
- data/test/rubygems/test_gem_command.rb +1 -0
- data/test/rubygems/test_gem_command_manager.rb +1 -0
- data/test/rubygems/test_gem_commands_build_command.rb +11 -0
- data/test/rubygems/test_gem_commands_cert_command.rb +1 -0
- data/test/rubygems/test_gem_commands_check_command.rb +1 -0
- data/test/rubygems/test_gem_commands_cleanup_command.rb +1 -0
- data/test/rubygems/test_gem_commands_contents_command.rb +1 -0
- data/test/rubygems/test_gem_commands_dependency_command.rb +1 -0
- data/test/rubygems/test_gem_commands_environment_command.rb +1 -0
- data/test/rubygems/test_gem_commands_fetch_command.rb +1 -0
- data/test/rubygems/test_gem_commands_generate_index_command.rb +1 -0
- data/test/rubygems/test_gem_commands_help_command.rb +1 -0
- data/test/rubygems/test_gem_commands_install_command.rb +1 -0
- data/test/rubygems/test_gem_commands_list_command.rb +1 -0
- data/test/rubygems/test_gem_commands_lock_command.rb +1 -0
- data/test/rubygems/test_gem_commands_mirror.rb +1 -0
- data/test/rubygems/test_gem_commands_open_command.rb +1 -0
- data/test/rubygems/test_gem_commands_outdated_command.rb +1 -0
- data/test/rubygems/test_gem_commands_owner_command.rb +1 -0
- data/test/rubygems/test_gem_commands_pristine_command.rb +1 -0
- data/test/rubygems/test_gem_commands_push_command.rb +28 -0
- data/test/rubygems/test_gem_commands_query_command.rb +24 -0
- data/test/rubygems/test_gem_commands_search_command.rb +1 -0
- data/test/rubygems/test_gem_commands_server_command.rb +1 -0
- data/test/rubygems/test_gem_commands_setup_command.rb +1 -1
- data/test/rubygems/test_gem_commands_sources_command.rb +1 -0
- data/test/rubygems/test_gem_commands_specification_command.rb +1 -0
- data/test/rubygems/test_gem_commands_stale_command.rb +1 -0
- data/test/rubygems/test_gem_commands_uninstall_command.rb +1 -0
- data/test/rubygems/test_gem_commands_unpack_command.rb +1 -0
- data/test/rubygems/test_gem_commands_update_command.rb +1 -0
- data/test/rubygems/test_gem_commands_which_command.rb +1 -0
- data/test/rubygems/test_gem_commands_yank_command.rb +13 -10
- data/test/rubygems/test_gem_config_file.rb +24 -0
- data/test/rubygems/test_gem_dependency.rb +1 -0
- data/test/rubygems/test_gem_dependency_installer.rb +1 -0
- data/test/rubygems/test_gem_dependency_list.rb +1 -0
- data/test/rubygems/test_gem_dependency_resolution_error.rb +1 -0
- data/test/rubygems/test_gem_doctor.rb +1 -0
- data/test/rubygems/test_gem_ext_builder.rb +6 -1
- data/test/rubygems/test_gem_ext_cmake_builder.rb +1 -0
- data/test/rubygems/test_gem_ext_configure_builder.rb +1 -0
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +1 -0
- data/test/rubygems/test_gem_ext_rake_builder.rb +1 -0
- data/test/rubygems/test_gem_gem_runner.rb +1 -0
- data/test/rubygems/test_gem_gemcutter_utilities.rb +1 -0
- data/test/rubygems/test_gem_impossible_dependencies_error.rb +1 -0
- data/test/rubygems/test_gem_indexer.rb +1 -0
- data/test/rubygems/test_gem_install_update_options.rb +13 -0
- data/test/rubygems/test_gem_installer.rb +17 -4
- data/test/rubygems/test_gem_local_remote_options.rb +1 -0
- data/test/rubygems/test_gem_name_tuple.rb +1 -0
- data/test/rubygems/test_gem_package.rb +16 -9
- data/test/rubygems/test_gem_package_old.rb +1 -0
- data/test/rubygems/test_gem_package_tar_header.rb +1 -0
- data/test/rubygems/test_gem_package_tar_reader.rb +1 -0
- data/test/rubygems/test_gem_package_tar_reader_entry.rb +2 -1
- data/test/rubygems/test_gem_package_tar_writer.rb +1 -0
- data/test/rubygems/test_gem_package_task.rb +1 -0
- data/test/rubygems/test_gem_path_support.rb +1 -0
- data/test/rubygems/test_gem_platform.rb +1 -0
- data/test/rubygems/test_gem_rdoc.rb +1 -0
- data/test/rubygems/test_gem_remote_fetcher.rb +1 -0
- data/test/rubygems/test_gem_request.rb +1 -0
- data/test/rubygems/test_gem_request_connection_pools.rb +1 -0
- data/test/rubygems/test_gem_request_set.rb +3 -2
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +34 -45
- data/test/rubygems/test_gem_request_set_lockfile.rb +1 -0
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +9 -3
- data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +1 -0
- data/test/rubygems/test_gem_requirement.rb +1 -0
- data/test/rubygems/test_gem_resolver.rb +1 -0
- data/test/rubygems/test_gem_resolver_activation_request.rb +1 -0
- data/test/rubygems/test_gem_resolver_api_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_api_specification.rb +1 -0
- data/test/rubygems/test_gem_resolver_best_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_composed_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_conflict.rb +1 -0
- data/test/rubygems/test_gem_resolver_dependency_request.rb +1 -0
- data/test/rubygems/test_gem_resolver_git_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_git_specification.rb +1 -0
- data/test/rubygems/test_gem_resolver_index_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_index_specification.rb +1 -0
- data/test/rubygems/test_gem_resolver_installed_specification.rb +1 -0
- data/test/rubygems/test_gem_resolver_installer_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_local_specification.rb +1 -0
- data/test/rubygems/test_gem_resolver_lock_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_lock_specification.rb +7 -6
- data/test/rubygems/test_gem_resolver_requirement_list.rb +1 -0
- data/test/rubygems/test_gem_resolver_specification.rb +1 -0
- data/test/rubygems/test_gem_resolver_vendor_set.rb +1 -0
- data/test/rubygems/test_gem_resolver_vendor_specification.rb +1 -0
- data/test/rubygems/test_gem_security.rb +1 -0
- data/test/rubygems/test_gem_security_policy.rb +1 -0
- data/test/rubygems/test_gem_security_signer.rb +1 -0
- data/test/rubygems/test_gem_security_trust_dir.rb +1 -0
- data/test/rubygems/test_gem_server.rb +1 -0
- data/test/rubygems/test_gem_silent_ui.rb +1 -0
- data/test/rubygems/test_gem_source.rb +1 -0
- data/test/rubygems/test_gem_source_fetch_problem.rb +1 -0
- data/test/rubygems/test_gem_source_git.rb +1 -0
- data/test/rubygems/test_gem_source_installed.rb +1 -0
- data/test/rubygems/test_gem_source_list.rb +1 -0
- data/test/rubygems/test_gem_source_local.rb +1 -0
- data/test/rubygems/test_gem_source_lock.rb +1 -0
- data/test/rubygems/test_gem_source_specific_file.rb +1 -0
- data/test/rubygems/test_gem_source_vendor.rb +1 -0
- data/test/rubygems/test_gem_spec_fetcher.rb +1 -0
- data/test/rubygems/test_gem_specification.rb +80 -64
- data/test/rubygems/test_gem_stream_ui.rb +1 -0
- data/test/rubygems/test_gem_stub_specification.rb +1 -0
- data/test/rubygems/test_gem_text.rb +1 -0
- data/test/rubygems/test_gem_uninstaller.rb +1 -0
- data/test/rubygems/test_gem_unsatisfiable_dependency_error.rb +1 -0
- data/test/rubygems/test_gem_uri_formatter.rb +1 -0
- data/test/rubygems/test_gem_util.rb +1 -0
- data/test/rubygems/test_gem_validator.rb +1 -0
- data/test/rubygems/test_gem_version.rb +1 -0
- data/test/rubygems/test_gem_version_option.rb +1 -0
- data/test/rubygems/test_kernel.rb +1 -0
- data/test/rubygems/test_require.rb +2 -1
- data/util/create_certs.rb +1 -0
- data/util/create_encrypted_key.rb +1 -0
- data/util/generate_spdx_license_list.rb +15 -0
- data/util/update_bundled_ca_certificates.rb +1 -1
- metadata +12 -28
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gemtest +0 -0
- metadata.gz.sig +0 -2
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
require 'rubygems/test_case'
|
2
3
|
require 'rubygems/installer'
|
3
4
|
require 'rubygems/resolver'
|
@@ -14,7 +15,7 @@ class TestGemResolverLockSpecification < Gem::TestCase
|
|
14
15
|
end
|
15
16
|
|
16
17
|
def test_initialize
|
17
|
-
spec = @LS.new @set, 'a', v(2), @source, Gem::Platform::RUBY
|
18
|
+
spec = @LS.new @set, 'a', v(2), [@source], Gem::Platform::RUBY
|
18
19
|
|
19
20
|
assert_equal 'a', spec.name
|
20
21
|
assert_equal v(2), spec.version
|
@@ -24,7 +25,7 @@ class TestGemResolverLockSpecification < Gem::TestCase
|
|
24
25
|
end
|
25
26
|
|
26
27
|
def test_add_dependency
|
27
|
-
l_spec = @LS.new @set, 'a', v(2), @source, Gem::Platform::RUBY
|
28
|
+
l_spec = @LS.new @set, 'a', v(2), [@source], Gem::Platform::RUBY
|
28
29
|
|
29
30
|
b_dep = dep('b', '>= 0')
|
30
31
|
|
@@ -38,7 +39,7 @@ class TestGemResolverLockSpecification < Gem::TestCase
|
|
38
39
|
fetcher.download 'a', 2
|
39
40
|
end
|
40
41
|
|
41
|
-
spec = @LS.new @set, 'a', v(2), @source, Gem::Platform::RUBY
|
42
|
+
spec = @LS.new @set, 'a', v(2), [@source], Gem::Platform::RUBY
|
42
43
|
|
43
44
|
called = false
|
44
45
|
|
@@ -50,7 +51,7 @@ class TestGemResolverLockSpecification < Gem::TestCase
|
|
50
51
|
end
|
51
52
|
|
52
53
|
def test_install_installed
|
53
|
-
spec = @LS.new @set, 'a', v(2), @source, Gem::Platform::RUBY
|
54
|
+
spec = @LS.new @set, 'a', v(2), [@source], Gem::Platform::RUBY
|
54
55
|
|
55
56
|
FileUtils.touch File.join(@gemhome, 'specifications', spec.spec.spec_name)
|
56
57
|
|
@@ -66,7 +67,7 @@ class TestGemResolverLockSpecification < Gem::TestCase
|
|
66
67
|
def test_spec
|
67
68
|
version = v(2)
|
68
69
|
|
69
|
-
l_spec = @LS.new @set, 'a', version, @source, Gem::Platform::RUBY
|
70
|
+
l_spec = @LS.new @set, 'a', version, [@source], Gem::Platform::RUBY
|
70
71
|
|
71
72
|
b_dep = dep 'b', '>= 0'
|
72
73
|
c_dep = dep 'c', '~> 1'
|
@@ -90,7 +91,7 @@ class TestGemResolverLockSpecification < Gem::TestCase
|
|
90
91
|
|
91
92
|
version = v(2)
|
92
93
|
|
93
|
-
l_spec = @LS.new @set, 'a', version, @source, Gem::Platform::RUBY
|
94
|
+
l_spec = @LS.new @set, 'a', version, [@source], Gem::Platform::RUBY
|
94
95
|
|
95
96
|
assert_same real_spec, l_spec.spec
|
96
97
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
require 'benchmark'
|
2
3
|
require 'rubygems/test_case'
|
3
4
|
require 'pathname'
|
@@ -1001,7 +1002,7 @@ dependencies: []
|
|
1001
1002
|
silence_warnings { Encoding.default_internal = 'US-ASCII' }
|
1002
1003
|
|
1003
1004
|
spec2 = @a2.dup
|
1004
|
-
bin = "\u5678"
|
1005
|
+
bin = "\u5678".dup
|
1005
1006
|
spec2.authors = [bin]
|
1006
1007
|
full_path = spec2.spec_file
|
1007
1008
|
write_file full_path do |io|
|
@@ -2283,30 +2284,30 @@ dependencies: []
|
|
2283
2284
|
# stub: a 2 ruby lib\0other
|
2284
2285
|
|
2285
2286
|
Gem::Specification.new do |s|
|
2286
|
-
s.name = "a"
|
2287
|
+
s.name = "a".freeze
|
2287
2288
|
s.version = "2"
|
2288
2289
|
|
2289
|
-
s.required_rubygems_version = Gem::Requirement.new(\"> 0\") if s.respond_to? :required_rubygems_version=
|
2290
|
-
s.require_paths = ["lib", "other"]
|
2291
|
-
s.authors = ["A User"]
|
2290
|
+
s.required_rubygems_version = Gem::Requirement.new(\"> 0\".freeze) if s.respond_to? :required_rubygems_version=
|
2291
|
+
s.require_paths = ["lib".freeze, "other".freeze]
|
2292
|
+
s.authors = ["A User".freeze]
|
2292
2293
|
s.date = "#{Gem::Specification::TODAY.strftime "%Y-%m-%d"}"
|
2293
|
-
s.description = "This is a test description"
|
2294
|
-
s.email = "example@example.com"
|
2295
|
-
s.files = ["lib/code.rb"]
|
2296
|
-
s.homepage = "http://example.com"
|
2297
|
-
s.rubygems_version = "#{Gem::VERSION}"
|
2298
|
-
s.summary = "this is a summary"
|
2294
|
+
s.description = "This is a test description".freeze
|
2295
|
+
s.email = "example@example.com".freeze
|
2296
|
+
s.files = ["lib/code.rb".freeze]
|
2297
|
+
s.homepage = "http://example.com".freeze
|
2298
|
+
s.rubygems_version = "#{Gem::VERSION}".freeze
|
2299
|
+
s.summary = "this is a summary".freeze
|
2299
2300
|
|
2300
2301
|
if s.respond_to? :specification_version then
|
2301
2302
|
s.specification_version = #{Gem::Specification::CURRENT_SPECIFICATION_VERSION}
|
2302
2303
|
|
2303
2304
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
2304
|
-
s.add_runtime_dependency(%q<b
|
2305
|
+
s.add_runtime_dependency(%q<b>.freeze, [\"= 1\"])
|
2305
2306
|
else
|
2306
|
-
s.add_dependency(%q<b
|
2307
|
+
s.add_dependency(%q<b>.freeze, [\"= 1\"])
|
2307
2308
|
end
|
2308
2309
|
else
|
2309
|
-
s.add_dependency(%q<b
|
2310
|
+
s.add_dependency(%q<b>.freeze, [\"= 1\"])
|
2310
2311
|
end
|
2311
2312
|
end
|
2312
2313
|
SPEC
|
@@ -2332,18 +2333,18 @@ end
|
|
2332
2333
|
# stub: a 2 ruby lib
|
2333
2334
|
|
2334
2335
|
Gem::Specification.new do |s|
|
2335
|
-
s.name = "a"
|
2336
|
+
s.name = "a".freeze
|
2336
2337
|
s.version = "2"
|
2337
2338
|
|
2338
|
-
s.required_rubygems_version = Gem::Requirement.new(\"> 0\") if s.respond_to? :required_rubygems_version=
|
2339
|
-
s.require_paths = ["lib"]
|
2340
|
-
s.authors = ["A User"]
|
2339
|
+
s.required_rubygems_version = Gem::Requirement.new(\"> 0\".freeze) if s.respond_to? :required_rubygems_version=
|
2340
|
+
s.require_paths = ["lib".freeze]
|
2341
|
+
s.authors = ["A User".freeze]
|
2341
2342
|
s.date = "#{Gem::Specification::TODAY.strftime "%Y-%m-%d"}"
|
2342
|
-
s.description = "This is a test description"
|
2343
|
-
s.email = "example@example.com"
|
2344
|
-
s.homepage = "http://example.com"
|
2345
|
-
s.rubygems_version = "#{Gem::VERSION}"
|
2346
|
-
s.summary = "this is a summary"
|
2343
|
+
s.description = "This is a test description".freeze
|
2344
|
+
s.email = "example@example.com".freeze
|
2345
|
+
s.homepage = "http://example.com".freeze
|
2346
|
+
s.rubygems_version = "#{Gem::VERSION}".freeze
|
2347
|
+
s.summary = "this is a summary".freeze
|
2347
2348
|
|
2348
2349
|
s.installed_by_version = "#{Gem::VERSION}" if s.respond_to? :installed_by_version
|
2349
2350
|
|
@@ -2351,12 +2352,12 @@ Gem::Specification.new do |s|
|
|
2351
2352
|
s.specification_version = #{Gem::Specification::CURRENT_SPECIFICATION_VERSION}
|
2352
2353
|
|
2353
2354
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
2354
|
-
s.add_runtime_dependency(%q<b
|
2355
|
+
s.add_runtime_dependency(%q<b>.freeze, [\"= 1\"])
|
2355
2356
|
else
|
2356
|
-
s.add_dependency(%q<b
|
2357
|
+
s.add_dependency(%q<b>.freeze, [\"= 1\"])
|
2357
2358
|
end
|
2358
2359
|
else
|
2359
|
-
s.add_dependency(%q<b
|
2360
|
+
s.add_dependency(%q<b>.freeze, [\"= 1\"])
|
2360
2361
|
end
|
2361
2362
|
end
|
2362
2363
|
SPEC
|
@@ -2388,43 +2389,43 @@ end
|
|
2388
2389
|
# stub: #{extensions}
|
2389
2390
|
|
2390
2391
|
Gem::Specification.new do |s|
|
2391
|
-
s.name = "a"
|
2392
|
+
s.name = "a".freeze
|
2392
2393
|
s.version = "1"
|
2393
2394
|
s.platform = Gem::Platform.new(#{expected_platform})
|
2394
2395
|
|
2395
|
-
s.required_rubygems_version = Gem::Requirement.new(\">= 0\") if s.respond_to? :required_rubygems_version=
|
2396
|
-
s.require_paths = ["lib"]
|
2397
|
-
s.authors = ["A User"]
|
2396
|
+
s.required_rubygems_version = Gem::Requirement.new(\">= 0\".freeze) if s.respond_to? :required_rubygems_version=
|
2397
|
+
s.require_paths = ["lib".freeze]
|
2398
|
+
s.authors = ["A User".freeze]
|
2398
2399
|
s.date = "#{Gem::Specification::TODAY.strftime "%Y-%m-%d"}"
|
2399
|
-
s.description = "This is a test description"
|
2400
|
-
s.email = "example@example.com"
|
2401
|
-
s.executables = ["exec"]
|
2402
|
-
s.extensions = ["ext/a/extconf.rb"]
|
2403
|
-
s.files = ["bin/exec", "ext/a/extconf.rb", "lib/code.rb", "test/suite.rb"]
|
2404
|
-
s.homepage = "http://example.com"
|
2405
|
-
s.licenses = ["MIT"]
|
2406
|
-
s.requirements = ["A working computer"]
|
2407
|
-
s.rubyforge_project = "example"
|
2408
|
-
s.rubygems_version = "#{Gem::VERSION}"
|
2409
|
-
s.summary = "this is a summary"
|
2410
|
-
s.test_files = ["test/suite.rb"]
|
2400
|
+
s.description = "This is a test description".freeze
|
2401
|
+
s.email = "example@example.com".freeze
|
2402
|
+
s.executables = ["exec".freeze]
|
2403
|
+
s.extensions = ["ext/a/extconf.rb".freeze]
|
2404
|
+
s.files = ["bin/exec".freeze, "ext/a/extconf.rb".freeze, "lib/code.rb".freeze, "test/suite.rb".freeze]
|
2405
|
+
s.homepage = "http://example.com".freeze
|
2406
|
+
s.licenses = ["MIT".freeze]
|
2407
|
+
s.requirements = ["A working computer".freeze]
|
2408
|
+
s.rubyforge_project = "example".freeze
|
2409
|
+
s.rubygems_version = "#{Gem::VERSION}".freeze
|
2410
|
+
s.summary = "this is a summary".freeze
|
2411
|
+
s.test_files = ["test/suite.rb".freeze]
|
2411
2412
|
|
2412
2413
|
if s.respond_to? :specification_version then
|
2413
2414
|
s.specification_version = 4
|
2414
2415
|
|
2415
2416
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
2416
|
-
s.add_runtime_dependency(%q<rake
|
2417
|
-
s.add_runtime_dependency(%q<jabber4r
|
2418
|
-
s.add_runtime_dependency(%q<pqa
|
2417
|
+
s.add_runtime_dependency(%q<rake>.freeze, [\"> 0.4\"])
|
2418
|
+
s.add_runtime_dependency(%q<jabber4r>.freeze, [\"> 0.0.0\"])
|
2419
|
+
s.add_runtime_dependency(%q<pqa>.freeze, [\"<= 0.6\", \"> 0.4\"])
|
2419
2420
|
else
|
2420
|
-
s.add_dependency(%q<rake
|
2421
|
-
s.add_dependency(%q<jabber4r
|
2422
|
-
s.add_dependency(%q<pqa
|
2421
|
+
s.add_dependency(%q<rake>.freeze, [\"> 0.4\"])
|
2422
|
+
s.add_dependency(%q<jabber4r>.freeze, [\"> 0.0.0\"])
|
2423
|
+
s.add_dependency(%q<pqa>.freeze, [\"<= 0.6\", \"> 0.4\"])
|
2423
2424
|
end
|
2424
2425
|
else
|
2425
|
-
s.add_dependency(%q<rake
|
2426
|
-
s.add_dependency(%q<jabber4r
|
2427
|
-
s.add_dependency(%q<pqa
|
2426
|
+
s.add_dependency(%q<rake>.freeze, [\"> 0.4\"])
|
2427
|
+
s.add_dependency(%q<jabber4r>.freeze, [\"> 0.0.0\"])
|
2428
|
+
s.add_dependency(%q<pqa>.freeze, [\"<= 0.6\", \"> 0.4\"])
|
2428
2429
|
end
|
2429
2430
|
end
|
2430
2431
|
SPEC
|
@@ -2905,7 +2906,7 @@ http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
|
|
2905
2906
|
end
|
2906
2907
|
|
2907
2908
|
assert_match <<-warning, @ui.error
|
2908
|
-
WARNING:
|
2909
|
+
WARNING: license value 'BSD' is invalid. Use a license identifier from
|
2909
2910
|
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
|
2910
2911
|
warning
|
2911
2912
|
end
|
@@ -2941,15 +2942,30 @@ http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
|
|
2941
2942
|
end
|
2942
2943
|
|
2943
2944
|
assert_match <<-warning, @ui.error
|
2944
|
-
WARNING:
|
2945
|
+
WARNING: license value 'GPL-2.0+ FOO' is invalid. Use a license identifier from
|
2945
2946
|
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
|
2946
2947
|
warning
|
2947
2948
|
assert_match <<-warning, @ui.error
|
2948
|
-
WARNING:
|
2949
|
+
WARNING: license value 'GPL-2.0 FOO' is invalid. Use a license identifier from
|
2949
2950
|
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
|
2950
2951
|
warning
|
2951
2952
|
end
|
2952
2953
|
|
2954
|
+
def test_validate_license_gives_suggestions
|
2955
|
+
util_setup_validate
|
2956
|
+
|
2957
|
+
use_ui @ui do
|
2958
|
+
@a1.licenses = ['ruby']
|
2959
|
+
@a1.validate
|
2960
|
+
end
|
2961
|
+
|
2962
|
+
assert_match <<-warning, @ui.error
|
2963
|
+
WARNING: license value 'ruby' is invalid. Use a license identifier from
|
2964
|
+
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
|
2965
|
+
Did you mean 'Ruby'?
|
2966
|
+
warning
|
2967
|
+
end
|
2968
|
+
|
2953
2969
|
def test_validate_name
|
2954
2970
|
util_setup_validate
|
2955
2971
|
|
@@ -3278,20 +3294,20 @@ http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
|
|
3278
3294
|
# stub: m 1 ruby lib
|
3279
3295
|
|
3280
3296
|
Gem::Specification.new do |s|
|
3281
|
-
s.name = "m"
|
3297
|
+
s.name = "m".freeze
|
3282
3298
|
s.version = "1"
|
3283
3299
|
|
3284
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
3300
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
3285
3301
|
s.metadata = { "one" => "two", "two" => "three" } if s.respond_to? :metadata=
|
3286
|
-
s.require_paths = ["lib"]
|
3287
|
-
s.authors = ["A User"]
|
3302
|
+
s.require_paths = ["lib".freeze]
|
3303
|
+
s.authors = ["A User".freeze]
|
3288
3304
|
s.date = "#{Gem::Specification::TODAY.strftime("%Y-%m-%d")}"
|
3289
|
-
s.description = "This is a test description"
|
3290
|
-
s.email = "example@example.com"
|
3291
|
-
s.files = ["lib/code.rb"]
|
3292
|
-
s.homepage = "http://example.com"
|
3293
|
-
s.rubygems_version = "#{Gem::VERSION}"
|
3294
|
-
s.summary = "this is a summary"
|
3305
|
+
s.description = "This is a test description".freeze
|
3306
|
+
s.email = "example@example.com".freeze
|
3307
|
+
s.files = ["lib/code.rb".freeze]
|
3308
|
+
s.homepage = "http://example.com".freeze
|
3309
|
+
s.rubygems_version = "#{Gem::VERSION}".freeze
|
3310
|
+
s.summary = "this is a summary".freeze
|
3295
3311
|
end
|
3296
3312
|
EOF
|
3297
3313
|
|