action_policy 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -3
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/action_policy/ext/module_namespace.rb +5 -0
- data/lib/action_policy/ext/string_match.rb +14 -0
- data/lib/action_policy/railtie.rb +1 -1
- data/lib/action_policy/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd1a7f10e0934ff905e63da4fe68970165813f062ee10c2534eba30acbdcb04b
|
4
|
+
data.tar.gz: 0e26b4d23cd11d96accad3c4ba15ff7dfbd68483b1592a98dff181afe6c699a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9643d2b9298058b34d42717b25cb258f53d8cd1aa4314889fab4c830fe781af82e3688400453c1edb0fd41273c5abcdf77f36031d6afc984ececb666570b4f0
|
7
|
+
data.tar.gz: ea54f95f99eeb8e60f0554c9bc4b1ae1dccd235c34efba012c08e7a222f3ea1b6fcb873bc19fad1f147af526724e326ad913e6663a8e88b072b315f0e25e3ac4
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -13,15 +13,15 @@ matrix:
|
|
13
13
|
gemfile: gemfiles/railsmaster.gemfile
|
14
14
|
- rvm: jruby-9.1.0.0
|
15
15
|
gemfile: gemfiles/jruby.gemfile
|
16
|
-
- rvm: 2.5.
|
16
|
+
- rvm: 2.5.1
|
17
17
|
gemfile: Gemfile
|
18
|
+
- rvm: 2.5.1
|
19
|
+
gemfile: gemfiles/rails42.gemfile
|
18
20
|
- rvm: 2.4.3
|
19
21
|
gemfile: Gemfile
|
20
22
|
- rvm: 2.3.1
|
21
23
|
gemfile: gemfiles/rails42.gemfile
|
22
24
|
allow_failures:
|
23
|
-
- rvm: 2.3.1
|
24
|
-
gemfile: gemfiles/rails42.gemfile
|
25
25
|
- rvm: ruby-head
|
26
26
|
gemfile: gemfiles/railsmaster.gemfile
|
27
27
|
- rvm: jruby-9.1.0.0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Action Policy is an authorization framework for Ruby and Rails applications.
|
8
8
|
|
9
|
-
📑 [Documentation]
|
9
|
+
📑 [Documentation](https://actionpolicy.evilmartians.io)
|
10
10
|
|
11
11
|
<a href="https://evilmartians.com/?utm_source=action_policy">
|
12
12
|
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
|
@@ -10,6 +10,11 @@ module ActionPolicy
|
|
10
10
|
using ActionPolicy::Ext::StringConstantize
|
11
11
|
end
|
12
12
|
|
13
|
+
unless "".respond_to?(:match?)
|
14
|
+
require "action_policy/ext/string_match"
|
15
|
+
using ActionPolicy::Ext::StringMatch
|
16
|
+
end
|
17
|
+
|
13
18
|
def namespace
|
14
19
|
return unless name.match?(/[^^]::/)
|
15
20
|
|
@@ -49,7 +49,7 @@ module ActionPolicy # :nodoc:
|
|
49
49
|
app.executor.to_complete { ActionPolicy::PerThreadCache.clear_all }
|
50
50
|
end
|
51
51
|
|
52
|
-
config.
|
52
|
+
config.to_prepare do |_app|
|
53
53
|
ActiveSupport.on_load(:action_controller) do
|
54
54
|
next unless Rails.application.config.action_policy.auto_inject_into_controller
|
55
55
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/action_policy/ext/module_namespace.rb
|
163
163
|
- lib/action_policy/ext/policy_cache_key.rb
|
164
164
|
- lib/action_policy/ext/string_constantize.rb
|
165
|
+
- lib/action_policy/ext/string_match.rb
|
165
166
|
- lib/action_policy/lookup_chain.rb
|
166
167
|
- lib/action_policy/policy/aliases.rb
|
167
168
|
- lib/action_policy/policy/authorization.rb
|