Skip to content

Commit

Permalink
Merge pull request #7525 from rubygems/release/bundler_2.5.7_rubygems…
Browse files Browse the repository at this point in the history
…_3.5.7

Prepare RubyGems 3.5.7 and Bundler 2.5.7
  • Loading branch information
deivid-rodriguez committed Mar 22, 2024
2 parents 7ac045d + 832e676 commit 199531f
Show file tree
Hide file tree
Showing 129 changed files with 687 additions and 355 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bundler.yml
Expand Up @@ -53,9 +53,9 @@ jobs:
RGV: ..
RUBYOPT: --disable-gems
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/daily-bundler.yml
Expand Up @@ -19,10 +19,10 @@ jobs:
env:
RGV: ..
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Set up Ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ruby-head
bundler: none
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/daily-rubygems.yml
Expand Up @@ -24,10 +24,10 @@ jobs:
env:
TRUFFLERUBYOPT: "--experimental-options --testing-rubygems"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Set up Ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby }}
bundler: none
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/install-rubygems.yml
Expand Up @@ -32,9 +32,9 @@ jobs:
- { name: "openssl", value: true }
- { name: "no-openssl", value: false }
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
Expand Down Expand Up @@ -101,14 +101,14 @@ jobs:
- { name: "3.3", value: 3.3.0 } # Rails 7
- { name: jruby-9.4, value: jruby-9.4.2.0, rails-args: "--skip-webpack-install" } # Rails 6
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
- name: Setup java
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: 19.0.2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/jruby-bundler.yml
Expand Up @@ -32,14 +32,14 @@ jobs:
os: [ubuntu-22.04, windows-2022]

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: jruby-9.4.2.0
bundler: none
- name: Setup java
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: temurin
java-version: 19.0.2
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/realworld-bundler.yml
Expand Up @@ -43,9 +43,9 @@ jobs:
RGV: ..
RUBYOPT: --disable-gems
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Run Test
run: bin/rake spec:realworld
- name: Upload used cassettes as artifact
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: cassettes-bundler-${{ matrix.bundler.name }}-${{ matrix.os.value }}-${{ matrix.ruby.name }}
path: ./bundler/spec/support/artifice/used_cassettes.txt
Expand All @@ -79,9 +79,9 @@ jobs:
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.2, value: 3.2.3 } }
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.3, value: 3.3.0 } }
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Run Test
run: bin/rake spec:realworld
- name: Upload used cassettes as artifact
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: cassettes-system-rubygems-bundler-${{ matrix.bundler.name }}-${{ matrix.ruby.name }}
path: ./bundler/spec/support/artifice/used_cassettes.txt
Expand All @@ -104,14 +104,14 @@ jobs:
needs: [bundler, system_rubygems_bundler]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: 3.3.0
bundler: none
- name: Download all used cassettes as artifacts
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
path: ./bundler/spec/support/artifice/used_vcr_cassettes
- name: Check unused cassettes
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ruby-core.yml
Expand Up @@ -24,13 +24,13 @@ jobs:
target: [Rubygems, Bundler]
steps:
- name: Set up latest ruby head
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: head
bundler: none
- name: Save latest buildable revision to environment
run: echo "REF=$(ruby -v | cut -d')' -f1 | cut -d' ' -f5)" >> $GITHUB_ENV
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
repository: ruby/ruby
path: ruby/ruby
Expand All @@ -49,7 +49,7 @@ jobs:
./configure -C --disable-install-doc
make -j2
working-directory: ruby/ruby
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
path: rubygems/rubygems
- name: Sync tools
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rubygems.yml
Expand Up @@ -43,9 +43,9 @@ jobs:
ruby: { name: mswin, value: mswin }

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby (Ubuntu/macOS)
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spell.yml
Expand Up @@ -15,5 +15,5 @@ jobs:
name: Check spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: codespell-project/actions-codespell@94259cd8be02ad2903ba34a22d9c13de21a74461 # v2.0
6 changes: 3 additions & 3 deletions .github/workflows/system-rubygems-bundler.yml
Expand Up @@ -38,9 +38,9 @@ jobs:
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.2, value: 3.2.3 } }
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.3, value: 3.3.0 } }
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
Expand All @@ -61,7 +61,7 @@ jobs:
run: |
RGV=$(ruby -e 'puts Gem::VERSION.split(".")[0..2].join(".")')
echo "RGV=v$RGV" >> $GITHUB_ENV
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
path: bundler/tmp/rubygems
ref: ${{ env.RGV }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/truffleruby-bundler.yml
Expand Up @@ -24,9 +24,9 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: truffleruby-23.1.2
bundler: none
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu-lint.yml
Expand Up @@ -21,9 +21,9 @@ jobs:
env:
RUBYOPT: -Ilib
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup ruby
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
with:
ruby-version: 3.3.0
bundler: none
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly-update.yml
Expand Up @@ -24,7 +24,7 @@ jobs:
git config --global user.email license.update@rubygems.org
git config --global push.autoSetupRemote true
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Check versions
run: |
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,31 @@
# 3.5.7 / 2024-03-22

## Enhancements:

* Warn on empty or open required_ruby_version specification attribute.
Pull request [#5010](https://github.com/rubygems/rubygems/pull/5010) by
simi
* Control whether YAML aliases are enabled in Gem::SafeYAML.safe_load via
attribute. Pull request
[#7464](https://github.com/rubygems/rubygems/pull/7464) by segiddins
* Update SPDX license list as of 2024-02-08. Pull request
[#7468](https://github.com/rubygems/rubygems/pull/7468) by
github-actions[bot]
* Installs bundler 2.5.7 as a default gem.

## Bug fixes:

* Allow prerelease activation (even if requirement is not explicit about
it) when it's the only possibility. Pull request
[#7428](https://github.com/rubygems/rubygems/pull/7428) by kimesf

## Documentation:

* Fix a typo. Pull request
[#7505](https://github.com/rubygems/rubygems/pull/7505) by hsbt
* Use https instead of http in documentation links. Pull request
[#7481](https://github.com/rubygems/rubygems/pull/7481) by hsbt

# 3.5.6 / 2024-02-06

## Enhancements:
Expand Down
8 changes: 4 additions & 4 deletions Manifest.txt
Expand Up @@ -431,9 +431,7 @@ lib/rubygems/installer.rb
lib/rubygems/installer_uninstaller_utils.rb
lib/rubygems/local_remote_options.rb
lib/rubygems/name_tuple.rb
lib/rubygems/net/http.rb
lib/rubygems/openssl.rb
lib/rubygems/optparse.rb
lib/rubygems/package.rb
lib/rubygems/package/digest_io.rb
lib/rubygems/package/file_source.rb
Expand Down Expand Up @@ -519,8 +517,6 @@ lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem
lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem
lib/rubygems/stub_specification.rb
lib/rubygems/text.rb
lib/rubygems/timeout.rb
lib/rubygems/tsort.rb
lib/rubygems/uninstaller.rb
lib/rubygems/unknown_command_spell_checker.rb
lib/rubygems/update_suggestion.rb
Expand Down Expand Up @@ -608,6 +604,10 @@ lib/rubygems/vendor/uri/lib/uri/version.rb
lib/rubygems/vendor/uri/lib/uri/ws.rb
lib/rubygems/vendor/uri/lib/uri/wss.rb
lib/rubygems/vendored_molinillo.rb
lib/rubygems/vendored_net_http.rb
lib/rubygems/vendored_optparse.rb
lib/rubygems/vendored_timeout.rb
lib/rubygems/vendored_tsort.rb
lib/rubygems/version.rb
lib/rubygems/version_option.rb
lib/rubygems/yaml_serializer.rb
Expand Down
29 changes: 14 additions & 15 deletions Rakefile
Expand Up @@ -28,33 +28,32 @@ module RubyGems

version = stdout.split(" ").last

bundle_support_gemfile "dev_gems", "update", "--bundler", version
bundle_support_gemfile "release_gems", "update", "--bundler", version
bundle_support_gemfile "test_gems", "update", "--bundler", version
bundle_support_gemfile "rubocop_gems", "update", "--bundler", version
bundle_support_gemfile "standard_gems", "update", "--bundler", version
bundle_support_gemfile "lint_gems", "update", "--bundler", version
bundle_support_gemfile "vendor_gems", "update", "--bundler", version
Dir.glob("tool/bundler/*_gems.rb").each do |file|
name = File.basename(file, ".rb")
bundle_support_gemfile(name, "update", "--bundler", version)
end
end
end
end

desc "Setup Rubygems dev environment"
task :setup do
RubyGems::DevTasks.bundle_dev_gemfile "install"
RubyGems::DevTasks.bundle_support_gemfile "release_gems","lock"
RubyGems::DevTasks.bundle_support_gemfile "test_gems", "lock"
RubyGems::DevTasks.bundle_support_gemfile "rubocop_gems", "lock"
RubyGems::DevTasks.bundle_support_gemfile "standard_gems", "lock"
Dir.glob("tool/bundler/*_gems.rb").each do |file|
name = File.basename(file, ".rb")
next if name == "dev_gems"
RubyGems::DevTasks.bundle_support_gemfile name, "lock"
end
end

desc "Update Rubygems dev environment"
task :update do
RubyGems::DevTasks.bundle_dev_gemfile "update"
RubyGems::DevTasks.bundle_support_gemfile "release_gems", "lock", "--update"
RubyGems::DevTasks.bundle_support_gemfile "test_gems", "lock", "--update"
RubyGems::DevTasks.bundle_support_gemfile "rubocop_gems", "lock", "--update"
RubyGems::DevTasks.bundle_support_gemfile "standard_gems", "lock", "--update"
Dir.glob("tool/bundler/*_gems.rb").each do |file|
name = File.basename(file, ".rb")
next if name == "dev_gems"
RubyGems::DevTasks.bundle_support_gemfile name, "lock", "--update"
end
end

namespace :version do
Expand Down
18 changes: 18 additions & 0 deletions bundler/CHANGELOG.md
@@ -1,3 +1,21 @@
# 2.5.7 (March 22, 2024)

## Deprecations:

- Deprecate `bundle plugin install --local-git=` [#7048](https://github.com/rubygems/rubygems/pull/7048)

## Enhancements:

- Ignore commented out keys in config file [#7514](https://github.com/rubygems/rubygems/pull/7514)
- Fix exclusion of `.gemspec` file itself in `bundle gem` generated gemspec file [#7488](https://github.com/rubygems/rubygems/pull/7488)
- Remove redundant configs from `bundle gem` generated rubocop configuration [#7478](https://github.com/rubygems/rubygems/pull/7478)
- Add `gitlab:` git source shorthand [#7449](https://github.com/rubygems/rubygems/pull/7449)
- Use full path for `instance_eval` in `Bundler::DSL#eval_gemfile` [#7471](https://github.com/rubygems/rubygems/pull/7471)

## Documentation:

- Use https instead of http in documentation links [#7481](https://github.com/rubygems/rubygems/pull/7481)

# 2.5.6 (February 6, 2024)

## Deprecations:
Expand Down
2 changes: 1 addition & 1 deletion bundler/lib/bundler/cli.rb
Expand Up @@ -620,7 +620,7 @@ def inject(name, version)
method_option "major", type: :boolean, banner: "If updating, prefer updating to next major version (default)"
method_option "pre", type: :boolean, banner: "If updating, always choose the highest allowed version, regardless of prerelease status"
method_option "strict", type: :boolean, banner: "If updating, do not allow any gem to be updated past latest --patch | --minor | --major"
method_option "conservative", type: :boolean, banner: "If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated"
method_option "conservative", type: :boolean, banner: "If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated"
method_option "bundler", type: :string, lazy_default: "> 0.a", banner: "Update the locked version of bundler"
def lock
require_relative "cli/lock"
Expand Down

0 comments on commit 199531f

Please sign in to comment.