souls 0.67.3 → 0.68.0
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: 344ff76de6a0a8d6c520215f572455bcb0f83131e636c0b0fd8ecb2fd6f31255
|
4
|
+
data.tar.gz: 18be246dcd49f8b2863861b588c6066361fe984d73a22180c883b33e32e0eb0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f937b45df604657f676dde4a085b9d572e03ed7afec4e6db30029f8c5bb3663bafe781b62428d8ee13fa4dc4b584d6602e95b036e932b5d57e62835e1d89d3d0
|
7
|
+
data.tar.gz: c2777fda8e56d4decd0d732bd8758026332dcc5808a337a19e45d91b5f87a2c20f0510306b99decc11e6139551f65a681369bf5c62a036edb72418fc684c58b6
|
@@ -28,7 +28,7 @@ module Souls
|
|
28
28
|
|
29
29
|
it "return StockSheet Data" do
|
30
30
|
begin
|
31
|
-
a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}"
|
31
|
+
a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}")
|
32
32
|
raise unless a1.present?
|
33
33
|
rescue StandardError
|
34
34
|
raise(StandardError, result)
|
@@ -14,7 +14,7 @@ module Souls
|
|
14
14
|
def get_topics(workers: {})
|
15
15
|
app_name = Souls.configuration.app
|
16
16
|
project_id = Souls.configuration.project_id
|
17
|
-
pubsub = Google::Cloud::Pubsub.new
|
17
|
+
pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
|
18
18
|
topics = pubsub.topics
|
19
19
|
|
20
20
|
topic_names =
|
@@ -41,7 +41,7 @@ module Souls
|
|
41
41
|
|
42
42
|
def create_topic(topic_id: "mailer")
|
43
43
|
app_name = Souls.configuration.app
|
44
|
-
pubsub = Google::Cloud::Pubsub.new
|
44
|
+
pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
|
45
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.")
|
@@ -49,7 +49,7 @@ module Souls
|
|
49
49
|
|
50
50
|
def delete_topic(topic_id: "mailer")
|
51
51
|
app_name = Souls.configuration.app
|
52
|
-
pubsub = Google::Cloud::Pubsub.new
|
52
|
+
pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
|
53
53
|
topic_name = "souls_#{app_name}_#{topic_id}"
|
54
54
|
topic = pubsub.topic(topic_name.to_s)
|
55
55
|
topic.delete
|
@@ -69,7 +69,7 @@ module Souls
|
|
69
69
|
endpoint = worker[:endpoint] if worker[:name] == worker_name
|
70
70
|
end
|
71
71
|
|
72
|
-
pubsub = Google::Cloud::Pubsub.new
|
72
|
+
pubsub = Google::Cloud::Pubsub.new(project_id: ENV["PROJECT_ID"])
|
73
73
|
|
74
74
|
topic = pubsub.topic(topic_name)
|
75
75
|
sub = topic.subscribe(subscription_id, endpoint: endpoint, deadline: 20)
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.47.0
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.47.0
|