souls 0.56.2 → 0.57.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 +4 -4
- data/lib/souls/api/generate/policy_rbs.rb +1 -1
- data/lib/souls/api/generate/resolver_rbs.rb +0 -1
- data/lib/souls/cli/init/index.rb +6 -2
- data/lib/souls/utils/index.rb +16 -13
- 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: 743b8862c84f904855fcf5e8f562a713fff495f9143dcad2708e72f6cdfcac97
|
4
|
+
data.tar.gz: 10a5cc6d757352b0490c98b7f22939918cffb902b7d71e435c0d2e576a2c4ea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a8fbecf4cb443c6363fbbcb7462ac88966d422f9ace1d150aac2873192aaf1cc61dcec7171cf6ea6f4a1120c3dddf5e8f24d26c94b280188bdc7fe03dc631b
|
7
|
+
data.tar.gz: be153fdfbb64020dfb3486055b3eb635ccfd791d8134a57e83136a4dd5234bbbf610c7459c1842bc7e4855129a525b8c0d50401e126a3cec059dd0dae9431115
|
@@ -4,7 +4,7 @@ module Souls
|
|
4
4
|
def policy_rbs(class_name)
|
5
5
|
file_path = ""
|
6
6
|
Dir.chdir(Souls.get_mother_path.to_s) do
|
7
|
-
file_dir = "./sig/api/app/graphql/
|
7
|
+
file_dir = "./sig/api/app/graphql/policies/"
|
8
8
|
FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
|
9
9
|
singularized_class_name = class_name.underscore.singularize
|
10
10
|
file_path = "#{file_dir}#{singularized_class_name}_policy.rbs"
|
data/lib/souls/cli/init/index.rb
CHANGED
@@ -132,6 +132,8 @@ module Souls
|
|
132
132
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile.dev")
|
133
133
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile")
|
134
134
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Steepfile")
|
135
|
+
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/gitignore")
|
136
|
+
system("cd #{app_name} && mv gitignore .gitignore")
|
135
137
|
FileUtils.rm(sig_name)
|
136
138
|
end
|
137
139
|
|
@@ -160,9 +162,11 @@ module Souls
|
|
160
162
|
puts(line)
|
161
163
|
endroll = <<~TEXT
|
162
164
|
Easy to Run
|
163
|
-
$ cd #{app_name}
|
165
|
+
$ cd #{app_name}
|
164
166
|
$ bundle
|
165
|
-
$ souls
|
167
|
+
$ souls add_submodule
|
168
|
+
$ souls check
|
169
|
+
$ cd apps/api && souls s
|
166
170
|
Go To : http://localhost:4000
|
167
171
|
|
168
172
|
Doc: https://souls.elsoul.nl
|
data/lib/souls/utils/index.rb
CHANGED
@@ -112,19 +112,22 @@ module Souls
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def get_relation_params(class_name: "user", col: "")
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
relation_params.
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
115
|
+
require("#{Souls.get_api_path}/config/souls")
|
116
|
+
Dir.chdir(Souls.get_api_path.to_s) do
|
117
|
+
cols =
|
118
|
+
if col == "mutation"
|
119
|
+
get_columns_num_no_timestamp(class_name: class_name)
|
120
|
+
else
|
121
|
+
get_columns_num(class_name: class_name)
|
122
|
+
end
|
123
|
+
relation_params = cols.select { |col| col[:column_name].match?(/_id$/) }
|
124
|
+
user_check =
|
125
|
+
relation_params.map do |param|
|
126
|
+
param[:column_name] == "user_id"
|
127
|
+
end
|
128
|
+
user_exist = user_check.include?(true)
|
129
|
+
return { user_exist: user_exist, params: cols, relation_params: relation_params }
|
130
|
+
end
|
128
131
|
end
|
129
132
|
|
130
133
|
def get_columns_num(class_name: "user")
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.36.1
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.36.1
|