Changelog History
Page 1
-
v0.6.0 Changes
September 02, 2021- โฌ๏ธ Drop Ruby 2.5 support.
- [Closes #186] Add
inline_reasons: true
option toallowed_to?
to avoid wrapping reasons. ([@palkan][]) - ๐ [Fixes #173] Explicit context were not merged with implicit one within policy classes. ([@palkan][])
- Add
strict_namespace:
option to policy_for behaviour ([@kevynlebouille][]) - Prevent possible side effects in policy lookup ([@tomdalling][])
-
v0.5.7 Changes
March 03, 2021๐ The previous release had incorrect dependencies (due to the missing transpiled files).
-
v0.5.6 Changes
March 03, 2021- Add
ActionPolicy.enforce_predicate_rules_naming
config to catch rule missing question mark ([@skojin][])
- Add
-
v0.5.5 Changes
December 28, 2020- โฌ๏ธ Upgrade to Ruby 3.0. ([@palkan][])
-
v0.5.4 Changes
December 09, 2020โ Add support for RSpec aliases detection when linting policy specs with
rubocop-rspec
2.0 ([@pirj][])๐ Fix
strict_namespace: true
lookup option not finding policies in global namespace ([@Be-ngt-oH][])
-
v0.5.3
October 06, 2020 -
v0.5.2
October 01, 2020 -
v0.5.1
September 30, 2020 -
v0.5.0 Changes
September 29, 2020๐ This release includes a bunch of minor features and improvements based on the community requests and suggestions.
๐ Features
- โ Added
Result#all_details
to return all collected details in a single hash.
๐ See #130 for some example use cases.
Added
default:
option to the.lookup
method anddefault_authorization_policy_class
callback to behaviours.๐ Add
skip_verify_authorized!
to Rails controllers integration.This method allows you to skip the
verify_authorized
callback dynamically.- โ Added
allowance_to
method to authorization behaviours.
This method is similar to
allowed_to?
but returns an authorization result object.๐ Changes
- The
deny!
andallow!
methods are now parts of the core API.
Now you can call
deny!
andallow!
in policy rules to fail- or pass-fast.๐ฅ BREAKING. Pre-check name is no longer added automatically to failure reasons. You should specify the reason
explicitly:deny!(:my_reason)
.- ๐ Rule aliases are now supported in
allowed_to?
/check?
calls within policies.
Misc
- โฌ๏ธ Dropped Ruby 2.4 support.
- โ Added
-
v0.4.5 Changes
July 29, 2020- โ Add strict_namespace option to lookup chain. (@rainerborene)