All Versions
30
Latest Version
Avg Release Cycle
49 days
Latest Release
960 days ago

Changelog History
Page 1

  • v0.6.0 Changes

    September 02, 2021
    • โฌ‡๏ธ Drop Ruby 2.5 support.
    • [Closes #186] Add inline_reasons: true option to allowed_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][])
  • 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 and default_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! and allow! methods are now parts of the core API.

    Now you can call deny! and allow! 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.
  • v0.4.5 Changes

    July 29, 2020
    • โž• Add strict_namespace option to lookup chain. (@rainerborene)