miau 1.0.2 → 1.0.3

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: 51787808adea91ad47f3319fa6e213bf6a648a028b58b037510aa4aa4c61a1d9
4
- data.tar.gz: abfba8aa4d1dd6525b6815cf3507f5d2ad6a2c1a100622c3ae9eff6f739e8c7f
3
+ metadata.gz: '008262a0054143f56caffceb6dfa57f195963ff6b98cc07aa6452778f5ad87b5'
4
+ data.tar.gz: 1eca9f4196b9569d0515b9c14da47182fecdd1c05b6bbc388b1f16226bb3ee36
5
5
  SHA512:
6
- metadata.gz: 15281ba513735520710c4d29e8a6791ba429497a826cbb4c05e37e061335eea99ce88f27f53f468be4eb943357ec234e29317b6a889fd51357ed300ed8092641
7
- data.tar.gz: 58fe526fe70fb79ad6c97d216855541b2caa4a5e66307853441bf5c27cd96389d64d5d7d48959926a7d46c72b0f4778884d0a0146939c19a781b1863c71a58b8
6
+ metadata.gz: 62497618e0cb83822bb448d9d6a7fbeac80943163284677033dc1e8b555b42440434ff3f16dec7ed16f1b3b1db629815bd42530cf0de1ea457b2eb2ec6cecc96
7
+ data.tar.gz: f2d0a731b6a61448790ab745332e2d6f4bf9225fbb9aa947a7fa4438f15bb0a1818df4cbec818c5546ced6b166825a8ecabb35b5fdc060482faee7fae097d18e
@@ -8,19 +8,20 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- os: [ubuntu-latest]
12
- ruby: ["2.7", "3.0", "3.2", head]
13
- test_command: ["bundle exec rake test"]
14
- runs-on: ${{ matrix.os }}
11
+ ruby_version: ["2.7", "3.0", "3.2", head]
12
+ gemfile:
13
+ - Gemfile
14
+ - gemfiles/Gemfile.rails-7.1
15
+ - gemfiles/Gemfile.rails-7.0
16
+ - gemfiles/Gemfile.rails-6.1
17
+ runs-on: ubuntu-latest
15
18
 
16
19
  steps:
17
- - uses: actions/checkout@v3
18
- - uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby }}
21
- - name: Bundle install
22
- run: |
23
- bundle config path /home/runner/bundle
24
- bundle install
25
- bundle update
26
- - run: ${{ matrix.test_command }}
20
+ - uses: actions/checkout@v3
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby_version }}
25
+ bundler-cache: true
26
+ - name: Build and test with Rake
27
+ run: bundle exec rake
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.0
1
+ rails-7.1
data/Appraisals ADDED
@@ -0,0 +1,13 @@
1
+ appraise "rails-7.1" do
2
+ gem "rails", "~> 7.1"
3
+ end
4
+
5
+ appraise "rails-7.0" do
6
+ gem "rails", "~> 7.0"
7
+ gem "dryer-config", "~> 7.0"
8
+ end
9
+
10
+ appraise "rails-6.1" do
11
+ gem "rails", "~> 6.1"
12
+ gem "dryer-config", "~> 6.0"
13
+ end
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- miau (1.0.2)
4
+ miau (1.0.3)
5
5
  activesupport
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (7.1.1)
10
+ activesupport (7.1.2)
11
11
  base64
12
12
  bigdecimal
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -17,22 +17,26 @@ GEM
17
17
  minitest (>= 5.1)
18
18
  mutex_m
19
19
  tzinfo (~> 2.0)
20
+ appraisal (2.5.0)
21
+ bundler
22
+ rake
23
+ thor (>= 0.14.0)
20
24
  ast (2.4.2)
21
- base64 (0.1.1)
22
- benchmark-ips (2.12.0)
23
- bigdecimal (3.1.4)
25
+ base64 (0.2.0)
26
+ benchmark-ips (2.13.0)
27
+ bigdecimal (3.1.5)
24
28
  concurrent-ruby (1.2.2)
25
29
  connection_pool (2.4.1)
26
30
  docile (1.4.0)
27
- drb (2.1.1)
31
+ drb (2.2.0)
28
32
  ruby2_keywords
29
33
  i18n (1.14.1)
30
34
  concurrent-ruby (~> 1.0)
31
- json (2.6.3)
35
+ json (2.7.1)
32
36
  language_server-protocol (3.17.0.3)
33
37
  lint_roller (1.1.0)
34
38
  minitest (5.20.0)
35
- mutex_m (0.1.2)
39
+ mutex_m (0.2.0)
36
40
  observr (1.0.5)
37
41
  parallel (1.23.0)
38
42
  parser (3.2.2.4)
@@ -41,15 +45,14 @@ GEM
41
45
  racc (1.7.3)
42
46
  rainbow (3.1.1)
43
47
  rake (13.1.0)
44
- regexp_parser (2.8.2)
48
+ regexp_parser (2.8.3)
45
49
  rexml (3.2.6)
