Changelog History
Page 3
-
v0.6.3 Changes
โจ Enhancements:
- Cache hydra per thread.
- ๐ Various documentation improvements. (craiglittle)
- โ Add support for lazy construction of responses from stubbed requests. (ryankindermann, #275)
-
v0.6.2 Changes
โจ Enhancements:
- Reintroduce a global cache.
Request#handled_response
falls back to the original response. (turnerking, #272)- When
Errors::NoStub
is raised theurl
is displayed. (dschneider, #276) - ๐ Make
Request#hash
consistent. - โ Add
.rvmrc
andctags
to.gitignore
. (ryankindermann, #274)
-
v0.6.1 Changes
โจ Enhancements:
- โก๏ธ Updated ethon version which allows to set multiple protocols.
-
v0.6.0 Changes
โจ Enhancements:
Request#url
now also contains the url parameters.- ๐ Use updated ethon version which provides access to protocols and redir_protocols in response to libcurl SASL buffer overflow vulnerability
๐ Bugfixes:
- Corrected ssl options for the faraday adapter.
- The before hook now correctly returns the response. (Mattias Putman, #268)
- Benchmark is working again.
-
v0.5.4 Changes
โจ Enhancements:
- ๐ Make sure response_code is an integer.
- When setting an header through vcr or webmock it becomes a
Typhoeus::Response::Header
. - Provide a Rack middleware to decode nested Typhoeus arrays properly. (Dwayne Macgowan, #224)
- ๐ Handled response is available again.
- ๐ Rename parameter
url
tobase_url
. See discussion here: #250. (bkimble, #256) - Provide O(1) header access.
- Work around ruby 1.8.7 limitations. (Chris Johnson, #227 )
- Provide symbol access.
-
v0.5.3 Changes
โจ Enhancements:
- When checking options in Expecation#matches? also consider Request#options.
๐ Bugfixes:
- Do not break backwards compatibility with case insensitive headers access.
- ๐ Make sure hydra behaves correct in case of before hooks.
-
v0.5.2 Changes
โจ Enhancements:
- ๐คก Do not check the return_code in Response#success? when response is mocked.
- Check for memoization, stubbing, before hooks are delayed to Hydra#run. It was on Hydra#queue before and led to strange behavior because if the request was stubbed, it was wrapped up in queue already. There was no way to add callbacks after queue thatswhy. This is now different, since everything happens in run, just as you expect.
-
v0.5.1 Changes
โจ Enhancements:
- Downcase header keys for easier access ( #227 )
- โก๏ธ Using an updated Ethon version.
-
v0.5.0 Changes
Major Changes:
Ethon integration
- Params are url params and a body is always a body for every request type
- The options you can set might have a slightly other names, as Ethon sticks to libcurl names. See Easy.new for a description.
- Request parameter and body are properly encoded (only POST multiform body is not)
- No more header sanitizing. Before:
:headers => { 'user_agent' => 'Custom' }
was modified to:headers => { 'User-Agent' => 'Custom' }
Typhoeus::Easy
andTyphoeus::Multi
are nowEthon::Easy
andEthon::Multi
Request shortcuts:
Typhoeus.get("www.google.de")
๐ง Global configuration:
Typhoeus.configure do |config| config.verbose = true config.memoize = true end
No more
Response#headers_hash
, insteadResponse#headers
returning the last header and response#redirections returning the responses with headers generated through redirectionsInstead of defining the same callbacks on every request, you can define global callbacks:
Typhoeus.on_complete { p "yay" }
The stubbing interface changed slightly. You now have the same syntax as for requests:
Typhoeus.stub(url, options).and_return(response)
๐ The following things were removed because they do not seemed to be used at all. Ping me if you disagree!
Typhoeus::Filter
Typhoeus::Remote
Typhoeus::RemoteMethod
Typhoeus::RemoteProxyObject
- build in cache interface
โจ Enhancements:
- ๐ Documentation ( Alex P, #188 )
- Request#on_complete can hold multiple blocks.
- Request#eql? recognizes when header/params/body has a different order, but still same keys and values ( Alex P, #194 )
๐ Bug Fixes:
- Zero bytes in strings are escaped for libcurl
- โ Add support for socks5 hostname proxy type ( eweathers, #183 )
- Post body is encoded ( Rohan Deshpande, #143 )
- 0๏ธโฃ Set default user agent ( Steven Shingler, #176 )
-
v0.4.2 Changes
- ๐ A header hotfix