souls 0.70.2 → 0.70.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: 04a83864e4ef97cf7d05a2bfad00072c6ac166b016cb7a1507c88f265afc2bb3
4
- data.tar.gz: 0fc0baae89d5951397c7ec30423e3bf0418be933823ff95756c3500eb62d1cf2
3
+ metadata.gz: 827933911092eae398de4cbc824707f7a9b805c2ab0f3335b50ac51e3b9bb6b5
4
+ data.tar.gz: ab287f2adba21033e56a08a531d5fcb981b07b5060b5827c5e3dc1bfea77f0ca
5
5
  SHA512:
6
- metadata.gz: 3ed5978e7f65a14a1f1065297bf897da87095eb34d485211dd2b8a76e6007da94ac84292ab7f86d2252a43e412dcba82448f5259d61a853df6921137e0057ca0
7
- data.tar.gz: 8764bca4fa95beb1f9631eb4228962b1dd84fa13b2ff22f0c8fbd0d516df02a00c1c990bd11fba5db359051047c9f6a7be1fa24c0cab9d101550f08834597ff8
6
+ metadata.gz: b77346948431ac4cdbd597cb0c666f97cbb24fd5135b393968e0045625849e242036ad92e8721f92a91829cb762b9d671d80da6bc1bd390ee951be6a5cc3838b
7
+ data.tar.gz: 6bbf92e502229016ff9f9beff354815519219706ebf678d5c9537d2cf67c4a113df0153fd30014bfc164f7f8fc30388ade2629dc0c135445d41547c49468512a
@@ -22,10 +22,8 @@ module Souls
22
22
 
23
23
  desc "get_endpoint", "Show Worker's Endpoint"
24
24
  def get_endpoint(worker_name: "")
25
- app_name = Souls.configuration.app
26
25
  project_id = Souls.configuration.project_id
27
- `gcloud run services list --project #{project_id}
28
- | grep ##{worker_name} | awk '{print $4}'`
26
+ `gcloud run services list --project #{project_id} | grep #{worker_name} | awk '{print $4}'`
29
27
  rescue Thor::Error => e
30
28
  raise(Thor::Error, e)
31
29
  end
@@ -55,6 +55,7 @@ module Souls
55
55
  end
56
56
 
57
57
  def create_push_subscription(topic_id: "mailer")
58
+ app = Souls.configuration.app
58
59
  require("#{Souls.get_mother_path}/config/souls")
59
60
  worker_name = topic_id.split("_")[1]
60
61
 
@@ -62,7 +63,7 @@ module Souls
62
63
  endpoint = ""
63
64
  worker_paths = Souls.configuration.workers
64
65
  worker_paths.each do |worker|
65
- endpoint = worker[:endpoint] if worker[:name] == worker_name
66
+ endpoint = worker[:endpoint] if worker[:name] == "souls-#{app}-#{worker_name}"
66
67
  end
67
68
 
68
69
  project_id = Souls.configuration.project_id
@@ -76,7 +77,7 @@ module Souls
76
77
 
77
78
  def get_workers
78
79
  require("#{Souls.get_mother_path}/config/souls")
79
- worker_paths = Souls.configuration.workers.map { |n| n[:name] }
80
+ worker_paths = Souls.configuration.workers.map { |n| n[:name].split("-").last }
80
81
  response = {}
81
82
  Dir.chdir(Souls.get_mother_path.to_s) do
82
83
  worker_paths.each do |worker|
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.70.2".freeze
2
+ VERSION = "0.70.6".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.49.2
1
+ 0.49.6
@@ -1 +1 @@
1
- 0.49.2
1
+ 0.49.6
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.70.2
4
+ version: 0.70.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI