Skip to content

Commit

Permalink
restore compatibility with bundler 2.4.19 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer authored Oct 6, 2023
1 parent 5f58569 commit acb8d98
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
bundler-multilock (1.1.0)
bundler-multilock (1.1.1)
bundler (~> 2.4.19)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/multilock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def write_lockfile(lockfile_definition, lockfile, install:, dependency_changes:
definition.send(:source_map).locked_specs.each do |spec|
next if spec.match_platform(Bundler.local_platform)

spec.source.specs.add(spec)
spec.source.specs << spec
end
definition.resolve_with_cache!
rescue GemNotFound, SolveFailure
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/multilock/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Bundler
module Multilock
VERSION = "1.1.0"
VERSION = "1.1.1"
end
end
8 changes: 4 additions & 4 deletions spec/bundler/multilock_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
source "https://rubygems.org"
plugin "bundler-multilock", "~> 1.0"
plugin "bundler-multilock", "~> 1.1"
return unless Plugin.installed?("bundler-multilock")
Plugin.send(:load_plugin, "bundler-multilock")
Expand All @@ -52,7 +52,7 @@
source 'https://rubygems.org'
plugin 'bundler-multilock', '~> 1.0'
plugin 'bundler-multilock', '~> 1.1'
return unless Plugin.installed?('bundler-multilock')
Plugin.send(:load_plugin, 'bundler-multilock')
Expand Down Expand Up @@ -81,7 +81,7 @@
RUBY

File.write("injected.rb", <<~RUBY)
plugin "bundler-multilock", "~> 1.0", path: #{File.expand_path("../..", __dir__).inspect}
plugin "bundler-multilock", "~> 1.1", path: #{File.expand_path("../..", __dir__).inspect}
return unless Plugin.installed?("bundler-multilock")
Plugin.send(:load_plugin, "bundler-multilock")
Expand Down Expand Up @@ -740,7 +740,7 @@ def write_gemfile(content)
File.write("Gemfile", <<~RUBY)
source "https://rubygems.org"
plugin "bundler-multilock", "~> 1.0", path: #{File.expand_path("../..", __dir__).inspect}
plugin "bundler-multilock", "~> 1.1", path: #{File.expand_path("../..", __dir__).inspect}
return unless Plugin.installed?("bundler-multilock")
Plugin.send(:load_plugin, "bundler-multilock")
Expand Down

0 comments on commit acb8d98

Please sign in to comment.