46
50
  ricecream (0.2.1)
47
- rubocop (1.56.4)
48
- base64 (~> 0.1.1)
51
+ rubocop (1.57.2)
49
52
  json (~> 2.3)
50
53
  language_server-protocol (>= 3.17.0)
51
54
  parallel (~> 1.10)
52
- parser (>= 3.2.2.3)
55
+ parser (>= 3.2.2.4)
53
56
  rainbow (>= 2.2.2, < 4.0)
54
57
  regexp_parser (>= 1.8, < 3.0)
55
58
  rexml (>= 3.2.5, < 4.0)
@@ -69,10 +72,10 @@ GEM
69
72
  simplecov_json_formatter (~> 0.1)
70
73
  simplecov-html (0.12.3)
71
74
  simplecov_json_formatter (0.1.4)
72
- standard (1.31.2)
75
+ standard (1.32.1)
73
76
  language_server-protocol (~> 3.17.0.2)
74
77
  lint_roller (~> 1.0)
75
- rubocop (~> 1.56.4)
78
+ rubocop (~> 1.57.2)
76
79
  standard-custom (~> 1.0.0)
77
80
  standard-performance (~> 1.2)
78
81
  standard-custom (1.0.2)
@@ -81,6 +84,7 @@ GEM
81
84
  standard-performance (1.2.1)
82
85
  lint_roller (~> 1.1)
83
86
  rubocop-performance (~> 1.19.1)
87
+ thor (1.3.0)
84
88
  tzinfo (2.0.6)
85
89
  concurrent-ruby (~> 1.0)
86
90
  unicode-display_width (2.5.0)
@@ -89,8 +93,10 @@ PLATFORMS
89
93
  x86_64-linux
90
94
 
91
95
  DEPENDENCIES
96
+ appraisal
92
97
  benchmark-ips
93
98
  miau!
99
+ minitest
94
100
  observr
95
101
  rake
96
102
  ricecream
@@ -98,4 +104,4 @@ DEPENDENCIES
98
104
  standard
99
105
 
100
106
  BUNDLED WITH
101
- 2.4.20
107
+ 2.4.22
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  Miau
2
2
  ====
