All Versions
30
Latest Version
Avg Release Cycle
49 days
Latest Release
46 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)