souls 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 355c7cee19de658ccd9388304dcd579be138cfbf08bf8bf85286e89fb7eed494
4
- data.tar.gz: 865cf06eeab74c947f817b520d88762835ba3d6f5f9c28a15cf8e5a1fd2e601e
3
+ metadata.gz: 36a0dab64172ffc88d5d0b08b585c7ee00a4c592ad0333e514965d325298f6cd
4
+ data.tar.gz: b43bc48a6aa7f62b5399db04164b33312a03f7ec718247bfa516bf5b15800169
5
5
  SHA512:
6
- metadata.gz: 8675b29f4901bc934e3ac67b2ce3d6baacd1df2ded71164a99cda4be3eb7c16d7452e066dcdafc784124481de74deb194629b3b565ee5d35a881411fc788441a
7
- data.tar.gz: ea38542d2c8be19a503829cc4eee72b3576f8b20e89d82fcc66ff921992dbe05fcd19bcbb3db262c173994ce44bd2642082bbe78a6db3e1abe59d34a6f3ed5d8
6
+ metadata.gz: beabb98cd7dd49f9e429ea3b8687a404d1a2eb6e1b3b1c15f6a981e54940d5b2cbf6184587ad8a54493f1d0e5bd6523307e11d017942501cfdc296e9d81b4c7a
7
+ data.tar.gz: fab2fe6850ca6326e6427ab8e5102c17b9dcfc91b67224a496763fae9f7537fcf1b5f5ad5ba35a7e70997ee335f79898eea882d4bf58798f744820fbaad84d9f
data/exe/souls CHANGED
@@ -103,7 +103,10 @@ begin
103
103
  "SOULs!"
104
104
  end
105
105
  when "d"
106
- Souls::Init.delete_all class_name: ARGV[1]
106
+ Souls::Init.add_delete class_name: ARGV[1]
107
+ when "update"
108
+ Souls::Init.add_delete class_name: ARGV[1]
109
+ Souls::Init.single_migrate class_name: ARGV[1]
107
110
  when "db:create"
108
111
  system "rake db:create && rake db:create RACK_ENV=test"
109
112
  when "db:migrate"
@@ -366,6 +366,25 @@ end
366
366
  rspec_resolver_end class_name: singularized_class_name
367
367
  end
368
368
 
369
+ def add_delete class_name: "souls"
370
+ singularized_class_name = class_name.singularize.underscore
371
+ pluralized_class_name = class_name.pluralize.underscore
372
+ FileUtils.rm_rf "./app/graphql/mutations/#{singularized_class_name}"
373
+ FileUtils.rm "./app/graphql/queries/#{singularized_class_name}.rb"
374
+ FileUtils.rm "./app/graphql/queries/#{pluralized_class_name}.rb"
375
+ FileUtils.rm "./app/graphql/resolvers/#{singularized_class_name}_search.rb"
376
+ FileUtils.rm "./app/graphql/types/#{singularized_class_name}_type.rb"
377
+ FileUtils.rm "./app/graphql/types/#{singularized_class_name}_node_type.rb"
378
+ FileUtils.rm "./spec/factories/#{pluralized_class_name}.rb"
379
+ FileUtils.rm "./spec/mutations/#{singularized_class_name}_spec.rb"
380
+ FileUtils.rm "./spec/models/#{singularized_class_name}_spec.rb"
381
+ FileUtils.rm "./spec/queries/#{singularized_class_name}_spec.rb"
382
+ FileUtils.rm "./spec/resolvers/#{singularized_class_name}_search_spec.rb"
383
+ puts "deleted #{class_name.camelize} CRUD!"
384
+ rescue StandardError => error
385
+ puts error
386
+ end
387
+
369
388
  def delete_all class_name: "souls"
370
389
  singularized_class_name = class_name.singularize.underscore
371
390
  pluralized_class_name = class_name.pluralize.underscore
data/lib/souls/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.17.1"
2
+ VERSION = "0.17.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.17.1
4
+ version: 0.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-03-16 00:00:00.000000000 Z
13
+ date: 2021-03-29 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: SOULS is a Web Application Framework for Microservices on Multi Cloud
16
16
  Platform such as Google Cloud Platform, Amazon Web Services, and Alibaba Cloud.