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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e75a809266d43f9c1f712c89d8d20f8156bf7c535de57a61e708920e75bfd044
4
- data.tar.gz: cd0fc519cd00283704edb8cb8892fe4eecf4329553435d8a7b8c36fe2588ae3c
3
+ metadata.gz: dfc16affde84b15f23a6c4d1c97ed25862e5f5b1bfab48570fb8b2882930038e
4
+ data.tar.gz: '094139bfe2171b44beb293ac9467d7cb56965b28b3a90d32620dfb74e1adf88a'
5
5
  SHA512:
6
- metadata.gz: ee85b4b713494dc0ad4ffe7407e4f713184416cb164d4ff7d90e68862c5058924ebbfedb7fc1d51a3b9fd7f68e0ec7b9fd4ac6f86473aeff0b43b2d036ad12fe
7
- data.tar.gz: 8792bf31bf2803ad97f7f58f7c3ce71b2ba49b28b433e5fdfbd37a001b3d5c37844c995b200cc81cbb80aed15e16af82f78ddece504388830241a241ded90116
6
+ metadata.gz: f13ab04eacb55fc25652526912cb8253296072ccd0bedb3f5a71ca67ddf3f66d389d52104d3386989ad293499ae8df768aba0f9ca2c4e2123d86dc94455797a7
7
+ data.tar.gz: e9a15bac295d47b3125948dc9c3cc39a0bc608bbec109575216e342df4759d08e395ef3d72ed286b0bb7a54585fa66efbb9adf7d7fb9b3a5bf3d57c21556fb29
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- souls (0.10.0)
4
+ souls (0.10.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/exe/souls CHANGED
@@ -76,8 +76,8 @@ begin
76
76
  else
77
77
  end
78
78
  when "t", "test"
79
- puts `rubocop`
80
- puts `bundle exec rspec`
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}`
@@ -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
- FileUtils.rm_r("./app/graphql/mutations/#{singularized_class_name}")
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 <<~EOS
751
- def #{class_name.pluralize}
752
- #{class_name.camelize}.all.order(id: :desc)
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"
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI