bartzon-httparty 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/.gitignore +8 -0
  2. data/History +216 -0
  3. data/MIT-LICENSE +20 -0
  4. data/Manifest +47 -0
  5. data/README.rdoc +54 -0
  6. data/Rakefile +89 -0
  7. data/VERSION +1 -0
  8. data/bartzon-httparty.gemspec +147 -0
  9. data/bin/httparty +108 -0
  10. data/cucumber.yml +1 -0
  11. data/examples/aaws.rb +32 -0
  12. data/examples/basic.rb +11 -0
  13. data/examples/custom_parsers.rb +67 -0
  14. data/examples/delicious.rb +37 -0
  15. data/examples/google.rb +16 -0
  16. data/examples/rubyurl.rb +14 -0
  17. data/examples/twitter.rb +31 -0
  18. data/examples/whoismyrep.rb +10 -0
  19. data/features/basic_authentication.feature +20 -0
  20. data/features/command_line.feature +7 -0
  21. data/features/deals_with_http_error_codes.feature +26 -0
  22. data/features/digest_authentication.feature +20 -0
  23. data/features/handles_compressed_responses.feature +19 -0
  24. data/features/handles_multiple_formats.feature +34 -0
  25. data/features/steps/env.rb +23 -0
  26. data/features/steps/httparty_response_steps.rb +26 -0
  27. data/features/steps/httparty_steps.rb +27 -0
  28. data/features/steps/mongrel_helper.rb +94 -0
  29. data/features/steps/remote_service_steps.rb +69 -0
  30. data/features/supports_redirection.feature +22 -0
  31. data/features/supports_timeout_option.feature +13 -0
  32. data/httparty.gemspec +146 -0
  33. data/lib/httparty.rb +383 -0
  34. data/lib/httparty/cookie_hash.rb +22 -0
  35. data/lib/httparty/core_extensions.rb +31 -0
  36. data/lib/httparty/exceptions.rb +26 -0
  37. data/lib/httparty/module_inheritable_attributes.rb +34 -0
  38. data/lib/httparty/net_digest_auth.rb +35 -0
  39. data/lib/httparty/parser.rb +141 -0
  40. data/lib/httparty/request.rb +277 -0
  41. data/lib/httparty/response.rb +79 -0
  42. data/spec/fixtures/delicious.xml +23 -0
  43. data/spec/fixtures/empty.xml +0 -0
  44. data/spec/fixtures/google.html +3 -0
  45. data/spec/fixtures/ssl/generate.sh +29 -0
  46. data/spec/fixtures/ssl/generated/1fe462c2.0 +15 -0
  47. data/spec/fixtures/ssl/generated/bogushost.crt +13 -0
  48. data/spec/fixtures/ssl/generated/ca.crt +15 -0
  49. data/spec/fixtures/ssl/generated/ca.key +15 -0
  50. data/spec/fixtures/ssl/generated/selfsigned.crt +14 -0
  51. data/spec/fixtures/ssl/generated/server.crt +13 -0
  52. data/spec/fixtures/ssl/generated/server.key +15 -0
  53. data/spec/fixtures/ssl/openssl-exts.cnf +9 -0
  54. data/spec/fixtures/twitter.json +1 -0
  55. data/spec/fixtures/twitter.xml +403 -0
  56. data/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
  57. data/spec/httparty/cookie_hash_spec.rb +71 -0
  58. data/spec/httparty/parser_spec.rb +155 -0
  59. data/spec/httparty/request_spec.rb +488 -0
  60. data/spec/httparty/response_spec.rb +188 -0
  61. data/spec/httparty/ssl_spec.rb +55 -0
  62. data/spec/httparty_spec.rb +570 -0
  63. data/spec/spec.opts +3 -0
  64. data/spec/spec_helper.rb +20 -0
  65. data/spec/support/ssl_test_helper.rb +25 -0
  66. data/spec/support/ssl_test_server.rb +69 -0
  67. data/spec/support/stub_response.rb +30 -0
  68. data/website/css/common.css +47 -0
  69. data/website/index.html +73 -0
  70. metadata +244 -0
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .DS_Store
2
+ .yardoc/
3
+ doc/
4
+ tmp/
5
+ log/
6
+ pkg/
7
+ *.swp
8
+ tmp_foo*
data/History ADDED
@@ -0,0 +1,216 @@
1
+ == 0.7.0 (master)
2
+ * minor enhancements
3
+ * Added query methods for HTTP status codes, i.e. response.success?
4
+ response.created? (thanks citizenparker)
5
+ * Added support for ssl_ca_file and ssl_ca_path (dlitz)
6
+ * bug fixes
7
+ * Fixed superclass mismatch exception while running tests
8
+ (thanks dlitz http://github.com/dlitz/httparty/commit/48224f0615b32133afcff4718ad426df7a4b401b)
9
+
10
+ == 0.6.1 2010-07-07
11
+ * minor enhancements
12
+ * updated to crack 0.1.8
13
+ * bug fixes
14
+ * subclasses always merge into the parent's default_options and
15
+ default_cookies (l4rk).
16
+ * subclasses play nicely with grand parents. gh-49
17
+
18
+ == 0.6.0 2010-06-13
19
+ * major enhancements
20
+ * Digest Auth (bartiaco, sbecker, gilles, and aaronrussell)
21
+ * Maintain HTTP method across redirects (bartiaco and sbecker)
22
+ * HTTParty::Response#response returns the Net::HTTPResponse object
23
+ * HTTParty::Response#headers returns a HTTParty::Response::Headers object
24
+ which quacks like a Hash + Net::HTTPHeader. The #headers method continues
25
+ to be backwards-compatible with the old Hash return value but may become
26
+ deprecated in the future.
27
+
28
+ * minor enhancements
29
+ * Update crack requirement to version 0.1.7
30
+ You may still get a warning because Crack's version constant is out of date
31
+ * Timeout option can be set for all requests using HTTParty.default_timeout (taazza)
32
+ * Closed #38 "headers hash should downcase keys so canonical header name can be used"
33
+ * Closed #40 "Gzip response" wherein gziped and deflated responses are
34
+ automatically inflated. (carsonmcdonald)
35
+
36
+ == 0.5.2 2010-01-31
37
+ * minor enhancements
38
+ * Update crack requirement to version 0.1.6
39
+
40
+ == 0.5.1 2010-01-30
41
+ * bug fixes
42
+ * Handle 304 response correctly by returning the HTTParty::Response object instead of redirecting (seth and hellvinz)
43
+ * Only redirect 300 responses if the header contains a Location
44
+ * Don't append empty query strings to the uri. Closes #31
45
+ * When no_follow is enabled, only raise the RedirectionTooDeep exception when a response tries redirecting. Closes #28
46
+
47
+ * major enhancements
48
+ * Removed rubygems dependency. I suggest adding rubygems to RUBYOPT if this causes problems for you.
49
+ $ export RUBYOPT='rubygems'
50
+ * HTTParty#debug_output prints debugging information for the current request (iwarshak)
51
+ * HTTParty#no_follow now available as a class-level option. Sets whether or not to follow redirects.
52
+
53
+ * minor enhancements
54
+ * HTTParty::VERSION now available
55
+ * Update crack requirement to version 0.1.5
56
+
57
+ == 0.5.0 2009-12-07
58
+ * bug fixes
59
+ * inheritable attributes no longer mutable by subclasses (yyyc514)
60
+ * namespace BasicObject within HTTParty to avoid class name collisions (eric)
61
+
62
+ * major enhancements
63
+ * Custom Parsers via class or proc
64
+ * Deprecation warning on HTTParty::AllowedFormats
65
+ moved to HTTParty::Parser::SupportedFormats
66
+
67
+ * minor enhancements
68
+ * Curl inspired output when using the binary in verbose mode (alexvollmer)
69
+ * raise UnsupportedURIScheme when scheme is not HTTP or HTTPS (djspinmonkey)
70
+ * Allow SSL for ports other than 443 when scheme is HTTPS (stefankroes)
71
+ * Accept PEM certificates via HTTParty#pem (chrislo)
72
+ * Support HEAD and OPTION verbs (grempe)
73
+ * Verify SSL certificates when providing a PEM file (collectiveidea/danielmorrison)
74
+
75
+ == 0.4.5 2009-09-12
76
+ * bug fixes
77
+ * Fixed class-level headers overwritten by cookie management code. Closes #19
78
+ * Fixed "superclass mismatch for class BlankSlate" error. Closes #20
79
+ * Fixed reading files as post data from the command line (vesan)
80
+
81
+ * minor enhancements
82
+ * Timeout option added; will raise a Timeout::Error after the timeout has elapsed (attack). Closes #17
83
+ HTTParty.get "http://github.com", :timeout => 1
84
+ * Building gem with Jeweler
85
+
86
+ == 0.4.4 2009-07-19
87
+ * 2 minor update
88
+ * :query no longer sets form data. Use body and set content type to application/x-www-form-urlencoded if you need it. :query was wrong for that.
89
+ * Fixed a bug in the cookies class method that caused cookies to be forgotten after the first request.
90
+ * Also, some general cleanup of tests and such.
91
+
92
+ == 0.4.3 2009-04-23
93
+ * 1 minor update
94
+ * added message to the response object
95
+
96
+ == 0.4.2 2009-03-30
97
+ * 2 minor changes
98
+ * response code now returns an integer instead of a string (jqr)
99
+ * rubyforge project setup for crack so i'm now depending on that instead of jnunemaker-crack
100
+
101
+ == 0.4.1 2009-03-29
102
+ * 1 minor fix
103
+ * gem 'jnunemaker-crack' instead of gem 'crack'
104
+
105
+ == 0.4.0 2009-03-29
106
+ * 1 minor change
107
+ * Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)
108
+
109
+ == 0.3.1 2009-02-10
110
+ * 1 minor fix, 1 minor enhancement
111
+ * Fixed unescaping umlauts (siebertm)
112
+ * Added yaml response parsing (Miha Filej)
113
+
114
+ == 0.3.0 2009-01-31
115
+ * 1 major enhancement, 1 bug fix
116
+ * 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.
117
+ * Fixed bug where query strings were being duplicated on redirects
118
+ * Added a bunch of specs and moved some code around.
119
+
120
+ == 0.2.10 2009-01-29
121
+ * 1 minor enhancement
122
+ * Made encoding on query parameters treat everything except URI::PATTERN::UNRESERVED as UNSAFE to force encoding of '+' character (Julian Russell)
123
+
124
+ == 0.2.9 2009-01-29
125
+ * 3 minor enhancements
126
+ * Added a 'headers' accessor to the response with a hash of any HTTP headers. (Don Peterson)
127
+ * 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)
128
+ * Refactored several specs and added a full suite of cucumber features (Don Peterson)
129
+
130
+ == 0.2.8 2009-01-28
131
+ * 1 major fix
132
+ * fixed major bug with response where it wouldn't iterate or really work at all with parsed responses
133
+
134
+ == 0.2.7 2009-01-28
135
+ * 2 minor fixes, 2 minor enhancements, 2 major enhancements
136
+ * fixed undefined method add_node for nil class error that occasionally happened (juliocesar)
137
+ * Handle nil or unexpected values better when typecasting. (Brian Landau)
138
+ * More robust handling of mime types (Alex Vollmer)
139
+ * Fixed support for specifying headers and added support for basic auth to CLI. (Alex Vollmer)
140
+ * Added first class response object that includes original body and status code (Alex Vollmer)
141
+ * Now parsing all response types as some non-200 responses provide important information, this means no more exception raising (Alex Vollmer)
142
+
143
+ == 0.2.6 2009-01-05
144
+ * 1 minor bug fix
145
+ * added explicit require of time as Time#parse failed outside of rails (willcodeforfoo)
146
+
147
+ == 0.2.5 2009-01-05
148
+ * 1 major enhancement
149
+ * Add command line interface to HTTParty (Alex Vollmer)
150
+
151
+ == 0.2.4 2008-12-23
152
+ * 1 bug fix
153
+ * Fixed that mimetype detection was failing if no mimetype was returned from service (skippy)
154
+ == 0.2.3 2008-12-23
155
+ * 1 bug fix
156
+ * Fixed typecasting class variable naming issue
157
+
158
+ == 0.2.2 2008-12-08
159
+ * 1 bug fix
160
+ * Added the missing core extension hash method to_xml_attributes
161
+
162
+ == 0.2.1 2008-12-08
163
+ * 1 bug fix
164
+ * Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)
165
+
166
+ == 0.2.0 2008-12-07
167
+ * 1 major enhancement
168
+ * Removed ActiveSupport as a dependency. Now requires json gem for json deserialization and uses an included class to do the xml parsing.
169
+
170
+ == 0.1.8 2008-11-30
171
+ * 3 major enhancements
172
+ * Moved base_uri normalization into request class and out of httparty module, fixing
173
+ the problem where base_uri was not always being normalized.
174
+ * Stupid simple support for HTTParty.get/post/put/delete. (jqr)
175
+ * Switched gem management to Echoe from newgem.
176
+
177
+ == 0.1.7 2008-11-30
178
+ * 1 major enhancement
179
+ * fixed multiple class definitions overriding each others options
180
+
181
+ == 0.1.6 2008-11-26
182
+ * 1 major enhancement
183
+ * now passing :query to set_form_data if post request to avoid content length errors
184
+
185
+ == 0.1.5 2008-11-14
186
+ * 2 major enhancements
187
+ * Refactored send request method out into its own object.
188
+ * Added :html format if you just want to do that.
189
+
190
+ == 0.1.4 2008-11-08
191
+ * 3 major enhancements:
192
+ * Removed some cruft
193
+ * Added ability to follow redirects automatically and turn that off (Alex Vollmer)
194
+
195
+ == 0.1.3 2008-08-22
196
+
197
+ * 3 major enhancements:
198
+ * Added http_proxy key for setting proxy server and port (francxk@gmail.com)
199
+ * Now raises exception when http error occurs (francxk@gmail.com)
200
+ * Changed auto format detection from file extension to response content type (Jay Pignata)
201
+
202
+ == 0.1.2 2008-08-09
203
+
204
+ * 1 major enhancement:
205
+ * default_params were not being appended to query string if option[:query] was blank
206
+
207
+ == 0.1.1 2008-07-30
208
+
209
+ * 2 major enhancement:
210
+ * Added :basic_auth key for options when making a request
211
+ * :query and :body both now work with query string or hash
212
+
213
+ == 0.1.0 2008-07-27
214
+
215
+ * 1 major enhancement:
216
+ * Initial release
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 John Nunemaker
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Manifest ADDED
@@ -0,0 +1,47 @@
1
+ bin/httparty
2
+ cucumber.yml
3
+ examples/aaws.rb
4
+ examples/basic.rb
5
+ examples/delicious.rb
6
+ examples/google.rb
7
+ examples/rubyurl.rb
8
+ examples/twitter.rb
9
+ examples/whoismyrep.rb
10
+ features/basic_authentication.feature
11
+ features/command_line.feature
12
+ features/deals_with_http_error_codes.feature
13
+ features/handles_multiple_formats.feature
14
+ features/steps/env.rb
15
+ features/steps/httparty_response_steps.rb
16
+ features/steps/httparty_steps.rb
17
+ features/steps/mongrel_helper.rb
18
+ features/steps/remote_service_steps.rb
19
+ features/supports_redirection.feature
20
+ History
21
+ httparty.gemspec
22
+ lib/httparty/cookie_hash.rb
23
+ lib/httparty/core_extensions.rb
24
+ lib/httparty/exceptions.rb
25
+ lib/httparty/module_inheritable_attributes.rb
26
+ lib/httparty/request.rb
27
+ lib/httparty/response.rb
28
+ lib/httparty/version.rb
29
+ lib/httparty.rb
30
+ Manifest
31
+ MIT-LICENSE
32
+ Rakefile
33
+ README.rdoc
34
+ spec/fixtures/delicious.xml
35
+ spec/fixtures/empty.xml
36
+ spec/fixtures/google.html
37
+ spec/fixtures/twitter.json
38
+ spec/fixtures/twitter.xml
39
+ spec/fixtures/undefined_method_add_node_for_nil.xml
40
+ spec/httparty/cookie_hash_spec.rb
41
+ spec/httparty/request_spec.rb
42
+ spec/httparty/response_spec.rb
43
+ spec/httparty_spec.rb
44
+ spec/spec.opts
45
+ spec/spec_helper.rb
46
+ website/css/common.css
47
+ website/index.html
data/README.rdoc ADDED
@@ -0,0 +1,54 @@
1
+ = httparty
2
+
3
+ Makes http fun again!
4
+
5
+ == Note on Releases
6
+
7
+ Releases are tagged on github and also released as gems on github and rubyforge. Master is pushed to whenever I add a patch or a new feature. To build from master, you can clone the code, generate the updated gemspec, build the gem and install.
8
+
9
+ * rake gemspec
10
+ * gem build httparty.gemspec
11
+ * gem install the gem that was built
12
+
13
+ == Note on Patches/Pull Requests
14
+
15
+ * Fork the project.
16
+ * Make your feature addition or bug fix.
17
+ * Add tests for it. This is important so I don't break it in a future version unintentionally.
18
+ * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
19
+ * Send me a pull request. Bonus points for topic branches.
20
+
21
+ == Features:
22
+
23
+ * Easy get, post requests
24
+ * Basic http authentication
25
+ * Default request query string parameters (ie: for api keys that are needed on each request)
26
+ * Automatic parsing of JSON and XML into ruby hashes based on response content-type
27
+
28
+ == Examples
29
+
30
+ See http://github.com/jnunemaker/httparty/tree/master/examples
31
+
32
+ == Command Line Interface
33
+
34
+ httparty also includes the executable <tt>httparty</tt> which can be
35
+ used to query web services and examine the resulting output. By default
36
+ it will output the response as a pretty-printed Ruby object (useful for
37
+ grokking the structure of output). This can also be overridden to output
38
+ formatted XML or JSON. Execute <tt>httparty --help</tt> for all the
39
+ options. Below is an example of how easy it is.
40
+
41
+ httparty "http://twitter.com/statuses/public_timeline.json"
42
+
43
+ == Requirements
44
+
45
+ * Crack http://github.com/jnunemaker/crack/ - For XML and JSON parsing.
46
+ * You like to party!
47
+
48
+ == Install
49
+
50
+ * sudo gem install httparty
51
+
52
+ == Docs
53
+
54
+ http://rdoc.info/projects/jnunemaker/httparty
data/Rakefile ADDED
@@ -0,0 +1,89 @@
1
+ require 'rake'
2
+ require File.expand_path('../lib/httparty', __FILE__)
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "bartzon-httparty"
8
+ gem.summary = %Q{Makes http fun! Also, makes consuming restful web services dead easy.}
9
+ gem.description = %Q{Makes http fun! Also, makes consuming restful web services dead easy.}
10
+ gem.email = "loop@superinfinite.com"
11
+ gem.homepage = "http://httparty.rubyforge.org"
12
+ gem.authors = ["John Nunemaker", "Sandro Turriate", "Bart Zonneveld"]
13
+ gem.version = HTTParty::VERSION
14
+
15
+ gem.add_dependency 'crack', HTTParty::CRACK_DEPENDENCY
16
+
17
+ gem.add_development_dependency "activesupport", "~>2.3"
18
+ gem.add_development_dependency "cucumber", "~>0.7"
19
+ gem.add_development_dependency "fakeweb", "~>1.2"
20
+ gem.add_development_dependency "mongrel", "~>1.1"
21
+ gem.add_development_dependency "rspec", "~>1.3"
22
+ gem.post_install_message = "When you HTTParty, you must party hard!"
23
+ gem.rubyforge_project = 'httparty'
24
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
25
+ end
26
+ Jeweler::RubyforgeTasks.new do |rubyforge|
27
+ rubyforge.doc_task = "rdoc"
28
+ end
29
+ Jeweler::GemcutterTasks.new
30
+ rescue LoadError
31
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
32
+ end
33
+
34
+ require 'spec/rake/spectask'
35
+ Spec::Rake::SpecTask.new(:spec) do |spec|
36
+ spec.ruby_opts << '-rubygems'
37
+ spec.libs << 'lib' << 'spec'
38
+ spec.spec_files = FileList['spec/**/*_spec.rb']
39
+ spec.spec_opts = ['--options', 'spec/spec.opts']
40
+ end
41
+
42
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
43
+ spec.libs << 'lib' << 'spec'
44
+ spec.pattern = 'spec/**/*_spec.rb'
45
+ spec.rcov = true
46
+ end
47
+
48
+ task :spec => :check_dependencies
49
+
50
+ begin
51
+ require 'cucumber/rake/task'
52
+ Cucumber::Rake::Task.new(:features)
53
+
54
+ task :features => :check_dependencies
55
+ rescue LoadError
56
+ task :features do
57
+ abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
58
+ end
59
+ end
60
+
61
+ task :default => [:spec, :features]
62
+
63
+ require 'rake/rdoctask'
64
+ Rake::RDocTask.new do |rdoc|
65
+ if File.exist?('VERSION')
66
+ version = File.read('VERSION')
67
+ else
68
+ version = ""
69
+ end
70
+
71
+ rdoc.rdoc_dir = 'rdoc'
72
+ rdoc.title = "httparty #{version}"
73
+ rdoc.rdoc_files.include('README*')
74
+ rdoc.rdoc_files.include('lib/**/*.rb')
75
+ rdoc.rdoc_files.include('lib/httparty.rb')
76
+ end
77
+
78
+ desc 'Upload website files to rubyforge'
79
+ task :website do
80
+ sh %{rsync -av website/ jnunemaker@rubyforge.org:/var/www/gforge-projects/httparty}
81
+ end
82
+
83
+ begin
84
+ require 'yard'
85
+ YARD::Rake::YardocTask.new do |t|
86
+ t.options = ['--verbose']
87
+ end
88
+ rescue LoadError
89
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.6.0
@@ -0,0 +1,147 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{bartzon-httparty}
8
+ s.version = "0.6.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["John Nunemaker", "Sandro Turriate", "Bart Zonneveld"]
12
+ s.date = %q{2010-08-09}
13
+ s.default_executable = %q{httparty}
14
+ s.description = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
15
+ s.email = %q{loop@superinfinite.com}
16
+ s.executables = ["httparty"]
17
+ s.extra_rdoc_files = [
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".gitignore",
22
+ "History",
23
+ "MIT-LICENSE",
24
+ "Manifest",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bartzon-httparty.gemspec",
29
+ "bin/httparty",
30
+ "cucumber.yml",
31
+ "examples/aaws.rb",
32
+ "examples/basic.rb",
33
+ "examples/custom_parsers.rb",
34
+ "examples/delicious.rb",
35
+ "examples/google.rb",
36
+ "examples/rubyurl.rb",
37
+ "examples/twitter.rb",
38
+ "examples/whoismyrep.rb",
39
+ "features/basic_authentication.feature",
40
+ "features/command_line.feature",
41
+ "features/deals_with_http_error_codes.feature",
42
+ "features/digest_authentication.feature",
43
+ "features/handles_compressed_responses.feature",
44
+ "features/handles_multiple_formats.feature",
45
+ "features/steps/env.rb",
46
+ "features/steps/httparty_response_steps.rb",
47
+ "features/steps/httparty_steps.rb",
48
+ "features/steps/mongrel_helper.rb",
49
+ "features/steps/remote_service_steps.rb",
50
+ "features/supports_redirection.feature",
51
+ "features/supports_timeout_option.feature",
52
+ "httparty.gemspec",
53
+ "lib/httparty.rb",
54
+ "lib/httparty/cookie_hash.rb",
55
+ "lib/httparty/core_extensions.rb",
56
+ "lib/httparty/exceptions.rb",
57
+ "lib/httparty/module_inheritable_attributes.rb",
58
+ "lib/httparty/net_digest_auth.rb",
59
+ "lib/httparty/parser.rb",
60
+ "lib/httparty/request.rb",
61
+ "lib/httparty/response.rb",
62
+ "spec/fixtures/delicious.xml",
63
+ "spec/fixtures/empty.xml",
64
+ "spec/fixtures/google.html",
65
+ "spec/fixtures/ssl/generate.sh",
66
+ "spec/fixtures/ssl/generated/1fe462c2.0",
67
+ "spec/fixtures/ssl/generated/bogushost.crt",
68
+ "spec/fixtures/ssl/generated/ca.crt",
69
+ "spec/fixtures/ssl/generated/ca.key",
70
+ "spec/fixtures/ssl/generated/selfsigned.crt",
71
+ "spec/fixtures/ssl/generated/server.crt",
72
+ "spec/fixtures/ssl/generated/server.key",
73
+ "spec/fixtures/ssl/openssl-exts.cnf",
74
+ "spec/fixtures/twitter.json",
75
+ "spec/fixtures/twitter.xml",
76
+ "spec/fixtures/undefined_method_add_node_for_nil.xml",
77
+ "spec/httparty/cookie_hash_spec.rb",
78
+ "spec/httparty/parser_spec.rb",
79
+ "spec/httparty/request_spec.rb",
80
+ "spec/httparty/response_spec.rb",
81
+ "spec/httparty/ssl_spec.rb",
82
+ "spec/httparty_spec.rb",
83
+ "spec/spec.opts",
84
+ "spec/spec_helper.rb",
85
+ "spec/support/ssl_test_helper.rb",
86
+ "spec/support/ssl_test_server.rb",
87
+ "spec/support/stub_response.rb",
88
+ "website/css/common.css",
89
+ "website/index.html"
90
+ ]
91
+ s.homepage = %q{http://httparty.rubyforge.org}
92
+ s.post_install_message = %q{When you HTTParty, you must party hard!}
93
+ s.rdoc_options = ["--charset=UTF-8"]
94
+ s.require_paths = ["lib"]
95
+ s.rubyforge_project = %q{httparty}
96
+ s.rubygems_version = %q{1.3.7}
97
+ s.summary = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
98
+ s.test_files = [
99
+ "spec/httparty/cookie_hash_spec.rb",
100
+ "spec/httparty/parser_spec.rb",
101
+ "spec/httparty/request_spec.rb",
102
+ "spec/httparty/response_spec.rb",
103
+ "spec/httparty/ssl_spec.rb",
104
+ "spec/httparty_spec.rb",
105
+ "spec/spec_helper.rb",
106
+ "spec/support/ssl_test_helper.rb",
107
+ "spec/support/ssl_test_server.rb",
108
+ "spec/support/stub_response.rb",
109
+ "examples/aaws.rb",
110
+ "examples/basic.rb",
111
+ "examples/custom_parsers.rb",
112
+ "examples/delicious.rb",
113
+ "examples/google.rb",
114
+ "examples/rubyurl.rb",
115
+ "examples/twitter.rb",
116
+ "examples/whoismyrep.rb"
117
+ ]
118
+
119
+ if s.respond_to? :specification_version then
120
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
121
+ s.specification_version = 3
122
+
123
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
124
+ s.add_runtime_dependency(%q<crack>, ["= 0.1.8"])
125
+ s.add_development_dependency(%q<activesupport>, ["~> 2.3"])
126
+ s.add_development_dependency(%q<cucumber>, ["~> 0.7"])
127
+ s.add_development_dependency(%q<fakeweb>, ["~> 1.2"])
128
+ s.add_development_dependency(%q<mongrel>, ["~> 1.1"])
129
+ s.add_development_dependency(%q<rspec>, ["~> 1.3"])
130
+ else
131
+ s.add_dependency(%q<crack>, ["= 0.1.8"])
132
+ s.add_dependency(%q<activesupport>, ["~> 2.3"])
133
+ s.add_dependency(%q<cucumber>, ["~> 0.7"])
134
+ s.add_dependency(%q<fakeweb>, ["~> 1.2"])
135
+ s.add_dependency(%q<mongrel>, ["~> 1.1"])
136
+ s.add_dependency(%q<rspec>, ["~> 1.3"])
137
+ end
138
+ else
139
+ s.add_dependency(%q<crack>, ["= 0.1.8"])
140
+ s.add_dependency(%q<activesupport>, ["~> 2.3"])
141
+ s.add_dependency(%q<cucumber>, ["~> 0.7"])
142
+ s.add_dependency(%q<fakeweb>, ["~> 1.2"])
143
+ s.add_dependency(%q<mongrel>, ["~> 1.1"])
144
+ s.add_dependency(%q<rspec>, ["~> 1.3"])
145
+ end
146
+ end
147
+