souls 1.9.7 → 1.9.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -3
- data/lib/souls/cli/gcloud/iam/index.rb +4 -0
- data/lib/souls/cli/gcloud/scheduler/index.rb +1 -2
- data/lib/souls/cli/github/index.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 +14 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30491de141e0ea11f97bdb7a03b14cbe70ac161f7e480ff7ea235cf730324ca
|
4
|
+
data.tar.gz: 53f3b274ba7834e0279be8b304ff669183861c282125db8d5576f22cd5168f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd53298937c0438c4b6542483fe195f63322218802e16b5c52e7147b1d60bf11a2af259b730e3016a2f11ae812df717ad15460ff9a1c40e67a49f851b25c8cba
|
7
|
+
data.tar.gz: 267823450763ccb227c9f258965603ee60c359f14404d16b0ae4e8b941051a61da67cda2b5d5bf07875bcf937f44c415a4ef8599dcf31b9d0851a1b4a4f1c14c
|
data/README.md
CHANGED
@@ -21,22 +21,27 @@
|
|
21
21
|
<a aria-label="License" href="https://github.com/elsoul/souls/blob/master/LICENSE.txt">
|
22
22
|
<img alt="" src="https://badgen.net/badge/license/Apache/blue">
|
23
23
|
</a>
|
24
|
+
<a aria-label="Code of Conduct" href="https://github.com/elsoul/souls/blob/master/CODE_OF_CONDUCT.md">
|
25
|
+
<img alt="" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg">
|
26
|
+
</a>
|
24
27
|
</p>
|
25
28
|
|
26
29
|
|
27
|
-
##
|
30
|
+
## Ruby Serverless Application Framework SOULs Document
|
28
31
|
|
29
32
|
- [Go to SOULs Document](https://souls.elsoul.nl/)
|
30
33
|
|
31
34
|
<p>
|
32
|
-
<a aria-label="SOULs Document" href="https://souls.elsoul.nl/">
|
35
|
+
<a aria-label="Ruby Serverless Application Framework SOULs Document" href="https://souls.elsoul.nl/">
|
33
36
|
<img src="https://souls.elsoul.nl/imgs/gifs/souls-new-video.gif">
|
34
37
|
</a>
|
35
38
|
</p>
|
36
39
|
|
37
40
|
## What's SOULs?
|
38
41
|
|
39
|
-
|
42
|
+
Ruby Serverless Framework 'SOULs'.
|
43
|
+
|
44
|
+
The SOULs project was launched with the goal of reducing software development, operation and maintenance costs.
|
40
45
|
|
41
46
|
Build Serverless Apps faster like Rails.
|
42
47
|
Powered by Ruby GraphQL, RBS/Steep, Active Record, RSpec, RuboCop, and Google Cloud.
|
@@ -2,11 +2,13 @@ module Souls
|
|
2
2
|
class Iam < Thor
|
3
3
|
desc "setup_key", "Create Google Cloud IAM Service Account Key And Set All Permissions"
|
4
4
|
def setup_key
|
5
|
+
region = Souls.configuration.region
|
5
6
|
Souls::Gcloud.new.auth_login
|
6
7
|
create_service_account
|
7
8
|
create_service_account_key
|
8
9
|
Souls::Gcloud.new.enable_permissions
|
9
10
|
add_permissions
|
11
|
+
system("gcloud app create --region=#{region} --quiet")
|
10
12
|
begin
|
11
13
|
set_gh_secret_json
|
12
14
|
rescue StandardError
|
@@ -92,6 +94,8 @@ module Souls
|
|
92
94
|
"roles/run.admin",
|
93
95
|
"roles/storage.admin",
|
94
96
|
"roles/storage.objectAdmin",
|
97
|
+
"roles/cloudscheduler.admin",
|
98
|
+
"roles/appengine.appCreator",
|
95
99
|
"roles/cloudscheduler.admin"
|
96
100
|
]
|
97
101
|
roles.each do |role|
|
@@ -15,14 +15,13 @@ module Souls
|
|
15
15
|
require("./app")
|
16
16
|
Souls::Gcloud.new.config_set
|
17
17
|
project_id = Souls.configuration.project_id
|
18
|
-
region = Souls.configuration.region
|
19
18
|
Queries::BaseQuery.all_schedules.each do |k, v|
|
20
19
|
worker_name = FileUtils.pwd.split("/").last
|
21
20
|
job_name = "#{worker_name}_#{k.to_s.underscore}"
|
22
21
|
system("gcloud scheduler jobs delete #{job_name} -q >/dev/null 2>&1")
|
23
22
|
system(
|
24
23
|
<<~COMMAND)
|
25
|
-
gcloud scheduler jobs create pubsub #{job_name} --project=#{project_id} --quiet --schedule="#{v}" --topic="#{k}" --attributes="" --message-body="#{k}"
|
24
|
+
gcloud scheduler jobs create pubsub #{job_name} --project=#{project_id} --quiet --schedule="#{v}" --topic="#{k}" --attributes="" --message-body="#{k}"
|
26
25
|
COMMAND
|
27
26
|
end
|
28
27
|
end
|
@@ -31,7 +31,7 @@ module Souls
|
|
31
31
|
desc "watch", "Watch GitHub Actions Workflow"
|
32
32
|
def watch
|
33
33
|
remote_url = `git remote get-url origin`
|
34
|
-
split_url = %r{
|
34
|
+
split_url = %r{(https://|git@)(github.com)(:|/)([^.]+/[^.]+)(\.git)?}.match(remote_url)
|
35
35
|
if split_url.nil? || split_url.size != 6
|
36
36
|
raise(CLIException, "Cannot access Github, please check your credentials")
|
37
37
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.11
|
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.11
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.11
|
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
|
-
date: 2021-11-
|
13
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -110,8 +110,10 @@ dependencies:
|
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 1.1.0
|
113
|
-
description: "
|
114
|
-
|
113
|
+
description: "Ruby Serverless Framework 'SOULs'. The SOULs project was launched with
|
114
|
+
the goal of reducing software development, operation and maintenance costs. Build
|
115
|
+
Serverless Apps faster like Rails.\n Powered by Ruby GraphQL, RBS/Steep, Active
|
116
|
+
Record, RSpec, RuboCop, and Google Cloud. "
|
115
117
|
email:
|
116
118
|
- f.kawasaki@elsoul.nl
|
117
119
|
- s.kishi@elsoul.nl
|
@@ -229,7 +231,7 @@ licenses:
|
|
229
231
|
- Apache-2.0
|
230
232
|
metadata:
|
231
233
|
rubygems_mfa_required: 'true'
|
232
|
-
post_install_message:
|
234
|
+
post_install_message:
|
233
235
|
rdoc_options: []
|
234
236
|
require_paths:
|
235
237
|
- lib
|
@@ -244,9 +246,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
246
|
- !ruby/object:Gem::Version
|
245
247
|
version: '0'
|
246
248
|
requirements: []
|
247
|
-
rubygems_version: 3.2.
|
248
|
-
signing_key:
|
249
|
+
rubygems_version: 3.2.32
|
250
|
+
signing_key:
|
249
251
|
specification_version: 4
|
250
|
-
summary:
|
251
|
-
|
252
|
+
summary: Ruby Serverless Framework 'SOULs'. The SOULs project was launched with the
|
253
|
+
goal of reducing software development, operation and maintenance costs. Build Serverless
|
254
|
+
Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep, Active Record, RSpec,
|
255
|
+
RuboCop, and Google Cloud.
|
252
256
|
test_files: []
|