1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
httparty/Changelog.md

474 lines
18 KiB
Markdown
Raw Normal View History

2018-02-21 20:58:34 -05:00
## master
* [Parse content with application/hal+json content type as JSON](https://github.com/jnunemaker/httparty/pull/573)
2018-02-12 21:01:36 -05:00
## 0.16.0
2018-02-07 11:10:07 -05:00
* [Add multipart support](https://github.com/jnunemaker/httparty/pull/569)
2018-02-07 10:44:03 -05:00
## 0.15.7
Fixed
* [Add Response#pretty_print | Restore documented behavior](https://github.com/jnunemaker/httparty/pull/570)
* [Add ability to parse response from JSONAPI ](https://github.com/jnunemaker/httparty/pull/553)
## 0.15.6
Fixed
* [Encoding and content type stuff](https://github.com/jnunemaker/httparty/pull/543)
2017-05-18 22:01:50 -04:00
## 0.15.5
Fixed
* [Use non-destructive gsub](https://github.com/jnunemaker/httparty/pull/540)
2017-05-17 14:59:35 -04:00
## 0.15.4
Fixed
* Prevent gsub errors with different encodings.
* Prevent passing nil to encode_body.
2017-05-16 09:23:42 -04:00
## 0.15.3
Fixed
* [Fix processing nil body for HEAD requests](https://github.com/jnunemaker/httparty/pull/530).
* Add missing require to headers.rb (33439a8).
2017-05-12 14:53:21 -04:00
## 0.15.2
Fixed
* Remove symlink from specs. It was reportedly still getting bundled with gem.
2017-05-12 09:12:26 -04:00
## 0.15.1
Fixed
* Stop including test files in gem. Fixes installation issues on windows due to symlink in spec dir.
2017-05-11 10:43:18 -04:00
## 0.15.0
2016-07-29 08:36:41 -04:00
2017-05-11 10:43:18 -04:00
Breaking Changes
* require Ruby >= 2.0.0
Fixed
* [fix numerous bugs](https://github.com/jnunemaker/httparty/pull/513)
* [handle utf-8 bom for json parsing](https://github.com/jnunemaker/httparty/pull/520)
* [do not overwrite default headers unless specified](https://github.com/jnunemaker/httparty/pull/518)
2016-07-29 08:36:41 -04:00
## 0.14.0
Breaking Changes
* None
Added
2016-07-25 10:18:25 -04:00
* [added status predicate methods to Response#respond_to?](https://github.com/jnunemaker/httparty/pull/482)
* [support for MKCOL method](https://github.com/jnunemaker/httparty/pull/465)
* one fewer dependency: [remove json gem from gemspec](https://github.com/jnunemaker/httparty/pull/464)
* [optional raising exception on certain status codes](https://github.com/jnunemaker/httparty/pull/455)
Fixed
2016-07-25 10:18:25 -04:00
* [allow empty array to be used as param](https://github.com/jnunemaker/httparty/pull/477)
* [stop mutating cookie hash](https://github.com/jnunemaker/httparty/pull/460)
## 0.13.7 aka "party not as hard"
2015-09-23 08:08:40 -04:00
* remove post install emoji as it caused installation issues for some people
## 0.13.6
2015-09-20 21:24:21 -04:00
* avoid calling String#strip on invalid Strings
* preserve request method on 307 and 308 redirects
* output version with --version for command line bin
* maintain head request method across redirects by default
* add support for RFC2617 MD5-sess algorithm type
* add party popper emoji to post install message
## 0.13.5
2015-09-20 21:24:21 -04:00
* allow setting a custom URI adapter
## 0.13.4
2015-09-20 21:24:21 -04:00
* correct redirect url for redirect paths without leading slash
* remove core_extensions.rb as backwards compat for ruby 1.8 not needed
* replace URI.encode with ERB::Util.url_encode
* allow the response to be tapped
## 0.13.3
2014-11-06 15:01:10 -05:00
* minor improvement
* added option to allow for streaming large files without loading them into memory (672cdae)
## 0.13.2
2014-10-22 10:33:03 -04:00
* minor improvement
* [Set correct path on redirect to filename](https://github.com/jnunemaker/httparty/pull/337)
2014-11-03 10:17:44 -05:00
* ensure logger works with curl format
2014-10-22 10:33:03 -04:00
## 0.13.1 2014-04-08
* new
* [Added ability to specify a body_stream in HttpRequest](https://github.com/jnunemaker/httparty/pull/275)
* [Added read_timeout and open_timeout options](https://github.com/jnunemaker/httparty/pull/278)
* change
* [Initialize HTTParty requests with an URI object and a String](https://github.com/jnunemaker/httparty/pull/274)
* minor improvement
* [Add stackexchange API example](https://github.com/jnunemaker/httparty/pull/280)
## 0.13.0 2014-02-14
* new
* [Add CSV support](https://github.com/jnunemaker/httparty/pull/269)
* [Allows PKCS12 client certificates](https://github.com/jnunemaker/httparty/pull/246)
* bug fix
* [Digest auth no longer fails when multiple headers are sent by the server](https://github.com/jnunemaker/httparty/pull/272)
* [Use 'Basement.copy' when calling 'HTTParty.copy'](https://github.com/jnunemaker/httparty/pull/268)
* [No longer appends ampersand when queries are embedded in paths](https://github.com/jnunemaker/httparty/pull/252)
* change
* [Merge - instead of overwrite - default headers with request provided headers](https://github.com/jnunemaker/httparty/pull/270)
* [Modernize respond_to implementations to support second param](https://github.com/jnunemaker/httparty/pull/264)
* [Sort query parameters by key before processing](https://github.com/jnunemaker/httparty/pull/245)
* minor improvement
* [Add HTTParty::Error base class](https://github.com/jnunemaker/httparty/pull/260)
## 0.12.0 2013-10-10
* new
* [Added initial logging support](https://github.com/jnunemaker/httparty/pull/243)
* [Add support for local host and port binding](https://github.com/jnunemaker/httparty/pull/238)
* [content_type_charset_support](https://github.com/jnunemaker/httparty/commit/82e351f0904e8ecc856015ff2854698a2ca47fbc)
* bug fix
* [No longer attempt to decompress the body on HEAD requests](https://github.com/jnunemaker/httparty/commit/f2b8cc3d49e0e9363d7054b14f30c340d7b8e7f1)
* [Adding java check in aliasing of multiple choices](https://github.com/jnunemaker/httparty/pull/204/commits)
* change
* [MIME-type files of javascript are returned as a string instead of JSON](https://github.com/jnunemaker/httparty/pull/239)
* [Made SSL connections use the system certificate store by default](https://github.com/jnunemaker/httparty/pull/226)
* [Do not pass proxy options to Net::HTTP connection if not specified](https://github.com/jnunemaker/httparty/pull/222)
* [Replace multi_json with stdlib json](https://github.com/jnunemaker/httparty/pull/214)
* [Require Ruby >= 1.9.3]
* [Response returns array of returned cookie strings](https://github.com/jnunemaker/httparty/pull/218)
* [Allow '=' within value of a cookie]
* minor improvements
* [Improve documentation of ssl_ca_file, ssl_ca_path](https://github.com/jnunemaker/httparty/pull/223)
* [Fix example URLs](https://github.com/jnunemaker/httparty/pull/232)
## 0.11.0 2013-04-10
* new
* [Add COPY http request handling](https://github.com/jnunemaker/httparty/pull/190)
* [Ruby 2.0 tests](https://github.com/jnunemaker/httparty/pull/194)
* [Ruby >= 2.0.0 support both multiple_choice? and multiple_choices?]
* bug fix
* [Maintain blocks passed to 'perform' in redirects](https://github.com/jnunemaker/httparty/pull/191)
* [Fixed nc value being quoted, this was against spec](https://github.com/jnunemaker/httparty/pull/196)
* [Request#uri no longer duplicates non-relative-path params](https://github.com/jnunemaker/httparty/pull/189)
* change
* [Client-side-only cookie attributes are removed: case-insensitive](https://github.com/jnunemaker/httparty/pull/188)
2013-01-26 11:36:20 -05:00
## 0.10.2 2013-01-26
* bug fix
* [hash_conversions misnamed variable](https://github.com/jnunemaker/httparty/pull/187)
## 0.10.1 2013-01-26
2013-01-26 11:36:20 -05:00
* 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
2012-09-07 14:00:57 -04:00
* 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
2012-04-21 23:09:26 -04:00
* 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
2012-04-12 13:06:00 -04:00
* 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
2012-04-12 13:06:00 -04:00
* bug fixes
* content-encoding header should be removed when automatically inflating the body
## 0.8.0 2011-09-13
2011-09-13 12:34:47 -04:00
* new
* switch to multi json/xml for parsing by default
* bug fixes
* fix redirects to relative uri's
## 0.7.8 2011-06-06
2011-06-06 21:37:47 -04:00
* bug fix
* Make response honor respond to
* net http timeout can also be a float
## 0.7.7 2011-04-16
2011-04-20 17:46:09 -04:00
* 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
2011-02-13 15:12:37 -05:00
* 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
2011-01-20 12:31:38 -05:00
* bug fixes
* Fix digest auth for unspecified quality of protection (bjoernalbers, mtrudel, dwo)
## 0.7.2 2011-01-20
2011-01-20 12:31:38 -05:00
* bug fixes
* Fix gem dependencies
## 0.7.1 2011-01-19
2011-01-19 16:03:26 -05:00
* 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
2010-07-18 13:41:12 -04:00
* minor enhancements
* Added query methods for HTTP status codes, i.e. response.success?
response.created? (thanks citizenparker)
2010-07-19 09:21:26 -04:00
* Added support for ssl_ca_file and ssl_ca_path (dlitz)
2011-01-12 13:16:24 -05:00
* Allow custom query string normalization. gh-8
2011-01-12 13:23:16 -05:00
* Unlock private keys with password (freerange)
2011-01-12 14:39:49 -05:00
* Added high level request documentation (phildarnowsky)
* Added basic post example (pbuckley)
2011-01-18 14:34:42 -05:00
* Response object has access to its corresponding request object
2011-01-18 15:51:58 -05:00
* Added example of siginin into tripit.com
2011-01-18 17:05:42 -05:00
* Added option to follow redirects (rkj). gh-56
2010-07-18 13:41:12 -04:00
* bug fixes
* Fixed superclass mismatch exception while running tests
2010-07-18 14:27:48 -04:00
(thanks dlitz http://github.com/dlitz/httparty/commit/48224f0615b32133afcff4718ad426df7a4b401b)
2010-07-18 13:41:12 -04:00
## 0.6.1 2010-07-07
* minor enhancements
* updated to crack 0.1.8
2010-07-07 11:26:28 -04:00
* bug fixes
2010-07-07 10:03:02 -04:00
* subclasses always merge into the parent's default_options and
2010-07-07 11:26:28 -04:00
default_cookies (l4rk).
* subclasses play nicely with grand parents. gh-49
2010-07-07 10:03:02 -04:00
## 0.6.0 2010-06-13
* major enhancements
2010-05-18 11:15:45 -04:00
* 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.
2010-05-18 11:29:40 -04:00
* 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
2010-05-18 11:39:30 -04:00
* 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"
2010-06-12 00:50:43 -04:00
* Closed #40 "Gzip response" wherein gziped and deflated responses are
automatically inflated. (carsonmcdonald)
2010-05-18 11:29:40 -04:00
## 0.5.2 2010-01-31
2010-01-31 17:39:10 -05:00
* minor enhancements
* Update crack requirement to version 0.1.6
## 0.5.1 2010-01-30
2010-01-27 02:12:08 -05:00
* 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
2010-01-30 21:44:52 -05:00
* When no_follow is enabled, only raise the RedirectionTooDeep exception when a response tries redirecting. Closes #28
2010-01-30 22:19:41 -05:00
* major enhancements
* Removed rubygems dependency. I suggest adding rubygems to RUBYOPT if this causes problems for you.
$ export RUBYOPT='rubygems'
2010-01-30 22:30:09 -05:00
* 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.
2010-01-30 22:19:41 -05:00
2010-01-24 23:39:19 -05:00
* minor enhancements
* HTTParty::VERSION now available
2010-01-30 22:19:41 -05:00
* Update crack requirement to version 0.1.5
2010-01-24 23:39:19 -05:00
## 0.5.0 2009-12-07
2009-11-29 03:04:33 -05:00
* bug fixes
* inheritable attributes no longer mutable by subclasses (yyyc514)
2009-12-05 22:09:38 -05:00
* 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
2009-11-09 22:17:44 -05:00
* minor enhancements
2009-11-12 13:54:10 -05:00
* Curl inspired output when using the binary in verbose mode (alexvollmer)
* raise UnsupportedURIScheme when scheme is not HTTP or HTTPS (djspinmonkey)
2009-11-20 00:04:39 -05:00
* Allow SSL for ports other than 443 when scheme is HTTPS (stefankroes)
2009-11-20 17:57:17 -05:00
* Accept PEM certificates via HTTParty#pem (chrislo)
2009-11-29 02:37:19 -05:00
* Support HEAD and OPTION verbs (grempe)
* Verify SSL certificates when providing a PEM file (collectiveidea/danielmorrison)
2009-11-09 22:17:44 -05:00
## 0.4.5 2009-09-12
2009-09-08 22:52:54 -04:00
* bug fixes
* Fixed class-level headers overwritten by cookie management code. Closes #19
2009-09-09 00:11:05 -04:00
* Fixed "superclass mismatch for class BlankSlate" error. Closes #20
2009-09-10 23:31:07 -04:00
* Fixed reading files as post data from the command line (vesan)
2009-09-10 23:31:07 -04:00
* minor enhancements
2009-09-12 22:43:56 -04:00
* Timeout option added; will raise a Timeout::Error after the timeout has elapsed (attack). Closes #17
HTTParty.get "http://github.com", timeout: 1
2009-09-09 00:11:05 -04:00
* Building gem with Jeweler
2009-08-22 10:25:32 -04:00
## 0.4.4 2009-07-19
2009-07-19 20:12:55 -04:00
* 2 minor update
2009-07-19 18:47:14 -04:00
* :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.
2009-07-19 20:12:55 -04:00
* 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.
2011-09-13 12:34:47 -04:00
## 0.4.3 2009-04-23
2009-04-23 11:28:36 -04:00
* 1 minor update
* added message to the response object
2011-09-13 12:34:47 -04:00
## 0.4.2 2009-03-30
* 2 minor changes
2009-04-02 11:30:00 -04:00
* 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
2009-04-02 11:30:00 -04:00
## 0.4.1 2009-03-29
2009-03-29 10:15:57 -04:00
* 1 minor fix
* gem 'jnunemaker-crack' instead of gem 'crack'
2011-09-13 12:34:47 -04:00
## 0.4.0 2009-03-29
2009-03-29 00:33:23 -04:00
* 1 minor change
* Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)
2011-09-13 12:34:47 -04:00
## 0.3.1 2009-02-10
2009-02-10 23:39:39 -05:00
* 1 minor fix, 1 minor enhancement
* Fixed unescaping umlauts (siebertm)
* Added yaml response parsing (Miha Filej)
2011-09-13 12:34:47 -04:00
## 0.3.0 2009-01-31
2009-01-31 01:34:02 -05:00
* 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.
2009-01-31 01:34:02 -05:00
* Fixed bug where query strings were being duplicated on redirects
2009-01-31 01:59:16 -05:00
* Added a bunch of specs and moved some code around.
2011-09-13 12:34:47 -04:00
## 0.2.10 2009-01-29
2009-01-29 23:07:27 -05:00
* 1 minor enhancement
* Made encoding on query parameters treat everything except URI::PATTERN::UNRESERVED as UNSAFE to force encoding of '+' character (Julian Russell)
2011-09-13 12:34:47 -04:00
## 0.2.9 2009-01-29
* 3 minor enhancements
2009-01-29 04:20:55 -05:00
* 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)
2011-09-13 12:34:47 -04:00
## 0.2.8 2009-01-28
2009-01-28 16:16:43 -05:00
* 1 major fix
* fixed major bug with response where it wouldn't iterate or really work at all with parsed responses
2011-09-13 12:34:47 -04:00
## 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)
2009-01-28 13:13:10 -05:00
* 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
2009-01-05 11:56:29 -05:00
* 1 minor bug fix
* added explicit require of time as Time#parse failed outside of rails (willcodeforfoo)
2011-09-13 12:34:47 -04:00
## 0.2.5 2009-01-05
2009-01-05 01:46:36 -05:00
* 1 major enhancement
* Add command line interface to HTTParty (Alex Vollmer)
2011-09-13 12:34:47 -04:00
## 0.2.4 2008-12-23
2008-12-23 13:10:40 -05:00
* 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
2008-12-08 21:19:48 -05:00
* 1 bug fix
* Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)
## 0.2.0 2008-12-07
2008-12-07 00:02:51 -05:00
* 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
2011-09-13 12:34:47 -04:00
* 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
2008-11-30 23:59:28 -05:00
* 1 major enhancement
* fixed multiple class definitions overriding each others options
2011-09-13 12:34:47 -04:00
## 0.1.6 2008-11-26
* 1 major enhancement
* now passing :query to set_form_data if post request to avoid content length errors
2011-09-13 12:34:47 -04:00
## 0.1.5 2008-11-14
* 2 major enhancements
2008-11-14 14:06:55 -05:00
* Refactored send request method out into its own object.
* Added :html format if you just want to do that.
2011-09-13 12:34:47 -04:00
## 0.1.4 2008-11-08
2008-11-14 14:06:55 -05:00
* 3 major enhancements:
* Removed some cruft
2008-11-08 11:30:26 -05:00
* 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
2008-07-31 00:24:29 -04:00
* 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
2008-07-27 11:52:18 -04:00
* 1 major enhancement:
2009-11-09 22:17:44 -05:00
* Initial release