Skip to content

Commit

Permalink
cve: automatically fetch the last 5 years of security updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Phreedom committed Apr 30, 2016
1 parent a7c62a9 commit 3dcf827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/security-advisory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.load_from(file)


def self.update_names
["2012", "2013", "2014", "2015", "2016", "Modified", "Recent"]
(-4..0).map { |offs| (Time.now.utc.year + offs).to_s } + ["Modified", "Recent"]
end

def self.fetch_updates
Expand All @@ -60,6 +60,7 @@ def self.parse_package(package)

end


class GLSA
attr_reader :id, :packages

Expand Down

0 comments on commit 3dcf827

Please sign in to comment.