rubygems-update 3.2.13 → 3.2.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -8
  3. data/CONTRIBUTING.md +2 -2
  4. data/Manifest.txt +3 -0
  5. data/Rakefile +8 -14
  6. data/bundler/CHANGELOG.md +85 -5
  7. data/bundler/bundler.gemspec +2 -3
  8. data/bundler/lib/bundler.rb +1 -0
  9. data/bundler/lib/bundler/build_metadata.rb +2 -2
  10. data/bundler/lib/bundler/cli.rb +16 -35
  11. data/bundler/lib/bundler/cli/common.rb +15 -2
  12. data/bundler/lib/bundler/cli/gem.rb +9 -1
  13. data/bundler/lib/bundler/cli/outdated.rb +8 -11
  14. data/bundler/lib/bundler/compact_index_client/updater.rb +10 -6
  15. data/bundler/lib/bundler/current_ruby.rb +1 -0
  16. data/bundler/lib/bundler/definition.rb +40 -87
  17. data/bundler/lib/bundler/dsl.rb +3 -6
  18. data/bundler/lib/bundler/feature_flag.rb +0 -2
  19. data/bundler/lib/bundler/fetcher.rb +2 -1
  20. data/bundler/lib/bundler/fetcher/downloader.rb +8 -4
  21. data/bundler/lib/bundler/friendly_errors.rb +1 -1
  22. data/bundler/lib/bundler/gem_helper.rb +16 -0
  23. data/bundler/lib/bundler/index.rb +1 -2
  24. data/bundler/lib/bundler/injector.rb +2 -2
  25. data/bundler/lib/bundler/inline.rb +1 -1
  26. data/bundler/lib/bundler/installer/parallel_installer.rb +36 -15
  27. data/bundler/lib/bundler/lazy_specification.rb +6 -1
  28. data/bundler/lib/bundler/lockfile_parser.rb +2 -16
  29. data/bundler/lib/bundler/man/bundle-add.1 +1 -1
  30. data/bundler/lib/bundler/man/bundle-binstubs.1 +1 -1
  31. data/bundler/lib/bundler/man/bundle-cache.1 +1 -1
  32. data/bundler/lib/bundler/man/bundle-check.1 +1 -1
  33. data/bundler/lib/bundler/man/bundle-clean.1 +1 -1
  34. data/bundler/lib/bundler/man/bundle-config.1 +21 -10
  35. data/bundler/lib/bundler/man/bundle-config.1.ronn +21 -11
  36. data/bundler/lib/bundler/man/bundle-doctor.1 +1 -1
  37. data/bundler/lib/bundler/man/bundle-exec.1 +1 -1
  38. data/bundler/lib/bundler/man/bundle-gem.1 +1 -1
  39. data/bundler/lib/bundler/man/bundle-info.1 +1 -1
  40. data/bundler/lib/bundler/man/bundle-init.1 +1 -1
  41. data/bundler/lib/bundler/man/bundle-inject.1 +1 -1
  42. data/bundler/lib/bundler/man/bundle-install.1 +1 -1
  43. data/bundler/lib/bundler/man/bundle-list.1 +1 -1
  44. data/bundler/lib/bundler/man/bundle-lock.1 +1 -1
  45. data/bundler/lib/bundler/man/bundle-open.1 +1 -1
  46. data/bundler/lib/bundler/man/bundle-outdated.1 +1 -1
  47. data/bundler/lib/bundler/man/bundle-platform.1 +1 -1
  48. data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
  49. data/bundler/lib/bundler/man/bundle-remove.1 +1 -1
  50. data/bundler/lib/bundler/man/bundle-show.1 +1 -1
  51. data/bundler/lib/bundler/man/bundle-update.1 +1 -1
  52. data/bundler/lib/bundler/man/bundle-viz.1 +1 -1
  53. data/bundler/lib/bundler/man/bundle.1 +1 -1
  54. data/bundler/lib/bundler/man/gemfile.5 +1 -1
  55. data/bundler/lib/bundler/plugin.rb +2 -2
  56. data/bundler/lib/bundler/plugin/api/source.rb +21 -0
  57. data/bundler/lib/bundler/resolver.rb +13 -96
  58. data/bundler/lib/bundler/resolver/spec_group.rb +0 -24
  59. data/bundler/lib/bundler/retry.rb +1 -1
  60. data/bundler/lib/bundler/rubygems_ext.rb +2 -2
  61. data/bundler/lib/bundler/settings.rb +60 -11
  62. data/bundler/lib/bundler/source.rb +15 -0
  63. data/bundler/lib/bundler/source/metadata.rb +0 -4
  64. data/bundler/lib/bundler/source/path.rb +3 -1
  65. data/bundler/lib/bundler/source/path/installer.rb +1 -1
  66. data/bundler/lib/bundler/source/rubygems.rb +37 -10
  67. data/bundler/lib/bundler/source/rubygems_aggregate.rb +64 -0
  68. data/bundler/lib/bundler/source_list.rb +37 -8
  69. data/bundler/lib/bundler/source_map.rb +58 -0
  70. data/bundler/lib/bundler/spec_set.rb +18 -5
  71. data/bundler/lib/bundler/templates/Gemfile +1 -1
  72. data/bundler/lib/bundler/templates/gems.rb +1 -1
  73. data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +2 -4
  74. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +1 -1
  75. data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -1
  76. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +1 -1
  77. data/bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb +1 -1
  78. data/bundler/lib/bundler/version.rb +1 -1
  79. data/lib/rubygems.rb +4 -4
  80. data/lib/rubygems/commands/install_command.rb +1 -1
  81. data/lib/rubygems/commands/open_command.rb +1 -1
  82. data/lib/rubygems/commands/update_command.rb +21 -3
  83. data/lib/rubygems/commands/yank_command.rb +1 -1
  84. data/lib/rubygems/defaults.rb +1 -1
  85. data/lib/rubygems/deprecate.rb +3 -1
  86. data/lib/rubygems/ext/ext_conf_builder.rb +4 -4
  87. data/lib/rubygems/indexer.rb +1 -1
  88. data/lib/rubygems/installer.rb +5 -2
  89. data/lib/rubygems/package.rb +1 -8
  90. data/lib/rubygems/platform.rb +3 -7
  91. data/lib/rubygems/remote_fetcher.rb +3 -8
  92. data/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb +1 -1
  93. data/lib/rubygems/security/trust_dir.rb +1 -0
  94. data/lib/rubygems/specification.rb +0 -2
  95. data/lib/rubygems/test_case.rb +102 -18
  96. data/lib/rubygems/test_utilities.rb +1 -1
  97. data/rubygems-update.gemspec +1 -1
  98. data/test/rubygems/packages/ascii_binder-0.1.10.1.gem +0 -0
  99. data/test/rubygems/test_bundled_ca.rb +2 -2
  100. data/test/rubygems/test_deprecate.rb +49 -5
  101. data/test/rubygems/test_gem.rb +33 -31
  102. data/test/rubygems/test_gem_bundler_version_finder.rb +2 -2
  103. data/test/rubygems/test_gem_command.rb +1 -1
  104. data/test/rubygems/test_gem_command_manager.rb +5 -5
  105. data/test/rubygems/test_gem_commands_build_command.rb +10 -10
  106. data/test/rubygems/test_gem_commands_cert_command.rb +36 -36
  107. data/test/rubygems/test_gem_commands_check_command.rb +5 -5
  108. data/test/rubygems/test_gem_commands_cleanup_command.rb +24 -24
  109. data/test/rubygems/test_gem_commands_contents_command.rb +3 -3
  110. data/test/rubygems/test_gem_commands_dependency_command.rb +2 -2
  111. data/test/rubygems/test_gem_commands_environment_command.rb +1 -1
  112. data/test/rubygems/test_gem_commands_fetch_command.rb +9 -9
  113. data/test/rubygems/test_gem_commands_help_command.rb +1 -1
  114. data/test/rubygems/test_gem_commands_install_command.rb +60 -60
  115. data/test/rubygems/test_gem_commands_list_command.rb +1 -1
  116. data/test/rubygems/test_gem_commands_lock_command.rb +1 -1
  117. data/test/rubygems/test_gem_commands_open_command.rb +8 -9
  118. data/test/rubygems/test_gem_commands_owner_command.rb +3 -3
  119. data/test/rubygems/test_gem_commands_pristine_command.rb +14 -14
  120. data/test/rubygems/test_gem_commands_push_command.rb +6 -6
  121. data/test/rubygems/test_gem_commands_query_command.rb +7 -7
  122. data/test/rubygems/test_gem_commands_server_command.rb +2 -2
  123. data/test/rubygems/test_gem_commands_setup_command.rb +21 -21
  124. data/test/rubygems/test_gem_commands_signin_command.rb +6 -6
  125. data/test/rubygems/test_gem_commands_sources_command.rb +5 -5
  126. data/test/rubygems/test_gem_commands_specification_command.rb +6 -6
  127. data/test/rubygems/test_gem_commands_uninstall_command.rb +4 -4
  128. data/test/rubygems/test_gem_commands_unpack_command.rb +2 -2
  129. data/test/rubygems/test_gem_commands_update_command.rb +38 -11
  130. data/test/rubygems/test_gem_commands_which_command.rb +3 -3
  131. data/test/rubygems/test_gem_commands_yank_command.rb +1 -1
  132. data/test/rubygems/test_gem_config_file.rb +9 -9
  133. data/test/rubygems/test_gem_dependency.rb +6 -6
  134. data/test/rubygems/test_gem_dependency_installer.rb +4 -4
  135. data/test/rubygems/test_gem_doctor.rb +30 -30
  136. data/test/rubygems/test_gem_ext_builder.rb +20 -20
  137. data/test/rubygems/test_gem_ext_cmake_builder.rb +4 -4
  138. data/test/rubygems/test_gem_ext_configure_builder.rb +4 -4
  139. data/test/rubygems/test_gem_ext_ext_conf_builder.rb +14 -13
  140. data/test/rubygems/test_gem_ext_rake_builder.rb +1 -1
  141. data/test/rubygems/test_gem_gemcutter_utilities.rb +8 -8
  142. data/test/rubygems/test_gem_install_update_options.rb +9 -9
  143. data/test/rubygems/test_gem_installer.rb +162 -140
  144. data/test/rubygems/test_gem_local_remote_options.rb +1 -1
  145. data/test/rubygems/test_gem_package.rb +49 -49
  146. data/test/rubygems/test_gem_package_old.rb +9 -9
  147. data/test/rubygems/test_gem_package_tar_header.rb +5 -5
  148. data/test/rubygems/test_gem_package_tar_reader_entry.rb +8 -8
  149. data/test/rubygems/test_gem_package_tar_writer.rb +18 -20
  150. data/test/rubygems/test_gem_package_task.rb +2 -2
  151. data/test/rubygems/test_gem_path_support.rb +1 -1
  152. data/test/rubygems/test_gem_platform.rb +0 -29
  153. data/test/rubygems/test_gem_rdoc.rb +9 -9
  154. data/test/rubygems/test_gem_remote_fetcher.rb +53 -22
  155. data/test/rubygems/test_gem_request.rb +2 -2
  156. data/test/rubygems/test_gem_request_connection_pools.rb +1 -1
  157. data/test/rubygems/test_gem_request_set.rb +15 -14
  158. data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +16 -16
  159. data/test/rubygems/test_gem_request_set_lockfile.rb +3 -3
  160. data/test/rubygems/test_gem_request_set_lockfile_parser.rb +3 -3
  161. data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +4 -4
  162. data/test/rubygems/test_gem_requirement.rb +13 -13
  163. data/test/rubygems/test_gem_resolver.rb +11 -11
  164. data/test/rubygems/test_gem_resolver_best_set.rb +1 -1
  165. data/test/rubygems/test_gem_resolver_git_set.rb +1 -1
  166. data/test/rubygems/test_gem_resolver_git_specification.rb +2 -2
  167. data/test/rubygems/test_gem_resolver_index_specification.rb +1 -1
  168. data/test/rubygems/test_gem_resolver_installer_set.rb +4 -4
  169. data/test/rubygems/test_gem_resolver_local_specification.rb +1 -1
  170. data/test/rubygems/test_gem_resolver_specification.rb +1 -1
  171. data/test/rubygems/test_gem_resolver_vendor_set.rb +2 -2
  172. data/test/rubygems/test_gem_security.rb +5 -5
  173. data/test/rubygems/test_gem_security_policy.rb +27 -27
  174. data/test/rubygems/test_gem_security_signer.rb +7 -7
  175. data/test/rubygems/test_gem_security_trust_dir.rb +4 -4
  176. data/test/rubygems/test_gem_server.rb +2 -2
  177. data/test/rubygems/test_gem_silent_ui.rb +9 -9
  178. data/test/rubygems/test_gem_source.rb +2 -2
  179. data/test/rubygems/test_gem_source_fetch_problem.rb +1 -1
  180. data/test/rubygems/test_gem_source_git.rb +11 -11
  181. data/test/rubygems/test_gem_source_specific_file.rb +1 -1
  182. data/test/rubygems/test_gem_spec_fetcher.rb +1 -1
  183. data/test/rubygems/test_gem_specification.rb +83 -103
  184. data/test/rubygems/test_gem_stream_ui.rb +1 -1
  185. data/test/rubygems/test_gem_stub_specification.rb +4 -4
  186. data/test/rubygems/test_gem_uninstaller.rb +16 -16
  187. data/test/rubygems/test_gem_util.rb +8 -6
  188. data/test/rubygems/test_gem_version.rb +4 -13
  189. data/test/rubygems/test_kernel.rb +4 -4
  190. data/test/rubygems/test_project_sanity.rb +1 -1
  191. data/test/rubygems/test_remote_fetch_error.rb +1 -1
  192. data/test/rubygems/test_require.rb +13 -13
  193. data/test/test_changelog_generator.rb +1 -2
  194. metadata +6 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 666dcbc545356912c49ba537a3964a73cf66167dae38bd44a1ef874c24939d09