3
3
  [![Gem Version](https://badge.fury.io/rb/miau.png)](http://badge.fury.io/rb/miau)
4
+ [![GEM Downloads](https://img.shields.io/gem/dt/miau?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/miau)
4
5
 
5
6
  Miau (MIcro AUthorization) is a simple authorization gem for Rails
6
7
  inspired by Pundit and Banken.
@@ -159,6 +160,4 @@ Just the embedding in Rails required some specific knowledge.
159
160
  ## Miscellaneous
160
161
 
161
162
  Copyright (c) 2021-2023 Dittmar Krall (www.matiq.com),
162
- released under the MIT license:
163
-
164
- * https://opensource.org/licenses/MIT
163
+ released under the [MIT license](https://opensource.org/licenses/MIT).
@@ -0,0 +1,15 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.1"
6
+ gem "dryer-config", "~> 6.0"
7
+
8
+ group :test do
9
+ gem "observr"
10
+ gem "standard", require: false
11
+ gem "simplecov", require: false
12
+ gem "benchmark-ips"
13
+ end
14
+
15
+ gemspec path: "../"
@@ -0,0 +1,224 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ miau (1.0.2)
5
+ activesupport
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.7.6)
11
+ actionpack (= 6.1.7.6)
12
+ activesupport (= 6.1.7.6)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.7.6)
16
+ actionpack (= 6.1.7.6)
17
+ activejob (= 6.1.7.6)
18
+ activerecord (= 6.1.7.6)
19
+ activestorage (= 6.1.7.6)
20
+ activesupport (= 6.1.7.6)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.7.6)
23
+ actionpack (= 6.1.7.6)
24
+ actionview (= 6.1.7.6)
25
+ activejob (= 6.1.7.6)
26
+ activesupport (= 6.1.7.6)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.7.6)
30
+ actionview (= 6.1.7.6)
31
+ activesupport (= 6.1.7.6)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.7.6)
37
+ actionpack (= 6.1.7.6)
38
+ activerecord (= 6.1.7.6)
39
+ activestorage (= 6.1.7.6)
40
+ activesupport (= 6.1.7.6)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.7.6)
43
+ activesupport (= 6.1.7.6)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.7.6)
49
+ activesupport (= 6.1.7.6)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.7.6)
52
+ activesupport (= 6.1.7.6)
53
+ activerecord (6.1.7.6)
54
+ activemodel (= 6.1.7.6)
55
+ activesupport (= 6.1.7.6)
56
+ activestorage (6.1.7.6)
57
+ actionpack (= 6.1.7.6)
58
+ activejob (= 6.1.7.6)
59
+ activerecord (= 6.1.7.6)
60
+ activesupport (= 6.1.7.6)
61
+ marcel (~> 1.0)
62
+ mini_mime (>= 1.1.0)
63
+ activesupport (6.1.7.6)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ appraisal (2.5.0)
70
+ bundler
71
+ rake
72
+ thor (>= 0.14.0)
73
+ ast (2.4.2)
74
+ benchmark-ips (2.13.0)
75
+ builder (3.2.4)
76
+ concurrent-ruby (1.2.2)
77
+ crass (1.0.6)
78
+ date (3.3.4)
79
+ docile (1.4.0)
80
+ dryer-config (6.1.4)
81
+ erubi (1.12.0)
82
+ globalid (1.2.1)
83
+ activesupport (>= 6.1)
84
+ i18n (1.14.1)
85
+ concurrent-ruby (~> 1.0)
86
+ json (2.7.1)
87
+ language_server-protocol (3.17.0.3)
88
+ lint_roller (1.1.0)
89
+ loofah (2.22.0)
90
+ crass (~> 1.0.2)
91
+ nokogiri (>= 1.12.0)
92
+ mail (2.8.1)
93
+ mini_mime (>= 0.1.1)
94
+ net-imap
95
+ net-pop
96
+ net-smtp
97
+ marcel (1.0.2)
98
+ method_source (1.0.0)
99
+ mini_mime (1.1.5)
100
+ minitest (5.20.0)
101
+ net-imap (0.4.8)
102
+ date
103
+ net-protocol
104
+ net-pop (0.1.2)
105
+ net-protocol
106
+ net-protocol (0.2.2)
107
+ timeout
108
+ net-smtp (0.4.0)
109
+ net-protocol
110
+ nio4r (2.7.0)
111
+ nokogiri (1.15.5-x86_64-linux)
112
+ racc (~> 1.4)
113
+ observr (1.0.5)
114
+ parallel (1.23.0)
115
+ parser (3.2.2.4)
116
+ ast (~> 2.4.1)
117
+ racc
118
+ racc (1.7.3)
119
+ rack (2.2.8)
120
+ rack-test (2.1.0)
121
+ rack (>= 1.3)
122
+ rails (6.1.7.6)
123
+ actioncable (= 6.1.7.6)
124
+ actionmailbox (= 6.1.7.6)
125
+ actionmailer (= 6.1.7.6)
126
+ actionpack (= 6.1.7.6)
127
+ actiontext (= 6.1.7.6)
128
+ actionview (= 6.1.7.6)
129
+ activejob (= 6.1.7.6)
130
+ activemodel (= 6.1.7.6)
131
+ activerecord (= 6.1.7.6)
132
+ activestorage (= 6.1.7.6)
133
+ activesupport (= 6.1.7.6)
134
+ bundler (>= 1.15.0)
135
+ railties (= 6.1.7.6)
136
+ sprockets-rails (>= 2.0.0)
137
+ rails-dom-testing (2.2.0)
138
+ activesupport (>= 5.0.0)
139
+ minitest
140
+ nokogiri (>= 1.6)
141
+ rails-html-sanitizer (1.6.0)
142
+ loofah (~> 2.21)
143
+ nokogiri (~> 1.14)
144
+ railties (6.1.7.6)
145
+ actionpack (= 6.1.7.6)
146
+ activesupport (= 6.1.7.6)
147
+ method_source
148
+ rake (>= 12.2)
149
+ thor (~> 1.0)
150
+ rainbow (3.1.1)
151
+ rake (13.1.0)
152
+ regexp_parser (2.8.3)
153
+ rexml (3.2.6)
154
+ ricecream (0.2.1)
155
+ rubocop (1.57.2)
156
+ json (~> 2.3)
157
+ language_server-protocol (>= 3.17.0)
158
+ parallel (~> 1.10)
159
+ parser (>= 3.2.2.4)
160
+ rainbow (>= 2.2.2, < 4.0)
161
+ regexp_parser (>= 1.8, < 3.0)
162
+ rexml (>= 3.2.5, < 4.0)
163
+ rubocop-ast (>= 1.28.1, < 2.0)
164
+ ruby-progressbar (~> 1.7)
165
+ unicode-display_width (>= 2.4.0, < 3.0)
166
+ rubocop-ast (1.30.0)
167
+ parser (>= 3.2.1.0)
168
+ rubocop-performance (1.19.1)
169
+ rubocop (>= 1.7.0, < 2.0)
170
+ rubocop-ast (>= 0.4.0)
171
+ ruby-progressbar (1.13.0)
172
+ simplecov (0.22.0)
173
+ docile (~> 1.1)
174
+ simplecov-html (~> 0.11)
175
+ simplecov_json_formatter (~> 0.1)
176
+ simplecov-html (0.12.3)
177
+ simplecov_json_formatter (0.1.4)
178
+ sprockets (4.2.1)
179
+ concurrent-ruby (~> 1.0)
180
+ rack (>= 2.2.4, < 4)
181
+ sprockets-rails (3.4.2)
182
+ actionpack (>= 5.2)
183
+ activesupport (>= 5.2)
184
+ sprockets (>= 3.0.0)
185
+ standard (1.32.1)
186
+ language_server-protocol (~> 3.17.0.2)
187
+ lint_roller (~> 1.0)
188
+ rubocop (~> 1.57.2)
189
+ standard-custom (~> 1.0.0)
190
+ standard-performance (~> 1.2)
191
+ standard-custom (1.0.2)
192
+ lint_roller (~> 1.0)
193
+ rubocop (~> 1.50)
194
+ standard-performance (1.2.1)
195
+ lint_roller (~> 1.1)
196
+ rubocop-performance (~> 1.19.1)
197
+ thor (1.3.0)
198
+ timeout (0.4.1)
199
+ tzinfo (2.0.6)
200
+ concurrent-ruby (~> 1.0)
201
+ unicode-display_width (2.5.0)
202
+ websocket-driver (0.7.6)
203
+ websocket-extensions (>= 0.1.0)
204
+ websocket-extensions (0.1.5)
205
+ zeitwerk (2.6.12)
206
+
207
+ PLATFORMS
208
+ x86_64-linux
209
+
210
+ DEPENDENCIES
211
+ appraisal
212
+ benchmark-ips
213
+ dryer-config (~> 6.0)
214
+ miau!
215
+ minitest
216
+ observr
217
+ rails (~> 6.1)
218
+ rake
219
+ ricecream
220
+ simplecov
221
+ standard
222
+
223
+ BUNDLED WITH
224
+ 2.4.22
@@ -0,0 +1,15 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 7.0"
6
+ gem "dryer-config", "~> 7.0"
7
+
8
+ group :test do
9
+ gem "observr"
10
+ gem "standard", require: false
11
+ gem "simplecov", require: false
12
+ gem "benchmark-ips"
13
+ end
14
+
15
+ gemspec path: "../"
@@ -0,0 +1,256 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ miau (1.0.2)
5
+ activesupport
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (7.1.2)
11
+ actionpack (= 7.1.2)
12
+ activesupport (= 7.1.2)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ zeitwerk (~> 2.6)
16
+ actionmailbox (7.1.2)
17
+ actionpack (= 7.1.2)
18
+ activejob (= 7.1.2)
19
+ activerecord (= 7.1.2)
20
+ activestorage (= 7.1.2)
21
+ activesupport (= 7.1.2)
22
+ mail (>= 2.7.1)
23
+ net-imap
24
+ net-pop
25
+ net-smtp
26
+ actionmailer (7.1.2)
27
+ actionpack (= 7.1.2)
28
+ actionview (= 7.1.2)
29
+ activejob (= 7.1.2)
30
+ activesupport (= 7.1.2)
31
+ mail (~> 2.5, >= 2.5.4)
32
+ net-imap
33
+ net-pop
34
+ net-smtp
35
+ rails-dom-testing (~> 2.2)
36
+ actionpack (7.1.2)
37
+ actionview (= 7.1.2)
38
+ activesupport (= 7.1.2)
39
+ nokogiri (>= 1.8.5)
40
+ racc
41
+ rack (>= 2.2.4)
42
+ rack-session (>= 1.0.1)
43
+ rack-test (>= 0.6.3)
44
+ rails-dom-testing (~> 2.2)
45
+ rails-html-sanitizer (~> 1.6)
46
+ actiontext (7.1.2)
47
+ actionpack (= 7.1.2)
48
+ activerecord (= 7.1.2)
49
+ activestorage (= 7.1.2)
50
+ activesupport (= 7.1.2)
51
+ globalid (>= 0.6.0)
52
+ nokogiri (>= 1.8.5)
53
+ actionview (7.1.2)
54
+ activesupport (= 7.1.2)
55
+ builder (~> 3.1)
56
+ erubi (~> 1.11)
57
+ rails-dom-testing (~> 2.2)
58
+ rails-html-sanitizer (~> 1.6)
59
+ activejob (7.1.2)
60
+ activesupport (= 7.1.2)
61
+ globalid (>= 0.3.6)
62
+ activemodel (7.1.2)
63
+ activesupport (= 7.1.2)
64
+ activerecord (7.1.2)
65
+ activemodel (= 7.1.2)
66
+ activesupport (= 7.1.2)
67
+ timeout (>= 0.4.0)
68
+ activestorage (7.1.2)
69
+ actionpack (= 7.1.2)
70
+ activejob (= 7.1.2)
71
+ activerecord (= 7.1.2)
72
+ activesupport (= 7.1.2)
73
+ marcel (~> 1.0)
74
+ activesupport (7.1.2)
75
+ base64
76
+ bigdecimal
77
+ concurrent-ruby (~> 1.0, >= 1.0.2)
78
+ connection_pool (>= 2.2.5)
79
+ drb
80
+ i18n (>= 1.6, < 2)
81
+ minitest (>= 5.1)
82
+ mutex_m
83
+ tzinfo (~> 2.0)
84
+ appraisal (2.5.0)
85
+ bundler
86
+ rake
87
+ thor (>= 0.14.0)
88
+ ast (2.4.2)
89
+ base64 (0.2.0)
90
+ benchmark-ips (2.13.0)
91
+ bigdecimal (3.1.5)
92
+ builder (3.2.4)
93
+ concurrent-ruby (1.2.2)
94
+ connection_pool (2.4.1)
95
+ crass (1.0.6)
96
+ date (3.3.4)
97
+ docile (1.4.0)
98
+ drb (2.2.0)
99
+ ruby2_keywords
100
+ dryer-config (7.1.0)
101
+ erubi (1.12.0)
102
+ globalid (1.2.1)
103
+ activesupport (>= 6.1)
104
+ i18n (1.14.1)
105
+ concurrent-ruby (~> 1.0)
106
+ io-console (0.7.0)
107
+ irb (1.10.1)
108
+ rdoc
109
+ reline (>= 0.3.8)
110
+ json (2.7.1)
111
+ language_server-protocol (3.17.0.3)
112
+ lint_roller (1.1.0)
113
+ loofah (2.22.0)
114
+ crass (~> 1.0.2)
115
+ nokogiri (>= 1.12.0)
116
+ mail (2.8.1)
117
+ mini_mime (>= 0.1.1)
118
+ net-imap
119
+ net-pop
120
+ net-smtp
121
+ marcel (1.0.2)
122
+ mini_mime (1.1.5)
123
+ minitest (5.20.0)
124
+ mutex_m (0.2.0)
125
+ net-imap (0.4.8)
126
+ date
127
+ net-protocol
128
+ net-pop (0.1.2)
129
+ net-protocol
130
+ net-protocol (0.2.2)
131
+ timeout
132
+ net-smtp (0.4.0)
133
+ net-protocol
134
+ nio4r (2.7.0)
135
+ nokogiri (1.15.5-x86_64-linux)
136
+ racc (~> 1.4)
137
+ observr (1.0.5)
138
+ parallel (1.23.0)
139
+ parser (3.2.2.4)
140
+ ast (~> 2.4.1)
141
+ racc
142
+ psych (5.1.1.1)
143
+ stringio
144
+ racc (1.7.3)
145
+ rack (3.0.8)
146
+ rack-session (2.0.0)
147
+ rack (>= 3.0.0)
148
+ rack-test (2.1.0)
149
+ rack (>= 1.3)
150
+ rackup (2.1.0)
151
+ rack (>= 3)
152
+ webrick (~> 1.8)
153
+ rails (7.1.2)
154
+ actioncable (= 7.1.2)
155
+ actionmailbox (= 7.1.2)
156
+ actionmailer (= 7.1.2)
157
+ actionpack (= 7.1.2)
158
+ actiontext (= 7.1.2)
159
+ actionview (= 7.1.2)
160
+ activejob (= 7.1.2)
161
+ activemodel (= 7.1.2)
162
+ activerecord (= 7.1.2)
163
+ activestorage (= 7.1.2)
164
+ activesupport (= 7.1.2)
165
+ bundler (>= 1.15.0)
166
+ railties (= 7.1.2)
167
+ rails-dom-testing (2.2.0)
168
+ activesupport (>= 5.0.0)
169
+ minitest
170
+ nokogiri (>= 1.6)
171
+ rails-html-sanitizer (1.6.0)
172
+ loofah (~> 2.21)
173
+ nokogiri (~> 1.14)
174
+ railties (7.1.2)
175
+ actionpack (= 7.1.2)
176
+ activesupport (= 7.1.2)
177
+ irb
178
+ rackup (>= 1.0.0)
179
+ rake (>= 12.2)
180
+ thor (~> 1.0, >= 1.2.2)
181
+ zeitwerk (~> 2.6)
182
+ rainbow (3.1.1)
183
+ rake (13.1.0)
184
+ rdoc (6.6.1)
185
+ psych (>= 4.0.0)
186
+ regexp_parser (2.8.3)
187
+ reline (0.4.1)
188
+ io-console (~> 0.5)
189
+ rexml (3.2.6)
190
+ ricecream (0.2.1)
191
+ rubocop (1.57.2)
192
+ json (~> 2.3)
193
+ language_server-protocol (>= 3.17.0)
194
+ parallel (~> 1.10)
195
+ parser (>= 3.2.2.4)
196
+ rainbow (>= 2.2.2, < 4.0)
197
+ regexp_parser (>= 1.8, < 3.0)
198
+ rexml (>= 3.2.5, < 4.0)
199
+ rubocop-ast (>= 1.28.1, < 2.0)
200
+ ruby-progressbar (~> 1.7)
201
+ unicode-display_width (>= 2.4.0, < 3.0)
202
+ rubocop-ast (1.30.0)
203
+ parser (>= 3.2.1.0)
204
+ rubocop-performance (1.19.1)
205
+ rubocop (>= 1.7.0, < 2.0)
206
+ rubocop-ast (>= 0.4.0)
207
+ ruby-progressbar (1.13.0)
208
+ ruby2_keywords (0.0.5)
209
+ simplecov (0.22.0)
210
+ docile (~> 1.1)
211
+ simplecov-html (~> 0.11)
212
+ simplecov_json_formatter (~> 0.1)
213
+ simplecov-html (0.12.3)
214
+ simplecov_json_formatter (0.1.4)
215
+ standard (1.32.1)
216
+ language_server-protocol (~> 3.17.0.2)
217
+ lint_roller (~> 1.0)
218
+ rubocop (~> 1.57.2)
219
+ standard-custom (~> 1.0.0)
220
+ standard-performance (~> 1.2)
221
+ standard-custom (1.0.2)
222
+ lint_roller (~> 1.0)
223
+ rubocop (~> 1.50)
224
+ standard-performance (1.2.1)
225
+ lint_roller (~> 1.1)
226
+ rubocop-performance (~> 1.19.1)
227
+ stringio (3.1.0)
228
+ thor (1.3.0)
229
+ timeout (0.4.1)
230
+ tzinfo (2.0.6)
231
+ concurrent-ruby (~> 1.0)
232
+ unicode-display_width (2.5.0)
233
+ webrick (1.8.1)
234
+ websocket-driver (0.7.6)
235
+ websocket-extensions (>= 0.1.0)
236
+ websocket-extensions (0.1.5)
237
+ zeitwerk (2.6.12)
238
+
239
+ PLATFORMS
240
+ x86_64-linux
241
+
242
+ DEPENDENCIES
243
+ appraisal
244
+ benchmark-ips
245
+ dryer-config (~> 7.0)
246
+ miau!
247
+ minitest
248
+ observr
249
+ rails (~> 7.0)
250
+ rake
251
+ ricecream
252
+ simplecov
253
+ standard
254
+
255
+ BUNDLED WITH
256
+ 2.4.22
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 7.1"
6
+
7
+ group :test do
8
+ gem "observr"
9
+ gem "standard", require: false
10
+ gem "simplecov", require: false
11
+ gem "benchmark-ips"
12
+ end
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,254 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ miau (1.0.2)
5
+ activesupport
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (7.1.2)
11
+ actionpack (= 7.1.2)
12
+ activesupport (= 7.1.2)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ zeitwerk (~> 2.6)
16
+ actionmailbox (7.1.2)
17
+ actionpack (= 7.1.2)
18
+ activejob (= 7.1.2)
19
+ activerecord (= 7.1.2)
20
+ activestorage (= 7.1.2)
21
+ activesupport (= 7.1.2)
22
+ mail (>= 2.7.1)
23
+ net-imap
24
+ net-pop
25
+ net-smtp
26
+ actionmailer (7.1.2)
27
+ actionpack (= 7.1.2)
28
+ actionview (= 7.1.2)
29
+ activejob (= 7.1.2)
30
+ activesupport (= 7.1.2)
31
+ mail (~> 2.5, >= 2.5.4)
32
+ net-imap
33
+ net-pop
34
+ net-smtp
35
+ rails-dom-testing (~> 2.2)
36
+ actionpack (7.1.2)
37
+ actionview (= 7.1.2)
38
+ activesupport (= 7.1.2)
39
+ nokogiri (>= 1.8.5)
40
+ racc
41
+ rack (>= 2.2.4)
42
+ rack-session (>= 1.0.1)
43
+ rack-test (>= 0.6.3)
44
+ rails-dom-testing (~> 2.2)
45
+ rails-html-sanitizer (~> 1.6)
46
+ actiontext (7.1.2)
47
+ actionpack (= 7.1.2)
48
+ activerecord (= 7.1.2)
49
+ activestorage (= 7.1.2)
50
+ activesupport (= 7.1.2)
51
+ globalid (>= 0.6.0)
52
+ nokogiri (>= 1.8.5)
53
+ actionview (7.1.2)
54
+ activesupport (= 7.1.2)
55
+ builder (~> 3.1)
56
+ erubi (~> 1.11)
57
+ rails-dom-testing (~> 2.2)
58
+ rails-html-sanitizer (~> 1.6)
59
+ activejob (7.1.2)
60
+ activesupport (= 7.1.2)
61
+ globalid (>= 0.3.6)
62
+ activemodel (7.1.2)
63
+ activesupport (= 7.1.2)
64
+ activerecord (7.1.2)
65
+ activemodel (= 7.1.2)
66
+ activesupport (= 7.1.2)
67
+ timeout (>= 0.4.0)
68
+ activestorage (7.1.2)
69
+ actionpack (= 7.1.2)
70
+ activejob (= 7.1.2)
71
+ activerecord (= 7.1.2)
72
+ activesupport (= 7.1.2)
73
+ marcel (~> 1.0)
74
+ activesupport (7.1.2)
75
+ base64
76
+ bigdecimal
77
+ concurrent-ruby (~> 1.0, >= 1.0.2)
78
+ connection_pool (>= 2.2.5)
79
+ drb
80
+ i18n (>= 1.6, < 2)
81
+ minitest (>= 5.1)
82
+ mutex_m
83
+ tzinfo (~> 2.0)
84
+ appraisal (2.5.0)
85
+ bundler
86
+ rake
87
+ thor (>= 0.14.0)
88
+ ast (2.4.2)
89
+ base64 (0.2.0)
90
+ benchmark-ips (2.13.0)
91
+ bigdecimal (3.1.5)
92
+ builder (3.2.4)
93
+ concurrent-ruby (1.2.2)
94
+ connection_pool (2.4.1)
95
+ crass (1.0.6)
96
+ date (3.3.4)
97
+ docile (1.4.0)
98
+ drb (2.2.0)
99
+ ruby2_keywords
100
+ erubi (1.12.0)
101
+ globalid (1.2.1)
102
+ activesupport (>= 6.1)
103
+ i18n (1.14.1)
104
+ concurrent-ruby (~> 1.0)
105
+ io-console (0.7.0)
106
+ irb (1.10.1)
107
+ rdoc
108
+ reline (>= 0.3.8)
109
+ json (2.7.1)
110
+ language_server-protocol (3.17.0.3)
111
+ lint_roller (1.1.0)
112
+ loofah (2.22.0)
113
+ crass (~> 1.0.2)
114
+ nokogiri (>= 1.12.0)
115
+ mail (2.8.1)
116
+ mini_mime (>= 0.1.1)
117
+ net-imap
118
+ net-pop
119
+ net-smtp
120
+ marcel (1.0.2)
121
+ mini_mime (1.1.5)
122
+ minitest (5.20.0)
123
+ mutex_m (0.2.0)
124
+ net-imap (0.4.8)
125
+ date
126
+ net-protocol
127
+ net-pop (0.1.2)
128
+ net-protocol
129
+ net-protocol (0.2.2)
130
+ timeout
131
+ net-smtp (0.4.0)
132
+ net-protocol
133
+ nio4r (2.7.0)
134
+ nokogiri (1.15.5-x86_64-linux)
135
+ racc (~> 1.4)
136
+ observr (1.0.5)
137
+ parallel (1.23.0)
138
+ parser (3.2.2.4)
139
+ ast (~> 2.4.1)
140
+ racc
141
+ psych (5.1.1.1)
142
+ stringio
143
+ racc (1.7.3)
144
+ rack (3.0.8)
145
+ rack-session (2.0.0)
146
+ rack (>= 3.0.0)
147
+ rack-test (2.1.0)
148
+ rack (>= 1.3)
149
+ rackup (2.1.0)
150
+ rack (>= 3)
151
+ webrick (~> 1.8)
152
+ rails (7.1.2)
153
+ actioncable (= 7.1.2)
154
+ actionmailbox (= 7.1.2)
155
+ actionmailer (= 7.1.2)
156
+ actionpack (= 7.1.2)
157
+ actiontext (= 7.1.2)
158
+ actionview (= 7.1.2)
159
+ activejob (= 7.1.2)
160
+ activemodel (= 7.1.2)
161
+ activerecord (= 7.1.2)
162
+ activestorage (= 7.1.2)
163
+ activesupport (= 7.1.2)
164
+ bundler (>= 1.15.0)
165
+ railties (= 7.1.2)
166
+ rails-dom-testing (2.2.0)
167
+ activesupport (>= 5.0.0)
168
+ minitest
169
+ nokogiri (>= 1.6)
170
+ rails-html-sanitizer (1.6.0)
171
+ loofah (~> 2.21)
172
+ nokogiri (~> 1.14)
173
+ railties (7.1.2)
174
+ actionpack (= 7.1.2)
175
+ activesupport (= 7.1.2)
176
+ irb
177
+ rackup (>= 1.0.0)
178
+ rake (>= 12.2)
179
+ thor (~> 1.0, >= 1.2.2)
180
+ zeitwerk (~> 2.6)
181
+ rainbow (3.1.1)
182
+ rake (13.1.0)
183
+ rdoc (6.6.1)
184
+ psych (>= 4.0.0)
185
+ regexp_parser (2.8.3)
186
+ reline (0.4.1)
187
+ io-console (~> 0.5)
188
+ rexml (3.2.6)
189
+ ricecream (0.2.1)
190
+ rubocop (1.57.2)
191
+ json (~> 2.3)
192
+ language_server-protocol (>= 3.17.0)
193
+ parallel (~> 1.10)
194
+ parser (>= 3.2.2.4)
195
+ rainbow (>= 2.2.2, < 4.0)
196
+ regexp_parser (>= 1.8, < 3.0)
197
+ rexml (>= 3.2.5, < 4.0)
198
+ rubocop-ast (>= 1.28.1, < 2.0)
199
+ ruby-progressbar (~> 1.7)
200
+ unicode-display_width (>= 2.4.0, < 3.0)
201
+ rubocop-ast (1.30.0)
202
+ parser (>= 3.2.1.0)
203
+ rubocop-performance (1.19.1)
204
+ rubocop (>= 1.7.0, < 2.0)
205
+ rubocop-ast (>= 0.4.0)
206
+ ruby-progressbar (1.13.0)
207
+ ruby2_keywords (0.0.5)
208
+ simplecov (0.22.0)
209
+ docile (~> 1.1)
210
+ simplecov-html (~> 0.11)
211
+ simplecov_json_formatter (~> 0.1)
212
+ simplecov-html (0.12.3)
213
+ simplecov_json_formatter (0.1.4)
214
+ standard (1.32.1)
215
+ language_server-protocol (~> 3.17.0.2)
216
+ lint_roller (~> 1.0)
217
+ rubocop (~> 1.57.2)
218
+ standard-custom (~> 1.0.0)
219
+ standard-performance (~> 1.2)
220
+ standard-custom (1.0.2)
221
+ lint_roller (~> 1.0)
222
+ rubocop (~> 1.50)
223
+ standard-performance (1.2.1)
224
+ lint_roller (~> 1.1)
225
+ rubocop-performance (~> 1.19.1)
226
+ stringio (3.1.0)
227
+ thor (1.3.0)
228
+ timeout (0.4.1)
229
+ tzinfo (2.0.6)
230
+ concurrent-ruby (~> 1.0)
231
+ unicode-display_width (2.5.0)
232
+ webrick (1.8.1)
233
+ websocket-driver (0.7.6)
234
+ websocket-extensions (>= 0.1.0)
235
+ websocket-extensions (0.1.5)
236
+ zeitwerk (2.6.12)
237
+
238
+ PLATFORMS
239
+ x86_64-linux
240
+
241
+ DEPENDENCIES
242
+ appraisal
243
+ benchmark-ips
244
+ miau!
245
+ minitest
246
+ observr
247
+ rails (~> 7.1)
248
+ rake
249
+ ricecream
250
+ simplecov
251
+ standard
252
+
253
+ BUNDLED WITH
254
+ 2.4.22
data/lib/miau/storage.rb CHANGED
@@ -54,9 +54,7 @@ module Miau
54
54
  klass = :application
