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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 651fa35ce91f62e34953334107a29af31311e86d1358a6f992e2da9e9e93ba15
4
- data.tar.gz: bfd37a4de24640d905e908362fa1af3d7fc04fd6635c4c042a6d5ffd4f7980e5
3
+ metadata.gz: 126e9d718d31acc7a533627d96e46aaed8473919e7e9bb25a6e623456ca19243
4
+ data.tar.gz: 5fa74d0c8b5d7c52e174dd56e02c492bc5f14d6846df5a3d40070ec6fec2c76c
5
5
  SHA512:
6
- metadata.gz: 18315746a7821df61fef0524cbcc7843b1ab66c05ec4009393d300e9f3a99f2dcf6dfb5d282dedeb8f0b3028154beae707c15f7dac0fe097d4240d365249e7b7
7
- data.tar.gz: d6fa8a164a1597f4cdf31c702ebe3175eac3702c43190ed3e4469aca1efb97f453fc5856b0ac0f4ee12e24b920c6dcef1e9c4b90b325268834e1f2d3b7c77ecc
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
- ## 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
@@ -92,6 +92,8 @@ module Souls
92
92
  "roles/run.admin",
93
93
  "roles/storage.admin",
94
94
  "roles/storage.objectAdmin",
95
+ "roles/cloudscheduler.admin",
96
+ "roles/appengine.appCreator",
95
97
  "roles/cloudscheduler.admin"
96
98
  ]
97
99
  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}" --location=#{region}
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{\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.6".freeze
2
+ VERSION = "1.9.10".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.9.6
1
+ 1.9.10
@@ -1 +1 @@
1
- 1.9.6
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.6
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-24 00:00:00.000000000 Z
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: "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: []