rubygems-update 3.2.23 → 3.2.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -0
  3. data/Manifest.txt +7 -7
  4. data/bundler/CHANGELOG.md +68 -0
  5. data/bundler/lib/bundler/build_metadata.rb +2 -2
  6. data/bundler/lib/bundler/cli/cache.rb +1 -1
  7. data/bundler/lib/bundler/cli/doctor.rb +1 -1
  8. data/bundler/lib/bundler/cli/exec.rb +1 -6
  9. data/bundler/lib/bundler/cli/gem.rb +3 -2
  10. data/bundler/lib/bundler/cli/install.rb +4 -17
  11. data/bundler/lib/bundler/cli/list.rb +7 -1
  12. data/bundler/lib/bundler/cli/open.rb +1 -2
  13. data/bundler/lib/bundler/cli/update.rb +1 -1
  14. data/bundler/lib/bundler/cli.rb +12 -9
  15. data/bundler/lib/bundler/definition.rb +38 -47
  16. data/bundler/lib/bundler/dsl.rb +40 -26
  17. data/bundler/lib/bundler/errors.rb +1 -1
  18. data/bundler/lib/bundler/installer/gem_installer.rb +3 -16
  19. data/bundler/lib/bundler/installer/standalone.rb +14 -9
  20. data/bundler/lib/bundler/installer.rb +0 -1
  21. data/bundler/lib/bundler/lockfile_parser.rb +1 -0
  22. data/bundler/lib/bundler/plugin/index.rb +4 -1
  23. data/bundler/lib/bundler/plugin/installer.rb +2 -0
  24. data/bundler/lib/bundler/plugin.rb +25 -6
  25. data/bundler/lib/bundler/resolver.rb +10 -17
  26. data/bundler/lib/bundler/rubygems_gem_installer.rb +5 -1
  27. data/bundler/lib/bundler/rubygems_integration.rb +2 -0
  28. data/bundler/lib/bundler/runtime.rb +16 -9
  29. data/bundler/lib/bundler/settings.rb +13 -1
  30. data/bundler/lib/bundler/setup.rb +2 -2
  31. data/bundler/lib/bundler/shared_helpers.rb +0 -7
  32. data/bundler/lib/bundler/source/git/git_proxy.rb +1 -2
  33. data/bundler/lib/bundler/source/rubygems.rb +23 -2
  34. data/bundler/lib/bundler/source/rubygems_aggregate.rb +4 -0
  35. data/bundler/lib/bundler/source.rb +4 -0
  36. data/bundler/lib/bundler/source_list.rb +16 -3
  37. data/bundler/lib/bundler/spec_set.rb +14 -37
  38. data/bundler/lib/bundler/templates/Executable.bundler +6 -6
  39. data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +13 -2
  40. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +3 -1
  41. data/bundler/lib/bundler/version.rb +1 -1
  42. data/bundler/lib/bundler/worker.rb +17 -2
  43. data/bundler/lib/bundler.rb +11 -21
  44. data/lib/rubygems/command_manager.rb +3 -3
  45. data/lib/rubygems/commands/build_command.rb +3 -3
  46. data/lib/rubygems/commands/cert_command.rb +2 -2
  47. data/lib/rubygems/commands/check_command.rb +4 -4
  48. data/lib/rubygems/commands/cleanup_command.rb +3 -3
  49. data/lib/rubygems/commands/contents_command.rb +2 -2
  50. data/lib/rubygems/commands/dependency_command.rb +3 -3
  51. data/lib/rubygems/commands/environment_command.rb +1 -1
  52. data/lib/rubygems/commands/fetch_command.rb +3 -3
  53. data/lib/rubygems/commands/generate_index_command.rb +2 -2
  54. data/lib/rubygems/commands/help_command.rb +1 -1
  55. data/lib/rubygems/commands/info_command.rb +2 -2
  56. data/lib/rubygems/commands/install_command.rb +12 -11
  57. data/lib/rubygems/commands/list_command.rb +2 -2
  58. data/lib/rubygems/commands/lock_command.rb +1 -1
  59. data/lib/rubygems/commands/mirror_command.rb +1 -1
  60. data/lib/rubygems/commands/open_command.rb +2 -2
  61. data/lib/rubygems/commands/outdated_command.rb +4 -4
  62. data/lib/rubygems/commands/owner_command.rb +4 -4
  63. data/lib/rubygems/commands/pristine_command.rb +5 -5
  64. data/lib/rubygems/commands/push_command.rb +4 -4
  65. data/lib/rubygems/commands/query_command.rb +3 -3
  66. data/lib/rubygems/commands/rdoc_command.rb +3 -3
  67. data/lib/rubygems/commands/search_command.rb +2 -2
  68. data/lib/rubygems/commands/server_command.rb +3 -3
  69. data/lib/rubygems/commands/setup_command.rb +5 -5
  70. data/lib/rubygems/commands/signin_command.rb +2 -2
  71. data/lib/rubygems/commands/signout_command.rb +1 -1
  72. data/lib/rubygems/commands/sources_command.rb +4 -4
  73. data/lib/rubygems/commands/specification_command.rb +4 -4
  74. data/lib/rubygems/commands/stale_command.rb +1 -1
  75. data/lib/rubygems/commands/uninstall_command.rb +3 -3
  76. data/lib/rubygems/commands/unpack_command.rb +5 -5
  77. data/lib/rubygems/commands/update_command.rb +9 -9
  78. data/lib/rubygems/commands/which_command.rb +1 -1
  79. data/lib/rubygems/commands/yank_command.rb +4 -4
  80. data/lib/rubygems/config_file.rb +5 -5
  81. data/lib/rubygems/dependency_installer.rb +8 -8
  82. data/lib/rubygems/dependency_list.rb +1 -1
  83. data/lib/rubygems/doctor.rb +2 -2
  84. data/lib/rubygems/exceptions.rb +1 -1
  85. data/lib/rubygems/ext/builder.rb +1 -0
  86. data/lib/rubygems/ext/ext_conf_builder.rb +1 -2
  87. data/lib/rubygems/ext/rake_builder.rb +1 -2
  88. data/lib/rubygems/gem_runner.rb +3 -3
  89. data/lib/rubygems/gemcutter_utilities.rb +4 -3
  90. data/lib/rubygems/indexer.rb +2 -2
  91. data/lib/rubygems/install_default_message.rb +2 -2
  92. data/lib/rubygems/install_message.rb +2 -2
  93. data/lib/rubygems/install_update_options.rb +2 -2
  94. data/lib/rubygems/installer.rb +17 -8
  95. data/lib/rubygems/local_remote_options.rb +1 -1
  96. data/lib/rubygems/mock_gem_ui.rb +1 -1
  97. data/lib/rubygems/package/tar_reader.rb +1 -1
  98. data/lib/rubygems/package.rb +12 -12
  99. data/lib/rubygems/package_task.rb +2 -2
  100. data/lib/rubygems/platform.rb +1 -1
  101. data/lib/rubygems/rdoc.rb +1 -1
  102. data/lib/rubygems/remote_fetcher.rb +14 -21
  103. data/lib/rubygems/request.rb +5 -5
  104. data/lib/rubygems/request_set/lockfile/tokenizer.rb +1 -1
  105. data/lib/rubygems/request_set/lockfile.rb +1 -1
  106. data/lib/rubygems/request_set.rb +4 -4
  107. data/lib/rubygems/requirement.rb +3 -22
  108. data/lib/rubygems/resolver/git_specification.rb +1 -1
  109. data/lib/rubygems/resolver/installer_set.rb +3 -3
  110. data/lib/rubygems/resolver/molinillo.rb +1 -1
  111. data/lib/rubygems/resolver/specification.rb +1 -1
  112. data/lib/rubygems/resolver.rb +31 -31
  113. data/lib/rubygems/s3_uri_signer.rb +0 -1
  114. data/lib/rubygems/safe_yaml.rb +0 -2
  115. data/lib/rubygems/security/policy.rb +1 -1
  116. data/lib/rubygems/security/signer.rb +1 -1
  117. data/lib/rubygems/security.rb +5 -5
  118. data/lib/rubygems/security_option.rb +2 -2
  119. data/lib/rubygems/server.rb +2 -2
  120. data/lib/rubygems/source.rb +6 -6
  121. data/lib/rubygems/spec_fetcher.rb +5 -5
  122. data/lib/rubygems/specification.rb +9 -15
  123. data/lib/rubygems/specification_policy.rb +1 -1
  124. data/lib/rubygems/uninstaller.rb +42 -11
  125. data/lib/rubygems/uri.rb +102 -0
  126. data/lib/rubygems/user_interaction.rb +2 -2
  127. data/lib/rubygems/util/licenses.rb +1 -1
  128. data/lib/rubygems/validator.rb +2 -2
  129. data/lib/rubygems/version_option.rb +1 -1
  130. data/lib/rubygems.rb +37 -47
  131. data/rubygems-update.gemspec +1 -1
  132. data/test/rubygems/data/null-type.gemspec.rz +0 -0
  133. data/{lib/rubygems/test_case.rb → test/rubygems/helper.rb} +16 -19
  134. data/{lib → test}/rubygems/installer_test_case.rb +1 -1
  135. data/{lib → test}/rubygems/package/tar_test_case.rb +1 -1
  136. data/test/rubygems/test_bundled_ca.rb +1 -1
  137. data/test/rubygems/test_config.rb +1 -1
  138. data/test/rubygems/test_deprecate.rb +1 -1
  139. data/test/rubygems/test_gem.rb +190 -136
  140. data/test/rubygems/test_gem_available_set.rb +1 -1
  141. data/test/rubygems/test_gem_bundler_version_finder.rb +1 -1
  142. data/test/rubygems/test_gem_command.rb +1 -1
  143. data/test/rubygems/test_gem_command_manager.rb +1 -1
  144. data/test/rubygems/test_gem_commands_build_command.rb +1 -1
  145. data/test/rubygems/test_gem_commands_cert_command.rb +1 -1
  146. data/test/rubygems/test_gem_commands_check_command.rb +1 -1
  147. data/test/rubygems/test_gem_commands_cleanup_command.rb +1 -1
  148. data/test/rubygems/test_gem_commands_contents_command.rb +1 -1
  149. data/test/rubygems/test_gem_commands_dependency_command.rb +1 -1
  150. data/test/rubygems/test_gem_commands_environment_command.rb +1 -1
  151. data/test/rubygems/test_gem_commands_fetch_command.rb +1 -1
  152. data/test/rubygems/test_gem_commands_generate_index_command.rb +1 -1
  153. data/test/rubygems/test_gem_commands_help_command.rb +1 -1
  154. data/test/rubygems/test_gem_commands_info_command.rb +1 -1
  155. data/test/rubygems/test_gem_commands_install_command.rb +26 -1
  156. data/test/rubygems/test_gem_commands_list_command.rb +1 -1
  157. data/test/rubygems/test_gem_commands_lock_command.rb +1 -1
  158. data/test/rubygems/test_gem_commands_mirror.rb +1 -1
  159. data/test/rubygems/test_gem_commands_open_command.rb +1 -1
  160. data/test/rubygems/test_gem_commands_outdated_command.rb +1 -1
  161. data/test/rubygems/test_gem_commands_owner_command.rb +1 -1
  162. data/test/rubygems/test_gem_commands_pristine_command.rb +1 -1
  163. data/test/rubygems/test_gem_commands_push_command.rb +1 -1
  164. data/test/rubygems/test_gem_commands_query_command.rb +1 -1
  165. data/test/rubygems/test_gem_commands_search_command.rb +1 -1
  166. data/test/rubygems/test_gem_commands_server_command.rb +1 -1
  167. data/test/rubygems/test_gem_commands_setup_command.rb +3 -3
  168. data/test/rubygems/test_gem_commands_signin_command.rb +1 -1
  169. data/test/rubygems/test_gem_commands_signout_command.rb +1 -1
  170. data/test/rubygems/test_gem_commands_sources_command.rb +1 -1
  171. data/test/rubygems/test_gem_commands_specification_command.rb +1 -1
  172. data/test/rubygems/test_gem_commands_stale_command.rb +1 -1
  173. data/test/rubygems/test_gem_commands_uninstall_command.rb +1 -1
  174. data/test/rubygems/test_gem_commands_unpack_command.rb +1 -1
  175. data/test/rubygems/test_gem_commands_update_command.rb +1 -1
  176. data/test/rubygems/test_gem_commands_which_command.rb +1 -1
  177. data/test/rubygems/test_gem_commands_yank_command.rb +1 -1
  178. data/test/rubygems/test_gem_config_file.rb +1 -1
  179. data/test/rubygems/test_gem_dependency.rb +1 -1
  180. data/test/rubygems/test_gem_dependency_installer.rb +1 -1
  181. data/test/rubygems/test_gem_dependency_list.rb +1 -1
  182. data/test/rubygems/test_gem_dependency_resolution_error.rb +1 -1
  183. data/test/rubygems/test_gem_doctor.rb +1 -1
  184. data/test/rubygems/test_gem_ext_builder.rb +4 -1
  185. data/test/rubygems/test_gem_ext_cmake_builder.rb +1 -1
  186. data/test/rubygems/test_gem_ext_configure_builder.rb +1 -1
  187. data/test/rubygems/test_gem_ext_ext_conf_builder.rb +1 -1
  188. data/test/rubygems/test_gem_ext_rake_builder.rb +1 -1
  189. data/test/rubygems/test_gem_gem_runner.rb +1 -1
  190. data/test/rubygems/test_gem_gemcutter_utilities.rb +1 -1
  191. data/test/rubygems/test_gem_impossible_dependencies_error.rb +1 -1
  192. data/test/rubygems/test_gem_indexer.rb +1 -1
  193. data/test/rubygems/test_gem_install_update_options.rb +1 -1
  194. data/test/rubygems/test_gem_installer.rb +4 -2
  195. data/test/rubygems/test_gem_local_remote_options.rb +1 -1
  196. data/test/rubygems/test_gem_name_tuple.rb +1 -1
  197. data/test/rubygems/test_gem_package.rb +1 -1
  198. data/test/rubygems/test_gem_package_old.rb +1 -1
  199. data/test/rubygems/test_gem_package_tar_header.rb +1 -1
  200. data/test/rubygems/test_gem_package_tar_reader.rb +1 -1
  201. data/test/rubygems/test_gem_package_tar_reader_entry.rb +1 -1
  202. data/test/rubygems/test_gem_package_tar_writer.rb +1 -1
  203. data/test/rubygems/test_gem_package_task.rb +1 -1
  204. data/test/rubygems/test_gem_path_support.rb +1 -1
  205. data/test/rubygems/test_gem_platform.rb +1 -1
  206. data/test/rubygems/test_gem_rdoc.rb +1 -1
  207. data/test/rubygems/test_gem_remote_fetcher.rb +31 -1
  208. data/test/rubygems/test_gem_request.rb +31 -5
  209. data/test/rubygems/test_gem_request_connection_pools.rb +1 -1
  210. data/test/rubygems/test_gem_request_set.rb +1 -1
  211. data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +1 -1
  212. data/test/rubygems/test_gem_request_set_lockfile.rb +1 -1
  213. data/test/rubygems/test_gem_request_set_lockfile_parser.rb +1 -1
  214. data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +1 -1
  215. data/test/rubygems/test_gem_requirement.rb +35 -1
  216. data/test/rubygems/test_gem_resolver.rb +1 -1
  217. data/test/rubygems/test_gem_resolver_activation_request.rb +1 -1
  218. data/test/rubygems/test_gem_resolver_api_set.rb +1 -1
  219. data/test/rubygems/test_gem_resolver_api_specification.rb +1 -1
  220. data/test/rubygems/test_gem_resolver_best_set.rb +1 -1
  221. data/test/rubygems/test_gem_resolver_composed_set.rb +1 -1
  222. data/test/rubygems/test_gem_resolver_conflict.rb +1 -1
  223. data/test/rubygems/test_gem_resolver_dependency_request.rb +1 -1
  224. data/test/rubygems/test_gem_resolver_git_set.rb +1 -1
  225. data/test/rubygems/test_gem_resolver_git_specification.rb +2 -1
  226. data/test/rubygems/test_gem_resolver_index_set.rb +1 -1
  227. data/test/rubygems/test_gem_resolver_index_specification.rb +1 -1
  228. data/test/rubygems/test_gem_resolver_installed_specification.rb +1 -1
  229. data/test/rubygems/test_gem_resolver_installer_set.rb +19 -1
  230. data/test/rubygems/test_gem_resolver_local_specification.rb +1 -1
  231. data/test/rubygems/test_gem_resolver_lock_set.rb +1 -1
  232. data/test/rubygems/test_gem_resolver_lock_specification.rb +1 -1
  233. data/test/rubygems/test_gem_resolver_requirement_list.rb +1 -1
  234. data/test/rubygems/test_gem_resolver_specification.rb +1 -1
  235. data/test/rubygems/test_gem_resolver_vendor_set.rb +1 -1
  236. data/test/rubygems/test_gem_resolver_vendor_specification.rb +1 -1
  237. data/test/rubygems/test_gem_security.rb +1 -1
  238. data/test/rubygems/test_gem_security_policy.rb +1 -1
  239. data/test/rubygems/test_gem_security_signer.rb +1 -1
  240. data/test/rubygems/test_gem_security_trust_dir.rb +1 -1
  241. data/test/rubygems/test_gem_server.rb +1 -1
  242. data/test/rubygems/test_gem_silent_ui.rb +1 -1
  243. data/test/rubygems/test_gem_source.rb +1 -1
  244. data/test/rubygems/test_gem_source_fetch_problem.rb +1 -1
  245. data/test/rubygems/test_gem_source_git.rb +1 -1
  246. data/test/rubygems/test_gem_source_installed.rb +1 -1
  247. data/test/rubygems/test_gem_source_list.rb +1 -1
  248. data/test/rubygems/test_gem_source_local.rb +1 -1
  249. data/test/rubygems/test_gem_source_lock.rb +1 -1
  250. data/test/rubygems/test_gem_source_specific_file.rb +1 -1
  251. data/test/rubygems/test_gem_source_subpath_problem.rb +1 -1
  252. data/test/rubygems/test_gem_source_vendor.rb +1 -1
  253. data/test/rubygems/test_gem_spec_fetcher.rb +1 -1
  254. data/test/rubygems/test_gem_specification.rb +1 -165
  255. data/test/rubygems/test_gem_stream_ui.rb +1 -1
  256. data/test/rubygems/test_gem_stub_specification.rb +1 -1
  257. data/test/rubygems/test_gem_text.rb +1 -1
  258. data/test/rubygems/test_gem_uninstaller.rb +10 -3
  259. data/test/rubygems/test_gem_unsatisfiable_dependency_error.rb +1 -1
  260. data/test/rubygems/test_gem_uri.rb +32 -0
  261. data/test/rubygems/test_gem_uri_formatter.rb +1 -1
  262. data/test/rubygems/test_gem_util.rb +1 -1
  263. data/test/rubygems/test_gem_validator.rb +1 -1
  264. data/test/rubygems/test_gem_version.rb +1 -1
  265. data/test/rubygems/test_gem_version_option.rb +1 -1
  266. data/test/rubygems/test_kernel.rb +1 -1
  267. data/test/rubygems/test_project_sanity.rb +1 -1
  268. data/test/rubygems/test_remote_fetch_error.rb +1 -1
  269. data/test/rubygems/test_require.rb +1 -1
  270. data/test/rubygems/test_rubygems.rb +44 -0
  271. data/{lib/rubygems/test_utilities.rb → test/rubygems/utilities.rb} +0 -2
  272. metadata +10 -10
  273. data/lib/rubygems/syck_hack.rb +0 -77
  274. data/lib/rubygems/uri_parser.rb +0 -34
  275. data/lib/rubygems/uri_parsing.rb +0 -23
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/available_set'
4
4
  require 'rubygems/security'
