Skip to content

Commit 69cbd6e

Browse files
Merge pull request #4576 from rubygems/release/bundler_2.2.17_rubygems_3.2.17
Prepare rubygems 3.2.17 and bundler 2.2.17
2 parents 3d7bfaf + d16360f commit 69cbd6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1051
-210
lines changed

.rubocop_bundler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ Layout/SpaceInsideArrayPercentLiteral:
373373
Layout/SpaceInsideBlockBraces:
374374
Enabled: true
375375
SpaceBeforeBlockParameters: false
376+
Exclude:
377+
- bundler/lib/bundler/templates/Gemfile
378+
- bundler/lib/bundler/templates/gems.rb
376379

377380
Layout/SpaceInsideHashLiteralBraces:
378381
Enabled: true

CHANGELOG.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# 3.2.17 / 2021-05-05
2+
3+
## Enhancements:
4+
5+
* Only print month & year in deprecation messages. Pull request #3085 by
6+
Schwad
7+
* Make deprecate method support ruby3's keyword arguments. Pull request
8+
#4558 by mame
9+
* Update the default bindir on macOS. Pull request #4524 by nobu
10+
* Prefer File.open instead of Kernel#open. Pull request #4529 by mame
11+
12+
## Documentation:
13+
14+
* Fix usage messages to reflect the current POSIX-compatible behaviour.
15+
Pull request #4551 by graywolf-at-work
16+
117
# 3.2.16 / 2021-04-08
218

319
## Bug fixes:
@@ -723,7 +739,7 @@
723739
* Clean which command. Pull request #2801 by Luis Sagastume.
724740
* Upgrading S3 source signature to AWS SigV4. Pull request #2807 by
725741
Alexander Pakulov.
726-
* Remove missleading comment, no reason to move Gem.host to Gem::Util.
742+
* Remove misleading comment, no reason to move Gem.host to Gem::Util.
727743
Pull request #2811 by Luis Sagastume.
728744
* Drop support for 'gem env packageversion'. Pull request #2813 by Luis
729745
Sagastume.
@@ -1723,7 +1739,7 @@ Security fixes:
17231739
* Clean up the PathSupport object. Pull request #1094 by Aaron Patterson.
17241740
* Join with File::PATH_SEPARATOR in Gem.use_paths. Pull request #1476 by
17251741
Samuel E. Giddins.
1726-
* Handle when the gem home and gem path arent set in the config file. Pull
1742+
* Handle when the gem home and gem path aren't set in the config file. Pull
17271743
request #1478 by Samuel E. Giddins.
17281744
* Terminate TimeoutHandler. Pull request #1479 by Nobuyoshi Nakada.
17291745
* Remove redundant cache. Pull request #1482 by Eileen M. Uchitelle.
@@ -2068,7 +2084,7 @@ This release was sponsored by Ruby Central.
20682084
* Fixed activating gems from a Gemfile for default gems. Issue #991 by khoan.
20692085
* Fixed windows stub script generation for Cygwin. Issue #1000 by Brett
20702086
DiFrischia.
2071-
* Allow gem bindir and ruby.exe to live in separate diretories. Pull request
2087+
* Allow gem bindir and ruby.exe to live in separate directories. Pull request
20722088
#942 by Ian Flynn.
20732089
* Fixed handling of gemspec in gem dependencies files to match Bundler
20742090
behavior. Issue #1020 by Michal Papis.
@@ -2162,7 +2178,7 @@ This release was sponsored by Ruby Central.
21622178
* Gem.use_gemdeps now accepts an argument specifying the path of the gem
21632179
dependencies file. When the file is not found an ArgumentError is raised.
21642180
* Writing a .lock file for a gem dependencies file is now controlled by the
2165-
--[no-]lock option. Pull reuqest #774 by Jeremy Evans.
2181+
--[no-]lock option. Pull request #774 by Jeremy Evans.
21662182
* Suggestion of alternate names and spelling corrections during install can be
21672183
suppressed with the --no-suggestions option. Issue #867 by Jimmy Cuadra.
21682184
* Added mswin64 support. Pull request #881 by U. Nakamura.
@@ -2261,7 +2277,7 @@ This release was sponsored by Ruby Central.
22612277
* Check for nil extensions as BasicSpecification does not initialize them.
22622278
Pull request #882 by André Arko.
22632279
* Fixed Gem::BasicSpecification#require_paths receives a String for
2264-
@require_paths. Pull requrest #904 by @danielpclark
2280+
@require_paths. Pull request #904 by @danielpclark
22652281
* Fixed circular require warnings. Bug #908 by Zachary Scott.
22662282
* Gem::Specification#require_paths can no longer accidentally be an Array.
22672283
Pull requests #904, #909 by Daniel P. Clark.
@@ -3697,7 +3713,7 @@ build arguments.
36973713
* Fixed `gem contents` to work with the lightweight specifications
36983714
* Fixed `gem update --system x.y.z` where x.y.z == latest version. (MGPalmer)
36993715
* Fixed gem contents sorting and tests. (MGPalmer)
3700-
* Fixed intermittant problem in `gem fetch` with --platform specified (quix)
3716+
* Fixed intermittent problem in `gem fetch` with --platform specified (quix)
37013717
* Fixed lightweight specifications so `gem rdoc` will generate proper
37023718
documentation
37033719
* MockGemUI#terminate_interaction should not raise Gem::SystemExitException.
@@ -4378,7 +4394,7 @@ For a full list of changes to RubyGems, see the ChangeLog file.
43784394
installation
43794395
* Multi-version diamond dependencies only are installed once
43804396
* Processing a YAML bulk index update takes less memory
4381-
* `gem install -i` makes sure all depenencies are installed
4397+
* `gem install -i` makes sure all dependencies are installed
43824398
* `gem update --system` reinstalls into the prefix it was originally installed
43834399
in
43844400
* `gem update --system` respects --no-rdoc and --no-ri flags
@@ -4418,7 +4434,7 @@ Special thanks to:
44184434

