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: 94e0177f23cdc02ccddd6a98c0c473d435850997208e2b468cba56a064d531a3
4
- data.tar.gz: b437b6ff707949ceca549a553399fa048e71547ddff0c0d3034d5966a35c82c7
3
+ metadata.gz: f2e4e81d37978401e1b2d6059fb3a0cf574d43b8e59a8953c51801dc7e5da7ce
4
+ data.tar.gz: 8dbe42fc0414c628f07ac5cb31d7971bf0ca3c8b983d5046ffccd8719cb5bf87
5
5
  SHA512:
6
- metadata.gz: e5e6d741d7502db4412f4d651512d513faf086ec8a43cef194974b46d244e9793941f16517d897a51d6a9accdc07c8a8ce1f76aa7b6f03309401bcb8d9d5334c
7
- data.tar.gz: 00a78a46e14a759219c443bc6aa4a53934672439d391f32db6ff06564e9d734bf4cb1821ee836867aee6fb57e31efc8aa20d45ed5f51dac54e78895e17d02a22
6
+ metadata.gz: 3409a01fba431f0a2c81344176fa7b074b758e639bf0536fd27eebb5883d792226e32de25aa07782de68518c493e589a8347a24d44455824dbc23d0be733ba7e
7
+ data.tar.gz: acd633a4aaad9c88731a30bad58bcc058914e5c3e795c5e48f257b80736a86bc39097dd52b2dcd6fce3fd44076b345e89e8488dd97ce09bbba08b67fd1f20abe
@@ -298,14 +298,14 @@ end
298
298
  _____ ____ __ ____#{' '}
299
299
  / ___// __ \\/ / / / / %{red1}
300
300
  \\__ \\/ / / / / / / / %{red2}
301
- ___/ / /_/ / /_/ / /___%{red3}#{' '}
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, :cyan, { red1: red1, red2: red2, red3: red3, red4: red4 }]
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,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.0.5".freeze
2
+ VERSION = "1.0.9".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.9
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.9
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.0.5
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI