souls 0.30.0 → 0.30.1

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: 5962fa30ee40e4c0970f8f674fb311d006abd7743d6d5163b5c5918fba6a290e
4
- data.tar.gz: 297905b6a9a0e7f341c55de8917947850c895412f034ae6a22911b95cf44b37b
3
+ metadata.gz: eeb1d10d6473bd7f8ca2cadc783485f74d42bd0e9b90ce2206b08041dcdbf546
4
+ data.tar.gz: eff44e2e5adcb4a545a336fb4c7600be28a8f85ddea03e475e58bf72a8dac0e9
5
5
  SHA512:
6
- metadata.gz: 1d02f01e778522c4c9e7a59260d361608acf5117b3c942dbe1b413e30f4b2ccb1494c5866fe6a94ee3c7d8cfcc6fb585f001831db62dbf86c3ff89a185ed7daf
7
- data.tar.gz: e5ba936eb96bb0be0bb1abe6c346e029d57c2c32acfa58f21253d5dc63565025681cd67c60c210899bd6352d9c542d8639be582f79d83989d9acfa3d1b2d2342
6
+ metadata.gz: b5eab8bc9b90e26757ed3369305cc92de003edf4335a19cf36aae5e5f245bbc45a23b41a41e8525df4ef8d051413213f1a0db166092fab3e2b57fc9063683e3c
7
+ data.tar.gz: 1fb92dc68e9bd8674f9b749c1a8d043fdaaea54cb4cffd9bfa1bc8833fa6499a47e0013888d30e229f4f7ed362dfe89ef7e87b4f162566af5e896bff6b4b5b22
data/exe/souls CHANGED
@@ -22,11 +22,16 @@ begin
22
22
  end
23
23
  when "schema:update"
24
24
  class_name = ARGV[2]
25
- Souls::Api::Update.create_mutation(class_name: class_name)
26
- Souls::Api::Update.update_mutation(class_name: class_name)
27
- Souls::Api::Update.rspec_factory(class_name: class_name)
28
- Souls::Api::Update.rspec_mutation(class_name: class_name)
29
- Souls::Api::Update.rspec_resolver(class_name: class_name)
25
+ status = Paint["Running SOULs Update Commands...", :yellow]
26
+ Whirly.start(spinner: "clock", interval: 420, stop: "🎉") do
27
+ Whirly.status = status
28
+ Souls::Api::Update.create_mutation(class_name: class_name)
29
+ Souls::Api::Update.update_mutation(class_name: class_name)
30
+ Souls::Api::Update.rspec_factory(class_name: class_name)
31
+ Souls::Api::Update.rspec_mutation(class_name: class_name)
32
+ Souls::Api::Update.rspec_resolver(class_name: class_name)
33
+ Whirly.status = "Done!"
34
+ end
30
35
  else
31
36
  puts(Paint["Comannd doesn't exist.Check you command again!...", :red])
32
37
  end
@@ -31,7 +31,7 @@ module Souls
31
31
  puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
32
32
  end
33
33
 
34
- def update_update_mutation(class_name: "user")
34
+ def update_mutation(class_name: "user")
35
35
  singularized_class_name = class_name.singularize.underscore
36
36
  new_cols = Souls.get_columns_num(class_name: singularized_class_name)
37
37
  dir_name = "./app/graphql/mutations/base/#{singularized_class_name}"
@@ -22,14 +22,15 @@ module Souls
22
22
  if node_res && !line.include?("{")
23
23
  node_args = check_rspec_resolver_argument(class_name: class_name, action: "node_args")
24
24
  new_cols.each do |col|
25
- new_line.write(" #{col[:column_name].camelize}\n") unless node_args.include?(col[:column_name])
25
+ unless node_args.include?(col[:column_name])
26
+ new_line.write(" #{col[:column_name].camelize}\n")
27
+ end
26
28
  end
27
29
  node_res = false
28
30
  elsif test_res && line.include?("=> be_")
29
31
  test_args = check_rspec_resolver_argument(class_name: class_name, action: "test_args")
30
32
  new_cols.each do |col|
31
33
  type = Souls::Api::Generate.type_check(col[:type])
32
- p type
33
34
  text =
34
35
  case type
35
36
  when "String"
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.30.0".freeze
2
+ VERSION = "0.30.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.30.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
8
8
  - KishiTheMechanic
9
9
  - James Neve
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-08-17 00:00:00.000000000 Z
13
+ date: 2021-08-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -152,7 +152,7 @@ metadata:
152
152
  homepage_uri: https://souls.elsoul.nl
153
153
  source_code_uri: https://github.com/elsoul/souls
154
154
  changelog_uri: https://github.com/elsoul/souls
155
- post_install_message:
155
+ post_install_message:
156
156
  rdoc_options: []
157
157
  require_paths:
158
158
  - lib
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubygems_version: 3.2.22
171
- signing_key:
171
+ signing_key:
172
172
  specification_version: 4
173
173
  summary: SOULs is a Serverless Application Framework with Ruby GraphQL. SOULs has
174
174
  3 strains, API, Worker, and Frontend. It can be used in combination according to