httparty 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of httparty might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f66396072d869ad76f661789a0e9b2d66495faa2
4
- data.tar.gz: ae8e43661459ee5bd5c9018645812ecd9500cd6b
3
+ metadata.gz: 623e3c0f072b6dbd7ac990ec0eed857fb6639ea1
4
+ data.tar.gz: 19d364f6fe90c6ab731df0900e22eab28ae8792f
5
5
  SHA512:
6
- metadata.gz: ac6a080a19674df0435a6715406b97645ed9ee2ed803b92eb3e90ade39e75ac311b3e11960d2c44d00a561720be53aa1d229f216fb40e67f4452659701005695
7
- data.tar.gz: 7529cf1586833fef74e6e6840a8992ab6b8c8b9ff83db89c5179bf166ce21abc0868c63bd800b5f110a85f65c90472e24cc89632d9cedf0f3bae39c70c1baa6c
6
+ metadata.gz: 900978930b87670ca410e9ecc634dc1846e47b3d1da5abf4f599d598e70ea4d640b0aa03ed6cbfb66f88109d18b8f84da845720d124b0e944ad8ec37509004ec
7
+ data.tar.gz: 5f7795609a87edf4b28f1b2a9db1b37d9d2be1a75d228e6e6545b9520b3225bbce00e27a0d8a1f0c558edd4f7daf8feb40cc7b6851ca17cccb8065b0589141c9
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0.0
5
4
  - 2.1.8
6
5
  - 2.2.4
