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