Skip to content

Commit

Permalink
Switch to bundler for release management and use hand made gemspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Apr 16, 2011
1 parent ddd7037 commit 720e96a
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 287 deletions.
4 changes: 4 additions & 0 deletions History
@@ -1,3 +1,7 @@
== 0.7.5 2011-04-16
* bug fix
* caused issue with latest rubygems

== 0.7.4 2011-02-13
* bug fixes
* Set VERIFY_NONE when using https. Ruby 1.9.2 no longer sets this for us. gh-67
Expand Down
47 changes: 0 additions & 47 deletions Manifest

This file was deleted.

73 changes: 5 additions & 68 deletions Rakefile
@@ -1,32 +1,5 @@
require 'rake'
require File.expand_path('../lib/httparty', __FILE__)

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "httparty"
gem.summary = %Q{Makes http fun! Also, makes consuming restful web services dead easy.}
gem.description = %Q{Makes http fun! Also, makes consuming restful web services dead easy.}
gem.email = "nunemaker@gmail.com"
gem.homepage = "http://httparty.rubyforge.org"
gem.authors = ["John Nunemaker", "Sandro Turriate"]
gem.version = HTTParty::VERSION.dup

gem.add_dependency 'crack', HTTParty::CRACK_DEPENDENCY

gem.add_development_dependency "activesupport", "~>2.3"
gem.add_development_dependency "cucumber", "~>0.7"
gem.add_development_dependency "fakeweb", "~>1.2"
gem.add_development_dependency "rspec", "~>1.3"
gem.add_development_dependency "jeweler", "~>1.5"
gem.add_development_dependency "mongrel", "1.2.0.pre2"
gem.post_install_message = "When you HTTParty, you must party hard!"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'bundler'
Bundler::GemHelper.install_tasks

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
Expand All @@ -36,43 +9,7 @@ Spec::Rake::SpecTask.new(:spec) do |spec|
spec.spec_opts = ['--options', 'spec/spec.opts']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end

begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)

rescue LoadError
task :features do
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
end

task :default => [:spec, :features]

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "httparty #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.include('lib/httparty.rb')
end

begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.options = ['--verbose']
end
rescue LoadError
end
task :default => [:spec, :features]
190 changes: 22 additions & 168 deletions httparty.gemspec
@@ -1,175 +1,29 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "httparty/version"

