lib/bundler/plumber/advisory.rb in bundler-leak-0.1.1 vs lib/bundler/plumber/advisory.rb in bundler-leak-0.2.0

- old
+ new

@@ -18,18 +18,21 @@ require 'yaml' module Bundler module Plumber - class Advisory < Struct.new(:path, - :id, - :url, - :title, - :date, - :description, - :unaffected_versions, - :patched_versions) + class Advisory < Struct.new( + :gem, + :path, + :id, + :url, + :title, + :date, + :description, + :unaffected_versions, + :patched_versions + ) # # Loads the advisory from a YAML file. # # @param [String] path @@ -52,9 +55,10 @@ Gem::Requirement.new(*version.split(', ')) end } return new( + data['gem'], path, id, data['url'], data['title'], data['date'],