Skip to content

Commit 839c753

Browse files
authored
Merge branch 'rubygems:master' into fix-bundle-plugin-bug
2 parents 4274e7b + 0339622 commit 839c753

File tree

104 files changed

+2051
-777
lines changed

Some content is hidden

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

104 files changed

+2051
-777
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ updates:
55
schedule:
66
interval: 'weekly'
77
- package-ecosystem: 'cargo'
8-
directory: '/test/rubygems/test_gem_ext_cargo_builder/custom_name/'
8+
directory: '/test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib'
99
schedule:
1010
interval: 'weekly'
1111
- package-ecosystem: 'cargo'

.github/workflows/install-rubygems.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
ruby-version: ${{ matrix.ruby.value }}
106106
bundler: none
107107
- name: Setup java
108-
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
108+
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
109109
with:
110110
distribution: temurin
111111
java-version: 19.0.2

.github/workflows/jruby-bundler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
ruby-version: jruby-9.4.2.0
3737
bundler: none
3838
- name: Setup java
39-
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
39+
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
4040
with:
4141
distribution: temurin
4242
java-version: 19.0.2
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: weekly-update
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
weekly_update:
14+
name: Rubygems weekly update
15+
runs-on: ${{ matrix.os }}
16+
if: github.repository == 'rubygems/rubygems'
17+
strategy:
18+
matrix:
19+
os: [ ubuntu-latest ]
20+
steps:
21+
- name: Config git
22+
run: |
23+
git config --global user.name "License Update"
24+
git config --global user.email license.update@rubygems.org
25+
git config --global push.autoSetupRemote true
26+
27+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
28+
29+
- name: Check versions
30+
run: |
31+
ruby --version
32+
rake --version
33+
34+
- name: Update SPDX license list
35+
run: |
36+
rake update_licenses_branch
37+
git diff --no-ext-diff --ignore-submodules --quiet "${BASE##*/}" -- || {
38+
git push origin
39+
gh pr create --base "${BASE##*/}" --fill --label "rubygems: enhancement"
40+
}
41+
env:
42+
BASE: ${{ github.ref }}
43+
GH_TOKEN: ${{ github.token }}

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
# 3.4.19 / 2023-08-17
2+
3+
## Enhancements:
4+
5+
* Installs bundler 2.4.19 as a default gem.
6+
7+
## Performance:
8+
9+
* Speedup building docs when updating rubygems. Pull request
10+
[#6864](https://github.com/rubygems/rubygems/pull/6864) by
11+
deivid-rodriguez
12+
13+
# 3.4.18 / 2023-08-02
14+
15+
## Enhancements:
16+
17+
* Add poller to fetch WebAuthn OTP. Pull request
18+
[#6774](https://github.com/rubygems/rubygems/pull/6774) by jenshenny
19+
* Remove side effects when unmarshaling old `Gem::Specification`. Pull
20+
request [#6825](https://github.com/rubygems/rubygems/pull/6825) by nobu
21+
* Ship rubygems executables in `exe` folder. Pull request
22+
[#6704](https://github.com/rubygems/rubygems/pull/6704) by hsbt
23+
* Installs bundler 2.4.18 as a default gem.
24+
25+
# 3.4.17 / 2023-07-14
26+
27+
## Enhancements:
28+
29+
* Installs bundler 2.4.17 as a default gem.
30+
31+
## Performance:
32+
33+
* Avoid unnecessary work for private local gem installation. Pull request
34+
[#6810](https://github.com/rubygems/rubygems/pull/6810) by
35+
deivid-rodriguez
36+
137
# 3.4.16 / 2023-07-10
238

339
## Enhancements:

Manifest.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,9 @@ lib/rubygems/ext/ext_conf_builder.rb
403403
lib/rubygems/ext/rake_builder.rb
404404
lib/rubygems/gem_runner.rb
405405
lib/rubygems/gemcutter_utilities.rb
406+
lib/rubygems/gemcutter_utilities/webauthn_listener.rb
407+
lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb
408+
lib/rubygems/gemcutter_utilities/webauthn_poller.rb
406409
lib/rubygems/indexer.rb
407410
lib/rubygems/install_default_message.rb
408411
lib/rubygems/install_message.rb
@@ -541,8 +544,6 @@ lib/rubygems/util/list.rb
541544
lib/rubygems/validator.rb
542545
lib/rubygems/version.rb
543546
lib/rubygems/version_option.rb
544-
lib/rubygems/webauthn_listener.rb
545-
lib/rubygems/webauthn_listener/response.rb
546547
lib/rubygems/yaml_serializer.rb
547548
rubygems-update.gemspec
548549
setup.rb

POLICIES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ and not get any conflicts.
9595
changelogs into master.
9696
* Once CI passes, merge the release PR, switch to the stable branch and pull
9797
the PR just merged.
98-
* Release `bundler` with `(cd bundler && bin/rake release)`.
98+
* Release `bundler` with `rake bundler:release`.
9999
* Release `rubygems` with `rake release`.
100100

101101
### Steps for minor and major releases
@@ -112,7 +112,7 @@ and not get any conflicts.
112112
to the master PR.
113113
* Once CI passes, merge the release PR, switch to the stable branch and pull
114114
the PR just merged.
115-
* Release `bundler` with `(cd bundler && bin/rake release)`.
115+
* Release `bundler` with `rake bundler:release`.
116116
* Release `rubygems` with `rake release`.
117117

118118
## Committer Access

Rakefile

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ namespace "blog" do
418418
digest = OpenSSL::Digest::SHA256.file(file).hexdigest
419419
basename = File.basename(file)
420420

421-
checksums << "* #{basename} \n"
422-
checksums << " #{digest}\n"
421+
checksums += "* #{basename} \n"
422+
checksums += " #{digest}\n"
423423

424424
release_url = URI("https://rubygems.org/#{file.end_with?("gem") ? "gems" : "rubygems"}/#{basename}")
425425
response = Net::HTTP.get_response(release_url)
@@ -547,9 +547,23 @@ task :check_manifest do
547547
end
548548
end
549549

550+
license_last_update = nil
551+
550552
desc "Update License list from SPDX.org"
551553
task :update_licenses do
552554
load "tool/generate_spdx_license_list.rb"
555+
license_last_update = generate_spdx_license_list
556+
end
557+
558+
desc "Create branch to update License list"
559+
task :update_licenses_branch => :update_licenses do
560+
if license_last_update
561+
file, mtime = license_last_update
562+
date = mtime.strftime("%Y-%m-%d")
563+
branch_name = "license-list-#{date}"
564+
system(*%w[git checkout -b], branch_name, exception: true)
565+
system(*%w[git commit -m], "Update SPDX license list as of #{date}", *file, exception: true)
566+
end
553567
end
554568

555569
require_relative "bundler/spec/support/rubygems_ext"
@@ -727,7 +741,9 @@ namespace :bundler do
727741
task :build => ["bundler:build_metadata"] do
728742
Rake::Task["bundler:build_metadata:clean"].tap(&:reenable).invoke
729743
end
730-
task "bundler:release:rubygem_push" => ["bundler:release:setup", "man:check", "bundler:build_metadata", "bundler:release:github"]
744+
745+
desc "Push to rubygems.org"
746+
task "release:rubygem_push" => ["bundler:release:setup", "man:check", "bundler:build_metadata", "bundler:release:github"]
731747

732748
desc "Generates the changelog for a specific target version"
733749
task :generate_changelog, [:version] do |_t, opts|

bundler/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
# 2.4.19 (August 17, 2023)
2+
3+
## Enhancements:
4+
5+
- Add `file` option to `ruby` method in Gemfile [#6876](https://github.com/rubygems/rubygems/pull/6876)
6+
- Show better error when PAT can't authenticate to a private server [#6871](https://github.com/rubygems/rubygems/pull/6871)
7+
- Don't fallback to old dependency API when bad credentials are configured [#6869](https://github.com/rubygems/rubygems/pull/6869)
8+
9+
## Bug fixes:
10+
11+
- Fix git source conservativeness [#6850](https://github.com/rubygems/rubygems/pull/6850)
12+
13+
## Documentation:
14+
15+
- Clarify that `bundle info` takes a gem name [#6875](https://github.com/rubygems/rubygems/pull/6875)
16+
17+
# 2.4.18 (August 2, 2023)
18+
19+
## Security:
20+
21+
- Merge URI-0.12.2 for Bundler [#6779](https://github.com/rubygems/rubygems/pull/6779)
22+
23+
## Enhancements:
24+
25+
- Update Magnus version in Rust extension gem template [#6843](https://github.com/rubygems/rubygems/pull/6843)
26+
27+
## Documentation:
28+
29+
- Update bundle-outdated(1) man to use table output [#6833](https://github.com/rubygems/rubygems/pull/6833)
30+
31+
# 2.4.17 (July 14, 2023)
32+
33+
## Enhancements:
34+
35+
- Avoid printing "Using ..." messages when version has not changed [#6804](https://github.com/rubygems/rubygems/pull/6804)
36+
37+
## Bug fixes:
38+
39+
- Fix `bundler/setup` unintendedly writing to the filesystem [#6814](https://github.com/rubygems/rubygems/pull/6814)
40+
141
# 2.4.16 (July 10, 2023)
242

343
## Bug fixes:

bundler/doc/playbooks/RELEASING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ $ git cherry-pick -m 1 dd6aef9
9393

9494
After running the task, you'll have a release branch ready to be merged into the
9595
stable branch. You'll want to open a PR from this branch into the stable branch
96-
and provided CI is green, you can go ahead, merge the PR and run `bin/rake
97-
release` from `bundler/` directory in the updated stable branch.
96+
and provided CI is green, you can go ahead, merge the PR and run `rake
97+
bundler:release` from the updated stable branch.
9898

9999
Here's the checklist for releasing new minor versions:
100100

@@ -105,8 +105,8 @@ Here's the checklist for releasing new minor versions:
105105
a PR to the stable branch with the generated changes.
106106
* [ ] Get the PR reviewed, make sure CI is green, and merge it.
107107
* [ ] Pull the updated stable branch, wait for CI to complete on it and get excited.
108-
* [ ] Run `bin/rake release` from the `bundler/` directory updated stable
109-
branch, tweet, blog, let people know about the prerelease!
108+
* [ ] Run `rake bundler:release` from the updated stable branch, tweet, blog,
109+
let people know about the prerelease!
110110
* [ ] Wait a **minimum of 7 days**
111111
* [ ] If significant problems are found, increment the prerelease (i.e. 2.2.pre.2)
112112
and repeat, but treating `.pre.2` as a _patch release_. In general, once a stable
@@ -124,8 +124,8 @@ Wait! You're not done yet! After your prelease looks good:
124124
* [ ] Write a blog post announcing the new version, highlighting new features and
125125
notable bugfixes
126126
* [ ] Pull the updated stable branch, wait for CI to complete on it and get excited.
127-
* [ ] Run `bin/rake release` in the `bundler/` directory of the updated stable
128-
branch, tweet, link to the blog post, etc.
127+
* [ ] Run `rake bundler:release` from the updated stable branch, tweet, link to
128+
the blog post, etc.
129129

130130
At this point, you're a release manager! Pour yourself several tasty drinks and
131131
think about taking a vacation in the tropics.

0 commit comments

Comments
 (0)