Sha256: 1c494642aebb4f3a8b60c9a3e9c0943bddff49bc37538f88912205eb54f52c24

Contents?: true

Size: 508 Bytes

Versions: 9

Compression:

Stored size: 508 Bytes

Contents

require 'yaml'

namespace :lint do
  begin
    require 'rspec/core/rake_task'

    RSpec::Core::RakeTask.new(:yaml)
  rescue LoadError => e
    task :spec do
      abort "Please run `gem install rspec` to install RSpec."
    end
  end

  task :cve do
    Dir.glob('{gems,libraries,rubies}/*/*.yml') do |path|
      advisory = YAML.load_file(path)

      unless advisory['cve']
        puts "Missing CVE: #{path}"
      end
    end
  end
end

task :lint    => ['lint:yaml', 'lint:cve']
task :default => :lint

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
bundler-leak-0.2.0 data/ruby-mem-advisory-db/Rakefile
bundler-leak-0.1.1 data/ruby-mem-advisory-db/Rakefile
bundler-leak-0.1.0 data/ruby-mem-advisory-db/Rakefile
bundler-leak-0.0.0 data/ruby-mem-advisory-db/Rakefile
bundler-budit-0.6.2 data/ruby-advisory-db/Rakefile
bundler-budit-0.6.1 data/ruby-advisory-db/Rakefile
bundler-audit-0.6.1 data/ruby-advisory-db/Rakefile
bundler-audit-0.6.0 data/ruby-advisory-db/Rakefile
bundler-audit-0.5.0 data/ruby-advisory-db/Rakefile