Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated gemspec for github release. Added example for inclusion in a …

…sinatra app.
  • Loading branch information...
commit 92db0dcc0b2fe6307044440aa2edea780193d984 1 parent 4432ffe
@benschwarz benschwarz authored
Showing with 22 additions and 7 deletions.
  1. +2 −2 Rakefile
  2. +0 −2  config.ru
  3. +5 −0 examples/config.ru
  4. +15 −3 postie.gemspec
View
4 Rakefile
@@ -10,8 +10,8 @@ begin
gem.homepage = "http://github.com/benschwarz/postie"
gem.authors = ["Ben Schwarz"]
gem.add_dependency("sinatra", ">= 0.9.2")
- gem.add_dependency("dm-core", ">= 0.9.8")
- gem.add_dependency("dm-serializer", ">= 0.9.8")
+ gem.add_dependency("dm-core")
+ gem.add_dependency("dm-serializer")
gem.add_dependency("json")
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
View
2  config.ru
@@ -1,2 +0,0 @@
-require File.join(File.dirname(__FILE__), 'lib', 'postie')
-run Postie::Application
View
5 examples/config.ru
@@ -0,0 +1,5 @@
+require 'rubygems'
+require 'postie'
+
+use Postie::Application
+run Sinatra::Base
View
18 postie.gemspec
@@ -2,28 +2,40 @@
Gem::Specification.new do |s|
s.name = %q{postie}
- s.version = "0.0.0"
+ s.version = "0.1.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ben Schwarz"]
s.date = %q{2009-05-20}
s.email = %q{ben.schwarz@gmail.com}
s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
- s.files = ["README.rdoc", "lib/models", "lib/models/locality.rb", "lib/models/state.rb", "lib/postie.rb", "test/postcode_test.rb", "test/test_helper.rb", "LICENSE"]
+ s.files = ["README.rdoc", "VERSION.yml", "lib/models", "lib/models/locality.rb", "lib/models/state.rb", "lib/postie.rb", "test/postcode_test.rb", "test/test_helper.rb", "LICENSE"]
s.has_rdoc = true
s.homepage = %q{http://github.com/benschwarz/postie}
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.1}
- s.summary = %q{TODO}
+ s.summary = %q{A Sinatra based Rack middleware for Australian postcodes}
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<sinatra>, [">= 0.9.2"])
+ s.add_runtime_dependency(%q<dm-core>, [">= 0.9.8"])
+ s.add_runtime_dependency(%q<dm-serializer>, [">= 0.9.8"])
+ s.add_runtime_dependency(%q<json>, [">= 0"])
else
+ s.add_dependency(%q<sinatra>, [">= 0.9.2"])
+ s.add_dependency(%q<dm-core>, [">= 0.9.8"])
+ s.add_dependency(%q<dm-serializer>, [">= 0.9.8"])
+ s.add_dependency(%q<json>, [">= 0"])
end
else
+ s.add_dependency(%q<sinatra>, [">= 0.9.2"])
+ s.add_dependency(%q<dm-core>, [">= 0.9.8"])
+ s.add_dependency(%q<dm-serializer>, [">= 0.9.8"])
+ s.add_dependency(%q<json>, [">= 0"])
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.