All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
after_response
hook- Add
#headers
and#header(key)
methods to response for easy access to the headers
dry-validation
1.x support (0.x support has not been dropped)
- Allow users to override typhoeus_options to pass any args that we haven't defined
- Allow all Typhoeus options to be passed to BuildTyphoeusOptions. This is useful when overriding the method
typhoeus_options
in requests
- Add
Response#body
which israw_response
'sbody
- Move http-related code to Request#run. This is the one that should be overridden, instead of call, since
#call
calls other methods likebefore_call
- Set
#proxy
attribute to requests. This is passed to Typhoeus if present
- Allow developer to define
before_call
in requests to execute code
host
configuration should not remove the path
- Support
host
configurations that already have a path
- Make defining of
path
in requests optional
- raise ArgumentError when validation schema is available and it has errors
Client
inherits attributes from gem namespace. No need to specify these attributes again.
- Ensure args are passed correctly into request instantiation
- bug with customizing the args of an
api_action
(it didn't work at all!) - when building path, escape the values
- Convenience module for gem's base module
- Do not require arguments to be passed into api actions
- Do not singularize the action_name. Call camelize instead of classify
- Typhoeus is not a dependency; user must add it if they will use
Request#call
- Initial release