ii_policy 2.2.0 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +24 -4
- data/CHANGELOG.md +8 -0
- data/gemfiles/rails50.gemfile +1 -0
- data/gemfiles/rails51.gemfile +1 -0
- data/gemfiles/rails52.gemfile +1 -0
- data/gemfiles/rails60.gemfile +1 -0
- data/gemfiles/rails61.gemfile +1 -0
- data/gemfiles/rails70.gemfile +1 -0
- data/gemfiles/rails71.gemfile +6 -0
- data/lib/ii_policy/log_subscriber.rb +2 -2
- data/lib/ii_policy/version.rb +1 -1
- data/lib/ii_policy.rb +2 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d04c9d42188ef0b540b2934eeddabbf11e133ece339f78c9c1f0da432d6a3529
|
4
|
+
data.tar.gz: a95606300e24728fcf6b306787f47990261f61891e96b0b3977c564b543929c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c066874b632669e521a7a5aef5aad4dd592084ee26f1243bd01d2f271c1aa30cd40a4534c02dcf9e11913b8b22077a8b23ffb7a524f3a1fa982fafd9d2abb109
|
7
|
+
data.tar.gz: 2f9fe4b4989f99989db95c46973fd71bc38e2a928ac29d5d6118e904c5a519a94352318c879ca575b9fa69759fd74ae6688d1352159f64afdefe5c2bc3cea919
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,12 +4,12 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
test:
|
7
|
-
runs-on: ubuntu-
|
7
|
+
runs-on: ubuntu-22.04
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1]
|
12
|
-
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
|
11
|
+
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3]
|
12
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71']
|
13
13
|
exclude:
|
14
14
|
- ruby: 2.3
|
15
15
|
gemfile: rails60
|
@@ -17,16 +17,24 @@ jobs:
|
|
17
17
|
gemfile: rails61
|
18
18
|
- ruby: 2.3
|
19
19
|
gemfile: rails70
|
20
|
+
- ruby: 2.3
|
21
|
+
gemfile: rails71
|
20
22
|
- ruby: 2.4
|
21
23
|
gemfile: rails60
|
22
24
|
- ruby: 2.4
|
23
25
|
gemfile: rails61
|
24
26
|
- ruby: 2.4
|
25
27
|
gemfile: rails70
|
28
|
+
- ruby: 2.4
|
29
|
+
gemfile: rails71
|
26
30
|
- ruby: 2.5
|
27
31
|
gemfile: rails70
|
32
|
+
- ruby: 2.5
|
33
|
+
gemfile: rails71
|
28
34
|
- ruby: 2.6
|
29
35
|
gemfile: rails70
|
36
|
+
- ruby: 2.6
|
37
|
+
gemfile: rails71
|
30
38
|
- ruby: 3.0
|
31
39
|
gemfile: rails50
|
32
40
|
- ruby: 3.0
|
@@ -39,6 +47,18 @@ jobs:
|
|
39
47
|
gemfile: rails51
|
40
48
|
- ruby: 3.1
|
41
49
|
gemfile: rails52
|
50
|
+
- ruby: 3.2
|
51
|
+
gemfile: rails50
|
52
|
+
- ruby: 3.2
|
53
|
+
gemfile: rails51
|
54
|
+
- ruby: 3.2
|
55
|
+
gemfile: rails52
|
56
|
+
- ruby: 3.3
|
57
|
+
gemfile: rails50
|
58
|
+
- ruby: 3.3
|
59
|
+
gemfile: rails51
|
60
|
+
- ruby: 3.3
|
61
|
+
gemfile: rails52
|
42
62
|
|
43
63
|
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
|
44
64
|
|
@@ -46,7 +66,7 @@ jobs:
|
|
46
66
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
47
67
|
|
48
68
|
steps:
|
49
|
-
- uses: actions/checkout@
|
69
|
+
- uses: actions/checkout@v4
|
50
70
|
- uses: ruby/setup-ruby@v1
|
51
71
|
with:
|
52
72
|
ruby-version: ${{ matrix.ruby }}
|
data/CHANGELOG.md
CHANGED
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/gemfiles/rails52.gemfile
CHANGED
data/gemfiles/rails60.gemfile
CHANGED
data/gemfiles/rails61.gemfile
CHANGED
data/gemfiles/rails70.gemfile
CHANGED
@@ -6,7 +6,7 @@ module IIPolicy
|
|
6
6
|
debug do
|
7
7
|
policy = event.payload[:policy]
|
8
8
|
action = event.payload[:action]
|
9
|
-
"Calling #{policy.class}##{action} with #{policy.context}"
|
9
|
+
" Calling #{policy.class}##{action} with #{policy.context}"
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
@@ -14,7 +14,7 @@ module IIPolicy
|
|
14
14
|
debug do
|
15
15
|
policy = event.payload[:policy]
|
16
16
|
action = event.payload[:action]
|
17
|
-
"Called #{policy.class}##{action} and return #{policy._result} (#{additional_log(event)})"
|
17
|
+
" Called #{policy.class}##{action} and return #{policy._result} (#{additional_log(event)})"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/lib/ii_policy/version.rb
CHANGED
data/lib/ii_policy.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ii_policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- gemfiles/rails60.gemfile
|
132
132
|
- gemfiles/rails61.gemfile
|
133
133
|
- gemfiles/rails70.gemfile
|
134
|
+
- gemfiles/rails71.gemfile
|
134
135
|
- ii_policy.gemspec
|
135
136
|
- lib/ii_policy.rb
|
136
137
|
- lib/ii_policy/base.rb
|
@@ -151,7 +152,7 @@ files:
|
|
151
152
|
homepage: https://github.com/kanety/ii_policy
|
152
153
|
licenses: []
|
153
154
|
metadata: {}
|
154
|
-
post_install_message:
|
155
|
+
post_install_message:
|
155
156
|
rdoc_options: []
|
156
157
|
require_paths:
|
157
158
|
- lib
|
@@ -167,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
168
|
version: '0'
|
168
169
|
requirements: []
|
169
170
|
rubygems_version: 3.3.3
|
170
|
-
signing_key:
|
171
|
+
signing_key:
|
171
172
|
specification_version: 4
|
172
173
|
summary: A base policy to support management of authorization logic
|
173
174
|
test_files: []
|