This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Writing Gemspecs isn't hard lets do it properly.
- Loading branch information
1 parent
c157bae
commit 9c1b5fd
Showing
3 changed files
with
15 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1 @@ | |||
/pkg/* | *.gem | ||
*.gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |