souls 0.36.0 → 0.36.4
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/cli/create/index.rb +26 -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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 933f411a03a4870a0ff63b7228a63266232e32b4bec381788033c3697a5c52e6
|
4
|
+
data.tar.gz: aae0d5908b27f5cc9ecd7c7bf2b560834b5cd7a6a9244a8a2627b2daa143dfe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1baa50368741cf59b13912aeeb5845ab8e0970fd1e64879a164d4f98ceb1f931e5e90f4ef20f37f67b4ab68ba55576ee0d0adfe87fc4ce0b9139ed40ba7fa97
|
7
|
+
data.tar.gz: 71bd8c2001d24364dfe801d0159487d1a3365ce751a4ad3253f9b22ef7f33f0084db9901edefc4b1a6dc74a0276e827776892a99cbb06e6344fa549f2196f531
|
@@ -10,6 +10,7 @@ module Souls
|
|
10
10
|
workflow(worker_name: worker_name)
|
11
11
|
procfile(worker_name: worker_name, port: port)
|
12
12
|
mother_procfile(worker_name: worker_name)
|
13
|
+
souls_config_init(worker_name: worker_name)
|
13
14
|
end
|
14
15
|
|
15
16
|
def procfile(worker_name: "mailer", port: 3000)
|
@@ -31,13 +32,13 @@ module Souls
|
|
31
32
|
workers = Souls.configuration.workers
|
32
33
|
port = 3000 + workers.size
|
33
34
|
file_path = strain == "mother" ? "config/souls.rb" : "apps/api/config/souls.rb"
|
34
|
-
new_file_path = "
|
35
|
+
new_file_path = "souls.rb"
|
35
36
|
worker_switch = false
|
36
37
|
File.open(new_file_path, "w") do |new_line|
|
37
38
|
File.open(file_path, "r") do |f|
|
38
39
|
f.each_line do |line|
|
39
40
|
worker_switch = true if line.include?("config.workers")
|
40
|
-
|
41
|
+
next if line.strip == "end"
|
41
42
|
|
42
43
|
new_line.write(line) unless worker_switch
|
43
44
|
|
@@ -53,7 +54,7 @@ module Souls
|
|
53
54
|
},
|
54
55
|
TEXT
|
55
56
|
end
|
56
|
-
|
57
|
+
break
|
57
58
|
end
|
58
59
|
end
|
59
60
|
new_line.write(<<-TEXT)
|
@@ -173,6 +174,28 @@ end
|
|
173
174
|
raise(StandardError, e)
|
174
175
|
end
|
175
176
|
|
177
|
+
def souls_config_init(worker_name: "mailer")
|
178
|
+
app_name = Souls.configuration.app
|
179
|
+
project_id = Souls.configuration.project_id
|
180
|
+
config_dir = "apps/#{worker_name}/config"
|
181
|
+
FileUtils.mkdir_p(config_dir) unless Dir.exist?(config_dir)
|
182
|
+
FileUtils.touch("#{config_dir}/souls.rb")
|
183
|
+
file_path = "#{config_dir}/souls.rb"
|
184
|
+
File.open(file_path, "w") do |f|
|
185
|
+
f.write(<<~TEXT)
|
186
|
+
Souls.configure do |config|
|
187
|
+
config.app = "#{app_name}"
|
188
|
+
config.project_id = "#{project_id}"
|
189
|
+
config.strain = "worker"
|
190
|
+
config.fixed_gems = ["excluded_gem"]
|
191
|
+
config.workers = []
|
192
|
+
end
|
193
|
+
TEXT
|
194
|
+
end
|
195
|
+
rescue StandardError => e
|
196
|
+
puts(e)
|
197
|
+
end
|
198
|
+
|
176
199
|
def download_worker(worker_name: "mailer")
|
177
200
|
raise(StandardError, "Can't use `worker` for worker. Change Name.") if worker_name == "worker"
|
178
201
|
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.4
|
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.4
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.36.
|
4
|
+
version: 0.36.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
8
8
|
- KishiTheMechanic
|
9
9
|
- James Neve
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
13
|
date: 2021-09-01 00:00:00.000000000 Z
|
@@ -158,7 +158,7 @@ metadata:
|
|
158
158
|
homepage_uri: https://souls.elsoul.nl
|
159
159
|
source_code_uri: https://github.com/elsoul/souls
|
160
160
|
changelog_uri: https://github.com/elsoul/souls
|
161
|
-
post_install_message:
|
161
|
+
post_install_message:
|
162
162
|
rdoc_options: []
|
163
163
|
require_paths:
|
164
164
|
- lib
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
176
|
rubygems_version: 3.2.22
|
177
|
-
signing_key:
|
177
|
+
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: SOULs はサーバーレスフルスタックフレームワークです。柔軟な Ruby GraphQL API と Worker はルーティングの必要がありません。
|
180
180
|
クラウド環境への自動デプロイ、CI/CD ワークフローを標準装備。開発者がビジネスロジックに集中し、楽しくコードが書けるような環境を目指しています。
|