4
- data.tar.gz: 63c0da17d148277c4d34d63354fda167768b64d1349a4cb9b4175c74f918a9f0
3
+ metadata.gz: 66be509531c57a4b354ae2bc3659fbe4f9dc375489b56ce77c6a5b5e7f45fd00
4
+ data.tar.gz: d2e4d40b260adf5a6e858e98ec64ef5cc73c6d71080fcc73d5af87c2dbe63ec5
5
5
  SHA512:
6
- metadata.gz: 3d99946c2c1d0ce009b4864fa1ab4bde104e70ba20d9b859cb5ad377e83a969d420a3abbe517c91290b788a83b8886e0e1403de15177dd0d5bd0d53583737e73
7
- data.tar.gz: aa89692b9cdbb6c4220a6c51b3b0fdd07c2187ec1d71e83db17bd216ce26a1fc29912fff748409f44fbfff830dc998c888005c98851615369462de3a1ee5e620
6
+ metadata.gz: 6218e723da3fc5e75b9e6a4b5429184df3c27950a21c0722a51ade130de5df69341195404bf8b3ea242471d62fc23c8cc82f19cd4b5298b18ee3c2a7c6385024
7
+ data.tar.gz: f9abbc6dc9d704deeba13c969817a502a34aa564408ed65c143f5f1781c5edab1721be70c4168e5d25a512a6664d14eb128f817e18ffb6c880a37e9c870e961d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,54 @@
1
+ # 3.2.18 / 2021-05-25
2
+
3
+ ## Enhancements:
4
+
5
+ * Don't leave temporary directory around when building extensions to
6
+ improve build reproducibility. Pull request #4610 by baloo
7
+
8
+ # 3.2.17 / 2021-05-05
9
+
10
+ ## Enhancements:
11
+
12
+ * Only print month & year in deprecation messages. Pull request #3085 by
13
+ Schwad
14
+ * Make deprecate method support ruby3's keyword arguments. Pull request
15
+ #4558 by mame
16
+ * Update the default bindir on macOS. Pull request #4524 by nobu
17
+ * Prefer File.open instead of Kernel#open. Pull request #4529 by mame
18
+
19
+ ## Documentation:
20
+
21
+ * Fix usage messages to reflect the current POSIX-compatible behaviour.
22
+ Pull request #4551 by graywolf-at-work
23
+
24
+ # 3.2.16 / 2021-04-08
25
+
26
+ ## Bug fixes:
27
+
28
+ * Correctly handle symlinks. Pull request #2836 by voxik
29
+
30
+ # 3.2.15 / 2021-03-19
31
+
32
+ ## Enhancements:
33
+
34
+ * Prevent downgrades to untested rubygems versions. Pull request #4460 by
35
+ deivid-rodriguez
36
+
37
+ ## Bug fixes:
38
+
39
+ * Fix missing require breaking `gem cert`. Pull request #4464 by lukehinds
40
+
41
+ # 3.2.14 / 2021-03-08
42
+
43
+ ## Enhancements:
44
+
45
+ * Less wrapping of network errors. Pull request #4064 by deivid-rodriguez
46
+
47
+ ## Bug fixes:
48
+
49
+ * Revert addition of support for `musl` variants to restore graceful
50
+ fallback on Alpine. Pull request #4434 by deivid-rodriguez
51
+
1
52
  # 3.2.13 / 2021-03-03
