Skip to content

Commit

Permalink
unpacked the httparty gem
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Davis committed Dec 12, 2009
1 parent 25d2837 commit dbac382
Show file tree
Hide file tree
Showing 52 changed files with 4,222 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/environment.rb
Expand Up @@ -28,7 +28,7 @@
# config.gem "sqlite3-ruby", :lib => "sqlite3"
# config.gem "aws-s3", :lib => "aws/s3"
# config.gem 'crack', :version => '0.1.4'
# config.gem 'httparty', :version => '0.4.4'
config.gem 'httparty', :version => '0.4.3'
config.gem 'hashie', :version => '0.1.5'
config.gem 'ruby-hmac', :lib => 'hmac', :version => '0.3.2'
config.gem 'oauth', :version => '0.3.6'
Expand Down
137 changes: 137 additions & 0 deletions vendor/gems/httparty-0.4.3/.specification
@@ -0,0 +1,137 @@
--- !ruby/object:Gem::Specification
name: httparty
version: !ruby/object:Gem::Version
version: 0.4.3
platform: ruby
authors:
- John Nunemaker
autorequire:
bindir: bin
cert_chain: []

date: 2009-04-23 00:00:00 -04:00
default_executable: httparty
dependencies:
- !ruby/object:Gem::Dependency
name: crack
type: :runtime
version_requirement:
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: 0.1.1
version:
- !ruby/object:Gem::Dependency
name: echoe
type: :development
version_requirement:
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "0"
version:
description: Makes http fun! Also, makes consuming restful web services dead easy.
email: nunemaker@gmail.com
executables:
- httparty
extensions: []

extra_rdoc_files:
- bin/httparty
- lib/httparty/cookie_hash.rb
- lib/httparty/core_extensions.rb
- lib/httparty/exceptions.rb
- lib/httparty/module_inheritable_attributes.rb
- lib/httparty/request.rb
- lib/httparty/response.rb
- lib/httparty/version.rb
- lib/httparty.rb
- README
files:
- bin/httparty
- cucumber.yml
- examples/aaws.rb
- examples/basic.rb
- examples/delicious.rb
- examples/google.rb
- examples/rubyurl.rb
- examples/twitter.rb
- examples/whoismyrep.rb
- features/basic_authentication.feature
- features/command_line.feature
- features/deals_with_http_error_codes.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
- History
- httparty.gemspec
- lib/httparty/cookie_hash.rb
- lib/httparty/core_extensions.rb
- lib/httparty/exceptions.rb
- lib/httparty/module_inheritable_attributes.rb
- lib/httparty/request.rb
- lib/httparty/response.rb
- lib/httparty/version.rb
- lib/httparty.rb
- Manifest
- MIT-LICENSE
- Rakefile
- README
- setup.rb
- spec/fixtures/delicious.xml
- spec/fixtures/empty.xml
- spec/fixtures/google.html
- spec/fixtures/twitter.json
- spec/fixtures/twitter.xml
- spec/fixtures/undefined_method_add_node_for_nil.xml
- spec/hash_spec.rb
- spec/httparty/cookie_hash_spec.rb
- spec/httparty/request_spec.rb
- spec/httparty/response_spec.rb
- spec/httparty_spec.rb
- spec/spec.opts
- spec/spec_helper.rb
- spec/string_spec.rb
- website/css/common.css
- website/index.html
has_rdoc: true
homepage: http://httparty.rubyforge.org
licenses: []

post_install_message: When you HTTParty, you must party hard!
rdoc_options:
- --line-numbers
- --inline-source
- --title
- Httparty
- --main
- README
require_paths:
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "0"
version:
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "1.2"
version:
requirements: []

rubyforge_project: httparty
rubygems_version: 1.3.5
signing_key:
specification_version: 2
summary: Makes http fun! Also, makes consuming restful web services dead easy.
test_files: []

125 changes: 125 additions & 0 deletions vendor/gems/httparty-0.4.3/History
@@ -0,0 +1,125 @@
== 0.4.5 2009-04-23
* 1 minor update
* added message to the response object

== 0.4.2 2009-03-30
* 2 minor changes
* response code now returns an integer instead of a string (jqr)
* rubyforge project setup for crack so i'm now depending on that instead of jnunemaker-crack

== 0.4.1 2009-03-29
* 1 minor fix
* gem 'jnunemaker-crack' instead of gem 'crack'

== 0.4.0 2009-03-29
* 1 minor change
* Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)

== 0.3.1 2009-02-10
* 1 minor fix, 1 minor enhancement
* Fixed unescaping umlauts (siebertm)
* Added yaml response parsing (Miha Filej)

== 0.3.0 2009-01-31
* 1 major enhancement, 1 bug fix
* JSON gem no longer a requirement. It was conflicting with rails json stuff so I just stole ActiveSupport's json decoding and bundled it with HTTParty.
* Fixed bug where query strings were being duplicated on redirects
* Added a bunch of specs and moved some code around.

== 0.2.10 2009-01-29
* 1 minor enhancement
* Made encoding on query parameters treat everything except URI::PATTERN::UNRESERVED as UNSAFE to force encoding of '+' character (Julian Russell)

== 0.2.9 2009-01-29
* 3 minor enhancements
* Added a 'headers' accessor to the response with a hash of any HTTP headers. (Don Peterson)
* Add support for a ":cookies" option to be used at the class level, or as an option on any individual call. It should be passed a hash, which will be converted to the proper format and added to the request headers when the call is made. (Don Peterson)
* Refactored several specs and added a full suite of cucumber features (Don Peterson)

== 0.2.8 2009-01-28
* 1 major fix
* fixed major bug with response where it wouldn't iterate or really work at all with parsed responses

