lib/bundler/patch/advisory_consolidator.rb in bundler-patch-1.0.0 vs lib/bundler/patch/advisory_consolidator.rb in bundler-patch-1.1.0.pre1
- old
+ new
@@ -61,10 +61,11 @@
end.flatten.group_by do |v|
Gem::Version.new(v).segments[0..1].join('.')
end.map do |_, all|
all.sort.last
end
- Gemfile.new(gem_name: all_gem_names.first, patched_versions: highest_minor_patched)
+ Gemfile.new(target_bundle: @options[:target] || TargetBundle.new,
+ gem_name: all_gem_names.first, patched_versions: highest_minor_patched)
end
end
class GemPatch
include Comparable