5
5
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
 
4
4
  class TestGemBundlerVersionFinder < Gem::TestCase
5
5
  def setup
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/command'
4
4
 
5
5
  class Gem::Command
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/command_manager'
4
4
 
5
5
  class TestGemCommandManager < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/build_command'
4
4
  require 'rubygems/package'
5
5
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/cert_command'
4
4
 
5
5
  unless Gem::HAVE_OPENSSL
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/check_command'
4
4
 
5
5
  class TestGemCommandsCheckCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/cleanup_command'
4
4
  require 'rubygems/installer'
5
5
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/contents_command'
4
4
 
5
5
  class TestGemCommandsContentsCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/dependency_command'
4
4
 
5
5
  class TestGemCommandsDependencyCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/environment_command'
4
4
 
5
5
  class TestGemCommandsEnvironmentCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/package'
4
4
  require 'rubygems/security'
5
5
  require 'rubygems/commands/fetch_command'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/indexer'
4
4
  require 'rubygems/commands/generate_index_command'
5
5
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require "rubygems"
3
- require "rubygems/test_case"
3
+ require_relative "helper"
4
4
  require "rubygems/commands/help_command"
5
5
  require "rubygems/package"
6
6
  require "rubygems/command_manager"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/info_command'
4
4
 
5
5
  class TestGemCommandsInfoCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/install_command'
