From 2b1c18cbef31b34afc6b47e36118b10ac3e60968 Mon Sep 17 00:00:00 2001 From: Austin Ziegler Date: Thu, 13 Mar 2014 22:18:18 -0400 Subject: Remove RubyForge references. Add Coveralls. --- .coveralls.yml | 2 ++ History.rdoc | 6 ++++-- Manifest.txt | 1 + README.rdoc | 6 +++--- Rakefile | 14 ++++++++++++++ 5 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..0eed048 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +--- +service_name: travis-ci diff --git a/History.rdoc b/History.rdoc index 2e86e06..450a2cb 100644 --- a/History.rdoc +++ b/History.rdoc @@ -5,6 +5,9 @@ * Fixed a small bug where deprecated methods would warn of deprecation when called by internal methods. Resolves {#60}[https://github.com/halostatue/mime-types/issues/60]. +* Dropped Code Climate. +* Added Coveralls for test coverage reports. +* Removing external references to RubyForge, as it is shutting down. == 2.1 / 2014-01-25 @@ -287,8 +290,7 @@ * Should no longer complain about missing RubyGems keys https://github.com/halostatue/mime-types/issues/2 * Added .mp4 and .mpg4 as recognized extensions for {application,audio,video}/mp4 per RFC4337. https://github.com/halostatue/mime-types/issues/1 - * Added audio/x-aac and .aac per RubyForge issue #28054 - (http://rubyforge.org/tracker/index.php?func=detail&aid=28054&group_id=293&atid=1194). + * Added audio/x-aac and .aac per RubyForge issue #28054. * Made it much easier to update MIME types from this point forward. * Updated MIME types from IANA. diff --git a/Manifest.txt b/Manifest.txt index 2f95a19..e1d7c7d 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -1,4 +1,5 @@ .autotest +.coveralls.yml .gemtest .hoerc .minitest.rb diff --git a/README.rdoc b/README.rdoc index 97bfc79..d0b0fb3 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,11 +1,11 @@ = mime-types -home :: http://mime-types.rubyforge.org/ +home :: https://github.com/halostatue/mime-types/ code :: https://github.com/halostatue/mime-types/ bugs :: https://github.com/halostatue/mime-types/issues -rdoc :: http://mime-types.rubyforge.org/ -code climate :: {}[https://codeclimate.com/github/halostatue/mime-types] +rdoc :: http://rdoc.info/gems/mime-types/ continuous integration :: {}[https://travis-ci.org/halostatue/mime-types] +test coverage :: {Coverage Status}[https://coveralls.io/r/halostatue/mime-types] == Description diff --git a/Rakefile b/Rakefile index e1eda11..001fd21 100644 --- a/Rakefile +++ b/Rakefile @@ -31,6 +31,7 @@ spec = Hoe.spec 'mime-types' do self.extra_dev_deps << ['minitest', '~> 5.2'] self.extra_dev_deps << ['rake', '~> 10.0'] self.extra_dev_deps << ['simplecov', '~> 0.7'] + self.extra_dev_deps << ['coveralls', '~> 0.7'] end desc 'Benchmark' @@ -42,6 +43,17 @@ task :benchmark, :repeats do |t, args| end namespace :test do + task :coveralls do + spec.test_prelude = [ + 'require "simplecov"', + 'require "coveralls"', + 'SimpleCov.formatter = Coveralls::SimpleCov::Formatter', + 'SimpleCov.start("test_frameworks") { command_name "Minitest" }', + 'gem "minitest"' + ].join('; ') + Rake::Task['test'].execute + end + task :coverage do spec.test_prelude = [ 'require "simplecov"', @@ -90,4 +102,6 @@ namespace :convert do end end +Rake::Task['travis'].prerequisites.replace(%w(test:coveralls)) + # vim: syntax=ruby -- cgit v1.2.1