httpserious 0.13.5.lstoll1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rubocop.yml +92 -0
  4. data/.rubocop_todo.yml +124 -0
  5. data/.simplecov +1 -0
  6. data/.travis.yml +7 -0
  7. data/CONTRIBUTING.md +23 -0
  8. data/Gemfile +19 -0
  9. data/Guardfile +16 -0
  10. data/History +370 -0
  11. data/MIT-LICENSE +20 -0
  12. data/README.md +78 -0
  13. data/Rakefile +10 -0
  14. data/bin/httparty +116 -0
  15. data/cucumber.yml +1 -0
  16. data/examples/README.md +67 -0
  17. data/examples/aaws.rb +32 -0
  18. data/examples/basic.rb +28 -0
  19. data/examples/crack.rb +19 -0
  20. data/examples/custom_parsers.rb +64 -0
  21. data/examples/delicious.rb +37 -0
  22. data/examples/google.rb +16 -0
  23. data/examples/headers_and_user_agents.rb +6 -0
  24. data/examples/logging.rb +36 -0
  25. data/examples/nokogiri_html_parser.rb +19 -0
  26. data/examples/rescue_json.rb +17 -0
  27. data/examples/rubyurl.rb +14 -0
  28. data/examples/stackexchange.rb +24 -0
  29. data/examples/tripit_sign_in.rb +33 -0
  30. data/examples/twitter.rb +31 -0
  31. data/examples/whoismyrep.rb +10 -0
  32. data/features/basic_authentication.feature +20 -0
  33. data/features/command_line.feature +90 -0
  34. data/features/deals_with_http_error_codes.feature +26 -0
  35. data/features/digest_authentication.feature +20 -0
  36. data/features/handles_compressed_responses.feature +27 -0
  37. data/features/handles_multiple_formats.feature +57 -0
  38. data/features/steps/env.rb +27 -0
  39. data/features/steps/httparty_response_steps.rb +52 -0
  40. data/features/steps/httparty_steps.rb +43 -0
  41. data/features/steps/mongrel_helper.rb +94 -0
  42. data/features/steps/remote_service_steps.rb +86 -0
  43. data/features/supports_read_timeout_option.feature +13 -0
  44. data/features/supports_redirection.feature +22 -0
  45. data/features/supports_timeout_option.feature +13 -0
  46. data/httparty.gemspec +28 -0
  47. data/httpserious.gemspec +25 -0
  48. data/lib/httparty.rb +612 -0
  49. data/lib/httparty/connection_adapter.rb +190 -0
  50. data/lib/httparty/cookie_hash.rb +21 -0
  51. data/lib/httparty/exceptions.rb +29 -0
  52. data/lib/httparty/hash_conversions.rb +49 -0
  53. data/lib/httparty/logger/apache_formatter.rb +22 -0
  54. data/lib/httparty/logger/curl_formatter.rb +48 -0
  55. data/lib/httparty/logger/logger.rb +26 -0
  56. data/lib/httparty/module_inheritable_attributes.rb +56 -0
  57. data/lib/httparty/net_digest_auth.rb +117 -0
  58. data/lib/httparty/parser.rb +141 -0
  59. data/lib/httparty/request.rb +361 -0
  60. data/lib/httparty/response.rb +77 -0
  61. data/lib/httparty/response/headers.rb +31 -0
  62. data/lib/httparty/version.rb +3 -0
  63. data/lib/httpserious.rb +1 -0
  64. data/script/release +42 -0
  65. data/spec/fixtures/delicious.xml +23 -0
  66. data/spec/fixtures/empty.xml +0 -0
  67. data/spec/fixtures/google.html +3 -0
  68. data/spec/fixtures/ssl/generate.sh +29 -0
  69. data/spec/fixtures/ssl/generated/1fe462c2.0 +16 -0
  70. data/spec/fixtures/ssl/generated/bogushost.crt +13 -0
  71. data/spec/fixtures/ssl/generated/ca.crt +16 -0
  72. data/spec/fixtures/ssl/generated/ca.key +15 -0
  73. data/spec/fixtures/ssl/generated/selfsigned.crt +14 -0
  74. data/spec/fixtures/ssl/generated/server.crt +13 -0
  75. data/spec/fixtures/ssl/generated/server.key +15 -0
  76. data/spec/fixtures/ssl/openssl-exts.cnf +9 -0
  77. data/spec/fixtures/twitter.csv +2 -0
  78. data/spec/fixtures/twitter.json +1 -0
  79. data/spec/fixtures/twitter.xml +403 -0
  80. data/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
  81. data/spec/httparty/connection_adapter_spec.rb +468 -0
  82. data/spec/httparty/cookie_hash_spec.rb +83 -0
  83. data/spec/httparty/exception_spec.rb +38 -0
  84. data/spec/httparty/hash_conversions_spec.rb +41 -0
  85. data/spec/httparty/logger/apache_formatter_spec.rb +41 -0
  86. data/spec/httparty/logger/curl_formatter_spec.rb +18 -0
  87. data/spec/httparty/logger/logger_spec.rb +38 -0
  88. data/spec/httparty/net_digest_auth_spec.rb +191 -0
  89. data/spec/httparty/parser_spec.rb +167 -0
  90. data/spec/httparty/request_spec.rb +872 -0
  91. data/spec/httparty/response_spec.rb +241 -0
  92. data/spec/httparty/ssl_spec.rb +74 -0
  93. data/spec/httparty_spec.rb +823 -0
  94. data/spec/spec_helper.rb +59 -0
  95. data/spec/support/ssl_test_helper.rb +47 -0
  96. data/spec/support/ssl_test_server.rb +80 -0
  97. data/spec/support/stub_response.rb +43 -0
  98. data/website/css/common.css +47 -0
  99. data/website/index.html +73 -0
  100. metadata +219 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6d40d30621d19bb42465313f728a313556dd0ea5
