souls 0.10.1 → 0.10.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/Gemfile.lock +1 -1
- data/exe/souls +2 -2
- data/lib/souls/init.rb +11 -14
- data/lib/souls/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfc16affde84b15f23a6c4d1c97ed25862e5f5b1bfab48570fb8b2882930038e
|
|
4
|
+
data.tar.gz: '094139bfe2171b44beb293ac9467d7cb56965b28b3a90d32620dfb74e1adf88a'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f13ab04eacb55fc25652526912cb8253296072ccd0bedb3f5a71ca67ddf3f66d389d52104d3386989ad293499ae8df768aba0f9ca2c4e2123d86dc94455797a7
|
|
7
|
+
data.tar.gz: e9a15bac295d47b3125948dc9c3cc39a0bc608bbec109575216e342df4759d08e395ef3d72ed286b0bb7a54585fa66efbb9adf7d7fb9b3a5bf3d57c21556fb29
|
data/Gemfile.lock
CHANGED
data/exe/souls
CHANGED
|
@@ -76,8 +76,8 @@ begin
|
|
|
76
76
|
else
|
|
77
77
|
end
|
|
78
78
|
when "t", "test"
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
`rubocop`
|
|
80
|
+
`bundle exec rspec`
|
|
81
81
|
when "deploy"
|
|
82
82
|
project_id = Souls.configuration.project_id
|
|
83
83
|
`gcloud builds submit --config=cloudbuild.yml --project #{project_id}`
|
data/lib/souls/init.rb
CHANGED
|
@@ -449,9 +449,9 @@ module Souls
|
|
|
449
449
|
singularized_class_name = class_name.singularize
|
|
450
450
|
if Dir.exist? "./app/graphql/mutations/#{singularized_class_name}"
|
|
451
451
|
create_confirm dir_path: "./app/graphql/mutations/#{singularized_class_name}"
|
|
452
|
-
|
|
452
|
+
else
|
|
453
|
+
Dir.mkdir "./app/graphql/mutations/#{singularized_class_name}"
|
|
453
454
|
end
|
|
454
|
-
Dir.mkdir "./app/graphql/mutations/#{singularized_class_name}"
|
|
455
455
|
create_mutation_head class_name: singularized_class_name
|
|
456
456
|
create_mutation_params class_name: singularized_class_name
|
|
457
457
|
[
|
|
@@ -680,13 +680,13 @@ module Souls
|
|
|
680
680
|
query: query_path,
|
|
681
681
|
mutation: mutation_path,
|
|
682
682
|
add_query_type: [
|
|
683
|
-
"field :#{singularized_class_name}, resolver: Queries::#{singularized_class_name.camelize}",
|
|
684
|
-
"field :#{singularized_class_name.pluralize}, Types::#{singularized_class_name.camelize}Type.connection_type, null: true"
|
|
683
|
+
" field :#{singularized_class_name}, resolver: Queries::#{singularized_class_name.camelize}",
|
|
684
|
+
" field :#{singularized_class_name.pluralize}, Types::#{singularized_class_name.camelize}Type.connection_type, null: true"
|
|
685
685
|
],
|
|
686
686
|
add_mutation_type: [
|
|
687
|
-
"field :create_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Create#{singularized_class_name.camelize}",
|
|
688
|
-
"field :update_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Update#{singularized_class_name.camelize}",
|
|
689
|
-
"field :delete_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Delete#{singularized_class_name.camelize}"
|
|
687
|
+
" field :create_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Create#{singularized_class_name.camelize}",
|
|
688
|
+
" field :update_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Update#{singularized_class_name.camelize}",
|
|
689
|
+
" field :delete_#{singularized_class_name}, mutation: Mutations::#{singularized_class_name.camelize}::Delete#{singularized_class_name.camelize}"
|
|
690
690
|
]
|
|
691
691
|
]
|
|
692
692
|
end
|
|
@@ -745,14 +745,11 @@ module Souls
|
|
|
745
745
|
path[:add_query_type].each { |line| puts line }
|
|
746
746
|
end
|
|
747
747
|
end
|
|
748
|
-
puts "\n\n##Connection Type\n\n"
|
|
748
|
+
puts "\n\n ## Connection Type\n\n"
|
|
749
749
|
get_tables.each do |class_name|
|
|
750
|
-
puts
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
end
|
|
754
|
-
\n
|
|
755
|
-
EOS
|
|
750
|
+
puts " def #{class_name.pluralize}"
|
|
751
|
+
puts " #{class_name.camelize}.all.order(id: :desc)"
|
|
752
|
+
puts " end\n"
|
|
756
753
|
end
|
|
757
754
|
puts "\n#############################################################\n"
|
|
758
755
|
puts "# #\n"
|
data/lib/souls/version.rb
CHANGED