Releases: adamnoto/bali
Releases · adamnoto/bali
6.0.1
2.4
2.2.0
- Deprecating
describe
block in favour ofrole
block,describe
is to be deprecated in version 3.0. - Using strategy pattern, heavy refactoring
- Human-readable authorisation error message when invoking !-version of can/cannot, for eg: Role general_user is not allowed to perform operation
update
on My::Transaction
2.1.2
2.1.1
2.1.0
This release comprises additional features as follow:
others
block would allow for rule definitions within it to be applied for all undefined subtargets of a target- Fixing bug when roles_for of a user object retrieves
nil
as the user's role, it won't acknowledge that the user is indeed havingnil
-role and raising an error instead. - Inherits rules by passing
:inherits
option when definingrules_for
clear_rules
withindescribe
orothers
block to remove all inherited rules (or any rules previously defined) for that subtarget- Adding
Bali::Printer
that would enable for rules to be printed by calling.pretty_print
on it
2.0.0
2.0.0rc1
This release is basically preparing for long journey ahead that Bali is envisioned with. In this release:
Bali::AuthorizationError
is introduced as subclass ofStandardError
tailored for raising error regarding with authorisation- Deprecating
cant
,cant?
, andcant_all
in favor ofcannot
,cannot?
andcannot_all
- New objectors
can!
andcannot!
to raise error on inappropriate access