@@ -1,15 +1,37 @@
1
- == 0.14.0
1
+ ## 0.15.0
2
+
3
+ Breaking Changes
4
+
5
+ * require Ruby >= 2.0.0
6
+
7
+ Fixed
8
+
9
+ * [fix numerous bugs](https://github.com/jnunemaker/httparty/pull/513)
10
+ * [handle utf-8 bom for json parsing](https://github.com/jnunemaker/httparty/pull/520)
11
+ * [do not overwrite default headers unless specified](https://github.com/jnunemaker/httparty/pull/518)
12
+
13
+ ## 0.14.0
14
+
15
+ Breaking Changes
16
+
17
+ * None
18
+
19
+ Added
20
+
2
21
  * [added status predicate methods to Response#respond_to?](https://github.com/jnunemaker/httparty/pull/482)
22
+ * [support for MKCOL method](https://github.com/jnunemaker/httparty/pull/465)
23
+ * one fewer dependency: [remove json gem from gemspec](https://github.com/jnunemaker/httparty/pull/464)
24
+ * [optional raising exception on certain status codes](https://github.com/jnunemaker/httparty/pull/455)
25
+
26
+ Fixed
27
+
3
28
  * [allow empty array to be used as param](https://github.com/jnunemaker/httparty/pull/477)
4
- * [add support for MKCOL method](https://github.com/jnunemaker/httparty/pull/465)
5
- * [remove json gem from gemspec](https://github.com/jnunemaker/httparty/pull/464)
6
29
  * [stop mutating cookie hash](https://github.com/jnunemaker/httparty/pull/460)
7
- * [optional raising exception on certain status codes](https://github.com/jnunemaker/httparty/pull/455)
8
30
 
9
- == 0.13.7 aka "party not as hard"
31
+ ## 0.13.7 aka "party not as hard"
10
32
  * remove post install emoji as it caused installation issues for some people
11
33
 
12
- == 0.13.6
34
+ ## 0.13.6
13
35
  * avoid calling String#strip on invalid Strings
14
36
  * preserve request method on 307 and 308 redirects
15
37
  * output version with --version for command line bin
@@ -17,25 +39,25 @@
17
39
  * add support for RFC2617 MD5-sess algorithm type
18
40
  * add party popper emoji to post install message
19
41
 
20
- == 0.13.5
42
+ ## 0.13.5
21
43
  * allow setting a custom URI adapter
22
44
 
23
- == 0.13.4
45
+ ## 0.13.4
24
46
  * correct redirect url for redirect paths without leading slash
25
47
  * remove core_extensions.rb as backwards compat for ruby 1.8 not needed
26
48
  * replace URI.encode with ERB::Util.url_encode
27
49
  * allow the response to be tapped
28
50
 
29
- == 0.13.3
51
+ ## 0.13.3
30
52
  * minor improvement
31
53
  * added option to allow for streaming large files without loading them into memory (672cdae)
32
54
 
33
- == 0.13.2
55
+ ## 0.13.2
34
56
  * minor improvement
35
57
  * [Set correct path on redirect to filename](https://github.com/jnunemaker/httparty/pull/337)
36
58
  * ensure logger works with curl format
37
59
 
38
- == 0.13.1 2014-04-08
60
+ ## 0.13.1 2014-04-08
39
61
  * new
40
62
  * [Added ability to specify a body_stream in HttpRequest](https://github.com/jnunemaker/httparty/pull/275)
41
63
  * [Added read_timeout and open_timeout options](https://github.com/jnunemaker/httparty/pull/278)
@@ -44,7 +66,7 @@
44
66
  * minor improvement
45
67
  * [Add stackexchange API example](https://github.com/jnunemaker/httparty/pull/280)
46
68
 
47
- == 0.13.0 2014-02-14
69
+ ## 0.13.0 2014-02-14
48
70
  * new
49
71
  * [Add CSV support](https://github.com/jnunemaker/httparty/pull/269)
50
72
  * [Allows PKCS12 client certificates](https://github.com/jnunemaker/httparty/pull/246)
@@ -59,7 +81,7 @@
59
81
  * minor improvement
60
82
  * [Add HTTParty::Error base class](https://github.com/jnunemaker/httparty/pull/260)
61
83
 
62
- == 0.12.0 2013-10-10
84
+ ## 0.12.0 2013-10-10
63
85
  * new
64
86
  * [Added initial logging support](https://github.com/jnunemaker/httparty/pull/243)
65
87
  * [Add support for local host and port binding](https://github.com/jnunemaker/httparty/pull/238)
@@ -79,7 +101,7 @@
79
101
  * [Improve documentation of ssl_ca_file, ssl_ca_path](https://github.com/jnunemaker/httparty/pull/223)
80
102
  * [Fix example URLs](https://github.com/jnunemaker/httparty/pull/232)
81
103
 
82
- == 0.11.0 2013-04-10
104
+ ## 0.11.0 2013-04-10
83
105
  * new
84
106
  * [Add COPY http request handling](https://github.com/jnunemaker/httparty/pull/190)
85
107
  * [Ruby 2.0 tests](https://github.com/jnunemaker/httparty/pull/194)
@@ -91,20 +113,20 @@
91
113
  * change
92
114
  * [Client-side-only cookie attributes are removed: case-insensitive](https://github.com/jnunemaker/httparty/pull/188)
93
115
 
94
- == 0.10.2 2013-01-26
116
+ ## 0.10.2 2013-01-26
95
117
  * bug fix
96
118
  * [hash_conversions misnamed variable](https://github.com/jnunemaker/httparty/pull/187)
97
119
 
98
- == 0.10.1 2013-01-26
120
+ ## 0.10.1 2013-01-26
99
121
  * new
100
122
  * [Added support for MOVE requests](https://github.com/jnunemaker/httparty/pull/183)
101
123
  * [Bump multi xml version](https://github.com/jnunemaker/httparty/pull/181)
102
124
 
103
- == 0.10.0 2013-01-10
125
+ ## 0.10.0 2013-01-10
104
126
  * changes
105
127
  * removed yaml support because of security risk (see rails yaml issues)
106
128
 
107
- == 0.9.0 2012-09-07
129
+ ## 0.9.0 2012-09-07
108
130
  * new
109
131
  * [support for connection adapters](https://github.com/jnunemaker/httparty/pull/157)
110
132
  * [allow ssl_version on ruby 1.9](https://github.com/jnunemaker/httparty/pull/159)
@@ -113,14 +135,14 @@
113
135
  * [deep clone default options](https://github.com/jnunemaker/httparty/commit/f74227d30f9389b4b23a888c9af49fb9b8248e1f)
114
136
  * a few net digest auth fixes
115
137
 
116
- == 0.8.3 2012-04-21
138
+ ## 0.8.3 2012-04-21
117
139
  * new
118
140
  * [lazy parsing of responses](https://github.com/jnunemaker/httparty/commit/9fd5259c8dab00e426082b66af44ede2c9068f45)
119
141
  * [add support for PATCH requests](https://github.com/jnunemaker/httparty/commit/7ab6641e37a9e31517e46f6124f38c615395d38a)
120
142
  * bug fixes
121
143
  * [subclasses no longer override superclass options](https://github.com/jnunemaker/httparty/commit/682af8fbf672e7b3009e650da776c85cdfe78d39)
122
144
 
123
- == 0.8.2 2012-04-12
145
+ ## 0.8.2 2012-04-12
124
146
  * new
125
147
  * add -r to make CLI return failure code if status >= 400
126
148
  * allow blank username from CLI
@@ -133,47 +155,47 @@
133
155
  * require rexml/document if xml format from CLI
134
156
  * support for fragmented responses
135
157
 
136
- == 0.8.1 2011-10-05
158
+ ## 0.8.1 2011-10-05
137
159
  * bug fixes
138
160
  * content-encoding header should be removed when automatically inflating the body
139
161
 
140
- == 0.8.0 2011-09-13
162
+ ## 0.8.0 2011-09-13
141
163
  * new
142
164
  * switch to multi json/xml for parsing by default
143
165
  * bug fixes
144
166
  * fix redirects to relative uri's
145
167
 
146
- == 0.7.8 2011-06-06
168
+ ## 0.7.8 2011-06-06
147
169
  * bug fix
148
170
  * Make response honor respond to
149
171
  * net http timeout can also be a float
150
172
 
151
- == 0.7.7 2011-04-16
173
+ ## 0.7.7 2011-04-16
152
174
  * bug fix
153
175
  * Fix NoMethodError when using the NON_RAILS_QUERY_STRING_NORMALIZER with a hash whose key is a symbol and value is nil
154
176
 
155
- == 0.7.5 2011-04-16
177
+ ## 0.7.5 2011-04-16
156
178
  * bug fix
157
179
  * caused issue with latest rubygems
158
180
 
159
- == 0.7.4 2011-02-13
181
+ ## 0.7.4 2011-02-13
160
182
  * bug fixes
161
183
  * Set VERIFY_NONE when using https. Ruby 1.9.2 no longer sets this for us. gh-67
162
184
 
163
- == 0.7.3 2011-01-20
185
+ ## 0.7.3 2011-01-20
164
186
  * bug fixes
165
187
  * Fix digest auth for unspecified quality of protection (bjoernalbers, mtrudel, dwo)
166
188
 
167
- == 0.7.2 2011-01-20
189
+ ## 0.7.2 2011-01-20
168
190
  * bug fixes
169
191
  * Fix gem dependencies
170
192
 
171
- == 0.7.1 2011-01-19
193
+ ## 0.7.1 2011-01-19
172
194
  * bug fixes
173
195
  * Fix uninitialized constant HTTParty::Response::Net in 1.9.2 (cap10morgan)
174
196
  * Other fixes for 1.9.2, full suite still fails (cap10morgan)
175
197
 
176
- == 0.7.0 2011-01-18
198
+ ## 0.7.0 2011-01-18
177
199
  * minor enhancements
178
200
  * Added query methods for HTTP status codes, i.e. response.success?
179
201
  response.created? (thanks citizenparker)
@@ -189,7 +211,7 @@
189
211
  * Fixed superclass mismatch exception while running tests
190
212
  (thanks dlitz http://github.com/dlitz/httparty/commit/48224f0615b32133afcff4718ad426df7a4b401b)
191
213
 
192
- == 0.6.1 2010-07-07
214
+ ## 0.6.1 2010-07-07
193
215
  * minor enhancements
194
216
  * updated to crack 0.1.8
195
217
  * bug fixes
@@ -197,7 +219,7 @@
197
219
  default_cookies (l4rk).
198
220
  * subclasses play nicely with grand parents. gh-49
199
221
 
200
- == 0.6.0 2010-06-13
222
+ ## 0.6.0 2010-06-13
201
223
  * major enhancements
202
224
  * Digest Auth (bartiaco, sbecker, gilles, and aaronrussell)
203
225
  * Maintain HTTP method across redirects (bartiaco and sbecker)
@@ -215,11 +237,11 @@
215
237
  * Closed #40 "Gzip response" wherein gziped and deflated responses are
216
238
  automatically inflated. (carsonmcdonald)
217
239
 
218
- == 0.5.2 2010-01-31
240
+ ## 0.5.2 2010-01-31
219
241
  * minor enhancements
220
242
  * Update crack requirement to version 0.1.6
221
243
 
222
- == 0.5.1 2010-01-30
244
+ ## 0.5.1 2010-01-30
223
245
  * bug fixes
224
246
  * Handle 304 response correctly by returning the HTTParty::Response object instead of redirecting (seth and hellvinz)
225
247
  * Only redirect 300 responses if the header contains a Location
@@ -236,7 +258,7 @@
236
258
  * HTTParty::VERSION now available
237
259
  * Update crack requirement to version 0.1.5
238
260
 
239
- == 0.5.0 2009-12-07
261
+ ## 0.5.0 2009-12-07
240
262
  * bug fixes
241
263
  * inheritable attributes no longer mutable by subclasses (yyyc514)
242
264
  * namespace BasicObject within HTTParty to avoid class name collisions (eric)
@@ -254,7 +276,7 @@
254
276
  * Support HEAD and OPTION verbs (grempe)
255
277
  * Verify SSL certificates when providing a PEM file (collectiveidea/danielmorrison)
256
278
 
257
- == 0.4.5 2009-09-12
279
+ ## 0.4.5 2009-09-12
258
280
  * bug fixes
259
281
  * Fixed class-level headers overwritten by cookie management code. Closes #19
260
282
  * Fixed "superclass mismatch for class BlankSlate" error. Closes #20
@@ -265,55 +287,55 @@
265
287
  HTTParty.get "http://github.com", timeout: 1
266
288
  * Building gem with Jeweler
267
289
 
268
- == 0.4.4 2009-07-19
290
+ ## 0.4.4 2009-07-19
269
291
  * 2 minor update
270
292
  * :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.
271
293
  * Fixed a bug in the cookies class method that caused cookies to be forgotten after the first request.
272
294
  * Also, some general cleanup of tests and such.
273
295
 
274
- == 0.4.3 2009-04-23
296
+ ## 0.4.3 2009-04-23
275
297
  * 1 minor update
276
298
  * added message to the response object
277
299
 
278
- == 0.4.2 2009-03-30
300
+ ## 0.4.2 2009-03-30
279
301
  * 2 minor changes
280
302
  * response code now returns an integer instead of a string (jqr)
281
303
  * rubyforge project setup for crack so i'm now depending on that instead of jnunemaker-crack
282
304
 
283
- == 0.4.1 2009-03-29
305
+ ## 0.4.1 2009-03-29
284
306
  * 1 minor fix
285
307
  * gem 'jnunemaker-crack' instead of gem 'crack'
286
308
 
287
- == 0.4.0 2009-03-29
309
+ ## 0.4.0 2009-03-29
288
310
  * 1 minor change
289
311
  * Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)
290
312
 
291
- == 0.3.1 2009-02-10
313
+ ## 0.3.1 2009-02-10
292
314
  * 1 minor fix, 1 minor enhancement
293
315
  * Fixed unescaping umlauts (siebertm)
294
316
  * Added yaml response parsing (Miha Filej)
295
317
 
296
- == 0.3.0 2009-01-31
318
+ ## 0.3.0 2009-01-31
297
319
  * 1 major enhancement, 1 bug fix
298
320
  * 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.
299
321
  * Fixed bug where query strings were being duplicated on redirects
300
322
  * Added a bunch of specs and moved some code around.
301
323
 
302
- == 0.2.10 2009-01-29
324
+ ## 0.2.10 2009-01-29
303
325
  * 1 minor enhancement
304
326
  * Made encoding on query parameters treat everything except URI::PATTERN::UNRESERVED as UNSAFE to force encoding of '+' character (Julian Russell)
305
327
 
306
- == 0.2.9 2009-01-29
328
+ ## 0.2.9 2009-01-29
307
329
  * 3 minor enhancements
308
330
  * Added a 'headers' accessor to the response with a hash of any HTTP headers. (Don Peterson)
309
331
  * 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)
310
332
  * Refactored several specs and added a full suite of cucumber features (Don Peterson)
311
333
 
312
- == 0.2.8 2009-01-28
334
+ ## 0.2.8 2009-01-28
313
335
  * 1 major fix
314
336
  * fixed major bug with response where it wouldn't iterate or really work at all with parsed responses
315
337
 
316
- == 0.2.7 2009-01-28
338
+ ## 0.2.7 2009-01-28
317
339
  * 2 minor fixes, 2 minor enhancements, 2 major enhancements
318
340
  * fixed undefined method add_node for nil class error that occasionally happened (juliocesar)
319
341
  * Handle nil or unexpected values better when typecasting. (Brian Landau)
@@ -322,77 +344,77 @@
322
344
  * Added first class response object that includes original body and status code (Alex Vollmer)
323
345
  * Now parsing all response types as some non-200 responses provide important information, this means no more exception raising (Alex Vollmer)
324
346
 
325
- == 0.2.6 2009-01-05
347
+ ## 0.2.6 2009-01-05
326
348
  * 1 minor bug fix
327
349
  * added explicit require of time as Time#parse failed outside of rails (willcodeforfoo)
328
350
 
329
- == 0.2.5 2009-01-05
351
+ ## 0.2.5 2009-01-05
330
352
  * 1 major enhancement
331
353
  * Add command line interface to HTTParty (Alex Vollmer)
332
354
 
333
- == 0.2.4 2008-12-23
355
+ ## 0.2.4 2008-12-23
334
356
  * 1 bug fix
335
357
  * Fixed that mimetype detection was failing if no mimetype was returned from service (skippy)
336
- == 0.2.3 2008-12-23
358
+ ## 0.2.3 2008-12-23
337
359
  * 1 bug fix
338
360
  * Fixed typecasting class variable naming issue
339
361
 
340
- == 0.2.2 2008-12-08
362
+ ## 0.2.2 2008-12-08
341
363
  * 1 bug fix
342
364
  * Added the missing core extension hash method to_xml_attributes
343
365
 
344
- == 0.2.1 2008-12-08
366
+ ## 0.2.1 2008-12-08
345
367
  * 1 bug fix
346
368
  * Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)
347
369
 
348
- == 0.2.0 2008-12-07
370
+ ## 0.2.0 2008-12-07
349
371
  * 1 major enhancement
350
372
  * Removed ActiveSupport as a dependency. Now requires json gem for json deserialization and uses an included class to do the xml parsing.
351
373
 
352
- == 0.1.8 2008-11-30
374
+ ## 0.1.8 2008-11-30
353
375
  * 3 major enhancements
354
376
  * Moved base_uri normalization into request class and out of httparty module, fixing
355
377
  the problem where base_uri was not always being normalized.
356
378
  * Stupid simple support for HTTParty.get/post/put/delete. (jqr)
357
379
  * Switched gem management to Echoe from newgem.
358
380
 
359
- == 0.1.7 2008-11-30
381
+ ## 0.1.7 2008-11-30
360
382
  * 1 major enhancement
361
383
  * fixed multiple class definitions overriding each others options
362
384
 
363
- == 0.1.6 2008-11-26
385
+ ## 0.1.6 2008-11-26
364
386
  * 1 major enhancement
365
387
  * now passing :query to set_form_data if post request to avoid content length errors
366
388
 
367
- == 0.1.5 2008-11-14
389
+ ## 0.1.5 2008-11-14
368
390
  * 2 major enhancements
369
391
  * Refactored send request method out into its own object.
370
392
  * Added :html format if you just want to do that.
371
393
 
372
- == 0.1.4 2008-11-08
394
+ ## 0.1.4 2008-11-08
373
395
  * 3 major enhancements:
374
396
  * Removed some cruft
375
397
  * Added ability to follow redirects automatically and turn that off (Alex Vollmer)
376
398
 
377
- == 0.1.3 2008-08-22
399
+ ## 0.1.3 2008-08-22
378
400
 
379
401
  * 3 major enhancements:
380
402
  * Added http_proxy key for setting proxy server and port (francxk@gmail.com)
381
403
  * Now raises exception when http error occurs (francxk@gmail.com)
382
404
  * Changed auto format detection from file extension to response content type (Jay Pignata)
383
405
 
384
- == 0.1.2 2008-08-09
406
+ ## 0.1.2 2008-08-09
385
407
 
386
408
  * 1 major enhancement:
387
409
  * default_params were not being appended to query string if option[:query] was blank
388
410
 
389
- == 0.1.1 2008-07-30
411
+ ## 0.1.1 2008-07-30
390
412
 
391
413
  * 2 major enhancement:
392
414
  * Added :basic_auth key for options when making a request
393
415
  * :query and :body both now work with query string or hash
394
416
 
395
- == 0.1.0 2008-07-27
417
+ ## 0.1.0 2008-07-27
396
418
 
397
419
  * 1 major enhancement:
398
420
  * Initial release
data/README.md CHANGED
@@ -10,7 +10,7 @@ gem install httparty
10
10
 
11
11
  ## Requirements
12
12
 
13
- * Ruby 1.9.3 or higher
13
+ * Ruby 2.0.0 or higher
14
14
  * multi_xml
15
15
  * You like to party!
16
16
 
@@ -28,7 +28,7 @@ class StackExchange
28
28
  base_uri 'api.stackexchange.com'
29
29
 
30
30
  def initialize(service, page)
31
- @options = { query: {site: service, page: page} }
31
+ @options = { query: { site: service, page: page } }
32
32
  end
33
33
 
34
34
  def questions
@@ -62,7 +62,7 @@ httparty "https://api.stackexchange.com/2.2/questions?site=stackoverflow"
62
62
 
63
63
  ## Help and Docs
64
64
 
65
- * [Docs](docs/)
65
+ * [Docs](https://github.com/jnunemaker/httparty/tree/master/docs)
66
66
  * https://groups.google.com/forum/#!forum/httparty-gem
67
67
  * http://rdoc.info/projects/jnunemaker/httparty
68
68
  * http://stackoverflow.com/questions/tagged/httparty