4
4
  require 'rubygems/request_set'
5
5
  require 'rubygems/rdoc'
@@ -1067,6 +1067,31 @@ ERROR: Possible alternatives: non_existent_with_hint
1067
1067
  assert_equal x, e
1068
1068
  end
1069
1069
 
1070
+ def test_redact_credentials_from_uri_on_warning
1071
+ spec_fetcher do |fetcher|
1072
+ fetcher.download 'a', 2
1073
+ end
1074
+
1075
+ Gem.sources << "http://username:SECURE_TOKEN@nonexistent.example"
1076
+
1077
+ @cmd.options[:args] = %w[a]
1078
+
1079
+ use_ui @ui do
1080
+ assert_raise Gem::MockGemUi::SystemExitException, @ui.error do
1081
+ @cmd.execute
1082
+ end
1083
+ end
1084
+
1085
+ assert_equal %w[a-2], @cmd.installed_specs.map {|spec| spec.full_name }
1086
+
1087
+ assert_match "1 gem installed", @ui.output
1088
+
1089
+ e = @ui.error
1090
+
1091
+ x = "WARNING: Unable to pull data from 'http://username:REDACTED@nonexistent.example': no data for http://username:REDACTED@nonexistent.example/specs.4.8.gz (http://username:REDACTED@nonexistent.example/specs.4.8.gz)\n"
1092
+ assert_equal x, e
1093
+ end
1094
+
1070
1095
  def test_execute_uses_from_a_gemdeps
