Sha256: 972f2c51417f0c966c41529e4e09cbf7a59bcf2262f77592dfe55dbcd77b17a1

Contents?: true

Size: 515 Bytes

Versions: 9

Compression:

Stored size: 515 Bytes

Contents

require 'yaml'

namespace :lint do
  begin
    gem 'rspec', '~> 2.4'
    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/*/*.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 & 2 rubygems

Version Path
bundler-audit-0.4.0 data/ruby-advisory-db/Rakefile
bundler-audit-0.3.1 data/ruby-advisory-db/Rakefile
mrjoy-bundler-audit-0.3.3 data/ruby-advisory-db/Rakefile
mrjoy-bundler-audit-0.3.2 data/ruby-advisory-db/Rakefile
mrjoy-bundler-audit-0.3.1 data/ruby-advisory-db/Rakefile
bundler-audit-0.3.0 data/ruby-advisory-db/Rakefile
mrjoy-bundler-audit-0.2.1 data/ruby-advisory-db/Rakefile
bundler-audit-0.2.0 data/ruby-advisory-db/Rakefile
mrjoy-bundler-audit-0.1.4 data/ruby-advisory-db/Rakefile