44194435
If you are experiencing problems with the source index (e.g. strange
44204436
"No Method" errors), or problems with zlib (e.g. "Buffer Error"
4421-
messsage), we recommend upgrading to RubyGems 0.9.4.
4437+
message), we recommend upgrading to RubyGems 0.9.4.
44224438

44234439
## Bug fixes:
44244440

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ listed in rough progression order from submitted to closed.
114114
* **ready** - An issue that is available for collaboration. This issue
115115
should have existing discussion on the problem, and a description of how
116116
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
118118
planning to do work on it.
119119
* **user feedback required** - The issue/pull request is blocked pending
120120
more feedback from an end user
@@ -132,7 +132,7 @@ closed reason labels are maroon `closed: *`.
132132

133133
* **duplicate** - This is a duplicate of an existing bug. The comments must
134134
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
136136
longer applicable or similar.
137137
* **declined** - An issue that won't be fixed/implemented or a pull request
138138
that is not accepted.

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ require 'psych'
77

88
desc "Setup Rubygems dev environment"
99
task :setup do
10-
sh "ruby", "bundler/spec/support/bundle.rb", "install", "--gemfile=dev_gems.rb"
10+
sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", "install", "--gemfile=dev_gems.rb"
1111
end
1212

1313
desc "Update Rubygems dev environment"
1414
task :update do |_, args|
15-
sh "ruby", "bundler/spec/support/bundle.rb", "update", *args, "--gemfile=dev_gems.rb"
15+
sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", "update", *args, "--gemfile=dev_gems.rb"
1616
end
1717

1818
desc "Update the locked bundler version in dev environment"

