souls 1.9.0 → 1.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d42f8146bd0cb2caf649dfbf6d5c6bdbd9655f7c85c3463230c5359cde080e0
4
- data.tar.gz: b516bb95ca96d96b0d8124322039430e304fa6f1bf4bd7af1190a731c4656ba0
3
+ metadata.gz: 173b8d7d59f4e6634111fe869ad67e98579dd9ca72327bad969add57cb3ec20b
4
+ data.tar.gz: f7e5bf717c6371154582210ecb5d774452d02839769568a5c69b0ac6b50f553f
5
5
  SHA512:
6
- metadata.gz: 25e87253cae96e0e246ce1a27a50bb9e6dcdf77705249999fa94c618fc5724cd1c58b992d0085791157f49b9119fc5214960eb488952612e05249ed0f74cb840
7
- data.tar.gz: 2722cc893a908b2b91165dd09817b7d90a700f635e86c5c44fb3f18d37a140216baa912585c81952aa16a7876823aa0218f560d3f3731db2e2cd5d8800b1f564
6
+ metadata.gz: 886353f53d7257add09aa0afc4a536e34c1b1ecb1bf006abc0d87de19ed157263faac56bb2019f3ce03648bbb16493ba46f5ce7b2934c1f742118841d4916b93
7
+ data.tar.gz: f69694a0587d76bbb848130a920d392890708d5928909a9c89e396cb0207d768b90a8d4830c44a30869a4f2ea38f71a7a85555199c60f23c641a182bbdf2d6cd
@@ -170,6 +170,9 @@ end
170
170
  service_account_key: ${{ secrets.SOULS_GCP_SA_KEY }}
171
171
  export_default_credentials: true
172
172
 
173
+ - name: Sync Tasks
174
+ run: cd apps/#{worker_name} && souls gcloud scheduler sync_schedules
175
+
173
176
  - name: Configure Docker
174
177
  run: gcloud auth configure-docker --quiet
175
178
 
@@ -32,7 +32,7 @@ module Souls
32
32
  def auth_login
33
33
  project_id = Souls.configuration.project_id
34
34
  system("gcloud projects describe #{project_id}", out: File::NULL) or raise(Souls::GcloudException)
35
- system("gcloud config set project #{project_id}")
35
+ system("gcloud config set project #{project_id} >/dev/null 2>&1")
36
36
  system("gcloud auth login")
37
37
  end
38
38
 
@@ -40,7 +40,7 @@ module Souls
40
40
  def config_set
41
41
  project_id = Souls.configuration.project_id
42
42
  system("gcloud projects describe #{project_id}", out: File::NULL) or raise(Souls::GcloudException)
43
- system("gcloud config set project #{project_id}")
43
+ system("gcloud config set project #{project_id} >/dev/null 2>&1")
44
44
  end
45
45
 
46
46
  desc "enable_permissions", "Enable Google Cloud APIs for SOULs Framework"
@@ -54,6 +54,7 @@ module Souls
54
54
  system("gcloud services enable containerregistry.googleapis.com")
55
55
  system("gcloud services enable run.googleapis.com")
56
56
  system("gcloud services enable vpcaccess.googleapis.com")
57
+ system("gcloud services enable cloudscheduler.googleapis.com")
57
58
  end
58
59
  end
59
60
  end
@@ -14,7 +14,8 @@ module Souls
14
14
  def sync_schedules
15
15
  require("./app")
16
16
  Queries::BaseQuery.all_schedules.each do |k, v|
17
- job_name = k.to_s.underscore
17
+ worker_name = FileUtils.pwd.split("/").last
18
+ job_name = "#{worker_name}_#{k.to_s.underscore}"
18
19
  system("gcloud scheduler jobs delete #{job_name} -q >/dev/null 2>&1")
19
20
  system(
20
21
  <<~COMMAND)
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.9.0".freeze
2
+ VERSION = "1.9.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.9.0
1
+ 1.9.1
@@ -1 +1 @@
1
- 1.9.0
1
+ 1.9.1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
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
13
  date: 2021-11-24 00:00:00.000000000 Z
@@ -227,7 +227,7 @@ licenses:
227
227
  - Apache-2.0
228
228
  metadata:
229
229
  rubygems_mfa_required: 'true'
230
- post_install_message:
230
+ post_install_message:
231
231
  rdoc_options: []
232
232
  require_paths:
233
233
  - lib
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  requirements: []
245
245
  rubygems_version: 3.2.22
246
- signing_key:
246
+ signing_key:
247
247
  specification_version: 4
248
248
  summary: Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep,
249
249
  Active Record, RSpec, RuboCop, and Google Cloud.