ii_policy 2.3.0 → 2.4.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: 7dcebd7592b2e52855f136000dc324b92367a7657ed9abc2b1094012d8f3531a
4
- data.tar.gz: bed0a0f4a9f90e1588038ec8675d574cba8177ffb2b62dfd7a3327ec774bba54
3
+ metadata.gz: a701d43130a2f258e942bc61666b55dd70736e5538f04e5f01a420669351a3a6
4
+ data.tar.gz: d69d91ea220b7a33c7ef083e194e8c8c1c16169fe51f3545356b756174db7ebf
5
5
  SHA512:
6
- metadata.gz: 20728e185b9c8c5ed7a10def6565c850c3f9f701fe004fff00d8c2dbfab9b5db3813da2b85facb1db04b83605e0fff424ec809642503fb5a6fb6bf247c2b1776
7
- data.tar.gz: 2cedd3a80e427fe04cc40ab2b21c65fb1b07697c7b8e2e910688ebd0118f1fecd13dd94ca9ddf29aa6116115276a86a03d085b0b1f4f92c299d6b3765b3e7428
6
+ metadata.gz: 70a4a37bcc59deb9c52148a8f20770cc10ca8c4a79384512865415ca49274c9dbfba3b1977fb5fbcfd779adb451e17fb2535142931023108de132a0975160e59
7
+ data.tar.gz: 44b7a97752938ea871ac00de8950476a926410f08dcac02e840fbb336370bb8e8fe8d7d4b5598a250fccabc278535f93908f7a473c1eeba4a82f43c3d6723280
@@ -8,57 +8,19 @@ 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', 3.1, 3.2, 3.3]
12
- gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71']
11
+ ruby: ['3.0', 3.1, 3.2, 3.3, 3.4, '4.0']
12
+ gemfile: ['rails70', 'rails71', 'rails72', 'rails80', 'rails81']
13
13
  exclude:
14
- - ruby: 2.3
15
- gemfile: rails60
16
- - ruby: 2.3
17
- gemfile: rails61
18
- - ruby: 2.3
19
- gemfile: rails70
20
- - ruby: 2.3
21
- gemfile: rails71
22
- - ruby: 2.4
23
- gemfile: rails60
24
- - ruby: 2.4
25
- gemfile: rails61
26
- - ruby: 2.4
27
- gemfile: rails70
28
- - ruby: 2.4
29
- gemfile: rails71
30
- - ruby: 2.5
31
- gemfile: rails70
32
- - ruby: 2.5
33
- gemfile: rails71
34
- - ruby: 2.6
35
- gemfile: rails70
36
- - ruby: 2.6
37
- gemfile: rails71
38
14
  - ruby: 3.0
39
- gemfile: rails50
15
+ gemfile: rails72
40
16
  - ruby: 3.0
41
- gemfile: rails51
17
+ gemfile: rails80
42
18
  - ruby: 3.0
43
- gemfile: rails52
19
+ gemfile: rails81
44
20
  - ruby: 3.1
45
- gemfile: rails50
21
+ gemfile: rails80
46
22
  - ruby: 3.1
47
- gemfile: rails51
48
- - ruby: 3.1
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
23
+ gemfile: rails81
62
24
 
63
25
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
64
26
 
@@ -71,6 +33,9 @@ jobs:
71
33
  with:
72
34
  ruby-version: ${{ matrix.ruby }}
73
35
  bundler-cache: true
36
+ - name: Bundle list
37
+ run: |
38
+ bundle list
74
39
  - name: Run test
75
40
  run: |
76
41
  DEBUG=1 bundle exec rspec
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.4.0
4
+
5
+ * Drop support for ruby <= 2.7, rails <= 6.1.
6
+
3
7
  ## 2.3.0
4
8
 
