From 349e75584f5635676b2bd7805e8952f3cd1192a9 Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Sat, 5 Apr 2014 23:27:29 -0400 Subject: [PATCH 1/2] Switch from simplecov to coveralls for code coverage (in the cloud!!!) --- Gemfile | 3 ++- spec/spec_helper.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 65a54b5..a22c0fe 100644 --- a/Gemfile +++ b/Gemfile @@ -13,7 +13,8 @@ group :development do gem "guard-rspec" gem "rb-readline", "~> 0.5.0" gem "jeweler", ">= 1.6.2" - gem "simplecov" + #gem "simplecov" + gem 'coveralls', require: false gem "test_construct" gem "capture-output", "~> 1.0.0" if RbConfig::CONFIG['host_os'] =~ /linux|freebsd|openbsd|sunos|solaris/ diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 52dbf41..3563548 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,5 @@ -require 'simplecov' -SimpleCov.start +require 'coveralls' +Coveralls.wear! $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) From 2e5c2ec018a56e5ca73c5e7bcea1f83a013af018 Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Sat, 5 Apr 2014 23:44:27 -0400 Subject: [PATCH 2/2] Add coverage status to the readme --- README.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/README.markdown b/README.markdown index 499e4d6..dc0ce63 100644 --- a/README.markdown +++ b/README.markdown @@ -3,6 +3,7 @@ [![Gem Version](https://badge.fury.io/rb/homesick.png)](http://badge.fury.io/rb/homesick) [![Build Status](https://travis-ci.org/technicalpickles/homesick.png?branch=master)](https://travis-ci.org/technicalpickles/homesick) [![Dependency Status](https://gemnasium.com/technicalpickles/homesick.png)](https://gemnasium.com/technicalpickles/homesick) +[![Coverage Status](https://coveralls.io/repos/technicalpickles/homesick/badge.png)](https://coveralls.io/r/technicalpickles/homesick) [![Code Climate](https://codeclimate.com/github/technicalpickles/homesick.png)](https://codeclimate.com/github/technicalpickles/homesick) Your home directory is your castle. Don't leave your dotfiles behind.