Skip to content

Commit

Permalink
Replace rcov with simplecov
Browse files Browse the repository at this point in the history
rcov doesn't support Ruby 1.9+
  • Loading branch information
wijet authored and joelvh committed Mar 29, 2017
1 parent 93bd272 commit 8ce7052
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
12 changes: 8 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
taps (0.3.23)
taps (0.3.24)
rack (>= 1.0.1)
rest-client (>= 1.4.0, < 1.7.0)
sequel (~> 3.20.0)
Expand All @@ -19,20 +19,24 @@ GEM
hoptoad_notifier (2.4.7)
activesupport
builder
mime-types (1.18)
mime-types (1.25)
mocha (0.9.8)
rake
multi_json (1.8.2)
mysql (2.8.1)
mysql2 (0.2.6)
pg (0.9.0)
rack (1.2.1)
rack-test (0.5.7)
rack (>= 1.0)
rake (0.8.7)
rcov (0.9.9)
rest-client (1.6.7)
mime-types (>= 1.16)
sequel (3.20.0)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
sinatra (1.0)
rack (>= 1.0)
sqlite3 (1.3.6)
Expand All @@ -54,7 +58,7 @@ DEPENDENCIES
pg (= 0.9.0)
rack-test
rake
rcov
simplecov
sqlite3 (~> 1.2)
taps!
thin (> 1.2.0)
16 changes: 4 additions & 12 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'simplecov'

task :build do
gemspec = Gem::Specification.load("taps.gemspec")
target = "pkg/#{gemspec.file_name}"
Expand All @@ -8,7 +10,7 @@ task :build do
end

begin
require 'rake/rdoctask'
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'taps'
Expand All @@ -20,19 +22,9 @@ rescue LoadError
puts "Rdoc is not available"
end

begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.libs << 'spec'
t.test_files = FileList['spec/*_spec.rb']
t.verbose = true
end
rescue LoadError
puts "RCov is not available. In order to run rcov, you must: sudo gem install rcov"
end

desc "Run all specs; requires the bacon gem"
task :spec do
SimpleCov.start if ENV["COVERAGE"]
if `which bacon`.empty?
puts "bacon is not available. In order to run the specs, you must: sudo gem install bacon."
else
Expand Down
2 changes: 1 addition & 1 deletion taps.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "mocha"
gem.add_development_dependency "rack-test"
gem.add_development_dependency "rake"
gem.add_development_dependency "rcov"
gem.add_development_dependency "simplecov"
end

0 comments on commit 8ce7052

Please sign in to comment.