Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Change rcov to simplecov #87

Merged
merged 2 commits into from

3 participants

@chytreg

Rcov can run only on ruby 1.8.7 see issue: #86

@chytreg

Coverage is optional enable via ENV variable

COVERAGE=true bundle exec rake
Gemfile
@@ -1,20 +1,20 @@
-source "http://rubygems.org"
+source 'http://rubygems.org'

Probably be a good time to switch to https.

@adelevie Owner

Sure.

Although you'll probably want to merge this one before I do that.

@chytreg
chytreg added a note

I can make commit with https change to this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@adelevie adelevie merged commit ce3d01c into adelevie:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 27, 2013
  1. @chytreg
  2. @chytreg
This page is out of date. Refresh to see the latest.
View
5 .travis.yml
@@ -1,7 +1,8 @@
language: ruby
rvm:
- - 1.9.2
+ - 2.0.0
- 1.9.3
+ - 1.9.2
-env:
+env:
- PARSE_APPLICATION_ID=Slw1ACyMSVguo79pWvfIq15pkUjfwTLNPpL4984b PARSE_REST_API_KEY=qJKM8CGOAn70WOyR16f16YbyKWM0nBJCEbbtAMOm
View
24 Gemfile
@@ -1,20 +1,20 @@
-source "http://rubygems.org"
+source 'https://rubygems.org'
# Add dependencies required to use your gem here.
# Example:
-# gem "activesupport", ">= 2.3.5"
+# gem 'activesupport', '>= 2.3.5'
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
- gem "bundler"
- gem "shoulda", ">= 0"
- gem "test-unit", '= 2.5.0'
- gem "mocha", '= 0.12.0', :require => false
- gem "jeweler", "~> 1.6.4"
- gem "rcov", ">= 0"
- gem "webmock"
- gem "vcr"
+ gem 'bundler'
+ gem 'shoulda', '>= 0'
+ gem 'test-unit', '= 2.5.0'
+ gem 'mocha', '= 0.12.0', :require => false
+ gem 'jeweler', '~> 1.6.4'
+ gem 'simplecov', :require => false
+ gem 'webmock'
+ gem 'vcr'
end
-gem "patron"
-gem "iron_mq"
+gem 'patron'
+gem 'iron_mq'
View
12 Gemfile.lock
@@ -1,5 +1,5 @@
GEM
- remote: http://rubygems.org/
+ remote: https://rubygems.org/
specs:
addressable (2.3.2)
crack (0.3.1)
@@ -13,19 +13,23 @@ GEM
git (>= 1.2.5)
rake
metaclass (0.0.1)
- mime-types (1.20.1)
+ mime-types (1.22)
mocha (0.12.0)
metaclass (~> 0.0.1)
+ multi_json (1.7.2)
net-http-persistent (2.8)
patron (0.4.18)
rake (0.9.2.2)
- rcov (0.9.11)
rest (2.2.0)
net-http-persistent
rest-client (>= 0.3.0)
rest-client (1.6.7)
mime-types (>= 1.16)
shoulda (2.11.3)
+ simplecov (0.7.1)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.7.1)
+ simplecov-html (0.7.1)
test-unit (2.5.0)
vcr (2.4.0)
webmock (1.8.10)
@@ -41,8 +45,8 @@ DEPENDENCIES
jeweler (~> 1.6.4)
mocha (= 0.12.0)
patron
- rcov
shoulda
+ simplecov
test-unit (= 2.5.0)
vcr
webmock
View
10 Rakefile
@@ -32,17 +32,9 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end
-require 'rcov/rcovtask'
-Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- test.rcov_opts << '--exclude "gems/*"'
-end
-
task :default => :test
-require 'rake/rdoctask'
+require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
View
6 test/helper.rb
@@ -7,6 +7,12 @@
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
+
+require 'simplecov'
+SimpleCov.start do
+ add_filter "/test/"
+end if ENV["COVERAGE"]
+
require 'test/unit'
require 'shoulda'
require 'mocha'
Something went wrong with that request. Please try again.