graphql_devise 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Appraisals +13 -0
- data/CHANGELOG.md +20 -0
- data/README.md +5 -0
- data/gemfiles/rails5.2_graphql1.10.gemfile +9 -0
- data/gemfiles/rails6.0_graphql1.10.gemfile +10 -0
- data/lib/graphql_devise/rails/routes.rb +4 -1
- data/lib/graphql_devise/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe858d6f23e94afcd3ceda214e226c481be42610c562ce2c409ce0146ba930b3
|
4
|
+
data.tar.gz: bb1252da47c939b6d8643975847acc57f3ae7a2abd4edf1d30717f0f0f1dce3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a26de357c7dc92c7326e1251fd920704359fe15b72841d8db4a2903cc74291023b8614e0fff99a3d6a99c65c73dbba70c805033d91967a8684108e170d46ca4a
|
7
|
+
data.tar.gz: 37576fd86f5921201be2b694fe83b55746949e4d79bc08e9b08dc0f753fec43709f344667c5a5ec73a0f8e07b956cb9fce968d97f211949cde4f09b18fc38d82
|
data/.travis.yml
CHANGED
@@ -20,6 +20,7 @@ gemfile:
|
|
20
20
|
- gemfiles/rails5.1_graphql1.9.gemfile
|
21
21
|
- gemfiles/rails5.2_graphql1.8.gemfile
|
22
22
|
- gemfiles/rails5.2_graphql1.9.gemfile
|
23
|
+
- gemfiles/rails5.2_graphql1.10.gemfile
|
23
24
|
|
24
25
|
jobs:
|
25
26
|
include:
|
@@ -31,6 +32,10 @@ jobs:
|
|
31
32
|
rvm: 2.5.7
|
32
33
|
- gemfile: gemfiles/rails6.0_graphql1.9.gemfile
|
33
34
|
rvm: 2.6.5
|
35
|
+
- gemfile: gemfiles/rails6.0_graphql1.10.gemfile
|
36
|
+
rvm: 2.5.7
|
37
|
+
- gemfile: gemfiles/rails6.0_graphql1.10.gemfile
|
38
|
+
rvm: 2.6.5
|
34
39
|
- gemfile: gemfiles/rails_edge_graphql_edge.gemfile
|
35
40
|
rvm: 2.5.7
|
36
41
|
- gemfile: gemfiles/rails_edge_graphql_edge.gemfile
|
data/Appraisals
CHANGED
@@ -47,6 +47,12 @@ appraise 'rails5.2-graphql1.9' do
|
|
47
47
|
gem 'graphql', '~> 1.9.0'
|
48
48
|
end
|
49
49
|
|
50
|
+
appraise 'rails5.2-graphql1.10' do
|
51
|
+
gem 'sqlite3', '~> 1.3.6'
|
52
|
+
gem 'rails', github: 'rails/rails', branch: '5-2-stable'
|
53
|
+
gem 'graphql', '~> 1.10.0'
|
54
|
+
end
|
55
|
+
|
50
56
|
appraise 'rails6.0-graphql1.8' do
|
51
57
|
gem 'sqlite3', '~> 1.4'
|
52
58
|
gem 'devise', '>= 4.7'
|
@@ -61,6 +67,13 @@ appraise 'rails6.0-graphql1.9' do
|
|
61
67
|
gem 'graphql', '~> 1.9.0'
|
62
68
|
end
|
63
69
|
|
70
|
+
appraise 'rails6.0-graphql1.10' do
|
71
|
+
gem 'sqlite3', '~> 1.4'
|
72
|
+
gem 'devise', '>= 4.7'
|
73
|
+
gem 'rails', github: 'rails/rails', branch: '6-0-stable'
|
74
|
+
gem 'graphql', '~> 1.10.0'
|
75
|
+
end
|
76
|
+
|
64
77
|
appraise 'rails_edge-graphql_edge' do
|
65
78
|
gem 'sqlite3', '~> 1.4'
|
66
79
|
gem 'devise_token_auth', github: 'lynndylanhurley/devise_token_auth', branch: 'master'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.9.2](https://github.com/graphql-devise/graphql_devise/tree/v0.9.2) (2020-02-03)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.9.1...v0.9.2)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Fix bug with GQL 1.10 [\#62](https://github.com/graphql-devise/graphql_devise/pull/62) ([mcelicalderon](https://github.com/mcelicalderon))
|
10
|
+
|
11
|
+
**Fixed bugs:**
|
12
|
+
|
13
|
+
- mutation': Second definition of 'mutation\(...\)' \(GraphqlDevise::Types::MutationType\) is invalid [\#59](https://github.com/graphql-devise/graphql_devise/issues/59)
|
14
|
+
|
15
|
+
**Merged pull requests:**
|
16
|
+
|
17
|
+
- Add mailer locale doc [\#44](https://github.com/graphql-devise/graphql_devise/pull/44) ([aarona](https://github.com/aarona))
|
18
|
+
|
19
|
+
## [v0.9.1](https://github.com/graphql-devise/graphql_devise/tree/v0.9.1) (2019-12-26)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.9.0...v0.9.1)
|
22
|
+
|
3
23
|
## [v0.9.0](https://github.com/graphql-devise/graphql_devise/tree/v0.9.0) (2019-12-26)
|
4
24
|
|
5
25
|
[Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.8.1...v0.9.0)
|
data/README.md
CHANGED
@@ -141,6 +141,11 @@ so if you want to change them, place yours on the same dir structure on your Rai
|
|
141
141
|
The main reason for this difference is just to make it easier to have both Standard `Devise` and this gem running at the same time.
|
142
142
|
Check [these files](app/views/graphql_devise/mailer) to see the available helper methods you can use in your views.
|
143
143
|
|
144
|
+
### I18n
|
145
|
+
GraphQL Devise supports locales. For example, the `graphql_devise.confirmations.send_instructions` locale setting supports the `%{email}` variable in case you would like to include it in the resend confirmation instructions for the user. Take a look at our [locale file](https://github.com/graphql-devise/graphql_devise/blob/master/config/locales/en.yml) to see all of the available messages.
|
146
|
+
|
147
|
+
Keep in mind that if your app uses multiple locales, you should set the `I18n.locale` accordingly. You can learn how to do this [here](https://guides.rubyonrails.org/i18n.html).
|
148
|
+
|
144
149
|
### Authenticating Controller Actions
|
145
150
|
Just like with Devise or DTA, you will need to authenticate users in your controllers.
|
146
151
|
For this you need to call `authenticate_<model>!` in a before_action hook of your controller.
|
@@ -63,7 +63,10 @@ module ActionDispatch::Routing
|
|
63
63
|
GraphqlDevise::Types::MutationType.field("#{mapping_name}_#{action}", mutation: used_mutation)
|
64
64
|
end
|
65
65
|
|
66
|
-
|
66
|
+
if used_mutations.present? &&
|
67
|
+
(Gem::Version.new(GraphQL::VERSION) <= Gem::Version.new('1.10.0') || GraphqlDevise::Schema.mutation.nil?)
|
68
|
+
GraphqlDevise::Schema.mutation(GraphqlDevise::Types::MutationType)
|
69
|
+
end
|
67
70
|
|
68
71
|
used_queries = if only_operations.present?
|
69
72
|
default_queries.slice(*only_operations)
|
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: 0.9.
|
4
|
+
version: 0.9.2
|
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:
|
12
|
+
date: 2020-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise_token_auth
|
@@ -307,8 +307,10 @@ files:
|
|
307
307
|
- gemfiles/rails5.0_graphql1.9.gemfile
|
308
308
|
- gemfiles/rails5.1_graphql1.8.gemfile
|
309
309
|
- gemfiles/rails5.1_graphql1.9.gemfile
|
310
|
+
- gemfiles/rails5.2_graphql1.10.gemfile
|
310
311
|
- gemfiles/rails5.2_graphql1.8.gemfile
|
311
312
|
- gemfiles/rails5.2_graphql1.9.gemfile
|
313
|
+
- gemfiles/rails6.0_graphql1.10.gemfile
|
312
314
|
- gemfiles/rails6.0_graphql1.8.gemfile
|
313
315
|
- gemfiles/rails6.0_graphql1.9.gemfile
|
314
316
|
- gemfiles/rails_edge_graphql_edge.gemfile
|