summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2014-03-13 22:18:18 -0400
committerAustin Ziegler <austin@zieglers.ca>2014-03-13 22:18:18 -0400
commit2b1c18cbef31b34afc6b47e36118b10ac3e60968 (patch)
tree8d57408a2cbfccc71242dbbd6a565207b21bf0e0
parente0ea065ab9287bd8ed8bd4ee009dc4f273fe1842 (diff)
downloadmime-types-2b1c18cbef31b34afc6b47e36118b10ac3e60968.tar.gz
Remove RubyForge references. Add Coveralls.
-rw-r--r--.coveralls.yml2
-rw-r--r--History.rdoc6
-rw-r--r--Manifest.txt1
-rw-r--r--README.rdoc6
-rw-r--r--Rakefile14
5 files changed, 24 insertions, 5 deletions
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 :: {<img src="https://codeclimate.com/github/halostatue/mime-types.png" />}[https://codeclimate.com/github/halostatue/mime-types]
+rdoc :: http://rdoc.info/gems/mime-types/
continuous integration :: {<img src="https://travis-ci.org/halostatue/mime-types.png" />}[https://travis-ci.org/halostatue/mime-types]
+test coverage :: {<img src="https://coveralls.io/repos/halostatue/mime-types/badge.png" alt="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