bundler/CHANGELOG.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
1+
# 2.2.17 (May 5, 2021)
2+
3+
## Enhancements:
4+
5+
- Improve authentication required error message to include an alternative using `ENV` [#4565](https://github.com/rubygems/rubygems/pull/4565)
6+
- Discard partial range responses without etag [#4563](https://github.com/rubygems/rubygems/pull/4563)
7+
- Fix configuring ENV for a gem server with a name including dashes [#4571](https://github.com/rubygems/rubygems/pull/4571)
8+
- Redact credentials from `bundle env` and `bundle config` [#4566](https://github.com/rubygems/rubygems/pull/4566)
9+
- Redact all sources in verbose mode [#4564](https://github.com/rubygems/rubygems/pull/4564)
10+
- Improve `bundle pristine` error if `BUNDLE_GEMFILE` does not exist [#4536](https://github.com/rubygems/rubygems/pull/4536)
11+
- [CurrentRuby] Add 3.0 as a known minor [#4535](https://github.com/rubygems/rubygems/pull/4535)
12+
- Prefer File.read instead of IO.read [#4530](https://github.com/rubygems/rubygems/pull/4530)
13+
- Add space after open curly bracket in Gemfile and gems.rb template [#4518](https://github.com/rubygems/rubygems/pull/4518)
14+
15+
## Bug fixes:
16+
17+
- Make sure specs are fetched from the right source when materializing [#4562](https://github.com/rubygems/rubygems/pull/4562)
18+
- Fix `bundle cache` with an up-to-date lockfile and specs not already installed [#4554](https://github.com/rubygems/rubygems/pull/4554)
19+
- Ignore `deployment` setting in inline mode [#4523](https://github.com/rubygems/rubygems/pull/4523)
20+
21+
## Performance:
22+
23+
- Don't materialize resolutions when not necessary [#4556](https://github.com/rubygems/rubygems/pull/4556)
24+
125
# 2.2.16 (April 8, 2021)
226

327
## Enhancements:
428

529
- Add `--github-username` option and config to `bundle gem` [#3687](https://github.com/rubygems/rubygems/pull/3687)
630
- Bump vendored `tmpdir` library copy [#4506](https://github.com/rubygems/rubygems/pull/4506)
7-
- Add `rake build:checksum` task to build cheksums for a gem package [#4156](https://github.com/rubygems/rubygems/pull/4156)
31+
- Add `rake build:checksum` task to build checksums for a gem package [#4156](https://github.com/rubygems/rubygems/pull/4156)
832
- Enable bundler-cache for GitHub Actions template [#4498](https://github.com/rubygems/rubygems/pull/4498)
933
- Improve `bundle info` error when gem is on a "disabled" group [#4492](https://github.com/rubygems/rubygems/pull/4492)
1034
- Small tweak to yank message [#4494](https://github.com/rubygems/rubygems/pull/4494)
@@ -472,7 +496,7 @@
472496
- Ignore `frozen` setting in inline mode ([#7125](https://github.com/rubygems/bundler/pull/7125))
473497
- 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))
474498
- Don't check for existence of a writable home directory if `BUNDLE_USER_HOME` is set ([#6885](https://github.com/rubygems/bundler/pull/6885))
475-
- Fix error message when server would respond to a bad username/password requiest with a 401 ([#6928](https://github.com/rubygems/bundler/pull/6928))
499+
- Fix error message when server would respond to a bad username/password request with a 401 ([#6928](https://github.com/rubygems/bundler/pull/6928))
476500
- Fix `bundle outdated` pluralization when multiple groups are requested ([#7063](https://github.com/rubygems/bundler/pull/7063))
477501
- Fix `bundle install` not updating conservatively when gemspec is changed ([#7143](https://github.com/rubygems/bundler/pull/7143))
478502
- Fix `bundle exec` not respecting custom process titles inside scripts ([#7140](https://github.com/rubygems/bundler/pull/7140))
@@ -2117,7 +2141,7 @@ Changes
21172141
- fix Bundler.which for directories ([#2697](https://github.com/rubygems/bundler/issues/2697), @rhysd)
21182142
- properly require `Capistrano::Version` ([#2690](https://github.com/rubygems/bundler/issues/2690), @steveklabnik)
21192143
- search for git.exe and git
2120-
- fix the bug that downloads every spec when API fetcher encouters an error
2144+
- fix the bug that downloads every spec when API fetcher encounters an error
21212145
- only retry network requests
21222146

21232147
# 1.4.0.rc.1 (September 29, 2013)
@@ -2741,7 +2765,7 @@ Changes
27412765

27422766
- Implement `to_ary` to avoid calls to method_missing (@tenderlove, [#1274](https://github.com/rubygems/bundler/issues/1274))
27432767
- bundle clean removes old .gem files (@cldwalker, [#1293](https://github.com/rubygems/bundler/issues/1293))
2744-
- Correcly identify missing child dependency in error message
2768+
- Correctly identify missing child dependency in error message
27452769
- Run pre-install, post-build, and post-install gem hooks for git gems (@warhammerkid, [#1120](https://github.com/rubygems/bundler/issues/1120))
27462770
- create Gemfile.lock for empty Gemfile ([#1218](https://github.com/rubygems/bundler/issues/1218))
27472771

@@ -2892,7 +2916,7 @@ Changes
28922916

28932917
- Performance fix for MRI 1.9 (@efficientcloud, [#1288](https://github.com/rubygems/bundler/issues/1288))
28942918
- Shortcuts (like `bundle i`) for all commands (@amatsuda)
2895-
- Correcly identify missing child dependency in error message
2919+
- Correctly identify missing child dependency in error message
28962920

28972921
## Bug fixes:
28982922

@@ -3128,7 +3152,7 @@ Changes
31283152

31293153
- Various bugfixes to the built-in rake helpers
31303154
- Fix a bug where shortrefs weren't unique enough and were
3131-
therfore colliding
3155+
therefore colliding
31323156
- Fix a small bug involving checking whether a local git
31333157
clone is up to date
31343158
- Correctly handle explicit '=' dependencies with gems

bundler/doc/playbooks/RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Patch and minor releases are made by cherry-picking pill requests from `master`.
3939

4040
### Branching
4141

42-
Bundler releases are syncronized with rubygems releases at the moment. That
42+
Bundler releases are synchronized with rubygems releases at the moment. That
4343
means that releases for both share the same stable branch, and they should
4444
generally happen together.
4545

bundler/lib/bundler/cli.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ def exec(*args)
504504
By default, setting a configuration value sets it for all projects
505505
on the machine.
506506
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
507+
If a global setting is superseded by local configuration, this command
508+
will show the current value, as well as any superseded values and
509509
where they were specified.
510510
D
511511
require_relative "cli/config"

bundler/lib/bundler/cli/common.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def self.gem_not_found_message(missing_gem_name, alternatives)
9494
end
9595

9696
def self.ensure_all_gems_in_lockfile!(names, locked_gems = Bundler.locked_gems)
97+
return unless locked_gems
98+
9799
locked_names = locked_gems.specs.map(&:name).uniq
98100
names.-(locked_names).each do |g|
99101
raise GemNotFound, gem_not_found_message(g, locked_names)

bundler/lib/bundler/compact_index_client/updater.rb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,20 @@ def update(local_path, remote_path, retrying = nil)
5050

5151
content = response.body
5252

53-
SharedHelpers.filesystem_access(local_temp_path) do
53+
etag = (response["ETag"] || "").gsub(%r{\AW/}, "")
54+
correct_response = SharedHelpers.filesystem_access(local_temp_path) do
5455
if response.is_a?(Net::HTTPPartialContent) && local_temp_path.size.nonzero?
5556
local_temp_path.open("a") {|f| f << slice_body(content, 1..-1) }
57+
58+
etag_for(local_temp_path) == etag
5659
else
5760
local_temp_path.open("wb") {|f| f << content }
61+
62+
etag.length.zero? || etag_for(local_temp_path) == etag
5863
end
5964
end
6065

61-
etag = (response["ETag"] || "").gsub(%r{\AW/}, "")
62-
if etag.length.zero? || etag_for(local_temp_path) == etag
66+
if correct_response
6367
SharedHelpers.filesystem_access(local_path) do
6468
FileUtils.mv(local_temp_path, local_path)
6569
end
@@ -92,11 +96,11 @@ def slice_body(body, range)
9296

9397
def checksum_for_file(path)
9498
return nil unless path.file?
95-
# This must use IO.read instead of Digest.file().hexdigest
99+
# This must use File.read instead of Digest.file().hexdigest
96100
# because we need to preserve \n line endings on windows when calculating
97101
# the checksum
98102
SharedHelpers.filesystem_access(path, :read) do
99-
SharedHelpers.digest(:MD5).hexdigest(IO.read(path))
103+
SharedHelpers.digest(:MD5).hexdigest(File.read(path))
100104
end
101105
end
102106
end

bundler/lib/bundler/current_ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class CurrentRuby
2020
2.5
2121
2.6
2222
2.7
23+
3.0
2324
].freeze
2425

2526
KNOWN_MAJOR_VERSIONS = KNOWN_MINOR_VERSIONS.map {|v| v.split(".", 2).first }.uniq.freeze

0 commit comments

Comments
 (0)