ralphql_generator 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/gql/gql_generator.rb +1 -1
- data/lib/generators/gql/templates/exemple.graphql.rb +1 -1
- data/lib/generators/gql_mutation/templates/exemple_mutation.graphql.rb +1 -1
- data/lib/generators/gql_show/gql_show_generator.rb +1 -1
- data/lib/ralphql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4299d6b8fbdd0d7dee60e742bd3b6c8fc62f9f7b9a680a039af8048fda184d8e
|
4
|
+
data.tar.gz: 6731f35a3d7ad4912f00568c5e012f40f0a806ee966d39c9fda376dcf27f0712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5199549fb8225e2ff343a8a0ddf4ddb9db07b79781d06a93fa6d17db46461240718dff51626b9f1e20246bc4973a8f8fb53d2c1dc7b874a770c225c96d3498d9
|
7
|
+
data.tar.gz: 8375257536a367cb4ee0641ebf01fed5c46234c54130b764dc6014ddd323492258f119fc0508d4f68aa008472eef2cc725beb1313a5ee89d0297551b7a96632a
|
@@ -7,7 +7,7 @@ class GqlGenerator < Rails::Generators::NamedBase
|
|
7
7
|
template 'exemple_policy.rb', File.join('app/policies/', "#{file_name.underscore}_policy.rb")
|
8
8
|
template 'exemple_spec.rb', File.join('spec/graphql/queries/types', "query_type_#{file_name.underscore.pluralize}_spec.rb")
|
9
9
|
template 'exemple_resolver.rb', File.join('app/graphql/resolvers', "#{file_name.underscore}_resolver.rb")
|
10
|
-
template 'exemple.graphql.rb', File.join('spec/fixtures/graphql', "#{file_name.underscore.pluralize}.graphql")
|
10
|
+
template 'exemple.graphql.rb', File.join('spec/fixtures/graphql/queries', "#{file_name.underscore.pluralize}.graphql")
|
11
11
|
template 'exemple_type.rb', File.join('app/graphql/types', "#{file_name.underscore}_type.rb")
|
12
12
|
insert_into_query_type
|
13
13
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
query <%= class_name.camelize(:lower).pluralize %>{
|
2
2
|
<%= class_name.camelize(:lower).pluralize %>{
|
3
|
-
nodes{
|
3
|
+
nodes {
|
4
4
|
<%- class_name.constantize.columns.each do |column| -%>
|
5
5
|
<%- next if class_name.constantize.reflect_on_all_associations.map(&:foreign_key).include?(column.name) -%>
|
6
6
|
<%= column.name.camelize(:lower)%>
|
@@ -5,7 +5,7 @@ class GqlShowGenerator < Rails::Generators::NamedBase
|
|
5
5
|
|
6
6
|
def create_gql_file
|
7
7
|
template 'exemple_spec.rb', File.join('spec/graphql/queries/types', "query_type_#{file_name.underscore}_spec.rb")
|
8
|
-
template 'exemple.graphql.rb', File.join('spec/fixtures/graphql', "#{file_name.underscore}.graphql")
|
8
|
+
template 'exemple.graphql.rb', File.join('spec/fixtures/graphql/queries', "#{file_name.underscore}.graphql")
|
9
9
|
insert_into_query_type
|
10
10
|
end
|
11
11
|
|
data/lib/ralphql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ralphql_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Delpierre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|