rubygems-update 3.3.25 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/CONTRIBUTING.md +24 -1
  4. data/Manifest.txt +30 -27
  5. data/POLICIES.md +10 -8
  6. data/README.md +2 -2
  7. data/bin/gem +1 -4
  8. data/bin/update_rubygems +1 -1
  9. data/bundler/CHANGELOG.md +58 -0
  10. data/bundler/README.md +2 -2
  11. data/bundler/bundler.gemspec +2 -2
  12. data/bundler/exe/bundle +1 -4
  13. data/bundler/lib/bundler/build_metadata.rb +2 -2
  14. data/bundler/lib/bundler/cli/add.rb +1 -1
  15. data/bundler/lib/bundler/cli/check.rb +1 -1
  16. data/bundler/lib/bundler/cli/common.rb +1 -0
  17. data/bundler/lib/bundler/cli/console.rb +2 -2
  18. data/bundler/lib/bundler/cli/doctor.rb +4 -6
  19. data/bundler/lib/bundler/cli/gem.rb +62 -40
  20. data/bundler/lib/bundler/cli/install.rb +2 -3
  21. data/bundler/lib/bundler/cli/lock.rb +8 -5
  22. data/bundler/lib/bundler/cli/outdated.rb +1 -3
  23. data/bundler/lib/bundler/cli/viz.rb +1 -1
  24. data/bundler/lib/bundler/cli.rb +44 -3
  25. data/bundler/lib/bundler/compact_index_client/cache.rb +1 -1
  26. data/bundler/lib/bundler/compact_index_client/updater.rb +40 -39
  27. data/bundler/lib/bundler/constants.rb +1 -1
  28. data/bundler/lib/bundler/definition.rb +61 -31
  29. data/bundler/lib/bundler/dependency.rb +12 -11
  30. data/bundler/lib/bundler/digest.rb +1 -1
  31. data/bundler/lib/bundler/dsl.rb +1 -1
  32. data/bundler/lib/bundler/env.rb +1 -1
  33. data/bundler/lib/bundler/environment_preserver.rb +1 -0
  34. data/bundler/lib/bundler/errors.rb +1 -11
  35. data/bundler/lib/bundler/fetcher/compact_index.rb +9 -11
  36. data/bundler/lib/bundler/fetcher/dependency.rb +1 -1
  37. data/bundler/lib/bundler/fetcher/downloader.rb +2 -5
  38. data/bundler/lib/bundler/fetcher.rb +2 -6
  39. data/bundler/lib/bundler/force_platform.rb +18 -0
  40. data/bundler/lib/bundler/friendly_errors.rb +0 -3
  41. data/bundler/lib/bundler/gem_version_promoter.rb +52 -86
  42. data/bundler/lib/bundler/graph.rb +3 -3
  43. data/bundler/lib/bundler/index.rb +5 -13
  44. data/bundler/lib/bundler/injector.rb +1 -1
  45. data/bundler/lib/bundler/inline.rb +2 -2
  46. data/bundler/lib/bundler/installer/parallel_installer.rb +0 -31
  47. data/bundler/lib/bundler/installer.rb +6 -16
  48. data/bundler/lib/bundler/lazy_specification.rb +5 -1
  49. data/bundler/lib/bundler/lockfile_parser.rb +5 -5
  50. data/bundler/lib/bundler/man/bundle-add.1 +1 -1
  51. data/bundler/lib/bundler/man/bundle-binstubs.1 +1 -1
  52. data/bundler/lib/bundler/man/bundle-cache.1 +1 -1
  53. data/bundler/lib/bundler/man/bundle-check.1 +1 -1
  54. data/bundler/lib/bundler/man/bundle-clean.1 +2 -2
  55. data/bundler/lib/bundler/man/bundle-clean.1.ronn +1 -1
  56. data/bundler/lib/bundler/man/bundle-config.1 +1 -1
  57. data/bundler/lib/bundler/man/bundle-console.1 +1 -1
  58. data/bundler/lib/bundler/man/bundle-doctor.1 +1 -1
  59. data/bundler/lib/bundler/man/bundle-exec.1 +1 -1
  60. data/bundler/lib/bundler/man/bundle-gem.1 +27 -37
  61. data/bundler/lib/bundler/man/bundle-gem.1.ronn +5 -5
  62. data/bundler/lib/bundler/man/bundle-help.1 +1 -1
  63. data/bundler/lib/bundler/man/bundle-info.1 +1 -1
  64. data/bundler/lib/bundler/man/bundle-init.1 +1 -1
  65. data/bundler/lib/bundler/man/bundle-inject.1 +1 -1
  66. data/bundler/lib/bundler/man/bundle-install.1 +1 -30
  67. data/bundler/lib/bundler/man/bundle-install.1.ronn +0 -29
  68. data/bundler/lib/bundler/man/bundle-list.1 +1 -1
  69. data/bundler/lib/bundler/man/bundle-lock.1 +1 -1
  70. data/bundler/lib/bundler/man/bundle-open.1 +1 -1
  71. data/bundler/lib/bundler/man/bundle-outdated.1 +1 -1
  72. data/bundler/lib/bundler/man/bundle-platform.1 +2 -2
  73. data/bundler/lib/bundler/man/bundle-platform.1.ronn +1 -1
  74. data/bundler/lib/bundler/man/bundle-plugin.1 +1 -1
  75. data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
  76. data/bundler/lib/bundler/man/bundle-remove.1 +1 -1
  77. data/bundler/lib/bundler/man/bundle-show.1 +1 -1
  78. data/bundler/lib/bundler/man/bundle-update.1 +1 -1
  79. data/bundler/lib/bundler/man/bundle-version.1 +1 -1
  80. data/bundler/lib/bundler/man/bundle-viz.1 +1 -1
  81. data/bundler/lib/bundler/man/bundle.1 +1 -1
  82. data/bundler/lib/bundler/man/gemfile.5 +1 -1
  83. data/bundler/lib/bundler/mirror.rb +5 -7
  84. data/bundler/lib/bundler/plugin/index.rb +4 -4
  85. data/bundler/lib/bundler/plugin/installer/rubygems.rb +0 -4
  86. data/bundler/lib/bundler/resolver/base.rb +7 -11
  87. data/bundler/lib/bundler/resolver/candidate.rb +92 -0
  88. data/bundler/lib/bundler/resolver/incompatibility.rb +15 -0
  89. data/bundler/lib/bundler/resolver/package.rb +63 -0
  90. data/bundler/lib/bundler/resolver/root.rb +25 -0
  91. data/bundler/lib/bundler/resolver/spec_group.rb +26 -36
  92. data/bundler/lib/bundler/resolver.rb +285 -277
  93. data/bundler/lib/bundler/rubygems_ext.rb +33 -6
  94. data/bundler/lib/bundler/rubygems_gem_installer.rb +4 -2
  95. data/bundler/lib/bundler/rubygems_integration.rb +1 -9
  96. data/bundler/lib/bundler/runtime.rb +1 -5
  97. data/bundler/lib/bundler/settings.rb +0 -6
  98. data/bundler/lib/bundler/shared_helpers.rb +1 -0
  99. data/bundler/lib/bundler/source/git/git_proxy.rb +190 -67
  100. data/bundler/lib/bundler/source/git.rb +15 -17
  101. data/bundler/lib/bundler/source/metadata.rb +0 -1
  102. data/bundler/lib/bundler/source/path/installer.rb +1 -22
  103. data/bundler/lib/bundler/source/path.rb +5 -5
  104. data/bundler/lib/bundler/source/rubygems.rb +13 -67
  105. data/bundler/lib/bundler/source_list.rb +8 -2
  106. data/bundler/lib/bundler/spec_set.rb +7 -9
  107. data/bundler/lib/bundler/templates/Executable +1 -1
  108. data/bundler/lib/bundler/templates/Executable.bundler +4 -9
  109. data/bundler/lib/bundler/templates/Executable.standalone +2 -0
  110. data/bundler/lib/bundler/templates/newgem/Cargo.toml.tt +7 -0
  111. data/bundler/lib/bundler/templates/newgem/Gemfile.tt +3 -0
  112. data/bundler/lib/bundler/templates/newgem/README.md.tt +6 -4
  113. data/bundler/lib/bundler/templates/newgem/Rakefile.tt +2 -1
  114. data/bundler/lib/bundler/templates/newgem/circleci/config.yml.tt +12 -0
  115. data/bundler/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +15 -0
  116. data/bundler/lib/bundler/templates/newgem/ext/newgem/{extconf.rb.tt → extconf-c.rb.tt} +0 -0
  117. data/bundler/lib/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +6 -0
  118. data/bundler/lib/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +12 -0
  119. data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +10 -0
  120. data/bundler/lib/bundler/templates/newgem/gitignore.tt +3 -0
  121. data/bundler/lib/bundler/templates/newgem/gitlab-ci.yml.tt +8 -0
  122. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +8 -2
  123. data/bundler/lib/bundler/ui/shell.rb +35 -12
  124. data/bundler/lib/bundler/ui/silent.rb +21 -5
  125. data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +3 -3
  126. data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +0 -1
  127. data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +3 -1
  128. data/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb +1350 -408
  129. data/bundler/lib/bundler/vendor/net-http-persistent/README.rdoc +1 -1
  130. data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1 -1
  131. data/bundler/lib/bundler/vendor/pub_grub/LICENSE.txt +21 -0
  132. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +20 -0
  133. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +189 -0
  134. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +182 -0
  135. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +151 -0
  136. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb +43 -0
  137. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +121 -0
  138. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +45 -0
  139. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +19 -0
  140. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +53 -0
  141. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/term.rb +105 -0
  142. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version.rb +3 -0
  143. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +124 -0
  144. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +409 -0
  145. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +240 -0
  146. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +178 -0
  147. data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub.rb +31 -0
  148. data/bundler/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +1 -1
  149. data/bundler/lib/bundler/vendor/uri/lib/uri/common.rb +64 -16
  150. data/bundler/lib/bundler/vendor/uri/lib/uri/file.rb +7 -1
  151. data/bundler/lib/bundler/vendor/uri/lib/uri/ftp.rb +2 -1
  152. data/bundler/lib/bundler/vendor/uri/lib/uri/generic.rb +27 -7
  153. data/bundler/lib/bundler/vendor/uri/lib/uri/http.rb +40 -2
  154. data/bundler/lib/bundler/vendor/uri/lib/uri/https.rb +2 -1
  155. data/bundler/lib/bundler/vendor/uri/lib/uri/ldap.rb +1 -1
  156. data/bundler/lib/bundler/vendor/uri/lib/uri/ldaps.rb +2 -1
  157. data/bundler/lib/bundler/vendor/uri/lib/uri/mailto.rb +2 -2
  158. data/bundler/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +13 -7
  159. data/bundler/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +10 -5
  160. data/bundler/lib/bundler/vendor/uri/lib/uri/version.rb +1 -1
  161. data/bundler/lib/bundler/vendor/uri/lib/uri/ws.rb +1 -2
  162. data/bundler/lib/bundler/vendor/uri/lib/uri/wss.rb +2 -1
  163. data/bundler/lib/bundler/vendor/uri/lib/uri.rb +3 -2
  164. data/bundler/lib/bundler/vendored_persistent.rb +1 -33
  165. data/bundler/lib/bundler/{vendored_tmpdir.rb → vendored_pub_grub.rb} +1 -1
  166. data/bundler/lib/bundler/version.rb +5 -1
  167. data/bundler/lib/bundler/worker.rb +5 -7
  168. data/bundler/lib/bundler.rb +20 -64
  169. data/lib/rubygems/command_manager.rb +2 -2
  170. data/lib/rubygems/commands/fetch_command.rb +1 -1
  171. data/lib/rubygems/commands/install_command.rb +7 -3
  172. data/lib/rubygems/commands/rdoc_command.rb +3 -2
  173. data/lib/rubygems/commands/setup_command.rb +2 -2
  174. data/lib/rubygems/commands/unpack_command.rb +1 -1
  175. data/lib/rubygems/commands/update_command.rb +1 -7
  176. data/lib/rubygems/config_file.rb +33 -0
  177. data/lib/rubygems/core_ext/kernel_warn.rb +1 -2
  178. data/lib/rubygems/defaults.rb +15 -1
  179. data/lib/rubygems/dependency.rb +4 -1
  180. data/lib/rubygems/dependency_installer.rb +24 -24
  181. data/lib/rubygems/exceptions.rb +1 -3
  182. data/lib/rubygems/ext/builder.rb +3 -3
  183. data/lib/rubygems/ext/cargo_builder/link_flag_converter.rb +9 -5
  184. data/lib/rubygems/ext/cargo_builder.rb +18 -19
  185. data/lib/rubygems/ext/ext_conf_builder.rb +2 -0
  186. data/lib/rubygems/indexer.rb +1 -1
  187. data/lib/rubygems/installer.rb +5 -5
  188. data/lib/rubygems/optparse/lib/optparse.rb +20 -15
  189. data/lib/rubygems/package/tar_header.rb +11 -11
  190. data/lib/rubygems/platform.rb +0 -2
  191. data/lib/rubygems/request_set/gem_dependency_api.rb +104 -104
  192. data/lib/rubygems/requirement.rb +7 -7
  193. data/lib/rubygems/resolver/installer_set.rb +1 -1
  194. data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb +1 -1
  195. data/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb +32 -26
  196. data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +1 -1
  197. data/lib/rubygems/security/policies.rb +40 -40
  198. data/lib/rubygems/security/trust_dir.rb +1 -1
  199. data/lib/rubygems/security.rb +3 -16
  200. data/lib/rubygems/source.rb +2 -2
  201. data/lib/rubygems/specification.rb +37 -49
  202. data/lib/rubygems/specification_policy.rb +14 -0
  203. data/lib/rubygems/stub_specification.rb +2 -2
  204. data/lib/rubygems/text.rb +1 -1
  205. data/lib/rubygems/tsort/lib/tsort.rb +308 -310
  206. data/lib/rubygems/update_suggestion.rb +69 -0
  207. data/lib/rubygems/util.rb +1 -5
  208. data/lib/rubygems/validator.rb +1 -1
  209. data/lib/rubygems.rb +8 -3
  210. data/rubygems-update.gemspec +2 -2
  211. data/test/rubygems/helper.rb +7 -3
  212. data/test/rubygems/test_bundled_ca.rb +1 -1
  213. data/test/rubygems/test_exit.rb +6 -0
  214. data/test/rubygems/test_gem.rb +4 -9
  215. data/test/rubygems/test_gem_bundler_version_finder.rb +2 -1
  216. data/test/rubygems/test_gem_command_manager.rb +1 -1
  217. data/test/rubygems/test_gem_commands_install_command.rb +19 -0
  218. data/test/rubygems/test_gem_commands_setup_command.rb +1 -8
  219. data/test/rubygems/test_gem_commands_update_command.rb +6 -6
  220. data/test/rubygems/test_gem_config_file.rb +1 -1
  221. data/test/rubygems/test_gem_dependency.rb +2 -0
  222. data/test/rubygems/test_gem_ext_builder.rb +3 -3
  223. data/test/rubygems/test_gem_ext_cargo_builder/custom_name/Cargo.lock +22 -32
  224. data/test/rubygems/test_gem_ext_cargo_builder/custom_name/Cargo.toml +1 -1
  225. data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/Cargo.lock +22 -32
  226. data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/Cargo.toml +1 -1
  227. data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/src/lib.rs +12 -0
  228. data/test/rubygems/test_gem_ext_cargo_builder.rb +22 -27
  229. data/test/rubygems/test_gem_ext_cargo_builder_link_flag_converter.rb +16 -16
  230. data/test/rubygems/test_gem_ext_cargo_builder_unit.rb +0 -10
  231. data/test/rubygems/test_gem_indexer.rb +39 -20
  232. data/test/rubygems/test_gem_installer.rb +68 -2
  233. data/test/rubygems/test_gem_package_tar_header.rb +13 -13
  234. data/test/rubygems/test_gem_platform.rb +59 -60
  235. data/test/rubygems/test_gem_remote_fetcher.rb +4 -4
  236. data/test/rubygems/test_gem_request_set.rb +2 -2
  237. data/test/rubygems/test_gem_requirement.rb +1 -1
  238. data/test/rubygems/test_gem_resolver_api_set.rb +12 -12
  239. data/test/rubygems/test_gem_resolver_api_specification.rb +19 -19
  240. data/test/rubygems/test_gem_resolver_git_specification.rb +1 -1
  241. data/test/rubygems/test_gem_security_policy.rb +10 -10
  242. data/test/rubygems/test_gem_security_trust_dir.rb +2 -2
  243. data/test/rubygems/test_gem_specification.rb +50 -37
  244. data/test/rubygems/test_gem_uninstaller.rb +1 -1
  245. data/test/rubygems/test_gem_update_suggestion.rb +208 -0
  246. data/test/rubygems/test_kernel.rb +10 -8
  247. data/test/rubygems/test_require.rb +70 -55
  248. metadata +34 -31
  249. data/bundler/lib/bundler/templates/newgem/travis.yml.tt +0 -6
  250. data/bundler/lib/bundler/vendor/molinillo/LICENSE +0 -9
  251. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +0 -57
  252. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +0 -88
  253. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +0 -36
  254. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +0 -66
  255. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +0 -62
  256. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +0 -63
  257. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +0 -61
  258. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +0 -126
  259. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +0 -46
  260. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +0 -36
  261. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +0 -164
  262. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +0 -255
  263. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +0 -149
  264. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +0 -6
  265. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +0 -112
  266. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +0 -67
  267. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +0 -839
  268. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +0 -46
  269. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +0 -58
  270. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo.rb +0 -11
  271. data/bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb +0 -154
  272. data/bundler/lib/bundler/vendored_molinillo.rb +0 -4
  273. data/bundler/lib/bundler/version_ranges.rb +0 -122
