Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Writing Gemspecs isn't hard lets do it properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Oct 21, 2010
1 parent c157bae commit 9c1b5fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 36 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,2 +1 @@
/pkg/* *.gem
*.gemspec
34 changes: 0 additions & 34 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,38 +1,4 @@
require "rubygems" require "rubygems"
require "rake/gempackagetask"
require "rake/rdoctask"
require "rake/testtask" require "rake/testtask"


task :default => :test 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
14 changes: 14 additions & 0 deletions http_redirect_test.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -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.