Skip to content

Commit

Permalink
update Bundler (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer authored Feb 12, 2024
1 parent 8009bf4 commit 6b0b896
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
fail-fast: false
matrix:
ruby-version: [2.6, 2.7, "3.0", 3.1, 3.2]
bundler-version: [2.4.19, 2.4.22, 2.5.2]
bundler-version: [2.4.19, 2.4.22, 2.5.6]
exclude:
- ruby-version: 2.6
bundler-version: 2.5.2
bundler-version: 2.5.6
- ruby-version: 2.7
bundler-version: 2.5.2
bundler-version: 2.5.6
env:
BUNDLER_VERSION: ${{ matrix.bundler-version }}
BUNDLE_LOCKFILE: active
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GEM
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.5.0)
io-console (0.7.1)
io-console (0.7.2)
irb (1.11.0)
rdoc
reline (>= 0.3.8)
Expand All @@ -31,7 +31,7 @@ GEM
rdoc (6.6.2)
psych (>= 4.0.0)
regexp_parser (2.8.1)
reline (0.4.1)
reline (0.4.2)
io-console (~> 0.5)
rexml (3.2.6)
rspec (3.12.0)
Expand Down Expand Up @@ -100,4 +100,4 @@ DEPENDENCIES
stringio (~> 3.1)

BUNDLED WITH
2.5.2
2.5.6
6 changes: 3 additions & 3 deletions Gemfile.ruby-2.6.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ GEM
irb (>= 1.5.0)
reline (>= 0.3.1)
diff-lcs (1.5.0)
io-console (0.7.1)
io-console (0.7.2)
irb (1.6.3)
reline (>= 0.3.0)
rake (13.0.6)
reline (0.4.1)
reline (0.4.2)
io-console (~> 0.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand Down Expand Up @@ -48,4 +48,4 @@ DEPENDENCIES
stringio (= 3.0.6)

BUNDLED WITH
2.5.2
2.5.6
9 changes: 8 additions & 1 deletion lib/bundler/multilock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,12 @@ def write_lockfile(lockfile_definition, lockfile, install:, dependency_changes:
resolved_remotely = true
end
SharedHelpers.capture_filesystem_access do
definition.lock(lockfile_definition[:lockfile], true)
if Bundler.gem_version >= Gem::Version.new("2.5.6")
definition.instance_variable_set(:@lockfile, lockfile_definition[:lockfile])
definition.lock(true)
else
definition.lock(lockfile_definition[:lockfile], true)
end
end
ensure
Bundler.ui.level = previous_ui_level
Expand All @@ -495,6 +500,8 @@ def write_lockfile(lockfile_definition, lockfile, install:, dependency_changes:
end
end

# see https://github.com/rubygems/rubygems/pull/7368
Bundler::LazySpecification.include(Bundler::MatchMetadata) if defined?(Bundler::MatchMetadata)
Bundler::Multilock.inject_preamble unless Bundler::Multilock.loaded?

# this is terrible, but we can't prepend into these modules because we only load
Expand Down

0 comments on commit 6b0b896

Please sign in to comment.