Permalink
Browse files

Writing Gemspecs isn't hard lets do it properly.

  • Loading branch information...
1 parent c157bae commit 9c1b5fdb60c5b5bc53d7e155a4d039ca7531382c @eightbitraptor committed Oct 21, 2010
Showing with 15 additions and 36 deletions.
  1. +1 −2 .gitignore
  2. +0 −34 Rakefile
  3. +14 −0 http_redirect_test.gemspec
View
@@ -1,2 +1 @@
-/pkg/*
-*.gemspec
+*.gem
View
@@ -1,38 +1,4 @@
require "rubygems"
-require "rake/gempackagetask"
-require "rake/rdoctask"
require "rake/testtask"
task :default => :test
-
-spec = Gem::Specification.new do |s|
-
- # Change these as appropriate
- s.name = "http_redirect_test"
- s.version = "0.1.1"
- s.summary = "A subclass of Test::Unit::TestCase to allow for http redirect testing, packaged from a gist by Patrick Reagan of Viget Labs"
- s.author = "Matt House"
- s.email = "matt@theshadowaspect.com"
- s.homepage = "http://github.com/eightbitraptor/http_redirect_test"
-
- s.has_rdoc = false
-
- s.files = Dir.glob("lib/**/*.rb")
- s.require_paths = ["lib"]
- s.add_dependency("mocha", [">= 0.9.5"])
-end
-
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
-
- # Generate the gemspec file for github.
- file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
- File.open(file, "w") {|f| f << spec.to_ruby }
-end
-
-desc 'Test the compiled binary.'
-Rake::TestTask.new(:test) do |t|
- t.pattern = 'test/**/*.rb'
- t.verbose = true
-end
@@ -0,0 +1,14 @@
+Gem::Specification.new do |s|
+ s.name = "http_redirect_test"
+ s.version = "0.1.2"
+
+ s.authors = ["Matt House"]
+ s.date = %q{2010-10-21}
+ s.email = "matt@eightbitraptor.com"
+ s.files = Dir.glob("{lib,test}/**/*.rb")
+ s.homepage = "http://github.com/eightbitraptor/http_redirect_test"
+ s.require_paths = ["lib"]
+ s.summary = "Test Apache behavior using Test::Unit, based on a gist by Patrick Reagan of Viget Labs"
+
+ s.add_development_dependency "mocha", ">=0.9.5"
+end

0 comments on commit 9c1b5fd

Please sign in to comment.