forked from jnunemaker/httparty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
History
303 lines (245 loc) · 11.7 KB
/
History
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
== 0.10.1 2013-01-26
* new
* [added support for MOVE requests](https://github.com/jnunemaker/httparty/pull/183)
* [bump multi xml version](https://github.com/jnunemaker/httparty/pull/181)
== 0.10.0 2013-01-10
* changes
* removed yaml support because of security risk (see rails yaml issues)
== 0.9.0 2012-09-07
* new
* [support for connection adapters](https://github.com/jnunemaker/httparty/pull/157)
* [allow ssl_version on ruby 1.9](https://github.com/jnunemaker/httparty/pull/159)
* bug fixes
* [don't treat port 4430 as ssl](https://github.com/jnunemaker/httparty/commit/a296b1c97f83d7dcc6ef85720a43664c265685ac)
* [deep clone default options](https://github.com/jnunemaker/httparty/commit/f74227d30f9389b4b23a888c9af49fb9b8248e1f)
* a few net digest auth fixes
== 0.8.3 2012-04-21
* new
* [lazy parsing of responses](https://github.com/jnunemaker/httparty/commit/9fd5259c8dab00e426082b66af44ede2c9068f45)
* [add support for PATCH requests](https://github.com/jnunemaker/httparty/commit/7ab6641e37a9e31517e46f6124f38c615395d38a)
* bug fixes
* [subclasses no longer override superclass options](https://github.com/jnunemaker/httparty/commit/682af8fbf672e7b3009e650da776c85cdfe78d39)
== 0.8.2 2012-04-12
* new
* add -r to make CLI return failure code if status >= 400
* allow blank username from CLI
* bug fixes
* return nil for null body
* automatically deflate responses with a Content-Encoding: x-gzip header
* Do not HEAD on POST request with digest authentication
* add support for proxy authentication
* fix posting data with CLI
* require rexml/document if xml format from CLI
* support for fragmented responses
== 0.8.1 2011-10-05
* bug fixes
* content-encoding header should be removed when automatically inflating the body
== 0.8.0 2011-09-13
* new
* switch to multi json/xml for parsing by default
* bug fixes
* fix redirects to relative uri's
== 0.7.8 2011-06-06
* bug fix
* Make response honor respond to
* net http timeout can also be a float
== 0.7.7 2011-04-16
* bug fix
* Fix NoMethodError when using the NON_RAILS_QUERY_STRING_NORMALIZER with a hash whose key is a symbol and value is nil
== 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
== 0.7.3 2011-01-20
* bug fixes
* Fix digest auth for unspecified quality of protection (bjoernalbers, mtrudel, dwo)
== 0.7.2 2011-01-20
* bug fixes
* Fix gem dependencies
== 0.7.1 2011-01-19
* bug fixes
* Fix uninitialized constant HTTParty::Response::Net in 1.9.2 (cap10morgan)
* Other fixes for 1.9.2, full suite still fails (cap10morgan)
== 0.7.0 2011-01-18
* minor enhancements
* Added query methods for HTTP status codes, i.e. response.success?
response.created? (thanks citizenparker)
* Added support for ssl_ca_file and ssl_ca_path (dlitz)
* Allow custom query string normalization. gh-8
* Unlock private keys with password (freerange)
* Added high level request documentation (phildarnowsky)
* Added basic post example (pbuckley)
* Response object has access to its corresponding request object
* Added example of siginin into tripit.com
* Added option to follow redirects (rkj). gh-56
* bug fixes
* Fixed superclass mismatch exception while running tests
(thanks dlitz http://github.com/dlitz/httparty/commit/48224f0615b32133afcff4718ad426df7a4b401b)
== 0.6.1 2010-07-07
* minor enhancements
* updated to crack 0.1.8
* bug fixes
* subclasses always merge into the parent's default_options and
default_cookies (l4rk).
* subclasses play nicely with grand parents. gh-49
== 0.6.0 2010-06-13
* major enhancements
* Digest Auth (bartiaco, sbecker, gilles, and aaronrussell)
* Maintain HTTP method across redirects (bartiaco and sbecker)
* HTTParty::Response#response returns the Net::HTTPResponse object
* HTTParty::Response#headers returns a HTTParty::Response::Headers object
which quacks like a Hash + Net::HTTPHeader. The #headers method continues
to be backwards-compatible with the old Hash return value but may become
deprecated in the future.
* minor enhancements
* Update crack requirement to version 0.1.7
You may still get a warning because Crack's version constant is out of date
* Timeout option can be set for all requests using HTTParty.default_timeout (taazza)
* Closed #38 "headers hash should downcase keys so canonical header name can be used"
* Closed #40 "Gzip response" wherein gziped and deflated responses are
automatically inflated. (carsonmcdonald)
== 0.5.2 2010-01-31
* minor enhancements
* Update crack requirement to version 0.1.6
== 0.5.1 2010-01-30
* bug fixes
* Handle 304 response correctly by returning the HTTParty::Response object instead of redirecting (seth and hellvinz)
* Only redirect 300 responses if the header contains a Location
* Don't append empty query strings to the uri. Closes #31
* When no_follow is enabled, only raise the RedirectionTooDeep exception when a response tries redirecting. Closes #28
* major enhancements
* Removed rubygems dependency. I suggest adding rubygems to RUBYOPT if this causes problems for you.
$ export RUBYOPT='rubygems'
* HTTParty#debug_output prints debugging information for the current request (iwarshak)
* HTTParty#no_follow now available as a class-level option. Sets whether or not to follow redirects.
* minor enhancements
* HTTParty::VERSION now available
* Update crack requirement to version 0.1.5
== 0.5.0 2009-12-07
* bug fixes
* inheritable attributes no longer mutable by subclasses (yyyc514)
* namespace BasicObject within HTTParty to avoid class name collisions (eric)
* major enhancements
* Custom Parsers via class or proc
* Deprecation warning on HTTParty::AllowedFormats
moved to HTTParty::Parser::SupportedFormats
* minor enhancements
* Curl inspired output when using the binary in verbose mode (alexvollmer)
* raise UnsupportedURIScheme when scheme is not HTTP or HTTPS (djspinmonkey)
* Allow SSL for ports other than 443 when scheme is HTTPS (stefankroes)
* Accept PEM certificates via HTTParty#pem (chrislo)
* Support HEAD and OPTION verbs (grempe)
* Verify SSL certificates when providing a PEM file (collectiveidea/danielmorrison)
== 0.4.5 2009-09-12
* bug fixes
* Fixed class-level headers overwritten by cookie management code. Closes #19
* Fixed "superclass mismatch for class BlankSlate" error. Closes #20
* Fixed reading files as post data from the command line (vesan)
* minor enhancements
* Timeout option added; will raise a Timeout::Error after the timeout has elapsed (attack). Closes #17
HTTParty.get "http://github.com", :timeout => 1
* Building gem with Jeweler
== 0.4.4 2009-07-19
* 2 minor update
* :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.
* Fixed a bug in the cookies class method that caused cookies to be forgotten after the first request.
* Also, some general cleanup of tests and such.
== 0.4.3 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 ([email protected])
* Now raises exception when http error occurs ([email protected])
* 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