Gem::Specification.new do |s|
s.name = %q{httparty}
s.version = "0.7.5"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["John Nunemaker", "Sandro Turriate"]
s.date = %q{2011-04-15}
s.default_executable = %q{httparty}
s.name = "httparty"
s.version = HTTParty::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["John Nunemaker", "Sandro Turriate"]
s.email = ["nunemaker@gmail.com"]
s.homepage = "http://github.com/jnunemaker/httparty"
s.summary = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
s.description = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
s.email = %q{nunemaker@gmail.com}
s.executables = ["httparty"]
s.extra_rdoc_files = [
"README.rdoc"
]
s.files = [
".rvmrc",
"Gemfile",
"History",
"MIT-LICENSE",
"Manifest",
"README.rdoc",
"Rakefile",
"bin/httparty",
"cucumber.yml",
"examples/aaws.rb",
"examples/basic.rb",
"examples/custom_parsers.rb",
"examples/delicious.rb",
"examples/google.rb",
"examples/rubyurl.rb",
"examples/tripit_sign_in.rb",
"examples/twitter.rb",
"examples/whoismyrep.rb",
"features/basic_authentication.feature",
"features/command_line.feature",
"features/deals_with_http_error_codes.feature",
"features/digest_authentication.feature",
"features/handles_compressed_responses.feature",
"features/handles_multiple_formats.feature",
"features/steps/env.rb",
"features/steps/httparty_response_steps.rb",
"features/steps/httparty_steps.rb",
"features/steps/mongrel_helper.rb",
"features/steps/remote_service_steps.rb",
"features/supports_redirection.feature",
"features/supports_timeout_option.feature",
"httparty.gemspec",
"lib/httparty.rb",
"lib/httparty/cookie_hash.rb",
"lib/httparty/core_extensions.rb",
"lib/httparty/exceptions.rb",
"lib/httparty/module_inheritable_attributes.rb",
"lib/httparty/net_digest_auth.rb",
"lib/httparty/parser.rb",
"lib/httparty/request.rb",
"lib/httparty/response.rb",
"spec/fixtures/delicious.xml",
"spec/fixtures/empty.xml",
"spec/fixtures/google.html",
"spec/fixtures/ssl/generate.sh",
"spec/fixtures/ssl/generated/1fe462c2.0",
"spec/fixtures/ssl/generated/bogushost.crt",
"spec/fixtures/ssl/generated/ca.crt",
"spec/fixtures/ssl/generated/ca.key",
"spec/fixtures/ssl/generated/selfsigned.crt",
"spec/fixtures/ssl/generated/server.crt",
"spec/fixtures/ssl/generated/server.key",
"spec/fixtures/ssl/openssl-exts.cnf",
"spec/fixtures/twitter.json",
"spec/fixtures/twitter.xml",
"spec/fixtures/undefined_method_add_node_for_nil.xml",
"spec/httparty/cookie_hash_spec.rb",
"spec/httparty/net_digest_auth_spec.rb",
"spec/httparty/parser_spec.rb",
"spec/httparty/request_spec.rb",
"spec/httparty/response_spec.rb",
"spec/httparty/ssl_spec.rb",
"spec/httparty_spec.rb",
"spec/spec.opts",
"spec/spec_helper.rb",
"spec/support/ssl_test_helper.rb",
"spec/support/ssl_test_server.rb",
"spec/support/stub_response.rb",
"website/css/common.css",
"website/index.html"
]
s.homepage = %q{http://httparty.rubyforge.org}
s.post_install_message = %q{When you HTTParty, you must party hard!}
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
s.test_files = [
"examples/aaws.rb",
"examples/basic.rb",
"examples/custom_parsers.rb",
"examples/delicious.rb",
"examples/google.rb",
"examples/rubyurl.rb",
"examples/tripit_sign_in.rb",
"examples/twitter.rb",
"examples/whoismyrep.rb",
"spec/httparty/cookie_hash_spec.rb",
"spec/httparty/net_digest_auth_spec.rb",
"spec/httparty/parser_spec.rb",
"spec/httparty/request_spec.rb",
"spec/httparty/response_spec.rb",
"spec/httparty/ssl_spec.rb",
"spec/httparty_spec.rb",
"spec/spec_helper.rb",
"spec/support/ssl_test_helper.rb",
"spec/support/ssl_test_server.rb",
"spec/support/stub_response.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.add_dependency 'crack', HTTParty::CRACK_DEPENDENCY

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<httparty>, [">= 0"])
s.add_runtime_dependency(%q<crack>, ["= 0.1.8"])
s.add_development_dependency(%q<activesupport>, ["~> 2.3"])
s.add_development_dependency(%q<cucumber>, ["~> 0.7"])
s.add_development_dependency(%q<fakeweb>, ["~> 1.2"])
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
s.add_development_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
s.add_runtime_dependency(%q<crack>, ["= 0.1.8"])
s.add_development_dependency(%q<activesupport>, ["~> 2.3"])
s.add_development_dependency(%q<cucumber>, ["~> 0.7"])
s.add_development_dependency(%q<fakeweb>, ["~> 1.2"])
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
s.add_development_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
else
s.add_dependency(%q<httparty>, [">= 0"])
s.add_dependency(%q<crack>, ["= 0.1.8"])
s.add_dependency(%q<activesupport>, ["~> 2.3"])
s.add_dependency(%q<cucumber>, ["~> 0.7"])
s.add_dependency(%q<fakeweb>, ["~> 1.2"])
s.add_dependency(%q<rspec>, ["~> 1.3"])
s.add_dependency(%q<jeweler>, ["~> 1.5"])
s.add_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
s.add_dependency(%q<crack>, ["= 0.1.8"])
s.add_dependency(%q<activesupport>, ["~> 2.3"])
s.add_dependency(%q<cucumber>, ["~> 0.7"])
s.add_dependency(%q<fakeweb>, ["~> 1.2"])
s.add_dependency(%q<rspec>, ["~> 1.3"])
s.add_dependency(%q<jeweler>, ["~> 1.5"])
s.add_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
end
else
s.add_dependency(%q<httparty>, [">= 0"])
s.add_dependency(%q<crack>, ["= 0.1.8"])
s.add_dependency(%q<activesupport>, ["~> 2.3"])
s.add_dependency(%q<cucumber>, ["~> 0.7"])
s.add_dependency(%q<fakeweb>, ["~> 1.2"])
s.add_dependency(%q<rspec>, ["~> 1.3"])
s.add_dependency(%q<jeweler>, ["~> 1.5"])
s.add_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
s.add_dependency(%q<crack>, ["= 0.1.8"])
s.add_dependency(%q<activesupport>, ["~> 2.3"])
s.add_dependency(%q<cucumber>, ["~> 0.7"])
s.add_dependency(%q<fakeweb>, ["~> 1.2"])
s.add_dependency(%q<rspec>, ["~> 1.3"])
s.add_dependency(%q<jeweler>, ["~> 1.5"])
s.add_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
end
end
s.add_development_dependency "activesupport", "~> 2.3"
s.add_development_dependency "cucumber", "~> 0.7"
s.add_development_dependency "fakeweb", "~> 1.2"
s.add_development_dependency "rspec", "~> 1.3"
s.add_development_dependency "mongrel", "1.2.0.pre2"

s.post_install_message = "When you HTTParty, you must party hard!"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
end
4 changes: 1 addition & 3 deletions lib/httparty.rb
Expand Up @@ -8,12 +8,10 @@
require 'httparty/module_inheritable_attributes'
require 'httparty/cookie_hash'
require 'httparty/net_digest_auth'
require 'httparty/version'

# @see HTTParty::ClassMethods
module HTTParty
VERSION = "0.7.5".freeze
CRACK_DEPENDENCY = "0.1.8".freeze

module AllowedFormatsDeprecation
def const_missing(const)
if const.to_s =~ /AllowedFormats$/
Expand Down
5 changes: 5 additions & 0 deletions lib/httparty/version.rb
@@ -0,0 +1,5 @@
module HTTParty
VERSION = "0.7.5".freeze

CRACK_DEPENDENCY = "0.1.8".freeze
end
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
@@ -1,4 +1,6 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
$:.push File.expand_path("../lib", __FILE__)
require "httparty"

require 'spec/autorun'
require 'fakeweb'

Expand Down

0 comments on commit 720e96a

Please sign in to comment.