class GemsToPatchReconciler
Attributes
reconciled_patches[R]
Public Class Methods
new(vulnerable_patches, requested_patches=[])
click to toggle source
# File lib/bundler/patch/gems_to_patch_reconciler.rb, line 4 def initialize(vulnerable_patches, requested_patches=[]) @vulnerable_patches = vulnerable_patches @requested_patches = requested_patches reconcile end
Private Instance Methods
reconcile()
click to toggle source
# File lib/bundler/patch/gems_to_patch_reconciler.rb, line 12 def reconcile @reconciled_patches = [] unless @requested_patches.empty? @vulnerable_patches.reject! { |gp| !@requested_patches.include?(gp) } @reconciled_patches.push(*((@vulnerable_patches + @requested_patches).uniq)) end end