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 +4 -4
- data/exe/souls +4 -1
- data/lib/souls/generate.rb +19 -0
- data/lib/souls/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: 36a0dab64172ffc88d5d0b08b585c7ee00a4c592ad0333e514965d325298f6cd
|
4
|
+
data.tar.gz: b43bc48a6aa7f62b5399db04164b33312a03f7ec718247bfa516bf5b15800169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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"
|
data/lib/souls/generate.rb
CHANGED
@@ -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
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.
|
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-
|
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.
|