2
53
 
3
54
  ## Bug fixes:
@@ -695,7 +746,7 @@
695
746
  * Clean which command. Pull request #2801 by Luis Sagastume.
696
747
  * Upgrading S3 source signature to AWS SigV4. Pull request #2807 by
697
748
  Alexander Pakulov.
698
- * Remove missleading comment, no reason to move Gem.host to Gem::Util.
749
+ * Remove misleading comment, no reason to move Gem.host to Gem::Util.
699
750
  Pull request #2811 by Luis Sagastume.
700
751
  * Drop support for 'gem env packageversion'. Pull request #2813 by Luis
701
752
  Sagastume.
@@ -1695,7 +1746,7 @@ Security fixes:
1695
1746
  * Clean up the PathSupport object. Pull request #1094 by Aaron Patterson.
1696
1747
  * Join with File::PATH_SEPARATOR in Gem.use_paths. Pull request #1476 by
1697
1748
  Samuel E. Giddins.
1698
- * Handle when the gem home and gem path arent set in the config file. Pull
1749
+ * Handle when the gem home and gem path aren't set in the config file. Pull
1699
1750
  request #1478 by Samuel E. Giddins.
1700
1751
  * Terminate TimeoutHandler. Pull request #1479 by Nobuyoshi Nakada.
