pundit 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -3
- data/.travis.yml +1 -0
- data/CHANGELOG.md +13 -1
- data/README.md +24 -10
- data/lib/generators/pundit/install/templates/application_policy.rb +1 -1
- data/lib/generators/pundit/policy/templates/policy.rb +4 -3
- data/lib/pundit/authorization.rb +168 -0
- data/lib/pundit/version.rb +1 -1
- data/lib/pundit.rb +17 -170
- data/pundit.gemspec +2 -1
- data/spec/authorization_spec.rb +258 -0
- data/spec/generators_spec.rb +43 -0
- data/spec/policy_finder_spec.rb +1 -1
- data/spec/pundit_spec.rb +33 -239
- data/spec/spec_helper.rb +10 -3
- metadata +27 -8
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pundit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
8
8
|
- Varvet AB
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -81,6 +81,20 @@ dependencies:
|
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: railties
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 3.0.0
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 3.0.0
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: rake
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,14 +129,14 @@ dependencies:
|
|
115
129
|
requirements:
|
116
130
|
- - '='
|
117
131
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
132
|
+
version: 1.24.0
|
119
133
|
type: :development
|
120
134
|
prerelease: false
|
121
135
|
version_requirements: !ruby/object:Gem::Requirement
|
122
136
|
requirements:
|
123
137
|
- - '='
|
124
138
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
139
|
+
version: 1.24.0
|
126
140
|
- !ruby/object:Gem::Dependency
|
127
141
|
name: simplecov
|
128
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,10 +195,13 @@ files:
|
|
181
195
|
- lib/generators/test_unit/policy_generator.rb
|
182
196
|
- lib/generators/test_unit/templates/policy_test.rb
|
183
197
|
- lib/pundit.rb
|
198
|
+
- lib/pundit/authorization.rb
|
184
199
|
- lib/pundit/policy_finder.rb
|
185
200
|
- lib/pundit/rspec.rb
|
186
201
|
- lib/pundit/version.rb
|
187
202
|
- pundit.gemspec
|
203
|
+
- spec/authorization_spec.rb
|
204
|
+
- spec/generators_spec.rb
|
188
205
|
- spec/policies/post_policy_spec.rb
|
189
206
|
- spec/policy_finder_spec.rb
|
190
207
|
- spec/pundit_spec.rb
|
@@ -193,7 +210,7 @@ homepage: https://github.com/varvet/pundit
|
|
193
210
|
licenses:
|
194
211
|
- MIT
|
195
212
|
metadata: {}
|
196
|
-
post_install_message:
|
213
|
+
post_install_message:
|
197
214
|
rdoc_options: []
|
198
215
|
require_paths:
|
199
216
|
- lib
|
@@ -208,11 +225,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
225
|
- !ruby/object:Gem::Version
|
209
226
|
version: '0'
|
210
227
|
requirements: []
|
211
|
-
rubygems_version: 3.2.
|
212
|
-
signing_key:
|
228
|
+
rubygems_version: 3.2.32
|
229
|
+
signing_key:
|
213
230
|
specification_version: 4
|
214
231
|
summary: OO authorization for Rails
|
215
232
|
test_files:
|
233
|
+
- spec/authorization_spec.rb
|
234
|
+
- spec/generators_spec.rb
|
216
235
|
- spec/policies/post_policy_spec.rb
|
217
236
|
- spec/policy_finder_spec.rb
|
218
237
|
- spec/pundit_spec.rb
|