- Fix rubocop failures.
- Fix error handling so specific error messages appear correctly.
- update CI to cover latest version so of ruby
- Fixes unhandled exception when error response isn't valid JSON
- Fix HTTP error handling to all codes are dealt with consistently.
- Install rubocop and make everything compliant.
- Improve error messaging for inclusion validations.
- fixes regression where #presenter is not respected
- fixes edge case where TrueClass is passed in intead of a string to a
Boolean
serialized attribute
- fixes regression in error handling
- Added Serializers feature, ability to define different methods of serializing resource response
- New error handling, will report different errors based on response from resource
- added
handler
response configuration, allows different handlers to be set up for specific response codes. - added
Json
handler as default - added
JsonApi
handler
- Resource::Base#destroy added, (backend functionality existed, but was never added to #resource)
- Backtrace handler no longer explodes when the resource doesn't present a well formatted backtrace
- new HTTP client backend functionality, ability to support multiple HTTP backends
headers
updated to merge, can be called multiple times, allows modularization- backend support for
HTTParty
,HTTP
, andPatron
host_config
method removed fromSupport::Resource::Base
- update travis to test against Ruby 2.4.0, Ruby 2.1.9, Ruby 2.3.2
- various refactoring
- add
validation_on_save
option to allow skipping validation on save - better configuration inheritance in resources
- if using HTTParty as a backend
Errno::ECONNREFUSED
will no longer be returned for connection errors,Served::HTTPClient::ConnectionFailed
will be raised instead
- add validation support
- add serialization support
- allow definition of individual attributes
- add resource level
headers
option - add resource level
reasource_name
option - add resource level
host
option,host_config
will be deprecated in 0.2.0 - add
Served::Attribute::Base
class
- add resource level
reasource_name
option - add resource level
host
option
- make
timeout
configurable per resource
- fix buggy GET request template expansion defaults