souls 0.71.1 → 0.71.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9120fde6e7d3918ad809f00d7c19c381273d548b0c1ba15e4d69174217f1f0d1
|
4
|
+
data.tar.gz: d42ff7f40a4e8ad5e2d77f20a8e557ca35f7de53980bbc2f3c353205a5109f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af1bcf92a21b3420d659332a6ce34b05add7f3281b7fe8ade18bc3d240cc8bd779921d78ff1cacfd56b0e97727385def8b294cb53b1025184cee24d19c62c12d
|
7
|
+
data.tar.gz: 0bc4d48031e7a48b4ee470983e6147e4fd27e7ae73b5389917bd3f18b788d9e4433aaf1158e0296986295dfbd46acec73000c8097df17dbbb3b0f84bfbdb287f
|
@@ -23,8 +23,6 @@ module Souls
|
|
23
23
|
new_cols.each_with_index do |col, i|
|
24
24
|
type = Souls.type_check(col[:type])
|
25
25
|
type = "[#{type}]" if col[:array]
|
26
|
-
args = check_mutation_argument(class_name: class_name)
|
27
|
-
next if args.include?(col[:column_name])
|
28
26
|
next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
|
29
27
|
|
30
28
|
if i.zero?
|
@@ -38,8 +36,6 @@ module Souls
|
|
38
36
|
new_cols.each_with_index do |col, i|
|
39
37
|
type = Souls.type_check(col[:type])
|
40
38
|
type = "[#{type}]" if col[:array]
|
41
|
-
args = check_mutation_argument(class_name: class_name)
|
42
|
-
next if args.include?(col[:column_name])
|
43
39
|
next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
|
44
40
|
|
45
41
|
if i.zero?
|
@@ -89,8 +85,6 @@ module Souls
|
|
89
85
|
new_cols.each_with_index do |col, i|
|
90
86
|
type = Souls.type_check(col[:type])
|
91
87
|
type = "[#{type}]" if col[:array]
|
92
|
-
args = check_mutation_argument(class_name: class_name)
|
93
|
-
next if args.include?(col[:column_name])
|
94
88
|
next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
|
95
89
|
|
96
90
|
if i.zero?
|
@@ -105,8 +99,6 @@ module Souls
|
|
105
99
|
new_cols.each_with_index do |col, i|
|
106
100
|
type = Souls.type_check(col[:type])
|
107
101
|
type = "[#{type}]" if col[:array]
|
108
|
-
args = check_mutation_argument(class_name: class_name)
|
109
|
-
next if args.include?(col[:column_name])
|
110
102
|
next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
|
111
103
|
|
112
104
|
if i.zero?
|
@@ -132,20 +124,5 @@ module Souls
|
|
132
124
|
rescue Thor::Error => e
|
133
125
|
raise(Thor::Error, e)
|
134
126
|
end
|
135
|
-
|
136
|
-
private
|
137
|
-
|
138
|
-
def check_mutation_argument(class_name: "user", action: "create")
|
139
|
-
singularized_class_name = class_name.singularize.underscore
|
140
|
-
dir_name = "./sig/api/app/graphql/mutations/base/#{singularized_class_name}"
|
141
|
-
file_path = "#{dir_name}/#{action}_#{singularized_class_name}.rbs"
|
142
|
-
args = []
|
143
|
-
File.open(file_path) do |f|
|
144
|
-
f.each_line do |line|
|
145
|
-
args << line.split(",")[0].gsub("argument :", "").strip.underscore if line.include?("argument")
|
146
|
-
end
|
147
|
-
end
|
148
|
-
args
|
149
|
-
end
|
150
127
|
end
|
151
128
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.50.
|
1
|
+
0.50.2
|
@@ -1 +1 @@
|
|
1
|
-
0.50.
|
1
|
+
0.50.2
|