Sha256: d94ee0364d83ba7212c74fe0ca8ee5c91a32312bf268cd2af1c6689b1717b61d
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
#!/usr/bin/env ruby require 'rubygems' version = RUBY_VERSION.split(/\./).map(&:to_i) if((version[0] == 1 && version[1] >= 9) || (version[0] >= 2)) require 'simplecov' require 'json' # Be silent so we don't muck up test runs that look at output. class NullFormatter; def format(result); ""; end; end SimpleCov.formatter = NullFormatter # Use the project-level root despite executing in a sub-dir of it. SimpleCov.root(File.expand_path('../../..', __FILE__)) SimpleCov.start do # Being in a sub-dir may cause us some filtering issues... filters.clear add_filter do |src| !(src.filename =~ /^#{SimpleCov.root}/) end command_name "RSpec/#{ENV["SIMPLECOV_COMMAND_NAME"]}" end end root_dir = File.expand_path('../../..', __FILE__) $LOAD_PATH << root_dir unless $LOAD_PATH.include?(root_dir) lib_dir = File.join(root_dir, 'lib') $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir) require 'tmpdir' require 'bundler/audit/database' Bundler::Audit::Database.path = Dir.mktmpdir('ruby-advisory-db') Bundler::Audit::Database.update! load 'bin/bundle-audit'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mrjoy-bundler-audit-0.3.6 | spec/bundle/wrapper.rb |
mrjoy-bundler-audit-0.3.5 | spec/bundle/wrapper.rb |
mrjoy-bundler-audit-0.3.4 | spec/bundle/wrapper.rb |