souls 1.9.5 → 1.9.9
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 +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/scheduler/index.rb +1 -1
- 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: a19db3fada626ed2f610127ce7da17d220e56c58d1e1654b2e4387885efe1429
|
|
4
|
+
data.tar.gz: 9a7a590f075558a6054079af19b23409f44bc25551ced17bdeca0c55000bf07c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8249307010d8c995718a0a2d5dba4f7317da1c3aa32788af06798f204378f812e143975169206eaa215a23fab6b153eb064bc5a32039ead331bdf9449f92b91
|
|
7
|
+
data.tar.gz: 2bb7d1f937b05113225404ad0d27414b9d37d7d25eb3f71b5d42f281ea96d8868d26069f3c672767a655ff2a39f65eadd45ae08b9740793893c983465def07bf
|
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
|
|
@@ -16,7 +16,7 @@ module Souls
|
|
|
16
16
|
Souls::Gcloud.new.config_set
|
|
17
17
|
project_id = Souls.configuration.project_id
|
|
18
18
|
region = Souls.configuration.region
|
|
19
|
-
|
|
19
|
+
Queries::BaseQuery.all_schedules.each do |k, v|
|
|
20
20
|
worker_name = FileUtils.pwd.split("/").last
|
|
21
21
|
job_name = "#{worker_name}_#{k.to_s.underscore}"
|
|
22
22
|
system("gcloud scheduler jobs delete #{job_name} -q >/dev/null 2>&1")
|
|
@@ -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.9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.9.
|
|
1
|
+
1.9.9
|
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.9
|
|
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-26 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: []
|