== 0.2.7 2009-01-28
* 2 minor fixes, 2 minor enhancements, 2 major enhancements
* fixed undefined method add_node for nil class error that occasionally happened (juliocesar)
* Handle nil or unexpected values better when typecasting. (Brian Landau)
* More robust handling of mime types (Alex Vollmer)
* Fixed support for specifying headers and added support for basic auth to CLI. (Alex Vollmer)
* Added first class response object that includes original body and status code (Alex Vollmer)
* Now parsing all response types as some non-200 responses provide important information, this means no more exception raising (Alex Vollmer)

== 0.2.6 2009-01-05
* 1 minor bug fix
* added explicit require of time as Time#parse failed outside of rails (willcodeforfoo)

== 0.2.5 2009-01-05
* 1 major enhancement
* Add command line interface to HTTParty (Alex Vollmer)

== 0.2.4 2008-12-23
* 1 bug fix
* Fixed that mimetype detection was failing if no mimetype was returned from service (skippy)
== 0.2.3 2008-12-23
* 1 bug fix
* Fixed typecasting class variable naming issue

== 0.2.2 2008-12-08
* 1 bug fix
* Added the missing core extension hash method to_xml_attributes

== 0.2.1 2008-12-08
* 1 bug fix
* Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)

== 0.2.0 2008-12-07
* 1 major enhancement
* Removed ActiveSupport as a dependency. Now requires json gem for json deserialization and uses an included class to do the xml parsing.

== 0.1.8 2008-11-30
* 3 major enhancements
* Moved base_uri normalization into request class and out of httparty module, fixing
the problem where base_uri was not always being normalized.
* Stupid simple support for HTTParty.get/post/put/delete. (jqr)
* Switched gem management to Echoe from newgem.

== 0.1.7 2008-11-30
* 1 major enhancement
* fixed multiple class definitions overriding each others options

== 0.1.6 2008-11-26
* 1 major enhancement
* now passing :query to set_form_data if post request to avoid content length errors

== 0.1.5 2008-11-14
* 2 major enhancements
* Refactored send request method out into its own object.
* Added :html format if you just want to do that.

== 0.1.4 2008-11-08
* 3 major enhancements:
* Removed some cruft
* Added ability to follow redirects automatically and turn that off (Alex Vollmer)

== 0.1.3 2008-08-22

* 3 major enhancements:
* Added http_proxy key for setting proxy server and port (francxk@gmail.com)
* Now raises exception when http error occurs (francxk@gmail.com)
* Changed auto format detection from file extension to response content type (Jay Pignata)

== 0.1.2 2008-08-09

* 1 major enhancement:
* default_params were not being appended to query string if option[:query] was blank

== 0.1.1 2008-07-30

* 2 major enhancement:
* Added :basic_auth key for options when making a request
* :query and :body both now work with query string or hash

== 0.1.0 2008-07-27

* 1 major enhancement:
* Initial release
20 changes: 20 additions & 0 deletions vendor/gems/httparty-0.4.3/MIT-LICENSE
@@ -0,0 +1,20 @@
Copyright (c) 2008 John Nunemaker

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50 changes: 50 additions & 0 deletions vendor/gems/httparty-0.4.3/Manifest
@@ -0,0 +1,50 @@
bin/httparty
cucumber.yml
examples/aaws.rb
examples/basic.rb
examples/delicious.rb
examples/google.rb
examples/rubyurl.rb
examples/twitter.rb
examples/whoismyrep.rb
features/basic_authentication.feature
features/command_line.feature
features/deals_with_http_error_codes.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
History
httparty.gemspec
lib/httparty/cookie_hash.rb
lib/httparty/core_extensions.rb
lib/httparty/exceptions.rb
lib/httparty/module_inheritable_attributes.rb
lib/httparty/request.rb
lib/httparty/response.rb
lib/httparty/version.rb
lib/httparty.rb
Manifest
MIT-LICENSE
Rakefile
README
setup.rb
spec/fixtures/delicious.xml
spec/fixtures/empty.xml
spec/fixtures/google.html
spec/fixtures/twitter.json
spec/fixtures/twitter.xml
spec/fixtures/undefined_method_add_node_for_nil.xml
spec/hash_spec.rb
spec/httparty/cookie_hash_spec.rb
spec/httparty/request_spec.rb
spec/httparty/response_spec.rb
spec/httparty_spec.rb
spec/spec.opts
spec/spec_helper.rb
spec/string_spec.rb
website/css/common.css
website/index.html
36 changes: 36 additions & 0 deletions vendor/gems/httparty-0.4.3/README
@@ -0,0 +1,36 @@
= httparty

== DESCRIPTION:

Makes http fun again!

== FEATURES:

* Easy get, post requests
* Basic http authentication
* Default request query string parameters (ie: for api keys that are needed on each request)
* Automatic parsing of JSON and XML into ruby hashes based on response content-type

== EXAMPLES:

See http://github.com/jnunemaker/httparty/tree/master/examples

== COMMAND LINE INTERFACE

httparty also includes the executable <tt>httparty</tt> which can be
used to query web services and examine the resulting output. By default
it will output the response as a pretty-printed Ruby object (useful for
grokking the structure of output). This can also be overridden to output
formatted XML or JSON. Execute <tt>httparty --help</tt> for all the
options. Below is an example of how easy it is.

httparty "http://twitter.com/statuses/public_timeline.json"

== REQUIREMENTS:

* Crack http://github.com/jnunemaker/crack/ - For XML and JSON parsing.
* You like to party!

== INSTALL:

* sudo gem install httparty

0 comments on commit dbac382

Please sign in to comment.