graphql-pundit2 0.9.1 → 1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/changelog.md +5 -0
- data/graphql-pundit2.gemspec +3 -2
- data/lib/graphql-pundit/authorization.rb +2 -3
- data/lib/graphql-pundit/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8cc9b97479bfc972ad67eebeee55064744265f263142c716251efd384f73e0
|
4
|
+
data.tar.gz: d7a762e0e8b5e040110bf5d0092c89c2d6cebdbf30c6b73c49697f73f55edd4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69af6613072215ce6b7daf52400d973b9d29ce0d09e33d9a2ce57a7cd3effa99835b1b02ce6fcea91cc59704036373998e6886cf38d83494ff557ae5a223e9d8
|
7
|
+
data.tar.gz: 620d9a4ab061ff93346917985d355cd9c91b63a3d5a71b84c1aad40189accba73098aeebcc83f4b89df639791f39d6d57224da4a94420be54e206fd988447a39
|
data/.rubocop.yml
CHANGED
data/changelog.md
CHANGED
data/graphql-pundit2.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.description = spec.summary
|
15
15
|
spec.homepage = 'https://github.com/lubosch/graphql-pundit'
|
16
16
|
spec.license = 'MIT'
|
17
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
|
18
18
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
20
20
|
f.match(%r{^(test|spec|features)/})
|
@@ -22,8 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.bindir = 'exe'
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
25
26
|
|
26
|
-
spec.add_dependency 'graphql', '>= 1.6.4', '<
|
27
|
+
spec.add_dependency 'graphql', '>= 1.6.4', '< 2'
|
27
28
|
spec.add_dependency 'pundit', '~> 2.1.0'
|
28
29
|
|
29
30
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
@@ -10,12 +10,11 @@ module GraphQL
|
|
10
10
|
base.include(GraphQL::Pundit::Common)
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
def initialize(*args,
|
14
|
+
authorize: nil,
|
15
15
|
record: nil,
|
16
16
|
policy: nil,
|
17
17
|
**kwargs, &block)
|
18
|
-
# rubocop:enable Metrics/ParameterLists
|
19
18
|
# authorize! is not a valid variable name
|
20
19
|
authorize_bang = kwargs.delete(:authorize!)
|
21
20
|
@record = record if record
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-pundit2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lubomir Vnenk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 1.6.4
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: '2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 1.6.4
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: '2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pundit
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -235,7 +235,8 @@ files:
|
|
235
235
|
homepage: https://github.com/lubosch/graphql-pundit
|
236
236
|
licenses:
|
237
237
|
- MIT
|
238
|
-
metadata:
|
238
|
+
metadata:
|
239
|
+
rubygems_mfa_required: 'true'
|
239
240
|
post_install_message:
|
240
241
|
rdoc_options: []
|
241
242
|
require_paths:
|
@@ -244,7 +245,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
245
|
requirements:
|
245
246
|
- - ">="
|
246
247
|
- !ruby/object:Gem::Version
|
247
|
-
version: 2.
|
248
|
+
version: 2.6.0
|
248
249
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
250
|
requirements:
|
250
251
|
- - ">="
|