souls 0.71.3 → 0.71.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52156ff70c3b7fd4742ad07443a1bc5729816b3730a115e5ace13a81a57a0998
|
4
|
+
data.tar.gz: 907afa86c31254224c42777f4e0ee1c3e74178e00cab632a59cfbdc579c613e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4502d68a1c7a549a03a752c9e879bcdc413a35fcf658dadaf7a7be2724b1f96ea458f3ce8b5b1229dc678a969c01d177aff4f940677447508af0d121bb4e0cc
|
7
|
+
data.tar.gz: 83647a1f3c67570c89ad038e6f5c36db8d044dc9a44a39e9360a8f32fa2a83b2dbe22ffaa6d752fdfbeea4c43513be7ffc644f8876015542f1be9fe26240ffe3
|
@@ -3,9 +3,12 @@ module Souls
|
|
3
3
|
desc "create_mutation_rbs [CLASS_NAME]", "Update GraphQL Type from schema.rb"
|
4
4
|
def create_mutation_rbs(class_name)
|
5
5
|
singularized_class_name = class_name.singularize.underscore
|
6
|
-
new_cols =
|
6
|
+
new_cols = ""
|
7
|
+
Dir.chdir(Souls.get_api_path.to_s) do
|
8
|
+
new_cols = Souls.get_columns_num(class_name: singularized_class_name)
|
9
|
+
end
|
7
10
|
dir_name = "./sig/api/app/graphql/mutations/base/#{singularized_class_name}"
|
8
|
-
new_file_path = "
|
11
|
+
new_file_path = "config/create_mutation.rbs"
|
9
12
|
file_path = "#{dir_name}/create_#{singularized_class_name}.rbs"
|
10
13
|
argument = false
|
11
14
|
resolve = false
|
@@ -65,9 +68,12 @@ module Souls
|
|
65
68
|
desc "update_mutation [CLASS_NAME]", "Update GraphQL Type from schema.rb"
|
66
69
|
def update_mutation_rbs(class_name)
|
67
70
|
singularized_class_name = class_name.singularize.underscore
|
68
|
-
new_cols =
|
71
|
+
new_cols = ""
|
72
|
+
Dir.chdir(Souls.get_api_path.to_s) do
|
73
|
+
new_cols = Souls.get_columns_num(class_name: singularized_class_name)
|
74
|
+
end
|
69
75
|
dir_name = "./sig/api/app/graphql/mutations/base/#{singularized_class_name}"
|
70
|
-
new_file_path = "
|
76
|
+
new_file_path = "config/update_mutation.rbs"
|
71
77
|
file_path = "#{dir_name}/update_#{singularized_class_name}.rbs"
|
72
78
|
argument = false
|
73
79
|
resolve = false
|
@@ -3,9 +3,12 @@ module Souls
|
|
3
3
|
desc "type_rbs [CLASS_NAME]", "Update GraphQL Type from schema.rb"
|
4
4
|
def type_rbs(class_name)
|
5
5
|
singularized_class_name = class_name.singularize.underscore
|
6
|
-
new_cols =
|
6
|
+
new_cols = ""
|
7
|
+
Dir.chdir(Souls.get_api_path.to_s) do
|
8
|
+
new_cols = Souls.get_columns_num(class_name: singularized_class_name)
|
9
|
+
end
|
7
10
|
dir_name = "./sig/api/app/graphql/types"
|
8
|
-
new_file_path = "
|
11
|
+
new_file_path = "config/create_type.rbs"
|
9
12
|
file_path = "#{dir_name}/#{singularized_class_name}_type.rbs"
|
10
13
|
argument = false
|
11
14
|
File.open(file_path) do |f|
|
@@ -16,7 +19,7 @@ module Souls
|
|
16
19
|
if line.include?(" def self.edge_type:")
|
17
20
|
new_line.write(line)
|
18
21
|
argument = false
|
19
|
-
elsif line.include?("def self.
|
22
|
+
elsif line.include?("def self.field:") && !argument
|
20
23
|
new_cols.each_with_index do |col, i|
|
21
24
|
type = Souls.get_type(col[:type])
|
22
25
|
type = "[#{type}]" if col[:array]
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.50.
|
1
|
+
0.50.7
|
@@ -1 +1 @@
|
|
1
|
-
0.50.
|
1
|
+
0.50.7
|