Skip to content

Commit

Permalink
Merge dc7752e into ee86c6c
Browse files Browse the repository at this point in the history
  • Loading branch information
0exp committed Oct 15, 2018
2 parents ee86c6c + dc7752e commit 88ef10b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
14 changes: 12 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop'
require 'rubocop-rspec'
require 'rubocop/rake_task'

RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new(:rubocop) do |t|
config_path = File.expand_path(File.join('.rubocop.yml'), __dir__)

task default: :spec
t.options = ['--config', config_path]
t.requires << 'rubocop-rspec'
end

RSpec::Core::RakeTask.new(:rspec)

task default: :rspec
5 changes: 2 additions & 3 deletions qonfig.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ Gem::Specification.new do |spec|
end

spec.add_development_dependency 'coveralls', '~> 0.8'
spec.add_development_dependency 'simplecov', '~> 0.14'
spec.add_development_dependency 'simplecov-json', '~> 0.2'
spec.add_development_dependency 'simplecov', '~> 0.16'
spec.add_development_dependency 'rspec', '~> 3.8'
spec.add_development_dependency 'armitage-rubocop', '~> 0.6'
spec.add_development_dependency 'armitage-rubocop', '~> 0.10'

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# frozen_string_literal: true

require 'simplecov'
require 'simplecov-json'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
Coveralls::SimpleCov::Formatter
])

Expand Down

0 comments on commit 88ef10b

Please sign in to comment.