mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-29 08:48:01 -05:00
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:
1
Gemfile
1
Gemfile
@@ -19,7 +19,6 @@ gem 'maruku', '~> 0.7.0'
|
||||
gem 'rdiscount', '~> 2.0'
|
||||
gem 'launchy', '~> 2.3'
|
||||
gem 'simplecov', '~> 0.9'
|
||||
gem 'simplecov-gem-adapter', '~> 1.0.1'
|
||||
gem 'mime-types', '~> 1.5'
|
||||
gem 'activesupport', '~> 3.2.13'
|
||||
gem 'jekyll_test_plugin'
|
||||
|
||||
13
lib/simplecov_custom_profile.rb
Normal file
13
lib/simplecov_custom_profile.rb
Normal file
@@ -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-gem-adapter'
|
||||
require 'simplecov_custom_profile'
|
||||
SimpleCov.start('gem') do
|
||||
add_filter "/vendor/bundle"
|
||||
add_filter "/vendor/gem"
|
||||
|
||||
Reference in New Issue
Block a user