All Versions
44
Latest Version
Avg Release Cycle
174 days
Latest Release
1420 days ago

Changelog History
Page 3

  • v0.6.3 Changes

    Full Changelog

    โœจ 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

    Full Changelog

    โœจ Enhancements:

    • Reintroduce a global cache.
    • Request#handled_response falls back to the original response. (turnerking, #272)
    • When Errors::NoStub is raised the url is displayed. (dschneider, #276)
    • ๐Ÿ‘‰ Make Request#hash consistent.
    • โž• Add .rvmrc and ctags to .gitignore. (ryankindermann, #274)
  • v0.6.1 Changes

    Full Changelog

    โœจ Enhancements:

    • โšก๏ธ Updated ethon version which allows to set multiple protocols.
  • v0.6.0 Changes

    Full Changelog

    โœจ Enhancements:

    ๐Ÿ›  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

    Full Changelog

    โœจ 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 to base_url. See discussion here: #250. (bkimble, #256)
    • Provide O(1) header access.
  • v0.5.3 Changes

    Full Changelog

    โœจ 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

    Full Changelog

    โœจ 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

    Full Changelog

    โœจ Enhancements:

    • Downcase header keys for easier access ( #227 )
    • โšก๏ธ Using an updated Ethon version.
  • v0.5.0 Changes

    Full Changelog

    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 and Typhoeus::Multi are now Ethon::Easy and Ethon::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, instead Response#headers returning the last header and response#redirections returning the responses with headers generated through redirections

    • Instead 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:

  • v0.4.2 Changes

    • ๐Ÿš‘ A header hotfix