Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use jeweler to manage the gemspec and version number.
- Loading branch information
Phillip Toland
committed
Jan 16, 2009
1 parent
d3c689f
commit 9f5c447
Showing
5 changed files
with
55 additions
and
42 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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:patch: 0 | ||
:major: 0 | ||
:minor: 1 |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
require 'rubygems' | ||
require 'yaml' | ||
require 'jeweler' | ||
require 'pathname' | ||
|
||
cwd = Pathname(__FILE__).dirname | ||
$:.unshift(cwd) unless $:.include?(cwd) || $:.include?(cwd.expand_path) | ||
|
||
require 'patron/version' | ||
require 'patron/session' | ||
|
||
module Patron #:nodoc: | ||
# Returns the version number of the Patron library as a string | ||
def self.version | ||
Patron::VERSION::STRING | ||
Jeweler::Version.new(File.dirname(__FILE__) + '/../').to_s | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Gem::Specification.new do |s| | ||
s.name = %q{patron} | ||
s.version = "1.0.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Phillip Toland"] | ||
s.date = %q{2009-01-16} | ||
s.description = %q{Ruby HTTP client library based on libcurl} | ||
s.email = %q{ptoland@thehive.com} | ||
s.extensions = ["ext/patron/extconf.rb"] | ||
s.extra_rdoc_files = ["README.txt", "History.txt"] | ||
s.files = ["README.txt", "History.txt", "Rakefile", "lib/patron", "lib/patron/error.rb", "lib/patron/request.rb", "lib/patron/response.rb", "lib/patron/session.rb", "lib/patron.rb", "spec/integration", "spec/spec.opts", "spec/spec_helper.rb", "spec/unit", "ext/patron/extconf.rb", "ext/patron/session_ext.c"] | ||
s.has_rdoc = true | ||
s.homepage = %q{http://www.thehive.com/} | ||
s.rdoc_options = ["--quiet", "--title", "Patron documentation", "--opname", "index.html", "--line-numbers", "--main", "README.txt", "--inline-source"] | ||
s.require_paths = ["liblibext"] | ||
s.rubyforge_project = %q{patron} | ||
s.rubygems_version = %q{1.2.0} | ||
s.summary = %q{Ruby HTTP client library based on libcurl} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 2 | ||
|
||
if current_version >= 3 then | ||
s.add_runtime_dependency(%q<technicalpickles-jeweler>, [">= 0.6.5"]) | ||
else | ||
s.add_dependency(%q<technicalpickles-jeweler>, [">= 0.6.5"]) | ||
end | ||
else | ||
s.add_dependency(%q<technicalpickles-jeweler>, [">= 0.6.5"]) | ||
end | ||
end |