Skip to content

Commit a177a28

Browse files
committed
Switched to using the TLS NVD download site, switched to using the ruby http libraries for downloading and storing the XML, fixed some rails 3 specific issues around mass assignment, and iterated the version.
1 parent 8d8f217 commit a177a28

14 files changed

+27
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.project

fidius-cvedb-0.0.8.gem

20 KB
Binary file not shown.

fidius-cvedb.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
77
s.version = FIDIUS::CveDb::VERSION
88
s.platform = Gem::Platform::RUBY
99
s.add_dependency('nokogiri')
10-
s.authors = ["Andreas Bender", "Jens Färber"]
11-
10+
s.authors = ["Andreas Bender", "Jens Färber", "Michael Carlson"]
11+
1212
s.homepage = "http://fidius.me"
1313
s.summary = %q{Provides a parser and ActiveRecord models for the Common Vulnerability and Exposures (CVE) entries offered by the National Vulnerability Database (http://nvd.nist.gov/). }
1414
s.description = %q{This gem provides an opportunity to run a vulnerability database in your own environment. Therefore it comes with a parser for the National Vulnerability Database and ActiveRecord models for storing the entries in a local database and accessing Entries comfortable with Rails. }

lib/fidius-cvedb/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module FIDIUS
22
module CveDb
3-
VERSION = "0.0.7"
3+
VERSION = "0.0.8"
44
end
55
end

lib/models/fidius/cve_db/cvss.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
class FIDIUS::CveDb::Cvss < FIDIUS::CveDb::CveConnection
2+
attr_accessible :score, :source, :generated_on, :access_vector, :access_complexity, :authentication,
3+
:confidentiality_impact_id, :integrity_impact_id, :availability_impact_id
24
has_one :confidentiality_impact
35
has_one :availability_impact
46
has_one :integrity_impact

lib/models/fidius/cve_db/impact.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
class FIDIUS::CveDb::Impact < FIDIUS::CveDb::CveConnection
2+
attr_accessible :name
23
end

lib/models/fidius/cve_db/mscve.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class FIDIUS::CveDb::Mscve < FIDIUS::CveDb::CveConnection
2+
attr_accessible :nvd_entry_id, :name
23
belongs_to :nvd_entry
34
end

lib/models/fidius/cve_db/nvd_entry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class FIDIUS::CveDb::NvdEntry < FIDIUS::CveDb::CveConnection
2-
2+
attr_accessible :cve, :cwe, :summary, :published, :last_modified, :cvss
33
has_one :cvss
44
has_one :mscve
55

lib/models/fidius/cve_db/product.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class FIDIUS::CveDb::Product < FIDIUS::CveDb::CveConnection
2-
2+
attr_accessible :part, :vendor, :product, :version, :update_nr, :edition, :language
33
has_many :vulnerable_softwares
44
has_many :nvd_entries, :through => :vulnerable_softwares
55

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class FIDIUS::CveDb::VulnerabilityReference < FIDIUS::CveDb::CveConnection
2+
attr_accessible :name, :link, :source, :nvd_entry_id
23
belongs_to :nvd_entry
34
end

0 commit comments

Comments
 (0)