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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66b36277a450b0c70ea3b33b8446da7657b789a1fa78c17bfa464309a23f4561
4
- data.tar.gz: d0be03c7b35198615b5072c4ac39425d603671dd08bd339446fbb5146e7726e3
3
+ metadata.gz: 6a8cc9b97479bfc972ad67eebeee55064744265f263142c716251efd384f73e0
4
+ data.tar.gz: d7a762e0e8b5e040110bf5d0092c89c2d6cebdbf30c6b73c49697f73f55edd4e
5
5
  SHA512:
6
- metadata.gz: 89f1d751d29daf813605d7ee026d4c9d01e9fd646d19f9ec2cce3cbd164405ec566a3a7ee47345ad2dcaeb0ae4f9792c8bb40562bfee8b0eff867ea670e834cc
7
- data.tar.gz: c2aaa8e6d4d41f5f2925251f44c7714699d14900db465ee542054296185e6e37bcf61e84190ceaf0ddb633725755920f66a50848dfc77680f8fe3611d096db3c
6
+ metadata.gz: 69af6613072215ce6b7daf52400d973b9d29ce0d09e33d9a2ce57a7cd3effa99835b1b02ce6fcea91cc59704036373998e6886cf38d83494ff557ae5a223e9d8
7
+ data.tar.gz: 620d9a4ab061ff93346917985d355cd9c91b63a3d5a71b84c1aad40189accba73098aeebcc83f4b89df639791f39d6d57224da4a94420be54e206fd988447a39
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 2.6
3
3
  NewCops: enable
4
4
 
5
5
  CacheRootDirectory: /tmp
data/changelog.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0
4
+ - Change ruby version to 2.6
5
+ - bump graphql to 1.13
6
+ - fix tests
7
+
3
8
  ## 0.9.1
4
9
  Fix gem files
5
10
 
@@ -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.4.0')
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', '< 1.13.0'
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
- # rubocop:disable Metrics/ParameterLists
14
- def initialize(*args, authorize: nil,
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module Pundit
5
- VERSION = '0.9.1'
5
+ VERSION = '1'
6
6
  end
7
7
  end
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: 0.9.1
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: 2021-03-02 00:00:00.000000000 Z
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: 1.13.0
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: 1.13.0
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.4.0
248
+ version: 2.6.0
248
249
  required_rubygems_version: !ruby/object:Gem::Requirement
249
250
  requirements:
250
251
  - - ">="