5
9
  * Change name of instrumentation for rails 7.1.
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem "rails", ">= 7.0"
6
+ gem "sqlite3"
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -6,8 +6,8 @@ This gem is inspired by [pundit](https://github.com/varvet/pundit) specs.
6
6
 
7
7
  ## Dependencies
8
8
 
9
- * ruby 2.3+
10
- * activesupport 5.0+
9
+ * ruby 3.0+
10
+ * activesupport 7.0+
11
11
 
12
12
  ## Installation
13
13
 
data/Rakefile CHANGED
File without changes
@@ -3,4 +3,13 @@ source 'https://rubygems.org'
3
3
  gem "rails", "~> 7.0.1"
4
4
  gem "sqlite3", "~> 1.4.0"
5
5
 
6
+ gem "concurrent-ruby", "<= 1.3.4"
7
+
8
+ if RUBY_VERSION >= "3.4"
9
+ gem "bigdecimal"
10
+ gem "base64"
11
+ gem "drb"
12
+ gem "mutex_m"
13
+ end
14
+
6
15
  gemspec path: "../"
File without changes
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 6.1.0"
4
- gem "sqlite3", "~> 1.4.0"
3
+ gem "rails", "~> 7.2.0"
4
+ gem "sqlite3"
5
5
 
6
6
  gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 8.0.0"
4
+ gem "sqlite3"
5
+
6
+ gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 8.1.0"
4
+ gem "sqlite3"
5
+
6
+ gemspec path: "../"
data/ii_policy.gemspec CHANGED
@@ -17,12 +17,13 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "activesupport", ">= 5.0"
20
+ spec.required_ruby_version = ">= 3.0"
21
+
22
+ spec.add_dependency "activesupport", ">= 7.0"
21
23
  spec.add_dependency "coactive", ">= 0.3"
22
24
 
23
- spec.add_development_dependency "rails", ">= 5.0"
24
- spec.add_development_dependency "sqlite3"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec-rails"
27
27
  spec.add_development_dependency "simplecov"
28
+ spec.add_development_dependency "logger"
28
29
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IIPolicy
4
- VERSION = '2.3.0'
4
+ VERSION = '2.4.0'
5
5
  end
data/lib/ii_policy.rb CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ii_policy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '5.0'
18
+ version: '7.0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '5.0'
25
+ version: '7.0'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: coactive
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -39,21 +38,7 @@ dependencies:
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0.3'
41
40
  - !ruby/object:Gem::Dependency
42
- name: rails
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '5.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '5.0'
55
- - !ruby/object:Gem::Dependency
56
- name: sqlite3
41
+ name: rake
57
42
  requirement: !ruby/object:Gem::Requirement
58
43
  requirements:
59
44
  - - ">="
@@ -67,7 +52,7 @@ dependencies:
67
52
  - !ruby/object:Gem::Version
68
53
  version: '0'
69
54
  - !ruby/object:Gem::Dependency
70
- name: rake
55
+ name: rspec-rails
71
56
  requirement: !ruby/object:Gem::Requirement
72
57
  requirements:
73
58
  - - ">="
@@ -81,7 +66,7 @@ dependencies:
81
66
  - !ruby/object:Gem::Version
82
67
  version: '0'
83
68
  - !ruby/object:Gem::Dependency
84
- name: rspec-rails
69
+ name: simplecov
85
70
  requirement: !ruby/object:Gem::Requirement
86
71
  requirements:
87
72
  - - ">="
@@ -95,7 +80,7 @@ dependencies:
95
80
  - !ruby/object:Gem::Version
96
81
  version: '0'
97
82
  - !ruby/object:Gem::Dependency
98
- name: simplecov
83
+ name: logger
99
84
  requirement: !ruby/object:Gem::Requirement
100
85
  requirements:
101
86
  - - ">="
@@ -123,15 +108,11 @@ files:
123
108
  - LICENSE
124
109
  - README.md
125
110
  - Rakefile
126
- - bin/console
127
- - bin/setup
128
- - gemfiles/rails50.gemfile
129
- - gemfiles/rails51.gemfile
130
- - gemfiles/rails52.gemfile
131
- - gemfiles/rails60.gemfile
132
- - gemfiles/rails61.gemfile
133
111
  - gemfiles/rails70.gemfile
134
112
  - gemfiles/rails71.gemfile
113
+ - gemfiles/rails72.gemfile
114
+ - gemfiles/rails80.gemfile
115
+ - gemfiles/rails81.gemfile
135
116
  - ii_policy.gemspec
136
117
  - lib/ii_policy.rb
137
118
  - lib/ii_policy/base.rb
@@ -152,7 +133,6 @@ files:
152
133
  homepage: https://github.com/kanety/ii_policy
153
134
  licenses: []
154
135
  metadata: {}
155
- post_install_message:
156
136
  rdoc_options: []
157
137
  require_paths:
158
138
  - lib
@@ -160,15 +140,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
140
  requirements:
161
141
  - - ">="
162
142
  - !ruby/object:Gem::Version
163
- version: '0'
143
+ version: '3.0'
164
144
  required_rubygems_version: !ruby/object:Gem::Requirement
165
145
  requirements:
166
146
  - - ">="
167
147
  - !ruby/object:Gem::Version
168
148
  version: '0'
169
149
  requirements: []
170
- rubygems_version: 3.3.3
171
- signing_key:
150
+ rubygems_version: 3.6.9
172
151
  specification_version: 4
173
152
  summary: A base policy to support management of authorization logic
174
153
  test_files: []
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "ii_policy"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 5.0.0"
4
- gem "sqlite3", "~> 1.3.6"
5
- gem "loofah", "~> 2.19.1"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 5.1.0"
4
- gem "sqlite3", "~> 1.3.6"
5
- gem "loofah", "~> 2.19.1"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 5.2.0"
4
- gem "sqlite3", "~> 1.3.6"
5
- gem "loofah", "~> 2.19.1"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 6.0.0"
4
- gem "sqlite3", "~> 1.4.0"
5
- gem "psych", "~> 3.3.0"
6
-
7
- gemspec path: "../"