Permalink
Browse files

Use real gemspec, remove jewler, add Gemfile

  • Loading branch information...
1 parent 7d36f17 commit 95b3df3a4030f49181fb4d16c140c94d5fa26ca3 @robolson robolson committed Jun 29, 2011
Showing with 28 additions and 38 deletions.
  1. +2 −8 .gitignore
  2. +2 −0 Gemfile
  3. +0 −30 Rakefile
  4. +24 −0 rack-geo.gemspec
View
@@ -1,9 +1,3 @@
-*.gem
-*.gemspec
-*.log
-*.pid
-*.sqlite3
-*.tmproj
-.DS_Store
-log/*
pkg/*
+/Gemfile.lock
+
View
@@ -0,0 +1,2 @@
+source :rubygems
+gemspec
View
@@ -2,35 +2,6 @@ require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
-require File.join(File.dirname(__FILE__), 'lib', 'rack', 'geo', 'version')
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.version = Rack::Geo::VERSION::STRING
- gemspec.name = "rack-geo"
- gemspec.summary = "Rack middleware for Geo-Position HTTP headers"
- gemspec.description = "Parse and serialize geospatial HTTP headers."
- gemspec.email = "github@squareup.com"
- gemspec.homepage = "http://github.com/square/rack-geo"
- gemspec.authors = [
- "Randy Reddig",
- "Cameron Walters",
- "Paul McKellar",
- ]
- gemspec.extra_rdoc_files = [
- 'README.rdoc',
- 'HISTORY.rdoc',
- 'LICENSE.txt',
- ]
- gemspec.add_dependency "rack", ">=1.0.0"
- gemspec.add_development_dependency "rack-test", ">=0.5.3"
- gemspec.add_development_dependency "rspec", ">=1.3.0"
- end
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
-
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ["--options", "spec/spec.opts"]
@@ -40,7 +11,6 @@ Spec::Rake::SpecTask.new do |t|
t.verbose = true
end
-task :spec => :check_dependencies
task :default => :spec
desc "Remove trailing whitespace"
View
@@ -0,0 +1,24 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "rack/geo/version"
+
+Gem::Specification.new do |s|
+ s.name = "rack-geo"
+ s.version = Rack::Geo::VERSION::STRING
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Randy Reddig", "Cameron Walters", "Paul McKellar"]
+ s.email = "github@squareup.com"
+ s.homepage = "https://github.com/square/rack-geo"
+ s.summary = %q{Rack middleware for Geo-Position HTTP headers}
+ s.description = %q{Parse and serialize geospatial HTTP headers.}
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- spec/*`.split("\n")
+ s.extra_rdoc_files = ['README.rdoc', 'HISTORY.rdoc', 'LICENSE.txt']
+ s.require_paths = ["lib"]
+
+ s.add_dependency 'rack', '~> 1.0'
+ s.add_development_dependency 'rake'
+ s.add_development_dependency 'rack-test', '~> 0.5'
+ s.add_development_dependency 'rspec', '1.3.0'
+end

0 comments on commit 95b3df3

Please sign in to comment.