1701
1752
  * Remove redundant cache. Pull request #1482 by Eileen M. Uchitelle.
@@ -2040,7 +2091,7 @@ This release was sponsored by Ruby Central.
2040
2091
  * Fixed activating gems from a Gemfile for default gems. Issue #991 by khoan.
2041
2092
  * Fixed windows stub script generation for Cygwin. Issue #1000 by Brett
2042
2093
  DiFrischia.
2043
- * Allow gem bindir and ruby.exe to live in separate diretories. Pull request
2094
+ * Allow gem bindir and ruby.exe to live in separate directories. Pull request
2044
2095
  #942 by Ian Flynn.
2045
2096
  * Fixed handling of gemspec in gem dependencies files to match Bundler
2046
2097
  behavior. Issue #1020 by Michal Papis.
@@ -2134,7 +2185,7 @@ This release was sponsored by Ruby Central.
2134
2185
  * Gem.use_gemdeps now accepts an argument specifying the path of the gem
2135
2186
  dependencies file. When the file is not found an ArgumentError is raised.
2136
2187
  * Writing a .lock file for a gem dependencies file is now controlled by the
2137
- --[no-]lock option. Pull reuqest #774 by Jeremy Evans.
2188
+ --[no-]lock option. Pull request #774 by Jeremy Evans.
2138
2189
  * Suggestion of alternate names and spelling corrections during install can be
2139
2190
  suppressed with the --no-suggestions option. Issue #867 by Jimmy Cuadra.
2140
2191
  * Added mswin64 support. Pull request #881 by U. Nakamura.
@@ -2233,7 +2284,7 @@ This release was sponsored by Ruby Central.
2233
2284
  * Check for nil extensions as BasicSpecification does not initialize them.
2234
2285
  Pull request #882 by André Arko.
2235
2286
  * Fixed Gem::BasicSpecification#require_paths receives a String for
2236
- @require_paths. Pull requrest #904 by @danielpclark
2287
+ @require_paths. Pull request #904 by @danielpclark
2237
2288
  * Fixed circular require warnings. Bug #908 by Zachary Scott.
2238
2289
  * Gem::Specification#require_paths can no longer accidentally be an Array.
2239
2290
  Pull requests #904, #909 by Daniel P. Clark.
@@ -3669,7 +3720,7 @@ build arguments.
3669
3720
  * Fixed `gem contents` to work with the lightweight specifications
3670
3721
  * Fixed `gem update --system x.y.z` where x.y.z == latest version. (MGPalmer)
3671
3722
  * Fixed gem contents sorting and tests. (MGPalmer)
3672
- * Fixed intermittant problem in `gem fetch` with --platform specified (quix)
3723
+ * Fixed intermittent problem in `gem fetch` with --platform specified (quix)
3673
3724
  * Fixed lightweight specifications so `gem rdoc` will generate proper
