Class: YAVDB::Sources::RubyAdvisory::Client
- Inherits:
-
Object
- Object
- YAVDB::Sources::RubyAdvisory::Client
- Defined in:
- lib/yavdb/sources/ruby_advisory.rb
Constant Summary collapse
- REPOSITORY_URL =
'https://github.com/rubysec/ruby-advisory-db'.freeze
- PACKAGE_MANAGER =
'rubygems'.freeze
Class Method Summary collapse
Class Method Details
.advisories ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/yavdb/sources/ruby_advisory.rb', line 31 def self.advisories YAVDB::SourceTypes::GitRepo.search('gems/**/*.yml', REPOSITORY_URL).map do |repo_path, file_paths| Dir.chdir(repo_path) do file_paths.map do |file_path| advisory_hash = YAML.load_file(file_path) create(file_path, advisory_hash) end end end.flatten end |