ii_policy 2.1.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df4defb25b2a7c7225aa220ed7494e10d40d0313bedad29bed9d4f45f8a87285
4
- data.tar.gz: c381b03ef5c094101c6f8a2fa75af0b602c2115d75b58f8dd2631a6a7c959722
3
+ metadata.gz: b545a1acc946e10062dce7682885dc634f9e5df746a9bdd5c84872d492fa644f
4
+ data.tar.gz: 9e91758a75f8af1ccc8c92420b881ea3c3a73e7f8c24fe8d37457b8df238442d
5
5
  SHA512:
6
- metadata.gz: 55f7d820cbd95e1e4294977c464539c4cf4eca1455a62e7ef38c9f7a3eee655b11207ca749fb9044c20058929f5083e3fb5199df126a0f013883a83d5597b415
7
- data.tar.gz: 43ad5e24e33295aa08e3960639d58c1ea7c94ac82a5c15f1a21994042a8e7d7974f47ffe96afbb307f2f3b270b571ac495d8c980eab865c4a65226269d3ddaaf
6
+ metadata.gz: 4ed442f39e486d0c7b847c3c4b9ac648904a8a35374571f9e6e3be64cc7b8575d654dc1fdbd2e20e67542756c4124d6362a01399a328f3caad260045046c7eb0
7
+ data.tar.gz: 624bb44796bf1cbcb1ffa74f54827c27fefed6ca44dc246d96a08afd83fa061e3d4d6949b4176002d0ddf1e5554ac45907e6742bb1f1e04f2611a1a4ce1f163b
@@ -8,7 +8,7 @@ jobs:
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']
11
+ ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2]
12
12
  gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
13
13
  exclude:
14
14
  - ruby: 2.3
@@ -33,6 +33,18 @@ jobs:
33
33
  gemfile: rails51
34
34
  - ruby: 3.0
35
35
  gemfile: rails52
36
+ - ruby: 3.1
37
+ gemfile: rails50
38
+ - ruby: 3.1
39
+ gemfile: rails51
40
+ - ruby: 3.1
41
+ gemfile: rails52
42
+ - ruby: 3.2
43
+ gemfile: rails50
44
+ - ruby: 3.2
45
+ gemfile: rails51
46
+ - ruby: 3.2
47
+ gemfile: rails52
36
48
 
37
49
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
38
50
 
@@ -40,7 +52,7 @@ jobs:
40
52
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
41
53
 
42
54
  steps:
43
- - uses: actions/checkout@v2
55
+ - uses: actions/checkout@v3
44
56
  - uses: ruby/setup-ruby@v1
45
57
  with:
46
58
  ruby-version: ${{ matrix.ruby }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.2.1
4
+
5
+ * Indent log messages.
6
+
7
+ ## 2.2.0
8
+
9
+ * Use coactive 0.3.
10
+
3
11
  ## 2.1.0
4
12
 
5
13
  * Add traversal config.
data/bin/console CHANGED
@@ -10,5 +10,5 @@ require "ii_policy"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- # require "irb"
14
- # IRB.start
13
+ require "irb"
14
+ IRB.start
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+ gem "loofah", "~> 2.19.1"
5
6
 
6
7
  gemspec path: "../"
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+ gem "loofah", "~> 2.19.1"
5
6
 
6
7
  gemspec path: "../"
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.2.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+ gem "loofah", "~> 2.19.1"
5
6
 
6
7
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "psych", "~> 3.3.0"
4
5
 
5
6
  gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 7.0.0"
3
+ gem "rails", "~> 7.0.1"
4
4
 
5
5
  gemspec path: "../"
data/ii_policy.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_dependency "activesupport", ">= 5.0"
21
- spec.add_dependency "coactive", ">= 0.2"
21
+ spec.add_dependency "coactive", ">= 0.3"
22
22
 
23
23
  spec.add_development_dependency "rails", ">= 5.0"
24
24
  spec.add_development_dependency "sqlite3"
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IIPolicy
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.1'
5
5
  end
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.1.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-04 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.2'
33
+ version: '0.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.2'
40
+ version: '0.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.1.6
169
+ rubygems_version: 3.3.3
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: A base policy to support management of authorization logic