3674
3725
  documentation
3675
3726
  * MockGemUI#terminate_interaction should not raise Gem::SystemExitException.
@@ -4350,7 +4401,7 @@ For a full list of changes to RubyGems, see the ChangeLog file.
4350
4401
  installation
4351
4402
  * Multi-version diamond dependencies only are installed once
4352
4403
  * Processing a YAML bulk index update takes less memory
4353
- * `gem install -i` makes sure all depenencies are installed
4404
+ * `gem install -i` makes sure all dependencies are installed
4354
4405
  * `gem update --system` reinstalls into the prefix it was originally installed
4355
4406
  in
4356
4407
  * `gem update --system` respects --no-rdoc and --no-ri flags
@@ -4390,7 +4441,7 @@ Special thanks to:
4390
4441
 
4391
4442
  If you are experiencing problems with the source index (e.g. strange
4392
4443
  "No Method" errors), or problems with zlib (e.g. "Buffer Error"
4393
- messsage), we recommend upgrading to RubyGems 0.9.4.
4444
+ message), we recommend upgrading to RubyGems 0.9.4.
4394
4445
 
4395
4446
  ## Bug fixes:
4396
4447
 
data/CONTRIBUTING.md CHANGED
@@ -114,7 +114,7 @@ listed in rough progression order from submitted to closed.
114
114
  * **ready** - An issue that is available for collaboration. This issue
115
115
  should have existing discussion on the problem, and a description of how
116
116
  to go about solving it.
117
- * **working** - An issue that has a specific invidual assigned to and
117
+ * **working** - An issue that has a specific individual assigned to and
118
118
  planning to do work on it.
119
119
  * **user feedback required** - The issue/pull request is blocked pending
120
120
  more feedback from an end user
@@ -132,7 +132,7 @@ closed reason labels are maroon `closed: *`.
132
132
 
133
133
  * **duplicate** - This is a duplicate of an existing bug. The comments must
134
134
  reference the existing issue.
135
- * **abandonded** - This is an issue/pull request that has aged off, is no
135
+ * **abandoned** - This is an issue/pull request that has aged off, is no
136
136
  longer applicable or similar.
137
137
  * **declined** - An issue that won't be fixed/implemented or a pull request
138
138
  that is not accepted.
data/Manifest.txt CHANGED
@@ -180,7 +180,9 @@ bundler/lib/bundler/source/path.rb
180
180
  bundler/lib/bundler/source/path/installer.rb
181
181
  bundler/lib/bundler/source/rubygems.rb
182
182
  bundler/lib/bundler/source/rubygems/remote.rb
183
+ bundler/lib/bundler/source/rubygems_aggregate.rb
183
184
  bundler/lib/bundler/source_list.rb
185
+ bundler/lib/bundler/source_map.rb
184
186
  bundler/lib/bundler/spec_set.rb
185
187
  bundler/lib/bundler/stub_specification.rb
186
188
  bundler/lib/bundler/templates/.document
@@ -535,6 +537,7 @@ test/rubygems/invalid_signer_cert_32.pem
535
537
  test/rubygems/invalidchild_cert.pem
536
538
  test/rubygems/invalidchild_cert_32.pem
537
539
  test/rubygems/invalidchild_key.pem
540
+ test/rubygems/packages/ascii_binder-0.1.10.1.gem
538
541
  test/rubygems/plugin/exception/rubygems_plugin.rb
539
542
  test/rubygems/plugin/load/rubygems_plugin.rb
540
543
  test/rubygems/plugin/standarderror/rubygems_plugin.rb
data/Rakefile CHANGED
@@ -7,18 +7,20 @@ require 'psych'
7
7
 
8
8
  desc "Setup Rubygems dev environment"
9
9
  task :setup do
10
- sh "ruby", "bundler/bin/bundle", "install", "--gemfile=dev_gems.rb"
10
+ sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", "install", "--gemfile=dev_gems.rb"
11
11
  end
12
12
 
13
13
  desc "Update Rubygems dev environment"
14
14
  task :update do |_, args|
15
- sh "ruby", "bundler/bin/bundle", "update", *args, "--gemfile=dev_gems.rb"
15
+ sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", "update", *args, "--gemfile=dev_gems.rb"
16
16
  end
17
17
 
18
18
  desc "Update the locked bundler version in dev environment"
19
19
  task :update_locked_bundler do |_, args|
20
- sh "ruby", "bundler/bin/bundle", "update", "--bundler", "--gemfile=dev_gems.rb"
21
- sh "ruby", "bundler/bin/bundle", "update", "--bundler", "--gemfile=bundler/test_gems.rb"
20
+ sh "ruby", "bundler/spec/support/bundle.rb", "update", "--bundler", "--gemfile=dev_gems.rb"
21
+ sh "ruby", "bundler/spec/support/bundle.rb", "update", "--bundler", "--gemfile=bundler/tool/bundler/test_gems.rb"
22
+ sh "ruby", "bundler/spec/support/bundle.rb", "update", "--bundler", "--gemfile=bundler/tool/bundler/rubocop_gems.rb"
23
+ sh "ruby", "bundler/spec/support/bundle.rb", "update", "--bundler", "--gemfile=bundler/tool/bundler/rubocop23_gems.rb"
22
24
  end
23
25
 
24
26
  desc "Setup git hooks"
@@ -84,11 +86,6 @@ end
84
86
 
