souls 0.54.0 → 0.54.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eef7cd565e70dfb4a040f2ff59c1c52b1419ea2edd0a3e47ff72bd31a27df54f
|
4
|
+
data.tar.gz: d6c85ac5fb93ecdaa41bdf81f66f90949c1a04e1027cc2bf7af200f71b7d7afb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a9e2e99b87528271665deabc8abff05b139863a4da93a7fc03a92b9ea78a34f8dc91cecf89c0e5fb1f45f188fdf807cea0b9dbe590c7df647f50201a506ed3
|
7
|
+
data.tar.gz: 9b84af82597b9bff3d155da20cabf70d2acb1e9b6117a5f3362dc7d5f19b5f300fb96c3b2732e4da592b205c6a15acac01282bb29f518600b881e94b168b9095
|
@@ -160,7 +160,7 @@ end
|
|
160
160
|
|
161
161
|
- name: Deploy to Cloud Run
|
162
162
|
run: |
|
163
|
-
gcloud run deploy
|
163
|
+
gcloud run deploy souls-${{ secrets.APP_NAME }}-#{worker_name} \\
|
164
164
|
--service-account=${{ secrets.APP_NAME }}@${{ secrets.GCP_PROJECT_ID }}.iam.gserviceaccount.com \\
|
165
165
|
--image=gcr.io/${{ secrets.GCP_PROJECT_ID }}/${{secrets.APP_NAME}}-#{worker_name} \\
|
166
166
|
--memory=4Gi \\
|
@@ -22,9 +22,9 @@ module Souls
|
|
22
22
|
topic.name.gsub("projects/#{project_id}/topics/", "")
|
23
23
|
end
|
24
24
|
|
25
|
-
topic_names.select { |n| n.include?("#{app_name}
|
25
|
+
souls_topics = topic_names.select { |n| n.include?("souls_#{app_name}_") }
|
26
26
|
|
27
|
-
|
27
|
+
souls_topics.each do |name|
|
28
28
|
value = workers[name.to_sym] || 0
|
29
29
|
workers[name.to_sym] = value - 1
|
30
30
|
end
|
@@ -42,7 +42,7 @@ module Souls
|
|
42
42
|
def create_topic(topic_id: "mailer")
|
43
43
|
app_name = Souls.configuration.app
|
44
44
|
pubsub = Google::Cloud::Pubsub.new
|
45
|
-
topic_name = "#{app_name}
|
45
|
+
topic_name = "souls_#{app_name}_#{topic_id}"
|
46
46
|
topic = pubsub.create_topic(topic_name.to_s)
|
47
47
|
puts("Topic #{topic.name} created.")
|
48
48
|
end
|
@@ -50,7 +50,7 @@ module Souls
|
|
50
50
|
def delete_topic(topic_id: "mailer")
|
51
51
|
app_name = Souls.configuration.app
|
52
52
|
pubsub = Google::Cloud::Pubsub.new
|
53
|
-
topic_name = "#{app_name}
|
53
|
+
topic_name = "souls_#{app_name}_#{topic_id}"
|
54
54
|
topic = pubsub.topic(topic_name.to_s)
|
55
55
|
topic.delete
|
56
56
|
puts("Topic #{topic_name} deleted.")
|
@@ -58,9 +58,9 @@ module Souls
|
|
58
58
|
|
59
59
|
def create_push_subscription(topic_id: "mailer")
|
60
60
|
require("#{Souls.get_mother_path}/config/souls")
|
61
|
-
worker_name = topic_id.split("_")[0]
|
62
61
|
app_name = Souls.configuration.app
|
63
|
-
topic_name = "#{app_name}
|
62
|
+
topic_name = "souls_#{app_name}_#{topic_id}"
|
63
|
+
worker_name = topic_id.split("_")[0]
|
64
64
|
|
65
65
|
subscription_id = "#{topic_name}_sub"
|
66
66
|
endpoint = ""
|
@@ -71,7 +71,7 @@ module Souls
|
|
71
71
|
|
72
72
|
pubsub = Google::Cloud::Pubsub.new
|
73
73
|
|
74
|
-
topic = pubsub.topic(
|
74
|
+
topic = pubsub.topic(topic_name)
|
75
75
|
sub = topic.subscribe(subscription_id, endpoint: endpoint, deadline: 20)
|
76
76
|
sub.expires_in = nil
|
77
77
|
puts("Push subscription #{subscription_id} created.")
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.33.
|
1
|
+
0.33.4
|
@@ -1 +1 @@
|
|
1
|
-
0.33.
|
1
|
+
0.33.4
|
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: 0.54.
|
4
|
+
version: 0.54.4
|
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-09-
|
13
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|