souls 1.9.6 → 1.9.10
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/app/graphql/souls_query.rb +27 -0
- data/lib/souls/app/index.rb +4 -0
- data/lib/souls/cli/gcloud/iam/index.rb +2 -0
- data/lib/souls/cli/gcloud/scheduler/index.rb +1 -2
- data/lib/souls/cli/github/index.rb +1 -1
- data/lib/souls/index.rb +2 -0
- 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 +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 126e9d718d31acc7a533627d96e46aaed8473919e7e9bb25a6e623456ca19243
|
4
|
+
data.tar.gz: 5fa74d0c8b5d7c52e174dd56e02c492bc5f14d6846df5a3d40070ec6fec2c76c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 767e9266334fd18dd5ef6f7be5151c76e70a5bf4d9da76015475303973eec1914adb14aab6b190a71d02f63e45704076a0363b99f2484994d8bd1f87695b73dc
|
7
|
+
data.tar.gz: 00ca15f7ba2ed22c3e6404cad3b643ead7022dc5d291a48c8746da1238e4d5241ca73bf21283bb89256de053f2b8a87999f199885d706f1519646bab246ff0e3
|
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.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Souls
|
2
|
+
class SoulsQuery < GraphQL::Schema::Resolver
|
3
|
+
@schedule = nil
|
4
|
+
class << self
|
5
|
+
attr_accessor :schedule
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.cron(schedule)
|
9
|
+
self.schedule = schedule
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.all_schedules
|
13
|
+
schedule_list = {}
|
14
|
+
Queries.constants.select { |c| Queries.const_get(c).is_a?(Class) }
|
15
|
+
.each do |clname|
|
16
|
+
next if clname == :BaseQuery
|
17
|
+
|
18
|
+
job_schedule = Queries.const_get(clname).schedule
|
19
|
+
schedule_list[clname] = job_schedule unless job_schedule.nil?
|
20
|
+
end
|
21
|
+
schedule_list
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module Queries
|
27
|
+
end
|
@@ -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/index.rb
CHANGED
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.10
|
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.10
|
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: 1.9.
|
4
|
+
version: 1.9.10
|
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-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
|
@@ -126,6 +128,8 @@ files:
|
|
126
128
|
- README.md
|
127
129
|
- exe/souls
|
128
130
|
- lib/souls.rb
|
131
|
+
- lib/souls/app/graphql/souls_query.rb
|
132
|
+
- lib/souls/app/index.rb
|
129
133
|
- lib/souls/cli.rb
|
130
134
|
- lib/souls/cli/cli_exception.rb
|
131
135
|
- lib/souls/cli/console/index.rb
|
@@ -242,9 +246,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
246
|
- !ruby/object:Gem::Version
|
243
247
|
version: '0'
|
244
248
|
requirements: []
|
245
|
-
rubygems_version: 3.2.
|
249
|
+
rubygems_version: 3.2.32
|
246
250
|
signing_key:
|
247
251
|
specification_version: 4
|
248
|
-
summary:
|
249
|
-
|
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.
|
250
256
|
test_files: []
|