85
87
  task rubocop: %w[rubocop:rubygems rubocop:bundler]
86
88
 
87
- desc "Run a test suite bisection"
88
- task(:bisect) do
89
- sh "util/bisect"
90
- end
91
-
92
89
  # --------------------------------------------------------------------
93
90
  # Creating a release
94
91
 
@@ -242,20 +239,17 @@ namespace 'guides' do
242
239
  desc 'Updates and publishes the guides for the just-released RubyGems'
243
240
  task 'publish'
244
241
 
245
- on_master = `git branch --list master`.strip == '* master'
246
- on_master = true if ENV['FORCE']
247
-
248
242
  task 'publish' => %w[
249
243
  guides:pull
250
244
  guides:update
251
245
  guides:commit
252
246
  guides:push
253
- ] if on_master
247
+ ]
254
248
  end
255
249
 
256
250
  directory '../blog.rubygems.org' do
257
251
  sh 'git', 'clone',
258
- 'git@github.com:rubygems/rubygems.github.com.git',
252
+ 'git@github.com:rubygems/rubygems.github.io.git',
259
253
  '../blog.rubygems.org'
260
254
  end
261
255
 
data/bundler/CHANGELOG.md CHANGED
@@ -1,3 +1,83 @@
1
+ # 2.2.18 (May 25, 2021)
2
+
3
+ ## Security fixes:
4
+
5
+ - Fix dependency confusion issues with implicit dependencies [#4609](https://github.com/rubygems/rubygems/pull/4609)
6
+
7
+ ## Enhancements:
8
+
9
+ - Use simpler notation for generated `required_ruby_version` [#4598](https://github.com/rubygems/rubygems/pull/4598)
10
+ - Undeprecate bundle show [#4586](https://github.com/rubygems/rubygems/pull/4586)
11
+ - Make sure link to new issue uses the proper template [#4592](https://github.com/rubygems/rubygems/pull/4592)
12
+
13
+ ## Bug fixes:
14
+
15
+ - Fix platform specific gems being removed from the lockfile [#4580](https://github.com/rubygems/rubygems/pull/4580)
16
+
17
+ # 2.2.17 (May 5, 2021)
18
+
19
+ ## Enhancements:
20
+
21
+ - Improve authentication required error message to include an alternative using `ENV` [#4565](https://github.com/rubygems/rubygems/pull/4565)
22
+ - Discard partial range responses without etag [#4563](https://github.com/rubygems/rubygems/pull/4563)
23
+ - Fix configuring ENV for a gem server with a name including dashes [#4571](https://github.com/rubygems/rubygems/pull/4571)
24
+ - Redact credentials from `bundle env` and `bundle config` [#4566](https://github.com/rubygems/rubygems/pull/4566)
25
+ - Redact all sources in verbose mode [#4564](https://github.com/rubygems/rubygems/pull/4564)
26
+ - Improve `bundle pristine` error if `BUNDLE_GEMFILE` does not exist [#4536](https://github.com/rubygems/rubygems/pull/4536)
27
+ - [CurrentRuby] Add 3.0 as a known minor [#4535](https://github.com/rubygems/rubygems/pull/4535)
28
+ - Prefer File.read instead of IO.read [#4530](https://github.com/rubygems/rubygems/pull/4530)
29
+ - Add space after open curly bracket in Gemfile and gems.rb template [#4518](https://github.com/rubygems/rubygems/pull/4518)
30
+
31
+ ## Bug fixes:
32
+
33
+ - Make sure specs are fetched from the right source when materializing [#4562](https://github.com/rubygems/rubygems/pull/4562)
34
+ - Fix `bundle cache` with an up-to-date lockfile and specs not already installed [#4554](https://github.com/rubygems/rubygems/pull/4554)
35
+ - Ignore `deployment` setting in inline mode [#4523](https://github.com/rubygems/rubygems/pull/4523)
36
+
37
+ ## Performance:
38
+
39
+ - Don't materialize resolutions when not necessary [#4556](https://github.com/rubygems/rubygems/pull/4556)
40
+
41
+ # 2.2.16 (April 8, 2021)
42
+
43
+ ## Enhancements:
44
+
45
+ - Add `--github-username` option and config to `bundle gem` [#3687](https://github.com/rubygems/rubygems/pull/3687)
46
+ - Bump vendored `tmpdir` library copy [#4506](https://github.com/rubygems/rubygems/pull/4506)
47
+ - Add `rake build:checksum` task to build checksums for a gem package [#4156](https://github.com/rubygems/rubygems/pull/4156)
48
+ - Enable bundler-cache for GitHub Actions template [#4498](https://github.com/rubygems/rubygems/pull/4498)
49
+ - Improve `bundle info` error when gem is on a "disabled" group [#4492](https://github.com/rubygems/rubygems/pull/4492)
50
+ - Small tweak to yank message [#4494](https://github.com/rubygems/rubygems/pull/4494)
51
+ - Don't show duplicate entries in `bundle outdated` output [#4474](https://github.com/rubygems/rubygems/pull/4474)
52
+ - Never downgrade top level gems when running `bundle update` [#4473](https://github.com/rubygems/rubygems/pull/4473)
53
+
54
+ ## Bug fixes:
55
+
56
+ - Fix incorrect logic for filtering metadata matching candidates [#4497](https://github.com/rubygems/rubygems/pull/4497)
57
+
58
+ # 2.2.15 (March 19, 2021)
59
+
60
+ ## Enhancements:
61
+
62
+ - Add a hint about bundler installing executables for path gems [#4461](https://github.com/rubygems/rubygems/pull/4461)
63
+ - Warn lockfiles with incorrect resolutions [#4459](https://github.com/rubygems/rubygems/pull/4459)
64
+ - Don't generate duplicate redundant sources in the lockfile [#4456](https://github.com/rubygems/rubygems/pull/4456)
65
+
66
+ ## Bug fixes:
67
+
68
+ - Respect running ruby when resolving platforms [#4449](https://github.com/rubygems/rubygems/pull/4449)
69
+
70
+ # 2.2.14 (March 8, 2021)
71
+
72
+ ## Security fixes:
73
+
74
+ - Lock GEM sources separately and fix locally installed specs confusing bundler [#4381](https://github.com/rubygems/rubygems/pull/4381)
75
+
76
+ ## Bug fixes:
77
+
78
+ - Make `rake` available to other gems' installers right after it's installed [#4428](https://github.com/rubygems/rubygems/pull/4428)
79
+ - Fix encoding issue on compact index updater [#4362](https://github.com/rubygems/rubygems/pull/4362)
80
+
1
81
  # 2.2.13 (March 3, 2021)
2
82
 
3
83
  ## Enhancements:
@@ -432,7 +512,7 @@
432
512
  - Ignore `frozen` setting in inline mode ([#7125](https://github.com/rubygems/bundler/pull/7125))
433
513
  - Fix incorrect "bundler attempted to update GEM but version stayed the same" message when updating git sourced gems ([#6325](https://github.com/rubygems/bundler/pull/6325))
434
514
  - Don't check for existence of a writable home directory if `BUNDLE_USER_HOME` is set ([#6885](https://github.com/rubygems/bundler/pull/6885))
435
- - Fix error message when server would respond to a bad username/password requiest with a 401 ([#6928](https://github.com/rubygems/bundler/pull/6928))
515
+ - Fix error message when server would respond to a bad username/password request with a 401 ([#6928](https://github.com/rubygems/bundler/pull/6928))
436
516
  - Fix `bundle outdated` pluralization when multiple groups are requested ([#7063](https://github.com/rubygems/bundler/pull/7063))
437
517
  - Fix `bundle install` not updating conservatively when gemspec is changed ([#7143](https://github.com/rubygems/bundler/pull/7143))
438
518
  - Fix `bundle exec` not respecting custom process titles inside scripts ([#7140](https://github.com/rubygems/bundler/pull/7140))
@@ -2077,7 +2157,7 @@ Changes
2077
2157
  - fix Bundler.which for directories ([#2697](https://github.com/rubygems/bundler/issues/2697), @rhysd)
2078
2158
  - properly require `Capistrano::Version` ([#2690](https://github.com/rubygems/bundler/issues/2690), @steveklabnik)
2079
2159
  - search for git.exe and git
2080
- - fix the bug that downloads every spec when API fetcher encouters an error
2160
+ - fix the bug that downloads every spec when API fetcher encounters an error
2081
2161
  - only retry network requests
2082
2162
 
2083
2163
  # 1.4.0.rc.1 (September 29, 2013)
@@ -2701,7 +2781,7 @@ Changes
2701
2781
 
2702
2782
  - Implement `to_ary` to avoid calls to method_missing (@tenderlove, [#1274](https://github.com/rubygems/bundler/issues/1274))
2703
2783
  - bundle clean removes old .gem files (@cldwalker, [#1293](https://github.com/rubygems/bundler/issues/1293))
2704
- - Correcly identify missing child dependency in error message
2784
+ - Correctly identify missing child dependency in error message
2705
2785
  - Run pre-install, post-build, and post-install gem hooks for git gems (@warhammerkid, [#1120](https://github.com/rubygems/bundler/issues/1120))
2706
2786
  - create Gemfile.lock for empty Gemfile ([#1218](https://github.com/rubygems/bundler/issues/1218))
2707
2787
 
@@ -2852,7 +2932,7 @@ Changes
2852
2932
 
2853
2933
  - Performance fix for MRI 1.9 (@efficientcloud, [#1288](https://github.com/rubygems/bundler/issues/1288))
2854
2934
  - Shortcuts (like `bundle i`) for all commands (@amatsuda)
2855
- - Correcly identify missing child dependency in error message
2935
+ - Correctly identify missing child dependency in error message
2856
2936
 
2857
2937
  ## Bug fixes:
2858
2938
 
@@ -3088,7 +3168,7 @@ Changes
3088
3168
 
3089
3169
  - Various bugfixes to the built-in rake helpers
3090
3170
  - Fix a bug where shortrefs weren't unique enough and were
3091
- therfore colliding
3171
+ therefore colliding
3092
3172
  - Fix a small bug involving checking whether a local git
3093
3173
  clone is up to date
3094
3174
  - Correctly handle explicit '=' dependencies with gems
@@ -34,13 +34,12 @@ Gem::Specification.new do |s|
34
34
  s.required_ruby_version = ">= 2.3.0"
35
35
  s.required_rubygems_version = ">= 2.5.2"
36
36
 
37
- s.files = Dir.glob("{lib,exe}/**/*", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
37
+ s.files = Dir.glob("lib/bundler{.rb,/**/*}", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
38
38
 
39
- # Include the CHANGELOG.md, LICENSE.md, README.md manually
40
- s.files += %w[CHANGELOG.md LICENSE.md README.md]
41
39
  # include the gemspec itself because warbler breaks w/o it
42
40
  s.files += %w[bundler.gemspec]
43
41
 
42
+ s.extra_rdoc_files = %w[CHANGELOG.md LICENSE.md README.md]
44
43
  s.bindir = "exe"
45
44
  s.executables = %w[bundle bundler]
46
45
  s.require_paths = ["lib"]
@@ -69,6 +69,7 @@ module Bundler
69
69
  autoload :SharedHelpers, File.expand_path("bundler/shared_helpers", __dir__)
70
70
  autoload :Source, File.expand_path("bundler/source", __dir__)
71
71
  autoload :SourceList, File.expand_path("bundler/source_list", __dir__)
72
+ autoload :SourceMap, File.expand_path("bundler/source_map", __dir__)
72
73
  autoload :SpecSet, File.expand_path("bundler/spec_set", __dir__)
73
74
  autoload :StubSpecification, File.expand_path("bundler/stub_specification", __dir__)
74
75
  autoload :UI, File.expand_path("bundler/ui", __dir__)
@@ -4,8 +4,8 @@ module Bundler
4
4
  # Represents metadata from when the Bundler gem was built.
5
5
  module BuildMetadata
6
6
  # begin ivars
7
- @built_at = "2021-03-03".freeze
8
- @git_commit_sha = "9b15ab18c4".freeze
7
+ @built_at = "2021-05-25".freeze
8
+ @git_commit_sha = "6a9e89bacd".freeze
9
9
  @release = true
10
10
  # end ivars
11
11
 
@@ -308,39 +308,19 @@ module Bundler
308
308
  end
309
309
  end
310
310
 
311
- unless Bundler.feature_flag.bundler_3_mode?
312
- desc "show GEM [OPTIONS]", "Shows all gems that are part of the bundle, or the path to a given gem"
313
- long_desc <<-D
314
- Show lists the names and versions of all gems that are required by your Gemfile.
315
- Calling show with [GEM] will list the exact location of that gem on your machine.
316
- D
317
- method_option "paths", :type => :boolean,
318
- :banner => "List the paths of all gems that are required by your Gemfile."
319
- method_option "outdated", :type => :boolean,
320
- :banner => "Show verbose output including whether gems are outdated."
321
- def show(gem_name = nil)
322
- if ARGV[0] == "show"
323
- rest = ARGV[1..-1]
324
-
325
- if flag = rest.find{|arg| ["--verbose", "--outdated"].include?(arg) }
326
- Bundler::SharedHelpers.major_deprecation(2, "the `#{flag}` flag to `bundle show` was undocumented and will be removed without replacement")
327
- else
328
- new_command = rest.find {|arg| !arg.start_with?("--") } ? "info" : "list"
329
-
330
- new_arguments = rest.map do |arg|
331
- next arg if arg != "--paths"
332
- next "--path" if new_command == "info"
333
- end
334
-
335
- old_argv = ARGV.join(" ")
336
- new_argv = [new_command, *new_arguments.compact].join(" ")
337
-
338
- Bundler::SharedHelpers.major_deprecation(2, "use `bundle #{new_argv}` instead of `bundle #{old_argv}`")
339
- end
340
- end
341
- require_relative "cli/show"
342
- Show.new(options, gem_name).run
343
- end
311
+ desc "show GEM [OPTIONS]", "Shows all gems that are part of the bundle, or the path to a given gem"
312
+ long_desc <<-D
313
+ Show lists the names and versions of all gems that are required by your Gemfile.
314
+ Calling show with [GEM] will list the exact location of that gem on your machine.
315
+ D
316
+ method_option "paths", :type => :boolean,
317
+ :banner => "List the paths of all gems that are required by your Gemfile."
318
+ method_option "outdated", :type => :boolean,
319
+ :banner => "Show verbose output including whether gems are outdated."
320
+ def show(gem_name = nil)
321
+ SharedHelpers.major_deprecation(2, "the `--outdated` flag to `bundle show` was undocumented and will be removed without replacement") if ARGV.include?("--outdated")
322
+ require_relative "cli/show"
323
+ Show.new(options, gem_name).run
344
324
  end
345
325
 
346
326
  desc "list", "List all gems in the bundle"
@@ -504,8 +484,8 @@ module Bundler
504
484
  By default, setting a configuration value sets it for all projects
505
485
  on the machine.
506
486
 
507
- If a global setting is superceded by local configuration, this command
508
- will show the current value, as well as any superceded values and
487
+ If a global setting is superseded by local configuration, this command
488
+ will show the current value, as well as any superseded values and
509
489
  where they were specified.
510
490
  D
511
491
  require_relative "cli/config"
@@ -591,6 +571,7 @@ module Bundler
591
571
  :desc => "Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set --global gem.test (rspec|minitest|test-unit)`."
592
572
  method_option :ci, :type => :string, :lazy_default => Bundler.settings["gem.ci"] || "",
593
573
  :desc => "Generate CI configuration, either GitHub Actions, Travis CI, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|travis|gitlab|circle)`"
574
+ method_option :github_username, :type => :string, :default => Bundler.settings["gem.github_username"], :banner => "Set your username on GitHub", :desc => "Fill in GitHub username on README so that you don't have to do it manually. Set a default with `bundle config set --global gem.github_username <your_username>`."
594
575
 
595
576
  def gem(name)
596
577
  end