capistrano_sentinel 0.0.14 → 0.0.15

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
  SHA1:
3
- metadata.gz: 6567c8c26e82b4daaf31af2640ad504455c0aa23
4
- data.tar.gz: 5eb7391d2aac739c1bfba164650e4fc141dde661
3
+ metadata.gz: 1cc01aa8dc3ee91a8dc14215e8feef1287da0c87
4
+ data.tar.gz: 51d882889f47d5996e5be5c8c1581bd902f08037
5
5
  SHA512:
6
- metadata.gz: f0c0ba51b57e53779ebc8b9f37fe951dfa6c944ba7da17c37500eccca296ca92336f440f0a5056c407b29fbf72994e47338d64eace91fb70ebb7c1ffbc50ca70
7
- data.tar.gz: 3d836d4404918d23da570ffb417ac1ed121b9e667d8abc0f7bd22ad34d51afb875b76ba846f7eba86d72bf39624c1a97cbc27165de020a32cac5ff8e1fc80e89
6
+ metadata.gz: e1ec7fe7b1dcc97bdf12447464e3f211d0870da529a5d65fef1dcc0c26f0481fbdadad75328930f40f9e22db9f55f7904a71cf1bf59ddc95fb4dcab5de2c1db5
7
+ data.tar.gz: c853ec02a1571d484ab18098e6dfafad1ab29c0723b5a8dbeba7644d624c03efdf081bcaaad13a2b552fcc42ed5307f5cdc3df26f26fe1a8454209f61b630a58
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  capistrano_sentinel
2
2
  ===================
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/capistrano_sentinel.svg)](http://badge.fury.io/rb/capistrano_sentinel) [![Gem Downloads](https://ruby-gem-downloads-badge.herokuapp.com/capistrano_sentinel?type=total&style=dynamic)](https://github.com/bogdanRada/capistrano_sentinel) [![Analytics](https://ga-beacon.appspot.com/UA-72570203-1/bogdanRada/capistrano_sentinel)](https://github.com/bogdanRada/capistrano_sentinel)
5
+
4
6
  Overview
5
7
  --------
6
8
 
@@ -85,6 +87,17 @@ Configuration options
85
87
  end
86
88
  ```
87
89
 
90
+ First time when running a task will subscribe to a channel using this format message:
91
+
92
+ ```ruby
93
+ {
94
+ "client_action":"subscribe",
95
+ "channel":"rake_worker_<job_id>",
96
+ }
97
+ ```
98
+
99
+ If you want to see how this is handled you can check the implementation here for the websocket server and reactor:[celluloid_pubsub](https://github.com/bogdanRada/celluloid_pubsub)
100
+
88
101
  All websocket messages are published in this format:
89
102
 
90
103
  ```ruby
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.files = `git ls-files`.split("\n")
17
17
  s.test_files = s.files.grep(/^(spec)/)
18
18
  s.require_paths = ["lib"]
19
- s.required_ruby_version = '>= 1.9'
19
+ s.required_ruby_version = '>= 2.0'
20
20
 
21
21
 
22
22
  s.add_dependency 'websocket'
@@ -13,7 +13,7 @@ module CapistranoSentinel
13
13
  @options = options.stringify_keys
14
14
  default_settings
15
15
  socket_client.actor = self
16
- publish_to_worker(task_data) if options['subscribed'].present?
16
+ publish_to_worker(task_data) if CapistranoSentinel.config.wait_execution && options['subscribed'].present?
17
17
  end
18
18
 
19
19
  def wait_execution(name = task_name, time = 0.1)
@@ -17,7 +17,7 @@ module CapistranoSentinel
17
17
  # minor release version
18
18
  MINOR = 0
19
19
  # tiny release version
20
- TINY = 14
20
+ TINY = 15
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_sentinel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: '1.9'
70
+ version: '2.0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="