Permalink
Browse files

switch to bundler's gemspec functionality to remove hoe dependency

  • Loading branch information...
imajes committed Jan 19, 2012
1 parent c993b28 commit 99d97043103beeeab19654e2eb0bcf0148f5a6ee
Showing with 33 additions and 46 deletions.
  1. +4 −0 Gemfile
  2. +1 −23 Rakefile
  3. +28 −23 geokit.gemspec
View
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in geokit.gemspec
+gemspec
View
@@ -1,23 +1 @@
-# -*- ruby -*-
-
-require 'rubygems'
-require 'hoe'
-require './lib/geokit.rb'
-
-
-# undefined method `empty?' for nil:NilClass
-# /Library/Ruby/Site/1.8/rubygems/specification.rb:886:in `validate'
-#class NilClass
-# def empty?
-# true
-# end
-#end
-
-Hoe.spec('geokit') do |p|
- p.version=Geokit::VERSION
- p.developer('Andre Lewis', 'andre@earthcode.com')
- p.summary="Geokit provides geocoding and distance calculation in an easy-to-use API"
-end
-
-
-# vim: syntax=Ruby
+require "bundler/gem_tasks"
View
@@ -1,38 +1,43 @@
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require 'lib/geokit'
Gem::Specification.new do |s|
- s.name = %q{geokit}
- s.version = "1.6.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Andre Lewis and Bill Eisenhauer"]
- s.date = %q{2009-08-02}
- s.description = %q{Geokit Gem}
- s.email = ["andre@earthcode.com / bill_eisenhauer@yahoo.com"]
- s.extra_rdoc_files = ["Manifest.txt", "README.markdown"]
- s.files = ["Manifest.txt", "README.markdown", "Rakefile", "lib/geokit/geocoders.rb", "lib/geokit.rb",
+ s.name = "geokit"
+ s.version = Geokit::VERSION
+ s.authors = ["James Cox, Andre Lewis & Bill Eisenhauer"]
+ s.email = ["james+geokit@imaj.es"]
+ s.homepage = "https://github.com/imajes/geokit-gem"
+
+ s.summary = %q{Geokit: encoding and distance calculation gem}
+ s.description = %q{Geokit provides geocoding and distance calculation in an easy-to-use API}
+
+ s.rubyforge_project = "geokit"
+
+ s.has_rdoc = true
+ s.rdoc_options = ["--main", "README.markdown"]
+ s.extra_rdoc_files = ["README.markdown"]
+
+ s.files = ["README.markdown", "Rakefile", "lib/geokit/geocoders.rb", "lib/geokit.rb",
"lib/geokit/mappable.rb", "test/test_base_geocoder.rb", "test/test_bounds.rb",
"test/test_ca_geocoder.rb", "test/test_geoloc.rb", "test/test_google_geocoder3.rb",
"test/test_google_geocoder.rb", "test/test_latlng.rb", "test/test_multi_geocoder.rb",
"test/test_us_geocoder.rb", "test/test_yahoo_geocoder.rb"
]
- s.has_rdoc = true
- s.homepage = %q{http://geokit.rubyforge.org}
- s.rdoc_options = ["--main", "README.markdown"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{geokit}
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{none}
- s.test_files = [
+
+ s.test_files = [
"test/test_base_geocoder.rb", "test/test_bounds.rb", "test/test_ca_geocoder.rb",
"test/test_geoloc.rb", "test/test_geoplugin_geocoder.rb", "test/test_google_geocoder3.rb",
"test/test_google_geocoder.rb", "test/test_google_reverse_geocoder.rb", "test/test_inflector.rb",
"test/test_ipgeocoder.rb", "test/test_latlng.rb", "test/test_multi_geocoder.rb",
"test/test_multi_ip_geocoder.rb", "test/test_us_geocoder.rb", "test/test_yahoo_geocoder.rb"
]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
- end
- s.add_dependency(%q{json_pure})
+
+ s.require_paths = ["lib"]
+
+ # specify any dependencies here; for example:
+ # s.add_development_dependency "rspec"
+ # s.add_runtime_dependency "rest-client"
+ s.add_dependency('json_pure')
end
+

0 comments on commit 99d9704

Please sign in to comment.