1071
1096
  spec_fetcher do |fetcher|
1072
1097
  fetcher.gem 'a', 2
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/list_command'
4
4
 
5
5
  class TestGemCommandsListCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/lock_command'
4
4
 
5
5
  class TestGemCommandsLockCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/mirror_command'
4
4
 
5
5
  class TestGemCommandsMirrorCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/open_command'
4
4
 
5
5
  class TestGemCommandsOpenCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/outdated_command'
4
4
 
5
5
  class TestGemCommandsOutdatedCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/owner_command'
4
4
 
5
5
  class TestGemCommandsOwnerCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/pristine_command'
4
4
 
5
5
  class TestGemCommandsPristineCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/push_command'
4
4
 
5
5
  class TestGemCommandsPushCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/query_command'
4
4
 
5
5
  module TestGemCommandsQueryCommandSetup
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/search_command'
4
4
 
5
5
  class TestGemCommandsSearchCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/server_command'
4
4
 
5
5
  class TestGemCommandsServerCommand < Gem::TestCase
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubygems/test_case'
3
+ require_relative 'helper'
4
4
  require 'rubygems/commands/setup_command'
5
5
 
6
6
  class TestGemCommandsSetupCommand < Gem::TestCase
@@ -21,7 +21,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase
21
21
  filelist = %w[
22
22
  bin/gem
23
23
  lib/rubygems.rb
24
- lib/rubygems/test_case.rb
24
+ lib/rubygems/requirement.rb
25
25
  lib/rubygems/ssl_certs/rubygems.org/foo.pem
26
26
  bundler/exe/bundle
27
27
  bundler/exe/bundler
@@ -159,7 +159,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase
159
159
  end
160
160
 
161
161
  def test_files_in
162
- assert_equal %w[rubygems.rb rubygems/ssl_certs/rubygems.org/foo.pem rubygems/test_case.rb],
162
+ assert_equal %w[rubygems.rb rubygems/requirement.rb rubygems/ssl_certs/rubygems.org/foo.pem],
163
163
  @cmd.files_in('lib').sort
164
164
  end
165
165
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/signin_command'
4
4
  require 'rubygems/installer'
5
5
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubygems/test_case'
3
+ require_relative 'helper'
4
4
  require 'rubygems/commands/signout_command'
5
5
  require 'rubygems/installer'
6
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/sources_command'
4
4
 
5
5
  class TestGemCommandsSourcesCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/specification_command'
4
4
 
5
5
  class TestGemCommandsSpecificationCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/stale_command'
4
4
 
5
5
  class TestGemCommandsStaleCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/installer_test_case'
2
+ require_relative 'installer_test_case'
3
3
  require 'rubygems/commands/uninstall_command'
4
4
 
5
5
  class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/unpack_command'
4
4
 
5
5
  class TestGemCommandsUnpackCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/update_command'
4
4
 
5
5
  class TestGemCommandsUpdateCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/which_command'
4
4
 
5
5
  class TestGemCommandsWhichCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/commands/yank_command'
4
4
 
5
5
  class TestGemCommandsYankCommand < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/config_file'
4
4
 
5
5
  class TestGemConfigFile < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/dependency'
4
4
 
5
5
  class TestGemDependency < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/dependency_installer'
4
4
  require 'rubygems/security'
5
5
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/dependency_list'
4
4
 
5
5
  class TestGemDependencyList < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
 
4
4
  class TestGemDependencyResolutionError < Gem::TestCase
5
5
  def setup
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/doctor'
4
4
 
5
5
  class TestGemDoctor < Gem::TestCase
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/test_case'
2
+ require_relative 'helper'
3
3
  require 'rubygems/ext'
4
4
  require 'rubygems/installer'
5
5
 
@@ -106,6 +106,7 @@ install:
106
106
  end
107
107
 
108
108
  def test_build_extensions
109
+ pend if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
109
110
  @spec.extensions << 'ext/extconf.rb'
110
111
 
111
112
  ext_dir = File.join @spec.gem_dir, 'ext'
@@ -141,6 +142,7 @@ install:
141
142
  end
142
143
 
143
144
  def test_build_extensions_with_gemhome_with_space
145
+ pend if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
144
146
  new_gemhome = File.join @tempdir, 'gem home'
145
147
  File.rename(@gemhome, new_gemhome)
146
148
  @gemhome = new_gemhome
@@ -161,6 +163,7 @@ install:
161
163
  false
162
164
  end
163
165
  end
166
+ pend if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
164
167
 
165
168
  @spec.extensions << 'ext/extconf.rb'
166
169