- Middleware stack is build on ActionDispatch::MiddlewareStack now
- Drop legacy middleware names (xyEncoder, xyDecoder)
- Add option to configure adapter creation and pass option to typhoeus adapter e.g. limiting concurrency.
- add
total_count
for paginated collections
- Fix
:with
condition matching on stubs
- Remove
Acfs::Model
(inherit fromAcfs::Resource
) - Stub does only a partial match of
:with
attributes now - Allow blocks as stub
:return
s
- Add simple dict attribute type
- Change
Resource#persisted?
to return true if it is not new
- Fix automatic path parameter handling for #destroy
- Add new event acfs.operation.before_process
- Allow middlewares to abort request processing
- Allow middlewares to receive the request operation object (via the request)
- Add Acfs.on
- Add #each_page and #each_item query methods
- Add instrumentation support
- Fix leaking failed requests in request queues
- Add support for will_paginate view helper used with
Acfs::Collection
s - Add support for pagination header added by paginate-responder
- Improve
Resource#new?
detection by usingloaded?
instead of presence of:id
attribute
- Do not raise errors on unknown attributes by default, add :unknown option.
- Add support to store unknown attributes
- Fix multiple callbacks on
QueryMethods#all
- Add new attribute type
UUID
- Add experimental support for multiple and chained paths with placeholders
- Add experimental support for multiple operation callbacks (Acfs.add_callback)
- Fix: rescue NameError and NoMethodError on invalid type
- Add find_by!
- Add find_by
- Reset method to clear stubs, request queues, internal state
- Add RSpec helper to enable stubs and clear state after each spec
- Add support for singleton resources
- Add option to allow blank attribute values (Johannes Jasper)
- Internal changes
- Fix issues with stubs using type inheritance
- Allow '1' as true value for bool attributes (Tino Junge)
- Fix regression in delegator usage by #find due to resource type inheritance.
- Fix error class name typo
- Add Resource Type Inheritance
- Preserve errors received from service on revalidation (2f1fc178)
- Fix parameter ordering bug on stubs (1dc78dc8)
- Fix hash modification on iteration bug on ActiveModel::Errors due to string keys in error hash
- Fill local resource errors hash also on 422 responses when saving resources
- Fix wrong validation context
- Add update_attributes
- Add validation check to
save
method - Inherit attributes to subclasses
- Remove messaging
- Introduce
Acfs::Resource
- Add support for DateTime and Float attribute types
- Add experimental list attribute type
- Allow block usage in stub
with
option - Allow to test if operation stubs were called and how often
- Fix bug on operation stubs
- Basic DELETE operations
- Basic messaging
- Extensible YARD documentation
- Add YAML configuration
- Add external configuration for services
- Add Rubinius support
- Add stubbing capabilities for resources
- Fix response attributes
- Add JRuby support
- Improve handling of error respones (422)
- Add Logger Middleware
- Add handling of error responses
- Return hash with indifferent access for resource attributes
- Add create operation
- Add save operation (PUT and POST)
- Add JSON and MessagePack encoder middlewares for encoding request data
- ActiveModel::Dirty
- Add persistant state methods
- Per-service middleware stack
- Add support for multiple ids for .find
- Add MessagePack support
- Fix mime type parsing for mime types with aditional parameters (ActionPack < 4.0)
- Add mime type support for respones
- Improve JSON response detection
- Add bool attribute type
- Add tracking for loading state (if resource is loaded or queued)
- Add JSON middleware to decode respones
- Add middleware support
- Add method to fetch single resources or list of resources
- Use typhoeus as http library for parallel request processing
- Allow to define resources and attributes
- Project start