From 582ee78c2b83cbd01d17e6768ff0f004a2c73eda Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Sun, 19 Apr 2015 13:26:56 +0200 Subject: [PATCH] Tagged 1.0.0 --- CHANGELOG.md | 10 +++++++++- lib/pundit/version.rb | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0b4dc6..3399f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,19 @@ # Pundit -## 1.0.0 (unreleased) +## 1.0.0 (2015-04-19) - Caches policy scopes and policies. - Explicitly setting the policy for the controller via `controller.policy = foo` has been removed. Instead use `controller.policies[record] = foo`. - Explicitly setting the policy scope for the controller via `controller.policy_policy = foo` has been removed. Instead use `controller.policy_scopes[scope] = foo`. +- Add `permitted_attributes` helper to fetch attributes from policy. - Add `pundit_policy_authorized?` and `pundit_policy_scoped?` methods. +- Instance variables are prefixed to avoid collisions. +- Add `Pundit.authorize` method. +- Add `skip_authorization` and `skip_policy_scope` helpers. +- Better errors when checking multiple permissions in RSpec tests. +- Better errors in case `nil` is passed to `policy` or `policy_scope`. +- Use `inpect` when printing object for better errors. +- Dropped official support for Ruby 1.9.3 ## 0.3.0 (2014-08-22) diff --git a/lib/pundit/version.rb b/lib/pundit/version.rb index 0dfbd10..106fa2c 100644 --- a/lib/pundit/version.rb +++ b/lib/pundit/version.rb @@ -1,3 +1,3 @@ module Pundit - VERSION = "0.3.0" + VERSION = "1.0.0" end