graphql_devise 0.10.1 → 0.11.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 +1 -1
- data/Appraisals +8 -0
- data/CHANGELOG.md +17 -0
- data/graphql_devise.gemspec +3 -3
- data/lib/graphql_devise.rb +20 -4
- data/lib/graphql_devise/default_operations/mutations.rb +20 -0
- data/lib/graphql_devise/default_operations/resolvers.rb +12 -0
- data/lib/graphql_devise/mount_method/operation_preparer.rb +41 -0
- data/lib/graphql_devise/mount_method/operation_preparers/custom_operation_preparer.rb +24 -0
- data/lib/graphql_devise/mount_method/operation_preparers/default_operation_preparer.rb +32 -0
- data/lib/graphql_devise/mount_method/operation_preparers/gql_name_setter.rb +23 -0
- data/lib/graphql_devise/mount_method/operation_preparers/mutation_field_setter.rb +17 -0
- data/lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb +17 -0
- data/lib/graphql_devise/mount_method/operation_preparers/resource_name_setter.rb +17 -0
- data/lib/graphql_devise/mount_method/operation_sanitizer.rb +29 -0
- data/lib/graphql_devise/mount_method/option_sanitizer.rb +18 -0
- data/lib/graphql_devise/mount_method/option_sanitizers/array_checker.rb +26 -0
- data/lib/graphql_devise/mount_method/option_sanitizers/class_checker.rb +26 -0
- data/lib/graphql_devise/mount_method/option_sanitizers/hash_checker.rb +24 -0
- data/lib/graphql_devise/mount_method/option_sanitizers/string_checker.rb +21 -0
- data/lib/graphql_devise/mount_method/option_validators/provided_operations_validator.rb +24 -0
- data/lib/graphql_devise/mount_method/option_validators/skip_only_validator.rb +20 -0
- data/lib/graphql_devise/mount_method/option_validators/supported_operations_validator.rb +24 -0
- data/lib/graphql_devise/mount_method/options_validator.rb +16 -0
- data/lib/graphql_devise/mount_method/supported_options.rb +18 -0
- data/{app/graphql → lib}/graphql_devise/mutations/base.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/mutations/login.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/mutations/logout.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/mutations/resend_confirmation.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/mutations/send_password_reset.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/mutations/sign_up.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/mutations/update_password.rb +0 -0
- data/lib/graphql_devise/rails/routes.rb +57 -85
- data/{app/graphql → lib}/graphql_devise/resolvers/base.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/resolvers/check_password_token.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/resolvers/confirm_account.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/resolvers/dummy.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/types/authenticatable_type.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/types/credential_type.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/types/mutation_type.rb +0 -0
- data/{app/graphql → lib}/graphql_devise/types/query_type.rb +0 -0
- data/lib/graphql_devise/version.rb +1 -1
- data/spec/services/mount_method/operation_preparer_spec.rb +30 -0
- data/spec/services/mount_method/operation_preparers/custom_operation_preparer_spec.rb +43 -0
- data/spec/services/mount_method/operation_preparers/default_operation_preparer_spec.rb +60 -0
- data/spec/services/mount_method/operation_preparers/gql_name_setter_spec.rb +16 -0
- data/spec/services/mount_method/operation_preparers/mutation_field_setter_spec.rb +16 -0
- data/spec/services/mount_method/operation_preparers/resolver_type_setter_spec.rb +16 -0
- data/spec/services/mount_method/operation_preparers/resource_name_setter_spec.rb +14 -0
- data/spec/services/mount_method/operation_sanitizer_spec.rb +33 -0
- data/spec/services/mount_method/option_sanitizer_spec.rb +85 -0
- data/spec/services/mount_method/option_sanitizers/array_checker_spec.rb +38 -0
- data/spec/services/mount_method/option_sanitizers/class_checker_spec.rb +44 -0
- data/spec/services/mount_method/option_sanitizers/hash_checker_spec.rb +85 -0
- data/spec/services/mount_method/option_sanitizers/string_checker_spec.rb +30 -0
- data/spec/services/mount_method/option_validators/provided_operations_validator_spec.rb +57 -0
- data/spec/services/mount_method/option_validators/skip_only_validator_spec.rb +31 -0
- data/spec/services/mount_method/option_validators/supported_operations_validator_spec.rb +35 -0
- data/spec/services/mount_method/options_validator_spec.rb +36 -0
- metadata +79 -39
- data/gemfiles/.bundle/config +0 -2
- data/gemfiles/rails4.2_graphql1.8.gemfile +0 -10
- data/gemfiles/rails5.0_graphql1.8.gemfile +0 -11
- data/gemfiles/rails5.0_graphql1.9.gemfile +0 -9
- data/gemfiles/rails5.1_graphql1.8.gemfile +0 -11
- data/gemfiles/rails5.1_graphql1.9.gemfile +0 -9
- data/gemfiles/rails5.2_graphql1.10.gemfile +0 -9
- data/gemfiles/rails5.2_graphql1.8.gemfile +0 -11
- data/gemfiles/rails5.2_graphql1.9.gemfile +0 -9
- data/gemfiles/rails6.0_graphql1.10.gemfile +0 -10
- data/gemfiles/rails6.0_graphql1.8.gemfile +0 -10
- data/gemfiles/rails6.0_graphql1.9.gemfile +0 -10
- data/gemfiles/rails6.0_graphql_edge.gemfile +0 -11
- data/gemfiles/rails_edge_graphql_edge.gemfile +0 -11
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "sqlite3", "~> 1.4"
|
6
|
-
gem "devise_token_auth", github: "lynndylanhurley/devise_token_auth", branch: "master"
|
7
|
-
gem "devise", ">= 4.7"
|
8
|
-
gem "rails", github: "rails/rails", branch: "6-0-stable"
|
9
|
-
gem "graphql", github: "rmosolgo/graphql-ruby", branch: "master"
|
10
|
-
|
11
|
-
gemspec path: "../"
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "sqlite3", "~> 1.4"
|
6
|
-
gem "devise_token_auth", github: "lynndylanhurley/devise_token_auth", branch: "master"
|
7
|
-
gem "devise", ">= 4.7"
|
8
|
-
gem "rails", github: "rails/rails", branch: "master"
|
9
|
-
gem "graphql", github: "rmosolgo/graphql-ruby", branch: "master"
|
10
|
-
|
11
|
-
gemspec path: "../"
|