4
+ data.tar.gz: 1ad3b4eacbb7645cc66d1065e97838f190ad516a
5
+ SHA512:
6
+ metadata.gz: c06305b0088ad59a9f2c24661d68a904391c1858c079d0f1611fe8b55e79fc34c698814201b0fb9a2f756cefa27806af7f1df4b9aca434a3bb0cbb9e5dc9b4dc
7
+ data.tar.gz: e53ed2ecb6b595e2714b554676c3bc47d96c64153b510aaa939fa51e118553c2e387e96a42c11ec4a6be7179a6a622e28e5fa6b971425dfeec7b4c235b9672bd
@@ -0,0 +1,11 @@
1
+ Gemfile.lock
2
+ .DS_Store
3
+ .yardoc/
4
+ doc/
5
+ tmp/
6
+ log/
7
+ pkg/
8
+ *.swp
9
+ /.bundle
10
+ .rvmrc
11
+ coverage
@@ -0,0 +1,92 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ # Offense count: 963
4
+ # Cop supports --auto-correct.
5
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
6
+ Style/StringLiterals:
7
+ Enabled: false
8
+
9
+ # Offense count: 327
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
12
+ Style/SpaceInsideHashLiteralBraces:
13
+ Enabled: false
14
+
15
+ # Offense count: 33
16
+ # Cop supports --auto-correct.
17
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
18
+ Style/SpaceInsideBlockBraces:
19
+ Enabled: false
20
+
21
+ # Offense count: 1
22
+ # Cop supports --auto-correct.
23
+ Style/SpaceBeforeSemicolon:
24
+ Enabled: false
25
+
26
+ # Offense count: 20
27
+ # Cop supports --auto-correct.
28
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
29
+ Style/SignalException:
30
+ Enabled: false
31
+
32
+ # Offense count: 1
33
+ # Configuration parameters: Methods.
34
+ Style/SingleLineBlockParams:
35
+ Enabled: false
36
+
37
+ # Offense count: 6
38
+ # Cop supports --auto-correct.
39
+ Style/PerlBackrefs:
40
+ Enabled: false
41
+
42
+ # Offense count: 2
43
+ # Cop supports --auto-correct.
44
+ # Configuration parameters: AllowAsExpressionSeparator.
45
+ Style/Semicolon:
46
+ Enabled: false
47
+
48
+ # Offense count: 77
49
+ # Cop supports --auto-correct.
50
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
51
+ Style/BracesAroundHashParameters:
52
+ Enabled: false
53
+
54
+ # Offense count: 36
55
+ Style/Documentation:
56
+ Enabled: false
57
+
58
+ # Offense count: 6
59
+ # Cop supports --auto-correct.
60
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
61
+ Style/RegexpLiteral:
62
+ Enabled: false
63
+
64
+ # Offense count: 5
65
+ # Cop supports --auto-correct.
66
+ Style/NumericLiterals:
67
+ MinDigits: 6
68
+
69
+ # Offense count: 4
70
+ # Cop supports --auto-correct.
71
+ Lint/UnusedMethodArgument:
72
+ Enabled: false
73
+
74
+ # Offense count: 11
75
+ # Cop supports --auto-correct.
76
+ Lint/UnusedBlockArgument:
77
+ Enabled: false
78
+
79
+ # Offense count: 1
80
+ Lint/Void:
81
+ Enabled: false
82
+
83
+ # Offense count: 22
84
+ # Cop supports --auto-correct.
85
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
86
+ Style/IndentHash:
87
+ Enabled: false
88
+
89
+ # Offense count: 7
90
+ # Configuration parameters: MinBodyLength.
91
+ Style/GuardClause:
92
+ Enabled: false
@@ -0,0 +1,124 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2015-04-24 07:22:28 +0200 using RuboCop version 0.30.0.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 33
9
+ Lint/AmbiguousRegexpLiteral:
10
+ Enabled: false
11
+
12
+ # Offense count: 1
13
+ # Configuration parameters: AlignWith, SupportedStyles.
14
+ Lint/EndAlignment:
15
+ Enabled: false
16
+
17
+ # Offense count: 1
18
+ Lint/HandleExceptions:
19
+ Enabled: false
20
+
21
+ # Offense count: 5
22
+ Lint/UselessAssignment:
23
+ Enabled: false
24
+
25
+ # Offense count: 23
26
+ Metrics/AbcSize:
27
+ Max: 86
28
+
29
+ # Offense count: 1
30
+ # Configuration parameters: CountComments.
31
+ Metrics/ClassLength:
32
+ Max: 285
33
+
34
+ # Offense count: 8
35
+ Metrics/CyclomaticComplexity:
36
+ Max: 17
37
+
38
+ # Offense count: 332
39
+ # Configuration parameters: AllowURI, URISchemes.
40
+ Metrics/LineLength:
41
+ Max: 266
42
+
43
+ # Offense count: 17
44
+ # Configuration parameters: CountComments.
45
+ Metrics/MethodLength:
46
+ Max: 39
47
+
48
+ # Offense count: 8
49
+ Metrics/PerceivedComplexity:
50
+ Max: 20
51
+
52
+ # Offense count: 1
53
+ Style/AccessorMethodName:
54
+ Enabled: false
55
+
56
+ # Offense count: 1
57
+ Style/AsciiComments:
58
+ Enabled: false
59
+
60
+ # Offense count: 14
61
+ # Cop supports --auto-correct.
62
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
63
+ Style/BlockDelimiters:
64
+ Enabled: false
65
+
66
+ # Offense count: 2
67
+ Style/CaseEquality:
68
+ Enabled: false
69
+
70
+ # Offense count: 3
71
+ # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
72
+ Style/CaseIndentation:
73
+ Enabled: false
74
+
75
+ # Offense count: 4
76
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
77
+ Style/ClassAndModuleChildren:
78
+ Enabled: false
79
+
80
+ # Offense count: 7
81
+ Style/ConstantName:
82
+ Enabled: false
83
+
84
+ # Offense count: 2
85
+ Style/EachWithObject:
86
+ Enabled: false
87
+
88
+ # Offense count: 2
89
+ # Cop supports --auto-correct.
90
+ Style/ElseAlignment:
91
+ Enabled: false
92
+
93
+ # Offense count: 3
94
+ # Cop supports --auto-correct.
95
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
96
+ Style/FirstParameterIndentation:
97
+ Enabled: false
98
+
99
+ # Offense count: 2
100
+ # Cop supports --auto-correct.
101
+ # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
102
+ Style/HashSyntax:
103
+ Enabled: false
104
+
105
+ # Offense count: 7
106
+ # Cop supports --auto-correct.
107
+ # Configuration parameters: MaxLineLength.
108
+ Style/IfUnlessModifier:
109
+ Enabled: false
110
+
111
+ # Offense count: 11
112
+ # Cop supports --auto-correct.
113
+ Style/Lambda:
114
+ Enabled: false
115
+
116
+ # Offense count: 1
117
+ # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
118
+ Style/Next:
119
+ Enabled: false
120
+
121
+ # Offense count: 2
122
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
123
+ Style/RaiseArgs:
124
+ Enabled: false
@@ -0,0 +1 @@
1
+ SimpleCov.start "test_frameworks"
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ notifications:
6
+ email: false
7
+ bundler_args: --without development
@@ -0,0 +1,23 @@
1
+ # Contributing
2
+
3
+ * Contributions will not be accepted without tests.
4
+ * Please post unconfirmed bugs to the mailing list first: https://groups.google.com/forum/#!forum/httparty-gem
5
+ * Don't change the version. The maintainers will handle that when they release.
6
+ * Always provide as much information and reproducibility as possible when filing an issue or submitting a pull request.
7
+
8
+ ## Workflow
9
+
10
+ * Fork the project.
11
+ * Run `bundle`
12
+ * Run `bundle exec rake`
13
+ * Make your feature addition or bug fix.
14
+ * Add tests for it. This is important so I don't break it in a future version unintentionally.
15
+ * Run `bundle exec rake` (No, REALLY :))
16
+ * 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)
17
+ * Send me a pull request. Bonus points for topic branches.
18
+
19
+ ## Help and Docs
20
+
21
+ * https://groups.google.com/forum/#!forum/httparty-gem
22
+ * http://stackoverflow.com/questions/tagged/httparty
23
+ * http://rdoc.info/projects/jnunemaker/httparty
data/Gemfile ADDED
@@ -0,0 +1,19 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'rake'
5
+ gem 'fakeweb', '~> 1.3'
6
+ gem 'mongrel', '1.2.0.pre2'
7
+
8
+ group :development do
9
+ gem 'guard'
10
+ gem 'guard-rspec'
11
+ gem 'guard-bundler'
12
+ end
13
+
14
+ group :test do
15
+ gem 'rspec', '~> 3.1'
16
+ gem 'simplecov', require: false
17
+ gem 'aruba'
18
+ gem 'cucumber', '~> 1.3.17'
19
+ end
@@ -0,0 +1,16 @@
1
+ rspec_options = {
2
+ version: 1,
3
+ all_after_pass: false,
4
+ all_on_start: false
5
+ }
6
+
7
+ guard 'rspec', rspec_options do
8
+ watch(%r{^spec/.+_spec\.rb$})
9
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
10
+ watch('spec/spec_helper.rb') { "spec" }
11
+ end
12
+
13
+ guard 'bundler' do
14
+ watch('Gemfile')
15
+ watch(/^.+\.gemspec/)
16
+ end
data/History ADDED
@@ -0,0 +1,370 @@
1
+ == 0.13.3
2
+ * minor improvement
3
+ * added option to allow for streaming large files without loading them into memory (672cdae)
4
+
5
+ == 0.13.2
6
+ * minor improvement
7
+ * [Set correct path on redirect to filename](https://github.com/jnunemaker/httparty/pull/337)
8
+ * ensure logger works with curl format
9
+
10
+ == 0.13.1 2014-04-08
11
+ * new
12
+ * [Added ability to specify a body_stream in HttpRequest](https://github.com/jnunemaker/httparty/pull/275)
13
+ * [Added read_timeout and open_timeout options](https://github.com/jnunemaker/httparty/pull/278)
14
+ * change
15
+ * [Initialize HTTParty requests with an URI object and a String](https://github.com/jnunemaker/httparty/pull/274)
16
+ * minor improvement
17
+ * [Add stackexchange API example](https://github.com/jnunemaker/httparty/pull/280)
18
+
19
+ == 0.13.0 2014-02-14
20
+ * new
21
+ * [Add CSV support](https://github.com/jnunemaker/httparty/pull/269)
22
+ * [Allows PKCS12 client certificates](https://github.com/jnunemaker/httparty/pull/246)
23
+ * bug fix
24
+ * [Digest auth no longer fails when multiple headers are sent by the server](https://github.com/jnunemaker/httparty/pull/272)
25
+ * [Use 'Basement.copy' when calling 'HTTParty.copy'](https://github.com/jnunemaker/httparty/pull/268)
26
+ * [No longer appends ampersand when queries are embedded in paths](https://github.com/jnunemaker/httparty/pull/252)
27
+ * change
28
+ * [Merge - instead of overwrite - default headers with request provided headers](https://github.com/jnunemaker/httparty/pull/270)
29
+ * [Modernize respond_to implementations to support second param](https://github.com/jnunemaker/httparty/pull/264)
30
+ * [Sort query parameters by key before processing](https://github.com/jnunemaker/httparty/pull/245)
31
+ * minor improvement
32
+ * [Add HTTParty::Error base class](https://github.com/jnunemaker/httparty/pull/260)
33
+
34
+ == 0.12.0 2013-10-10
35
+ * new
36
+ * [Added initial logging support](https://github.com/jnunemaker/httparty/pull/243)
37
+ * [Add support for local host and port binding](https://github.com/jnunemaker/httparty/pull/238)
38
+ * [content_type_charset_support](https://github.com/jnunemaker/httparty/commit/82e351f0904e8ecc856015ff2854698a2ca47fbc)
39
+ * bug fix
40
+ * [No longer attempt to decompress the body on HEAD requests](https://github.com/jnunemaker/httparty/commit/f2b8cc3d49e0e9363d7054b14f30c340d7b8e7f1)
41
+ * [Adding java check in aliasing of multiple choices](https://github.com/jnunemaker/httparty/pull/204/commits)
42
+ * change
43
+ * [MIME-type files of javascript are returned as a string instead of JSON](https://github.com/jnunemaker/httparty/pull/239)
44
+ * [Made SSL connections use the system certificate store by default](https://github.com/jnunemaker/httparty/pull/226)
45
+ * [Do not pass proxy options to Net::HTTP connection if not specified](https://github.com/jnunemaker/httparty/pull/222)
46
+ * [Replace multi_json with stdlib json](https://github.com/jnunemaker/httparty/pull/214)
47
+ * [Require Ruby >= 1.9.3]
48
+ * [Response returns array of returned cookie strings](https://github.com/jnunemaker/httparty/pull/218)
49
+ * [Allow '=' within value of a cookie]
50
+ * minor improvements
51
+ * [Improve documentation of ssl_ca_file, ssl_ca_path](https://github.com/jnunemaker/httparty/pull/223)
52
+ * [Fix example URLs](https://github.com/jnunemaker/httparty/pull/232)
53
+
54
+ == 0.11.0 2013-04-10
55
+ * new
56
+ * [Add COPY http request handling](https://github.com/jnunemaker/httparty/pull/190)
57
+ * [Ruby 2.0 tests](https://github.com/jnunemaker/httparty/pull/194)
58
+ * [Ruby >= 2.0.0 support both multiple_choice? and multiple_choices?]
59
+ * bug fix
60
+ * [Maintain blocks passed to 'perform' in redirects](https://github.com/jnunemaker/httparty/pull/191)
61
+ * [Fixed nc value being quoted, this was against spec](https://github.com/jnunemaker/httparty/pull/196)
62
+ * [Request#uri no longer duplicates non-relative-path params](https://github.com/jnunemaker/httparty/pull/189)
63
+ * change
64
+ * [Client-side-only cookie attributes are removed: case-insensitive](https://github.com/jnunemaker/httparty/pull/188)
65
+
66
+ == 0.10.2 2013-01-26
67
+ * bug fix
68
+ * [hash_conversions misnamed variable](https://github.com/jnunemaker/httparty/pull/187)
69
+
70
+ == 0.10.1 2013-01-26
71
+ * new
72
+ * [Added support for MOVE requests](https://github.com/jnunemaker/httparty/pull/183)
73
+ * [Bump multi xml version](https://github.com/jnunemaker/httparty/pull/181)
74
+
75
+ == 0.10.0 2013-01-10
76
+ * changes
77
+ * removed yaml support because of security risk (see rails yaml issues)
78
+
79
+ == 0.9.0 2012-09-07
80
+ * new
81
+ * [support for connection adapters](https://github.com/jnunemaker/httparty/pull/157)
82
+ * [allow ssl_version on ruby 1.9](https://github.com/jnunemaker/httparty/pull/159)
83
+ * bug fixes
84
+ * [don't treat port 4430 as ssl](https://github.com/jnunemaker/httparty/commit/a296b1c97f83d7dcc6ef85720a43664c265685ac)
85
+ * [deep clone default options](https://github.com/jnunemaker/httparty/commit/f74227d30f9389b4b23a888c9af49fb9b8248e1f)
86
+ * a few net digest auth fixes
87
+
88
+ == 0.8.3 2012-04-21
89
+ * new
90
+ * [lazy parsing of responses](https://github.com/jnunemaker/httparty/commit/9fd5259c8dab00e426082b66af44ede2c9068f45)
91
+ * [add support for PATCH requests](https://github.com/jnunemaker/httparty/commit/7ab6641e37a9e31517e46f6124f38c615395d38a)
92
+ * bug fixes
93
+ * [subclasses no longer override superclass options](https://github.com/jnunemaker/httparty/commit/682af8fbf672e7b3009e650da776c85cdfe78d39)
94
+
95
+ == 0.8.2 2012-04-12
96
+ * new
97
+ * add -r to make CLI return failure code if status >= 400
98
+ * allow blank username from CLI
99
+ * bug fixes
100
+ * return nil for null body
101
+ * automatically deflate responses with a Content-Encoding: x-gzip header
102
+ * Do not HEAD on POST request with digest authentication
103
+ * add support for proxy authentication
104
+ * fix posting data with CLI
105
+ * require rexml/document if xml format from CLI
106
+ * support for fragmented responses
107
+
108
+ == 0.8.1 2011-10-05
109
+ * bug fixes
110
+ * content-encoding header should be removed when automatically inflating the body
111
+
112
+ == 0.8.0 2011-09-13
113
+ * new
114
+ * switch to multi json/xml for parsing by default
115
+ * bug fixes
116
+ * fix redirects to relative uri's
117
+
118
+ == 0.7.8 2011-06-06
119
+ * bug fix
120
+ * Make response honor respond to
121
+ * net http timeout can also be a float
122
+
123
+ == 0.7.7 2011-04-16
124
+ * bug fix
125
+ * Fix NoMethodError when using the NON_RAILS_QUERY_STRING_NORMALIZER with a hash whose key is a symbol and value is nil
126
+
127
+ == 0.7.5 2011-04-16
128
+ * bug fix
129
+ * caused issue with latest rubygems
130
+
131
+ == 0.7.4 2011-02-13
132
+ * bug fixes
133
+ * Set VERIFY_NONE when using https. Ruby 1.9.2 no longer sets this for us. gh-67
134
+
135
+ == 0.7.3 2011-01-20
136
+ * bug fixes
137
+ * Fix digest auth for unspecified quality of protection (bjoernalbers, mtrudel, dwo)
138
+
139
+ == 0.7.2 2011-01-20
140
+ * bug fixes
141
+ * Fix gem dependencies
142
+
143
+ == 0.7.1 2011-01-19
144
+ * bug fixes
145
+ * Fix uninitialized constant HTTParty::Response::Net in 1.9.2 (cap10morgan)
146
+ * Other fixes for 1.9.2, full suite still fails (cap10morgan)
147
+
148
+ == 0.7.0 2011-01-18
149
+ * minor enhancements
150
+ * Added query methods for HTTP status codes, i.e. response.success?
151
+ response.created? (thanks citizenparker)
152
+ * Added support for ssl_ca_file and ssl_ca_path (dlitz)
153
+ * Allow custom query string normalization. gh-8
154
+ * Unlock private keys with password (freerange)
155
+ * Added high level request documentation (phildarnowsky)
156
+ * Added basic post example (pbuckley)
157
+ * Response object has access to its corresponding request object
158
+ * Added example of siginin into tripit.com
159
+ * Added option to follow redirects (rkj). gh-56
160
+ * bug fixes
161
+ * Fixed superclass mismatch exception while running tests
162
+ (thanks dlitz http://github.com/dlitz/httparty/commit/48224f0615b32133afcff4718ad426df7a4b401b)
163
+
164
+ == 0.6.1 2010-07-07
165
+ * minor enhancements
166
+ * updated to crack 0.1.8
167
+ * bug fixes
168
+ * subclasses always merge into the parent's default_options and
169
+ default_cookies (l4rk).
170
+ * subclasses play nicely with grand parents. gh-49
171
+
172
+ == 0.6.0 2010-06-13
173
+ * major enhancements
174
+ * Digest Auth (bartiaco, sbecker, gilles, and aaronrussell)
175
+ * Maintain HTTP method across redirects (bartiaco and sbecker)
176
+ * HTTParty::Response#response returns the Net::HTTPResponse object
177
+ * HTTParty::Response#headers returns a HTTParty::Response::Headers object
178
+ which quacks like a Hash + Net::HTTPHeader. The #headers method continues
179
+ to be backwards-compatible with the old Hash return value but may become
180
+ deprecated in the future.
181
+
182
+ * minor enhancements
183
+ * Update crack requirement to version 0.1.7
184
+ You may still get a warning because Crack's version constant is out of date
185
+ * Timeout option can be set for all requests using HTTParty.default_timeout (taazza)
186
+ * Closed #38 "headers hash should downcase keys so canonical header name can be used"
187
+ * Closed #40 "Gzip response" wherein gziped and deflated responses are
188
+ automatically inflated. (carsonmcdonald)
189
+
190
+ == 0.5.2 2010-01-31
191
+ * minor enhancements
192
+ * Update crack requirement to version 0.1.6
193
+
194
+ == 0.5.1 2010-01-30
195
+ * bug fixes
196
+ * Handle 304 response correctly by returning the HTTParty::Response object instead of redirecting (seth and hellvinz)
197
+ * Only redirect 300 responses if the header contains a Location
198
+ * Don't append empty query strings to the uri. Closes #31
199
+ * When no_follow is enabled, only raise the RedirectionTooDeep exception when a response tries redirecting. Closes #28
200
+
201
+ * major enhancements
202
+ * Removed rubygems dependency. I suggest adding rubygems to RUBYOPT if this causes problems for you.
203
+ $ export RUBYOPT='rubygems'
204
+ * HTTParty#debug_output prints debugging information for the current request (iwarshak)
205
+ * HTTParty#no_follow now available as a class-level option. Sets whether or not to follow redirects.
206
+
207
+ * minor enhancements
208
+ * HTTParty::VERSION now available
209
+ * Update crack requirement to version 0.1.5
210
+
211
+ == 0.5.0 2009-12-07
212
+ * bug fixes
213
+ * inheritable attributes no longer mutable by subclasses (yyyc514)
214
+ * namespace BasicObject within HTTParty to avoid class name collisions (eric)
215
+
216
+ * major enhancements
217
+ * Custom Parsers via class or proc
218
+ * Deprecation warning on HTTParty::AllowedFormats
219
+ moved to HTTParty::Parser::SupportedFormats
220
+
221
+ * minor enhancements
222
+ * Curl inspired output when using the binary in verbose mode (alexvollmer)
223
+ * raise UnsupportedURIScheme when scheme is not HTTP or HTTPS (djspinmonkey)
224
+ * Allow SSL for ports other than 443 when scheme is HTTPS (stefankroes)
225
+ * Accept PEM certificates via HTTParty#pem (chrislo)
226
+ * Support HEAD and OPTION verbs (grempe)
227
+ * Verify SSL certificates when providing a PEM file (collectiveidea/danielmorrison)
228
+
229
+ == 0.4.5 2009-09-12
230
+ * bug fixes
231
+ * Fixed class-level headers overwritten by cookie management code. Closes #19
232
+ * Fixed "superclass mismatch for class BlankSlate" error. Closes #20
233
+ * Fixed reading files as post data from the command line (vesan)
234
+
235
+ * minor enhancements
236
+ * Timeout option added; will raise a Timeout::Error after the timeout has elapsed (attack). Closes #17
237
+ HTTParty.get "http://github.com", timeout: 1
238
+ * Building gem with Jeweler
239
+
240
+ == 0.4.4 2009-07-19
241
+ * 2 minor update
242
+ * :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.
243
+ * Fixed a bug in the cookies class method that caused cookies to be forgotten after the first request.
244
+ * Also, some general cleanup of tests and such.
245
+
246
+ == 0.4.3 2009-04-23
247
+ * 1 minor update
248
+ * added message to the response object
249
+
250
+ == 0.4.2 2009-03-30
251
+ * 2 minor changes
252
+ * response code now returns an integer instead of a string (jqr)
253
+ * rubyforge project setup for crack so i'm now depending on that instead of jnunemaker-crack
254
+
255
+ == 0.4.1 2009-03-29
256
+ * 1 minor fix
257
+ * gem 'jnunemaker-crack' instead of gem 'crack'
258
+
259
+ == 0.4.0 2009-03-29
260
+ * 1 minor change
261
+ * Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)
262
+
263
+ == 0.3.1 2009-02-10
264
+ * 1 minor fix, 1 minor enhancement
265
+ * Fixed unescaping umlauts (siebertm)
266
+ * Added yaml response parsing (Miha Filej)
267
+
268
+ == 0.3.0 2009-01-31
269
+ * 1 major enhancement, 1 bug fix
270
+ * 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.
271
+ * Fixed bug where query strings were being duplicated on redirects
272
+ * Added a bunch of specs and moved some code around.
273
+
274
+ == 0.2.10 2009-01-29
275
+ * 1 minor enhancement
276
+ * Made encoding on query parameters treat everything except URI::PATTERN::UNRESERVED as UNSAFE to force encoding of '+' character (Julian Russell)
277
+
278
+ == 0.2.9 2009-01-29
279
+ * 3 minor enhancements
280
+ * Added a 'headers' accessor to the response with a hash of any HTTP headers. (Don Peterson)
281
+ * 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)
282
+ * Refactored several specs and added a full suite of cucumber features (Don Peterson)
283
+
284
+ == 0.2.8 2009-01-28
285
+ * 1 major fix
286
+ * fixed major bug with response where it wouldn't iterate or really work at all with parsed responses
287
+
288
+ == 0.2.7 2009-01-28
289
+ * 2 minor fixes, 2 minor enhancements, 2 major enhancements
290
+ * fixed undefined method add_node for nil class error that occasionally happened (juliocesar)
291
+ * Handle nil or unexpected values better when typecasting. (Brian Landau)
292
+ * More robust handling of mime types (Alex Vollmer)
293
+ * Fixed support for specifying headers and added support for basic auth to CLI. (Alex Vollmer)
294
+ * Added first class response object that includes original body and status code (Alex Vollmer)
295
+ * Now parsing all response types as some non-200 responses provide important information, this means no more exception raising (Alex Vollmer)
296
+
297
+ == 0.2.6 2009-01-05
298
+ * 1 minor bug fix
299
+ * added explicit require of time as Time#parse failed outside of rails (willcodeforfoo)
300
+
301
+ == 0.2.5 2009-01-05
302
+ * 1 major enhancement
303
+ * Add command line interface to HTTParty (Alex Vollmer)
304
+
305
+ == 0.2.4 2008-12-23
306
+ * 1 bug fix
307
+ * Fixed that mimetype detection was failing if no mimetype was returned from service (skippy)
308
+ == 0.2.3 2008-12-23
309
+ * 1 bug fix
310
+ * Fixed typecasting class variable naming issue
311
+
312
+ == 0.2.2 2008-12-08
313
+ * 1 bug fix
314
+ * Added the missing core extension hash method to_xml_attributes
315
+
316
+ == 0.2.1 2008-12-08
317
+ * 1 bug fix
318
+ * Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)
319
+
320
+ == 0.2.0 2008-12-07
321
+ * 1 major enhancement
322
+ * Removed ActiveSupport as a dependency. Now requires json gem for json deserialization and uses an included class to do the xml parsing.
323
+
324
+ == 0.1.8 2008-11-30
325
+ * 3 major enhancements
326
+ * Moved base_uri normalization into request class and out of httparty module, fixing
327
+ the problem where base_uri was not always being normalized.
328
+ * Stupid simple support for HTTParty.get/post/put/delete. (jqr)
329
+ * Switched gem management to Echoe from newgem.
330
+
331
+ == 0.1.7 2008-11-30
332
+ * 1 major enhancement
333
+ * fixed multiple class definitions overriding each others options
334
+
335
+ == 0.1.6 2008-11-26
336
+ * 1 major enhancement
337
+ * now passing :query to set_form_data if post request to avoid content length errors
338
+
339
+ == 0.1.5 2008-11-14
340
+ * 2 major enhancements
341
+ * Refactored send request method out into its own object.
342
+ * Added :html format if you just want to do that.
343
+
344
+ == 0.1.4 2008-11-08
345
+ * 3 major enhancements:
346
+ * Removed some cruft
347
+ * Added ability to follow redirects automatically and turn that off (Alex Vollmer)
348
+
349
+ == 0.1.3 2008-08-22
350
+
351
+ * 3 major enhancements:
352
+ * Added http_proxy key for setting proxy server and port (francxk@gmail.com)
353
+ * Now raises exception when http error occurs (francxk@gmail.com)
354
+ * Changed auto format detection from file extension to response content type (Jay Pignata)
355
+
356
+ == 0.1.2 2008-08-09
357
+
358
+ * 1 major enhancement:
359
+ * default_params were not being appended to query string if option[:query] was blank
360
+
361
+ == 0.1.1 2008-07-30
362
+
363
+ * 2 major enhancement:
364
+ * Added :basic_auth key for options when making a request
365
+ * :query and :body both now work with query string or hash
366
+
367
+ == 0.1.0 2008-07-27
368
+
369
+ * 1 major enhancement:
370
+ * Initial release