- Modernize code and require ruby-3.2 or newer.
- Allow using keyword arguments as the additional parameters.
- Remove
Burgundy::Item.map
.
- Allow initializing
Burgundy::Item
without passing a delegating object.
- Add
Burgundy::Item#to_json(*)
.
- Add
Burgundy::Item#as_json(*)
, which returnsBurgundy::Item#attributes
.
- Stop using
Delegator
and usemethod_missing
instead.
Burgundy::Collection
andBurgundy::Item.wrap
now delegates additional arguments toBurgundy::Item#initialize
.
- Add
Burgundy::Item#attributes
. Now is possible to easily collect attributes as a hash. - Required Ruby version is now 2.1+.
Burgundy::Collection
now includesEnumerable
.
Burgundy::Item.wrap
always return aBurgundy::Collection
instance.
- Add
Burgundy::Collection#empty?
. Burgundy::Collection#initialize
doesn't require a wrapping class anymore. This makes ActiveRecord collections easier to work.
- Initial release.