souls 1.19.5 → 1.19.6

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: ba1ab0e3e8b972c9c6abf4462bf73d6d957e0b0da397c840fd4a1d309bd18428
4
- data.tar.gz: 8f5c7235b5ad3a3684890f16ceb6c69437c338e6d20f487623436eeb89d7a533
3
+ metadata.gz: 0b5f7b94188e33045595ee50df3761dc486c786992aea9f803560f27500f4aae
4
+ data.tar.gz: 6d0659f46eb9ca1f9154c4cec5b97381cc04ca2f773b2bd1752eb82c0f6dac2e
5
5
  SHA512:
6
- metadata.gz: a55046924033c845df7a2bd2be75cd1ef89fa2bb491fa6d31c394198baa27920e5835a42fb224b90fffcb4cfb9deacc5a74a5f3a7e1b46c868873f11fd325633
7
- data.tar.gz: 9cc31276f563aaf98e8212cddababd35c2875f5f10c4d33a285f7559b4d080545ddb39b824b43a26396f0ddda8f948bd01b84831ac8e1c22925d5f48029448ae
6
+ metadata.gz: 3ff3dcf7fa1cf290a4998ec3bf1428f2c4fc94973095e9d7a678ccd7b528fdbdaf5f8c5f58149784f97a0219467c992bc0ccbd75b989fefd428a88d0d248ec4a
7
+ data.tar.gz: 20e054999324d5d082544a4ca31e11bdde030aec3f664bf127df8a8912fbffa62864eb8ece8a701f75e0df37bf7126105438b44ef13c4d5ed4ab19836d85ab67
@@ -1,4 +1,3 @@
1
- require "google/cloud/pubsub"
2
1
  require_relative "./model"
3
2
  require_relative "./pubsub"
4
3
  require_relative "./conf"
@@ -37,8 +37,9 @@ module SOULs
37
37
  souls_topics = topic_names.select { |n| n.include?("souls-#{worker_name}") }
38
38
 
39
39
  souls_topics.each do |name|
40
- value = workers[name.to_sym] || 0
41
- workers[name.to_sym] = value - 1
40
+ file_name = name.gsub("-", "_")
41
+ value = workers[file_name.to_sym] || 0
42
+ workers[file_name.to_sym] = value - 1
42
43
  end
43
44
 
44
45
  workers.each do |key, value|
@@ -79,7 +80,7 @@ module SOULs
79
80
  def create_push_subscription(worker_url:, topic_id: "worker-mailer")
80
81
  souls_endpoint = SOULs.configuration.endpoint
81
82
  subscription_id = "#{topic_id}-sub"
82
- endpoint = "#{worker_url}/#{souls_endpoint}"
83
+ endpoint = "#{worker_url}#{souls_endpoint}"
83
84
 
84
85
  project_id = SOULs.configuration.project_id
85
86
  pubsub = Google::Cloud::Pubsub.new(project_id: project_id)
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "1.19.5".freeze
2
+ VERSION = "1.19.6".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.19.5
1
+ 1.19.6
@@ -1 +1 @@
1
- 1.19.5
1
+ 1.19.6
data/lib/souls.rb CHANGED
@@ -9,6 +9,7 @@ require "whirly"
9
9
  require "tty-prompt"
10
10
  require "thor"
11
11
  require "resolv"
12
+ require "google/cloud/pubsub"
12
13
 
13
14
  module SOULs
14
15
  extend SOULs::Utils
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.19.5
4
+ version: 1.19.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -124,6 +124,20 @@ dependencies:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: 0.3.0
127
+ - !ruby/object:Gem::Dependency
128
+ name: httpclient
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: 2.8.3
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: 2.8.3
127
141
  - !ruby/object:Gem::Dependency
128
142
  name: thor
129
143
  requirement: !ruby/object:Gem::Requirement