graphql_devise 1.1.0 → 1.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: 7325ecea583beb248fe28de9d2421121ddbff9776178bca006d16880b39867df
4
- data.tar.gz: 7005c49c45623fa02a7f6ebd1f72d893890264564ad91ae2628814c99d811a24
3
+ metadata.gz: 74d9d933b61c35ed0c51283a9455dea4cf57c9752ee80bd9622695ff07e2788f
4
+ data.tar.gz: 0b3bf0a42e3ace013b4709076c731a06c4e2955eec852d9d5d2d8288c634f114
5
5
  SHA512:
6
- metadata.gz: da309b6629078b7e83ac491958b613ac501be53f9166de18f0bb5df8256e4d906012454770fc76bca2c5c4b0c2b6803dec01ad58a0c8553ccbd182033f9daf6e
7
- data.tar.gz: 5109daf3bd8103f7c70e723ed7f096e5e4b3c1eb1ebe36d02f3b7d9bea693dcc0eaf41a7f9147d1588cb7a56cd7ecccfeff1c9ecec20c9ea802ceba7794665c2
6
+ metadata.gz: 168ab031a4a2028f06e6bc0177fa04ce2c5341aede479cb502f99cc0738246c6d90d13cb849d763110820b6a98840b2a6a0677a8b8ea7596ff58d3e545d87b1e
7
+ data.tar.gz: c1051fbfe8b466c5818232afafff64d17fab8880e4c9395f84e86280c0355928b59ef2c31331ae6bc78a92f0cda5bdb8dafba03eae1f50483b8fa07d4848c39f
data/.circleci/config.yml CHANGED
@@ -20,13 +20,13 @@ jobs:
20
20
  - checkout
21
21
  - restore_cache:
22
22
  keys:
23
- - v1.0-<< parameters.gemfile >>-<< parameters.ruby-version >>
23
+ - v2.0-<< parameters.gemfile >>-<< parameters.ruby-version >>
24
24
  - run: gem install bundler -v '1.17'
25
25
  - run:
26
26
  name: Install dependencies
27
27
  command: bundle install
28
28
  - save_cache:
29
- key: v1.0-<< parameters.gemfile >>-<< parameters.ruby-version >>
29
+ key: v2.0-<< parameters.gemfile >>-<< parameters.ruby-version >>
30
30
  paths:
31
31
  - vendor/bundle
32
32
  - run:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.1.1](https://github.com/graphql-devise/graphql_devise/tree/v1.1.1) (2022-10-20)
4
+
5
+ [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.1.0...v1.1.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Cannot make it work with Mongoid [\#244](https://github.com/graphql-devise/graphql_devise/issues/244)
10
+ - Fix Mongoid Support [\#245](https://github.com/graphql-devise/graphql_devise/pull/245) ([jpmermoz](https://github.com/jpmermoz))
11
+
3
12
  ## [v1.1.0](https://github.com/graphql-devise/graphql_devise/tree/v1.1.0) (2022-09-15)
4
13
 
5
14
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v1.0.1...v1.1.0)
@@ -6,7 +6,10 @@ module GraphqlDevise
6
6
 
7
7
  class_methods do
8
8
  def reconfirmable
9
- devise_modules.include?(:confirmable) && column_names.include?('unconfirmed_email')
9
+ column_attributes = try(:column_names) || []
10
+ fields_attributes = try(:fields)&.keys || []
11
+ has_unconfirmed_email_attr = column_attributes.include?('unconfirmed_email') || fields_attributes.include?('unconfirmed_email')
12
+ devise_modules.include?(:confirmable) && has_unconfirmed_email_attr
10
13
  end
11
14
  end
12
15
 
@@ -85,7 +85,7 @@ module GraphqlDevise
85
85
  end
86
86
 
87
87
  def find_resource(field, value)
88
- if resource_class.connection.adapter_name.downcase.include?('mysql')
88
+ if resource_class.respond_to?(:connection) && resource_class.connection.adapter_name.downcase.include?('mysql')
89
89
  # fix for mysql default case insensitivity
90
90
  resource_class.where("BINARY #{field} = ? AND provider= ?", value, provider).first
91
91
  elsif Gem::Version.new(DeviseTokenAuth::VERSION) < Gem::Version.new('1.1.0')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphqlDevise
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Celi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-09-15 00:00:00.000000000 Z
12
+ date: 2022-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: devise_token_auth
@@ -526,7 +526,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
526
526
  - !ruby/object:Gem::Version
527
527
  version: '0'
528
528
  requirements: []
529
- rubygems_version: 3.3.22
529
+ rubygems_version: 3.3.24
530
530
  signing_key:
531
531
  specification_version: 4
532
532
  summary: GraphQL queries and mutations on top of devise_token_auth