Permalink
Browse files

add dep, remove jeweler

  • Loading branch information...
1 parent 606a9c1 commit ed0cf7297529535e61caa10ca50dae370d4c720d @joshbuddy committed May 31, 2010
Showing with 6 additions and 54 deletions.
  1. +0 −15 Rakefile
  2. +6 −39 http_router.gemspec
View
@@ -1,18 +1,3 @@
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = "http_router"
- s.description = s.summary = "A kick-ass HTTP router for use in Rack & Sinatra"
- s.email = "joshbuddy@gmail.com"
- s.homepage = "http://github.com/joshbuddy/http_router"
- s.authors = ["Joshua Hull"]
- s.files = FileList["[A-Z]*", "{lib,spec}/**/*"]
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
-
require 'spec'
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |t|
View
@@ -1,11 +1,8 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{http_router}
- s.version = "0.1.1"
+ s.version = File.read(File.join(File.dirname(__FILE__), 'VERSION')).strip
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Joshua Hull"]
@@ -15,46 +12,16 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = [
"README.rdoc"
]
- s.files = [
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "lib/ext/rack/rack_mapper.rb",
- "lib/ext/rack/uri_escape.rb",
- "lib/http_router.rb",
- "lib/http_router/glob.rb",
- "lib/http_router/interface/sinatra.rb",
- "lib/http_router/node.rb",
- "lib/http_router/path.rb",
- "lib/http_router/response.rb",
- "lib/http_router/root.rb",
- "lib/http_router/route.rb",
- "lib/http_router/variable.rb",
- "spec/generate_spec.rb",
- "spec/misc_spec.rb",
- "spec/rack/dispatch_spec.rb",
- "spec/rack/generate_spec.rb",
- "spec/rack/route_spec.rb",
- "spec/recognize_spec.rb",
- "spec/sinatra/recognize_spec.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb"
- ]
+ s.files = `git ls-files`.split("\n")
s.homepage = %q{http://github.com/joshbuddy/http_router}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{A kick-ass HTTP router for use in Rack & Sinatra}
- s.test_files = [
- "spec/generate_spec.rb",
- "spec/misc_spec.rb",
- "spec/rack/dispatch_spec.rb",
- "spec/rack/generate_spec.rb",
- "spec/rack/route_spec.rb",
- "spec/recognize_spec.rb",
- "spec/sinatra/recognize_spec.rb",
- "spec/spec_helper.rb"
- ]
+ s.test_files = `git ls-files spec`.split("\n")
+
+ # dependencies
+ s.add_dependency "rack", ">= 1.0.0"
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION

0 comments on commit ed0cf72

Please sign in to comment.