souls 0.25.8 → 0.25.12
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/README.md +3 -1
- data/exe/souls +1 -4
- data/lib/souls.rb +5 -5
- data/lib/souls/gcloud/compute.rb +0 -1
- data/lib/souls/generate/resolver.rb +1 -1
- 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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 010f21f11478d37751cc98517df31f540578476dd6de62a8d983e5831352c5c5
|
4
|
+
data.tar.gz: b05740f50397a99e95a03fdb0263cafc9e7e083d264dfd50e3866ce959b2b64b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d63b61b0fe9e62d002f2eeeb889600c9fd930d0818ca7eb180e04b705d0d2ad2c72e299cbfafad493bc2761aae58847ce8efb95518f8c85f169f97f149ca9ae
|
7
|
+
data.tar.gz: f306f72d238c9389590642866765fd60372ae67d67d6d34d33f5b10311d35eb6e31764e890008b350d733e2468778092233904b6fdc3a7eef13022db85a18342
|
data/README.md
CHANGED
@@ -21,10 +21,12 @@
|
|
21
21
|
|
22
22
|
Welcome to SOULs Serverless Application Framework!
|
23
23
|
|
24
|
-
SOULs is a Serverless Application Framework with GraphQL.
|
24
|
+
SOULs is a Serverless Application Framework with Ruby GraphQL.
|
25
25
|
SOULs has six strains, API, Worker, Console, Admin, Media, Doc, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud. No more routing for Backends!
|
26
26
|
You can focus on your business logic. No more infra problems.
|
27
27
|
|
28
|
+

|
29
|
+
|
28
30
|
SOULs creates 6 types of framework.
|
29
31
|
|
30
32
|
1. API - GraphQL (Ruby) - Simple API - Cloud Run
|
data/exe/souls
CHANGED
@@ -78,10 +78,8 @@ begin
|
|
78
78
|
Whirly.status = "Done!"
|
79
79
|
end
|
80
80
|
when "release"
|
81
|
-
`gem uninstall -x --force`
|
82
|
-
sleep(1)
|
83
81
|
system("gem install souls")
|
84
|
-
sleep(
|
82
|
+
sleep(3)
|
85
83
|
current_souls_ver = Souls::VERSION.strip.split(".").map(&:to_i)
|
86
84
|
prompt = TTY::Prompt.new
|
87
85
|
choices = [
|
@@ -241,5 +239,4 @@ begin
|
|
241
239
|
end
|
242
240
|
rescue StandardError => e
|
243
241
|
puts(Paint[e, :red])
|
244
|
-
puts(e.backtrace)
|
245
242
|
end
|
data/lib/souls.rb
CHANGED
@@ -178,9 +178,11 @@ module Souls
|
|
178
178
|
case current_dir_name
|
179
179
|
when "souls"
|
180
180
|
system("echo '#{new_ver}' > lib/souls/versions/.souls_#{service_name}_version")
|
181
|
+
system("echo '#{new_ver}' > apps/#{service_name}/.souls_#{service_name}_version")
|
181
182
|
system("cd apps/ && tar -czf ../#{service_name}.tgz #{service_name}/ && cd ..")
|
182
183
|
when "api", "worker", "console", "admin", "media"
|
183
184
|
system("echo '#{new_ver}' > lib/souls/versions/.souls_#{service_name}_version")
|
185
|
+
system("echo '#{new_ver}' > .souls_#{service_name}_version")
|
184
186
|
system("cd .. && tar -czf ../#{service_name}.tgz #{service_name}/ && cd #{service_name}")
|
185
187
|
else
|
186
188
|
raise(StandardError, "You are at wrong directory!")
|
@@ -258,11 +260,9 @@ module Souls
|
|
258
260
|
git_status = `git status`
|
259
261
|
result =
|
260
262
|
%w[api worker].map do |service_name|
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
next
|
265
|
-
end
|
263
|
+
next unless git_status.include?("apps/#{service_name}/")
|
264
|
+
|
265
|
+
service_name
|
266
266
|
end
|
267
267
|
result.compact
|
268
268
|
end
|
data/lib/souls/gcloud/compute.rb
CHANGED
@@ -136,7 +136,7 @@ module Souls
|
|
136
136
|
def self.resolver(class_name: "souls")
|
137
137
|
singularized_class_name = class_name.singularize.underscore
|
138
138
|
file_path = "./app/graphql/resolvers/#{singularized_class_name}_search.rb"
|
139
|
-
|
139
|
+
raise(StandardError, "Resolver already exist! #{file_path}") if File.exist?(file_path)
|
140
140
|
|
141
141
|
resolver_head(class_name: singularized_class_name)
|
142
142
|
resolver_params(class_name: singularized_class_name)
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.15
|
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.15
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.25.
|
4
|
+
version: 0.25.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-07-
|
13
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: paint
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.2.
|
122
|
+
rubygems_version: 3.2.22
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: SOULs is a Serverless Application Framework. SOULs has four strains, API,
|