55
55
  kls = instance_of(klass)
56
56
  act = policy_method(klass, action)
57
- return [kls, act] if kls.respond_to?(act)
58
-
59
- # return nil
57
+ [kls, act] if kls.respond_to?(act)
60
58
  end
61
59
 
62
60
  def run(klass, action, user, resource)
data/lib/miau/version.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Miau
4
- VERSION = "1.0.2" # 2023-11-05
4
+ VERSION = "1.0.3" # 2023-12-13
5
+ # VERSION = "1.0.2" # 2023-11-05
5
6
  # VERSION = "1.0.1" # 2023-04-24
6
7
  # VERSION = "1.0.0" # 2022-01-23
7
8
  # VERSION = "0.1.2" # 2021-12-10
data/miau.gemspec CHANGED
@@ -12,7 +12,6 @@ Gem::Specification.new do |s|
12
12
  resources a given user is allowed to access.
13
13
  EOS
14
14
 
15
- s.metadata["source_code_uri"] = "https://github.com/matique/miau"
16
15
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
16
  s.require_paths = ["lib"]
18
17
 
@@ -25,5 +24,7 @@ Gem::Specification.new do |s|
25
24
  s.add_runtime_dependency "activesupport"
26
25
  s.add_development_dependency "rake"
27
26
 
