Permalink
Browse files

Trying to clean up some general usage.

  • Loading branch information...
1 parent 2ec42e6 commit 5aae09331ba613f3e8f1e7af301cb6e79e5fb43a @halostatue committed Mar 1, 2009
Showing with 6 additions and 26 deletions.
  1. +0 −1 Manifest.txt
  2. +6 −1 Rakefile
  3. +0 −24 test/test_all.rb
View
@@ -7,6 +7,5 @@ Rakefile
lib/mime/types.rb
lib/mime/types.rb.data
setup.rb
-test/test_all.rb
test/test_mime_type.rb
test/test_mime_types.rb
View
@@ -24,7 +24,7 @@ PKG_DIST = "#{PKG_NAME}-#{PKG_VERSION}"
PKG_TAR = "pkg/#{PKG_DIST}.tar.gz"
MANIFEST = File.read("Manifest.txt").split
-Hoe.new PKG_NAME, PKG_VERSION do |p|
+hoe = Hoe.new PKG_NAME, PKG_VERSION do |p|
p.rubyforge_name = PKG_NAME
# This is a lie because I will continue to use Archive::Tar::Minitar.
p.need_tar = false
@@ -45,6 +45,11 @@ Hoe.new PKG_NAME, PKG_VERSION do |p|
p.spec_extras[:extra_rdoc_files] = MANIFEST.grep(/txt$/) - ["Manifest.txt"]
end
+desc "Runs rcov over the tests."
+task :coverage do |t|
+ sh %Q(rcov -I lib #{hoe.test_files.join(" ")})
+end
+
desc "Build a MIME::Types .tar.gz distribution."
task :tar => [ PKG_TAR ]
file PKG_TAR => [ :test ] do |t|
View
@@ -1,24 +0,0 @@
-#! /usr/bin/env ruby
-#--
-# MIME::Types
-# A Ruby implementation of a MIME Types information library. Based in spirit
-# on the Perl MIME::Types information library by Mark Overmeer.
-# http://rubyforge.org/projects/mime-types/
-#
-# Licensed under the Ruby disjunctive licence with the GNU GPL or the Perl
-# Artistic licence. See Licence.txt for more information.
-#
-# Copyright 2003 - 2009 Austin Ziegler
-#++
-
-$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../lib") if __FILE__ == $0
-
-$stderr.puts "Checking for test cases:"
-
-Dir[File.join(File.dirname($0), 'test_*.rb')].each do |testcase|
- next if File.basename(testcase) == File.basename(__FILE__)
- $stderr.puts "\t#{testcase}"
- load testcase
-end
-
-$stderr.puts " "

0 comments on commit 5aae093

Please sign in to comment.