- Fix Ruby 3 warnings
- Support returning a hash from link blocks
- Fix nil problem when no collection
- Update certificate and email address
- Convert dash to underscore in rels
- Make policies inherit rules from parent policy
- Fix problem with rendering falsey values
- Fix ruby 2.7 warnings
- Do not put inherited self links into array
- Support multiple links with the same rel
- Return serialized hash when option :as_hash is true
- Add methods to delegate to another policy
- Descrease depth by 1 for embedded collection resources
- Fix ruby 2.7 warnings
- Rename conflicting Curies
- Fix incorrect embed_depth when multiple embeds
- Specify mediatype profile
- Lookup presenter from single resource or collection
- Add curie keyword argument to
::link
- Add curie namespace
- Fixed bug with method_missing for inherited serializers
- Fixed bug with
::attribute
and::embed
when called is only one argument.
- Move embedded curies to root resource
- Symbolize names given to
::attribute
,::link
and::embed
- Links can now have type, deprecation, profile and title
- Fix off-by-1 error for embed_depth in collections
- lookup presenter from superclass
- Add embed_depth option for properties.
- Drop deprecated decorator syntax.
- Embed policies without curies also applies to rels with curies
- Link policies without curies also applies to links with curies
- Always serialize curies when present (policies does not need to allow curies).
- Policies created with HALDecorator::Policy::DSL now always allows links with rel
self
. - Policy is now used in collection blocks as well.
- Make serializer class methods available in collection block (through method_missing).
- Support
embed
in collection blocks. - Fix broken backwards compatibility with
decorator_class
as kw arg toembed
.
- Renaming Decorator to Presenter
- Pass serializer options to Policy
- Deprecate this gem and refer to HALPresenter
- Support pagination.
- Embedded arrays will now be serialized as a collection if the serializer has a collection.
- Declare multiple attributes, links or embeds with the same rule in HALDecorator::Policy::DSL.
- Allow properties without specifying a block in HALDecorator::Policy::DSL.
- Added
allow_by_default
to HALDecorator::Policy::DSL.
- Classes should now extend HALDecorator instead of include it.
- Support inheritance of Serializers.
- Add config for setting a base uri that will get prepended to link hrefs.
- Add method
post_serialize