souls 1.0.5 → 1.0.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2e4e81d37978401e1b2d6059fb3a0cf574d43b8e59a8953c51801dc7e5da7ce
|
4
|
+
data.tar.gz: 8dbe42fc0414c628f07ac5cb31d7971bf0ca3c8b983d5046ffccd8719cb5bf87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3409a01fba431f0a2c81344176fa7b074b758e639bf0536fd27eebb5883d792226e32de25aa07782de68518c493e589a8347a24d44455824dbc23d0be733ba7e
|
7
|
+
data.tar.gz: acd633a4aaad9c88731a30bad58bcc058914e5c3e795c5e48f257b80736a86bc39097dd52b2dcd6fce3fd44076b345e89e8488dd97ce09bbba08b67fd1f20abe
|
@@ -298,14 +298,14 @@ end
|
|
298
298
|
_____ ____ __ ____#{' '}
|
299
299
|
/ ___// __ \\/ / / / / %{red1}
|
300
300
|
\\__ \\/ / / / / / / / %{red2}
|
301
|
-
|
301
|
+
__/ / /_/ / /_/ / /___%{red3}#{' '}
|
302
302
|
/____/\\____/\\____/_____%{red4}#{' '}
|
303
303
|
TEXT
|
304
304
|
red1 = ["_____", :red]
|
305
305
|
red2 = ["/ ___/", :red]
|
306
306
|
red3 = ["(__ )", :red]
|
307
307
|
red4 = ["/____/", :red]
|
308
|
-
ms = Paint % [txt2, :
|
308
|
+
ms = Paint % [txt2, :blue, { red1: red1, red2: red2, red3: red3, red4: red4 }]
|
309
309
|
puts(ms)
|
310
310
|
puts(line)
|
311
311
|
welcome = Paint["SOULs Worker is Ready!", :white]
|
@@ -318,7 +318,7 @@ end
|
|
318
318
|
$ cd apps/#{worker_name}
|
319
319
|
$ souls sync model
|
320
320
|
$ souls s
|
321
|
-
Go To : http://localhost:3000
|
321
|
+
Go To : http://localhost:3000/playground
|
322
322
|
|
323
323
|
Doc: https://souls.elsoul.nl
|
324
324
|
TEXT
|
@@ -34,6 +34,7 @@ module Souls
|
|
34
34
|
create_push_subscription(topic_id: key.to_s)
|
35
35
|
end
|
36
36
|
delete_topic(topic_id: key.to_s) if value == -1
|
37
|
+
delete_subscription(topic_id: key.to_s) if value == -1
|
37
38
|
end
|
38
39
|
workers
|
39
40
|
end
|
@@ -53,6 +54,14 @@ module Souls
|
|
53
54
|
puts("Topic #{topic_id} deleted.")
|
54
55
|
end
|
55
56
|
|
57
|
+
def delete_subscription(topic_id: "mailer")
|
58
|
+
project_id = Souls.configuration.project_id
|
59
|
+
pubsub = Google::Cloud::Pubsub.new(project_id: project_id)
|
60
|
+
subscription_id = "#{topic_id}_sub"
|
61
|
+
subscription = pubsub.subscription(subscription_id)
|
62
|
+
subscription.delete
|
63
|
+
end
|
64
|
+
|
56
65
|
def create_push_subscription(topic_id: "mailer")
|
57
66
|
app = Souls.configuration.app
|
58
67
|
require("#{Souls.get_mother_path}/config/souls")
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.9
|
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.9
|