ii_policy 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b545a1acc946e10062dce7682885dc634f9e5df746a9bdd5c84872d492fa644f
4
- data.tar.gz: 9e91758a75f8af1ccc8c92420b881ea3c3a73e7f8c24fe8d37457b8df238442d
3
+ metadata.gz: 7dcebd7592b2e52855f136000dc324b92367a7657ed9abc2b1094012d8f3531a
4
+ data.tar.gz: bed0a0f4a9f90e1588038ec8675d574cba8177ffb2b62dfd7a3327ec774bba54
5
5
  SHA512:
6
- metadata.gz: 4ed442f39e486d0c7b847c3c4b9ac648904a8a35374571f9e6e3be64cc7b8575d654dc1fdbd2e20e67542756c4124d6362a01399a328f3caad260045046c7eb0
7
- data.tar.gz: 624bb44796bf1cbcb1ffa74f54827c27fefed6ca44dc246d96a08afd83fa061e3d4d6949b4176002d0ddf1e5554ac45907e6742bb1f1e04f2611a1a4ce1f163b
6
+ metadata.gz: 20728e185b9c8c5ed7a10def6565c850c3f9f701fe004fff00d8c2dbfab9b5db3813da2b85facb1db04b83605e0fff424ec809642503fb5a6fb6bf247c2b1776
7
+ data.tar.gz: 2cedd3a80e427fe04cc40ab2b21c65fb1b07697c7b8e2e910688ebd0118f1fecd13dd94ca9ddf29aa6116115276a86a03d085b0b1f4f92c299d6b3765b3e7428
@@ -4,12 +4,12 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-20.04
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, 3.2]
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
@@ -45,6 +53,12 @@ jobs:
45
53
  gemfile: rails51
46
54
  - ruby: 3.2
47
55
  gemfile: rails52
56
+ - ruby: 3.3
57
+ gemfile: rails50
58
+ - ruby: 3.3
59
+ gemfile: rails51
60
+ - ruby: 3.3
61
+ gemfile: rails52
48
62
 
49
63
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
50
64
 
@@ -52,7 +66,7 @@ jobs:
52
66
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
53
67
 
54
68
  steps:
55
- - uses: actions/checkout@v3
69
+ - uses: actions/checkout@v4
56
70
  - uses: ruby/setup-ruby@v1
57
71
  with:
58
72
  ruby-version: ${{ matrix.ruby }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.3.0
4
+
5
+ * Change name of instrumentation for rails 7.1.
6
+
7
+ ## 2.2.2
8
+
9
+ * Add `frozen_string_literal: true`.
10
+
3
11
  ## 2.2.1
4
12
 
5
13
  * Indent log messages.
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
  gem "psych", "~> 3.3.0"
5
6
 
6
7
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.1.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.0.1"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.1.0"
4
+ gem "sqlite3", "~> 1.6.6"
5
+
6
+ gemspec path: "../"
@@ -5,12 +5,12 @@ module IIPolicy
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  def call_all(action)
8
- ActiveSupport::Notifications.instrument 'calling.ii_policy', policy: self, action: action
8
+ ActiveSupport::Notifications.instrument 'start_call_all.ii_policy', policy: self, action: action
9
9
  super
10
10
  end
11
11
 
12
12
  def call(action)
13
- ActiveSupport::Notifications.instrument 'call.ii_policy', policy: self, action: action do
13
+ ActiveSupport::Notifications.instrument 'process_call.ii_policy', policy: self, action: action do
14
14
  super
15
15
  end
16
16
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module IIPolicy
4
4
  class LogSubscriber < ActiveSupport::LogSubscriber
5
- def calling(event)
5
+ def start_call_all(event)
6
6
  debug do
7
7
  policy = event.payload[:policy]
8
8
  action = event.payload[:action]
@@ -10,7 +10,7 @@ module IIPolicy
10
10
  end
11
11
  end
12
12
 
13
- def call(event)
13
+ def process_call(event)
14
14
  debug do
15
15
  policy = event.payload[:policy]
16
16
  action = event.payload[:action]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IIPolicy
4
- VERSION = '2.2.1'
4
+ VERSION = '2.3.0'
5
5
  end
data/lib/ii_policy.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
  require 'coactive'
3
5
 
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.1
4
+ version: 2.3.0
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: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2024-06-27 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: []