@@ -1,67 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Bundler::Molinillo
4
- # Conveys information about the resolution process to a user.
5
- module UI
6
- # The {IO} object that should be used to print output. `STDOUT`, by default.
7
- #
8
- # @return [IO]
9
- def output
10
- STDOUT
11
- end
12
-
13
- # Called roughly every {#progress_rate}, this method should convey progress
14
- # to the user.
15
- #
16
- # @return [void]
17
- def indicate_progress
18
- output.print '.' unless debug?
19
- end
20
-
21
- # How often progress should be conveyed to the user via
22
- # {#indicate_progress}, in seconds. A third of a second, by default.
23
- #
24
- # @return [Float]
25
- def progress_rate
26
- 0.33
27
- end
28
-
29
- # Called before resolution begins.
30
- #
31
- # @return [void]
32
- def before_resolution
33
- output.print 'Resolving dependencies...'
34
- end
35
-
36
- # Called after resolution ends (either successfully or with an error).
37
- # By default, prints a newline.
38
- #
39
- # @return [void]
40
- def after_resolution
41
- output.puts
42
- end
43
-
44
- # Conveys debug information to the user.
45
- #
46
- # @param [Integer] depth the current depth of the resolution process.
47
- # @return [void]
48
- def debug(depth = 0)
49
- if debug?
50
- debug_info = yield
51
- debug_info = debug_info.inspect unless debug_info.is_a?(String)
52
- debug_info = debug_info.split("\n").map { |s| ":#{depth.to_s.rjust 4}: #{s}" }
53
- output.puts debug_info
54
- end
55
- end
56
-
57
- # Whether or not debug messages should be printed.
58
- # By default, whether or not the `MOLINILLO_DEBUG` environment variable is
59
- # set.
60
- #
61
- # @return [Boolean]
62
- def debug?
63
- return @debug_mode if defined?(@debug_mode)
64
- @debug_mode = ENV['MOLINILLO_DEBUG']
65
- end
66
- end
67
- end