souls 1.9.5 → 1.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca2d4ab691d942ad58c06c7636a19ea179822f13a460137676b06e9656faa5ed
4
- data.tar.gz: d203c01ba993c8f3a30700208dec8547c997a16af28de808d8b11553bcbf5a03
3
+ metadata.gz: a19db3fada626ed2f610127ce7da17d220e56c58d1e1654b2e4387885efe1429
4
+ data.tar.gz: 9a7a590f075558a6054079af19b23409f44bc25551ced17bdeca0c55000bf07c
5
5
  SHA512:
6
- metadata.gz: 51102524c61eea7637e4c82cb1d33cd0337346a90f814a663f5c4a54661b90bf83658f6860ba8173ac8483bccb4629184515a84742c77c6840a8eb48272cb439
7
- data.tar.gz: 2606bea93142488f4e7409c7b2ace079c00e72c528ccba939bf27103ca3f7f7ce3faccace27ca8f4a04567f3fe555436bd1bd6d1b5d2fb5058b34912f5973054
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
- ## SOULs Serverless Application Framework Document
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
- Welcome to SOULs Serverless Application Framework!
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
@@ -0,0 +1,4 @@
1
+ require_relative "graphql/souls_query"
2
+
3
+ module Souls
4
+ 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
- Souls.Queries::BaseQuery.all_schedules.each do |k, v|
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{\A(https://|git@)(github.com)(:|/)([^.]+/[^.]+)(\.git)?\z}.match(remote_url)
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
@@ -1,7 +1,9 @@
1
1
  require_relative "./version"
2
2
  require "thor"
3
+ require "graphql"
3
4
  require_relative "./cli/index"
4
5
  require_relative "./utils/index"
6
+ require_relative "./app/index"
5
7
 
6
8
  module Souls
7
9
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.9.5".freeze
2
+ VERSION = "1.9.9".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.9.5
1
+ 1.9.9
@@ -1 +1 @@
1
- 1.9.5
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.5
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-24 00:00:00.000000000 Z
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: "Build Serverless Apps faster like Rails.\n Powered by Ruby GraphQL,
114
- RBS/Steep, Active Record, RSpec, RuboCop, and Google Cloud. "
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.22
249
+ rubygems_version: 3.2.32
246
250
  signing_key:
247
251
  specification_version: 4
248
- summary: Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep,
249
- Active Record, RSpec, RuboCop, and Google Cloud.
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: []