Skip to content

Commit

Permalink
Use covered for coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 8, 2019
1 parent 71bed1f commit 699e857
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,8 @@ matrix:
- rvm: 2.4
- rvm: 2.5
- rvm: 2.6
- rvm: 2.6
env: COVERAGE=BriefSummary,Coveralls
- rvm: jruby-head
env: JRUBY_OPTS="--debug -X+O"
- rvm: truffleruby
Expand Down
5 changes: 0 additions & 5 deletions Gemfile
Expand Up @@ -2,8 +2,3 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in utopia.gemspec
gemspec

group :test do
gem 'simplecov'
gem 'coveralls', require: false
end
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -3,6 +3,7 @@
This gem provides a simple executable tool for managing Cloudflare records to provide dynamic DNS like functionality. You need to add it to whatever `cron` system your host system uses.

[![Build Status](https://secure.travis-ci.org/ioquatix/cloudflare-dns-update.svg)](http://travis-ci.org/ioquatix/cloudflare-dns-update)
[![Coverage Status](https://coveralls.io/repos/socketry/cloudflare-dns-update/badge.svg)](https://coveralls.io/r/socketry/cloudflare-dns-update)

[![Cloudflare DNS Update Introduction](http://img.youtube.com/vi/lQK6bWuQllM/maxresdefault.jpg)](https://www.youtube.com/watch?v=lQK6bWuQllM&feature=youtu.be&hd=1 "Cloudflare DNS Update Introduction")

Expand Down
8 changes: 2 additions & 6 deletions Rakefile
@@ -1,10 +1,6 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:test)
RSpec::Core::RakeTask.new(:spec)

task :default => :test

task :coverage do
ENV['COVERAGE'] = 'y'
end
task :default => :spec
3 changes: 2 additions & 1 deletion cloudflare-dns-update.gemspec
Expand Up @@ -28,7 +28,8 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'async-rspec'

spec.add_development_dependency "rspec", "~> 3.6"
spec.add_development_dependency "covered"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rspec", "~> 3.6"
spec.add_development_dependency "rake"
end
19 changes: 1 addition & 18 deletions spec/spec_helper.rb
@@ -1,22 +1,5 @@

if ENV['COVERAGE'] || ENV['TRAVIS']
begin
require 'simplecov'

SimpleCov.start do
add_filter "/spec/"
end

if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
end
rescue LoadError
warn "Could not load simplecov: #{$!}"
end
end

require "bundler/setup"
require 'covered/rspec'
require "cloudflare/rspec/connection"

RSpec.configure do |config|
Expand Down

0 comments on commit 699e857

Please sign in to comment.