27
+ s.add_development_dependency "appraisal"
28
+ s.add_development_dependency "minitest"
28
29
  s.add_development_dependency "ricecream"
29
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miau
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-05 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: appraisal
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: ricecream
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -64,11 +92,18 @@ files:
64
92
  - ".gitignore"
65
93
  - ".ruby-gemset"
66
94
  - ".ruby-version"
95
+ - Appraisals
67
96
  - Gemfile
68
97
  - Gemfile.lock
69
98
  - LICENSE
70
99
  - README.md
71
100
  - Rakefile
101
+ - gemfiles/rails_6.1.gemfile
102
+ - gemfiles/rails_6.1.gemfile.lock
103
+ - gemfiles/rails_7.0.gemfile
104
+ - gemfiles/rails_7.0.gemfile.lock
105
+ - gemfiles/rails_7.1.gemfile
106
+ - gemfiles/rails_7.1.gemfile.lock
72
107
  - lib/miau.rb
73
108
  - lib/miau/application_policy.rb
74
109
  - lib/miau/error.rb
@@ -78,8 +113,7 @@ files:
78
113
  homepage: https://github.com/matique/miau
79
114
  licenses:
80
115
  - MIT
81
- metadata:
82
- source_code_uri: https://github.com/matique/miau
116
+ metadata: {}
83
117
  post_install_message:
84
118
  rdoc_options: []
85
119
  require_paths: