u-authorization 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/authorization.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc8fecb2d5a29b122d38861e2e46827f8a295b2017bc19fa60a2a1884e456e8b
4
- data.tar.gz: c81528a10a0c2afea7e28be3a654164d712da8afc64be27ca3c8dcb7d48490c7
3
+ metadata.gz: f2d0d221c7afbf5307e6de989945f359e72432ecdff115f4da85a6d51df147f5
4
+ data.tar.gz: 595029aef79e60b483373a3b7ad4eef586bc90944bc8533a1640575bccbe42c7
5
5
  SHA512:
6
- metadata.gz: 22252cb37716d9646e79a6f1b777848f470615b759c9fee13442d1f676caf76ef0c9d0da0413801f395814ceefea15e66bf75e0152ec01726d893770514f0f81
7
- data.tar.gz: 70b2ecae75be81b47e3452820a28eda59a4e731341ed3c65564bbe975a84228f32e037523c418342a4cd21ebefdf85dc83f594eb1e65b3271d2bbc6ed4896321
6
+ metadata.gz: b8c8d6e819e296f085c045af9c476941c9d3b2faf9269eb7ee7394321908257a1586b267c75dccb6a4b8d75c112ec35b31c3af26722c48dec2a6e99f77e74f05
7
+ data.tar.gz: ef58ac9c0ff6b4aa1ed2ccf75fb67af13b9891e886f33a65a44bd64715ccbd49586adf2f9e12553fb17ec70374af5433aef69dccbcea1788a405a9c8ff41b080
data/authorization.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Authorization
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
 
6
6
  MapValuesAsDowncasedStrings = -> (values) do
7
7
  Array(values).map { |value| String(value).downcase }
@@ -114,6 +114,7 @@ module Authorization
114
114
  @user ||=
115
115
  context.is_a?(Hash) ? context[:user] || context[:current_user] : context
116
116
  end
117
+ alias_method :current_user, :user
117
118
  end
118
119
 
119
120
  class Model
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: u-authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Serradura