Skip to content
Browse files

Swap rcov with simplecov for Ruby 1.9 compatibility

  • Loading branch information...
1 parent 5ecb5c8 commit eb11b0d46782264f702253160dcd05569d462152 @sferik sferik committed Nov 10, 2010
Showing with 14 additions and 17 deletions.
  1. +4 −2 Gemfile.lock
  2. +1 −1 README.mkd
  3. +1 −13 Rakefile
  4. +7 −0 spec/spec_helper.rb
  5. +1 −1 twitter.gemspec
View
6 Gemfile.lock
@@ -31,7 +31,6 @@ GEM
nokogiri (1.4.3.1)
rack (1.2.1)
rake (0.8.7)
- rcov (0.9.9)
rspec (2.1.0)
rspec-core (~> 2.1.0)
rspec-expectations (~> 2.1.0)
@@ -41,6 +40,9 @@ GEM
diff-lcs (~> 1.1.2)
rspec-mocks (2.1.0)
simple_oauth (0.1.1)
+ simplecov (0.3.7)
+ simplecov-html (>= 0.3.7)
+ simplecov-html (0.3.9)
webmock (1.5.0)
addressable (>= 2.2.2)
crack (>= 0.1.7)
@@ -61,9 +63,9 @@ DEPENDENCIES
multi_xml (~> 0.2.0)
nokogiri (~> 1.4)
rake (~> 0.8)
- rcov (~> 0.9)
rspec (~> 2.1)
simple_oauth (~> 0.1.1)
+ simplecov (~> 0.3)
twitter!
webmock (~> 1.5)
yard (~> 0.6)
View
2 README.mkd
@@ -255,7 +255,7 @@ Submitting a Pull Request
4. Add documentation for your feature or bug fix.
5. Run <tt>bundle exec rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
6. Add specs for your feature or bug fix.
-7. Run <tt>bundle exec rake spec:rcov</tt>. If your changes are not 100% covered, go back to step 6.
+7. Run <tt>bundle exec rake spec</tt>. If your changes are not 100% covered, go back to step 6.
8. Commit and push your changes.
9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
View
14 Rakefile
@@ -4,19 +4,7 @@ Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
-namespace :spec do
- desc "Run all examples using rcov"
- RSpec::Core::RakeTask.new(:rcov => :cleanup_rcov_files) do |task|
- task.rcov = true
- task.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features,specs" --text-report --sort coverage]
- end
-end
-
-task :cleanup_rcov_files do
- rm_rf 'coverage'
-end
-
-task :default => ["spec:rcov"]
+task :default => :spec
namespace :doc do
require 'yard'
View
7 spec/spec_helper.rb
@@ -1,3 +1,10 @@
+require 'simplecov'
+SimpleCov.start do
+ add_group 'Twitter', 'lib/twitter'
+ add_group 'Faraday Middleware', 'lib/faraday'
+ add_group 'Specs', 'spec'
+end
+
require File.expand_path('../../lib/twitter', __FILE__)
require 'rspec'
View
2 twitter.gemspec
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
s.add_development_dependency("json", "~> 1.4")
s.add_development_dependency("nokogiri", "~> 1.4")
s.add_development_dependency("rake", "~> 0.8")
- s.add_development_dependency("rcov", "~> 0.9")
s.add_development_dependency("rspec", "~> 2.1")
+ s.add_development_dependency("simplecov", "~> 0.3")
s.add_development_dependency("webmock", "~> 1.5")
s.add_development_dependency("yard", "~> 0.6")
s.add_development_dependency("ZenTest", "~> 4.4")

0 comments on commit eb11b0d

Please sign in to comment.
Something went wrong with that request. Please try again.