All Versions
11
Latest Version
Avg Release Cycle
156 days
Latest Release
1212 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v1.1.0 Changes
September 28, 2021๐ฅ Breaking changes
- โ remove no longer supported ruby versions (2.3.8, 2.4.5)
- ๐ Consul no longer depends on the whole rails framework
Compatible changes
- โ add Ruby 3 compatibility
-
v1.0.3 Changes
September 24, 2019๐ Security fix
๐ This releases fix a security issue where in a controller with multiple
power
directives, the:only
and:except
options of the last directive was applied to all directives.Affected code looks like this:
class UsersController < ApplicationController power :foo power :bar, only: :index ... end
In this example both the powers
:foo
and:bar
were only checked for the#index
action. Other actions were left unprotected by powers checks.Controllers with a single
power
directive are unaffected. Contollers where neitherpower
uses:only
or:except
options are unaffected.This vulnerability has been assigned the CVE identifier CVE-2019-16377.
Compatible changes
- ๐ The RSpec matcher
check_power
now also sees powers inherited by a parent controller.
- ๐ The RSpec matcher
-
v1.0.2 Changes
May 22, 2019Compatible changes
- The
#arity
of power methods with optional arguments is now preserved.
- The
-
v1.0.1 Changes
February 27, 2019Compatible changes
- ๐ Methods defined with
power
now preserve the arity of their block.
- ๐ Methods defined with
-
v1.0.0 Changes
February 15, 2019๐ฅ Breaking changes
- Removed
Power.for_record(record)
. UsePower.for_model(record.class)
instead. - Removed
Power#for_record(record)
. UsePower#for_model(record.class)
instead. - Removed
Power#name_for_record(record)
. UsePower#name_for_model(record.class)
instead.
- Removed
-
v0.14.1 Changes
November 13, 2018Compatible changes
- ๐ inherit power guards upon controller inheritance (fixes #40)
-
v0.14.0 Changes
October 09, 2018๐ฅ Breaking changes
- โฌ๏ธ drop support for Rails 2.3
Compatible changes
- โ migrate tests to Gemika
-
v0.13.2 Changes
October 02, 2018Compatible changes
- Bang methods should return the scope when successful (e.g.
power.notes!
returns the scope you defined in the power) - ๐ improve the error message for scoped powers
- Bang methods should return the scope when successful (e.g.
-
v0.13.1 Changes
September 28, 2017Compatible changes
- ๐ Fix controller integration when using
ActionController::API
.
Thanks to derekprior.
- ๐ Fix controller integration when using
-
v0.13.0 Changes
September 05, 2017๐ฅ Breaking change
- All powers memoize.