Removes the following deprecation warning:
'method adapters is deprecated. use profiles instead' This warning was showing up because the project was using the gem 'simplecov-gem-adapter' which uses the old syntax. * Remove the gem dependency * Add a profile with the same setup that the gem has
This commit is contained in:
parent
a25f2d7dd6
commit
cd7b3f54f1
1
Gemfile
1
Gemfile
|
@ -19,7 +19,6 @@ gem 'maruku', '~> 0.7.0'
|
||||||
gem 'rdiscount', '~> 2.0'
|
gem 'rdiscount', '~> 2.0'
|
||||||
gem 'launchy', '~> 2.3'
|
gem 'launchy', '~> 2.3'
|
||||||
gem 'simplecov', '~> 0.9'
|
gem 'simplecov', '~> 0.9'
|
||||||
gem 'simplecov-gem-adapter', '~> 1.0.1'
|
|
||||||
gem 'mime-types', '~> 1.5'
|
gem 'mime-types', '~> 1.5'
|
||||||
gem 'activesupport', '~> 3.2.13'
|
gem 'activesupport', '~> 3.2.13'
|
||||||
gem 'jekyll_test_plugin'
|
gem 'jekyll_test_plugin'
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
require 'simplecov'
|
||||||
|
|
||||||
|
SimpleCov.profiles.define 'gem' do
|
||||||
|
add_filter '/test/'
|
||||||
|
add_filter '/features/'
|
||||||
|
add_filter '/spec/'
|
||||||
|
add_filter '/autotest/'
|
||||||
|
|
||||||
|
add_group 'Binaries', '/bin/'
|
||||||
|
add_group 'Libraries', '/lib/'
|
||||||
|
add_group 'Extensions', '/ext/'
|
||||||
|
add_group 'Vendor Libraries', '/vendor/'
|
||||||
|
end
|
|
@ -1,5 +1,4 @@
|
||||||
require 'simplecov'
|
require 'simplecov_custom_profile'
|
||||||
require 'simplecov-gem-adapter'
|
|
||||||
SimpleCov.start('gem') do
|
SimpleCov.start('gem') do
|
||||||
add_filter "/vendor/bundle"
|
add_filter "/vendor/bundle"
|
||||||
add_filter "/vendor/gem"
|
add_filter "/vendor/gem"
|
||||||
|
|
Loading…
Reference in New Issue