Nvd

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'nvd'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nvd

Usage

To use: require 'nvd' cve_data = {} cve_data.merge! NVD::Feeds.fetch("cve_modified") cve_data.merge! NVD::Feeds.fetch("cve_recent") cve_data.keys #=> ["cve_recent", "cve_modified"]

# First run returns parsed values NVD::Feeds.fetch("cve_modified") #=> Array of Entries>] # Second run return the etag if the etag is unchanged; otherwise, # the parsed values are returned. NVD::Feeds.fetch("cve_modified") #=> "cve_modified"=>"\"89e2a7785a6ce1:0\""

# If you've stored the etag NVD::Feeds.fetch("cve_modified", "\"89e2a7785a6ce1:0\"")

# If you want to skip etag checking NVD::Feeds.fetch!("cve_modified") # OR NVD::Feeds.fetch("cve_modified", "\"89e2a7785a6ce1:0\"")

Available Feeds

cpe_dictionary, cve_2002, cve_2003, cve_2004, cve_2005, cve_2006, cve_2007, cve_2008, cve_2009, cve_2010, cve_2011, cve_2012, cve_2013, cve_modified, cve_recent

NOTE: cve_YEAR is populated dynamically to be future proof

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request