souls 0.58.3 → 0.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls/api/generate/mutation.rb +1 -0
- data/lib/souls/api/generate/mutation_rbs.rb +3 -2
- data/lib/souls/api/generate/type_rbs.rb +3 -3
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46507929480b7bc965571ef20851ad47800464783f58f5282935458b157c2cb8
|
4
|
+
data.tar.gz: a9d7bfd8ffd9a6e88198f4e632f3cac907e2e342df61795bed2c2d90519ae716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a71c85e636d166640b1b191436dfd3630c6cb80ef1c8d6b30be077b8c8b552f2e132b1cb150c490a7343c136071b866db299a6a9b82471bd1def51f18d60dfe
|
7
|
+
data.tar.gz: 5118750c0556fbd7e606ca878d6bb3bc3fcbb54a426577d07993e05eeed7d846ea6e45b90f2a5262b90453e59409eead1f0e25aaf8056337aa201a71f8de5307
|
@@ -131,10 +131,11 @@ module Souls
|
|
131
131
|
type = Souls.type_check(param[:type])
|
132
132
|
rbs_type = Souls.rbs_type_check(param[:type])
|
133
133
|
type = "[#{type}]" if param[:array]
|
134
|
+
required = param[:column_name] == "id" ? "required: true" : "required: false"
|
134
135
|
if i.zero?
|
135
|
-
f.write(" def self.argument: (:#{param[:column_name]}, #{type}, required
|
136
|
+
f.write(" def self.argument: (:#{param[:column_name]}, #{type}, #{required} ) -> #{rbs_type}\n")
|
136
137
|
else
|
137
|
-
f.write(" | (:#{param[:column_name]}, #{type}, required
|
138
|
+
f.write(" | (:#{param[:column_name]}, #{type}, #{required} ) -> #{rbs_type}\n")
|
138
139
|
end
|
139
140
|
end
|
140
141
|
end
|
@@ -21,13 +21,13 @@ module Souls
|
|
21
21
|
end
|
22
22
|
File.open(file_path, "a") do |f|
|
23
23
|
params[:params].each_with_index do |param, i|
|
24
|
-
type = Souls.
|
24
|
+
type = Souls.type_check(param[:type])
|
25
25
|
type = "[#{type}]" if param[:array]
|
26
26
|
rbs_type = Souls.rbs_type_check(param[:type])
|
27
27
|
if i.zero?
|
28
|
-
f.write(" def self.field: (:#{param[:column_name]}, #{type}, null:
|
28
|
+
f.write(" def self.field: (:#{param[:column_name]}, #{type}, null: true) -> #{rbs_type}\n")
|
29
29
|
else
|
30
|
-
f.write(" | (:#{param[:column_name]}, #{type}, null:
|
30
|
+
f.write(" | (:#{param[:column_name]}, #{type}, null: true) -> #{rbs_type}\n")
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.38.0
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.38.0
|