capistrano_multiconfig_parallel 0.24.1 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capistrano_multiconfig_parallel.gemspec +3 -2
- data/lib/capistrano_multiconfig_parallel/all.rb +1 -0
- data/lib/capistrano_multiconfig_parallel/celluloid/celluloid_worker.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/celluloid/rake_worker.rb +1 -1
- data/lib/capistrano_multiconfig_parallel/initializers/websocket.rb +18 -0
- data/lib/capistrano_multiconfig_parallel/version.rb +2 -2
- metadata +29 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86dd1fb642d571bad63544a92f91cceb3796bed0
|
4
|
+
data.tar.gz: f2bd78248da4e0016e9d1ef9352d3f6cbf49ce6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09d42f2a233295486d57f8d901979fabecdd9a5f7135638e457306760db78007fb6a66ded71cbfcb0a1021ef40ac63d0af054171d97675b2bf4e87ce136746f6
|
7
|
+
data.tar.gz: 51bc9d065e429f550a8fa41195269cde0aa3a7846b5eddbe94beca69f21a3f8932fb3428f17f114129ec4c3311ca4a23cdec338607ca595de69a0abfd8d104d0
|
@@ -18,7 +18,8 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
|
20
20
|
s.add_runtime_dependency 'celluloid-pmap', '~> 0.2', '>= 0.2.2'
|
21
|
-
s.add_runtime_dependency 'celluloid_pubsub', '~> 0.
|
21
|
+
s.add_runtime_dependency 'celluloid_pubsub', '~> 0.1', '>= 0.1.0'
|
22
|
+
s.add_runtime_dependency 'celluloid-websocket-client', '~> 0.0', '>= 0.0.1'
|
22
23
|
s.add_runtime_dependency 'composable_state_machine', '~> 1.0', '>= 1.0.2'
|
23
24
|
s.add_runtime_dependency 'terminal-table', '~> 1.5', '>= 1.5.2'
|
24
25
|
s.add_runtime_dependency 'colorize', '~> 0.7', '>= 0.7'
|
@@ -30,7 +31,7 @@ Gem::Specification.new do |s|
|
|
30
31
|
s.add_runtime_dependency 'configliere', '~> 0.4', '>=0.4'
|
31
32
|
s.add_runtime_dependency 'inquirer', '~> 0.2', '>= 0.2'
|
32
33
|
s.add_runtime_dependency 'devnull','~> 0.1', '>= 0.1'
|
33
|
-
s.add_runtime_dependency '
|
34
|
+
s.add_runtime_dependency 'rack', '~> 1.6', '>= 1.6'
|
34
35
|
|
35
36
|
s.add_development_dependency 'rspec-rails', '~> 3.3', '>= 3.3'
|
36
37
|
s.add_development_dependency 'guard', '~> 2.13', '>= 2.13'
|
@@ -52,7 +52,7 @@ module CapistranoMulticonfigParallel
|
|
52
52
|
|
53
53
|
def start_task
|
54
54
|
log_to_file("exec worker #{@job_id} starts task")
|
55
|
-
@client = CelluloidPubsub::Client.
|
55
|
+
@client = CelluloidPubsub::Client.new(actor: Actor.current, enable_debug: debug_websocket?, channel: subscription_channel)
|
56
56
|
end
|
57
57
|
|
58
58
|
def publish_rake_event(data)
|
@@ -51,7 +51,7 @@ module CapistranoMulticonfigParallel
|
|
51
51
|
|
52
52
|
def initialize_subscription
|
53
53
|
return if defined?(@client) && @client.present?
|
54
|
-
@client = CelluloidPubsub::Client.
|
54
|
+
@client = CelluloidPubsub::Client.new(actor: Actor.current, enable_debug: debug_websocket?, channel: @subscription_channel)
|
55
55
|
end
|
56
56
|
|
57
57
|
def task_name
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'celluloid/websocket/client/connection'
|
2
|
+
# DIRTY HACK TO make websocket-driver to not use Capistrano::DSL env
|
3
|
+
Celluloid::WebSocket::Client::Connection.class_eval do
|
4
|
+
def env
|
5
|
+
env_hash = ENV.each_with_object({}) do |(key, value), memo|
|
6
|
+
memo['HTTP_' + key.upcase.tr('-', '_')] = value
|
7
|
+
memo
|
8
|
+
end
|
9
|
+
env_hash.reverse_merge!('REQUEST_METHOD' => 'GET',
|
10
|
+
'HTTP_CONNECTION' => 'Upgrade',
|
11
|
+
'HTTP_UPGRADE' => 'websocket',
|
12
|
+
'HTTP_ORIGIN' => @url,
|
13
|
+
'HTTP_SEC_WEBSOCKET_KEY' => SecureRandom.uuid,
|
14
|
+
'HTTP_SEC_WEBSOCKET_PROTOCAL' => 'ws',
|
15
|
+
'HTTP_SEC_WEBSOCKET_VERSION' => SecureRandom.random_number(15))
|
16
|
+
::Rack::MockRequest.env_for(@url, env_hash)
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_multiconfig_parallel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
@@ -32,6 +32,26 @@ dependencies:
|
|
32
32
|
version: 0.2.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: celluloid_pubsub
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.1'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.1.0
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.1'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.1.0
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: celluloid-websocket-client
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
36
56
|
requirements:
|
37
57
|
- - "~>"
|
@@ -39,7 +59,7 @@ dependencies:
|
|
39
59
|
version: '0.0'
|
40
60
|
- - ">="
|
41
61
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.0.
|
62
|
+
version: 0.0.1
|
43
63
|
type: :runtime
|
44
64
|
prerelease: false
|
45
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +69,7 @@ dependencies:
|
|
49
69
|
version: '0.0'
|
50
70
|
- - ">="
|
51
71
|
- !ruby/object:Gem::Version
|
52
|
-
version: 0.0.
|
72
|
+
version: 0.0.1
|
53
73
|
- !ruby/object:Gem::Dependency
|
54
74
|
name: composable_state_machine
|
55
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -271,25 +291,25 @@ dependencies:
|
|
271
291
|
- !ruby/object:Gem::Version
|
272
292
|
version: '0.1'
|
273
293
|
- !ruby/object:Gem::Dependency
|
274
|
-
name:
|
294
|
+
name: rack
|
275
295
|
requirement: !ruby/object:Gem::Requirement
|
276
296
|
requirements:
|
277
297
|
- - "~>"
|
278
298
|
- !ruby/object:Gem::Version
|
279
|
-
version: '
|
299
|
+
version: '1.6'
|
280
300
|
- - ">="
|
281
301
|
- !ruby/object:Gem::Version
|
282
|
-
version:
|
302
|
+
version: '1.6'
|
283
303
|
type: :runtime
|
284
304
|
prerelease: false
|
285
305
|
version_requirements: !ruby/object:Gem::Requirement
|
286
306
|
requirements:
|
287
307
|
- - "~>"
|
288
308
|
- !ruby/object:Gem::Version
|
289
|
-
version: '
|
309
|
+
version: '1.6'
|
290
310
|
- - ">="
|
291
311
|
- !ruby/object:Gem::Version
|
292
|
-
version:
|
312
|
+
version: '1.6'
|
293
313
|
- !ruby/object:Gem::Dependency
|
294
314
|
name: rspec-rails
|
295
315
|
requirement: !ruby/object:Gem::Requirement
|
@@ -662,6 +682,7 @@ files:
|
|
662
682
|
- lib/capistrano_multiconfig_parallel/helpers/core_helper.rb
|
663
683
|
- lib/capistrano_multiconfig_parallel/helpers/internal_helper.rb
|
664
684
|
- lib/capistrano_multiconfig_parallel/initializers/rake.rb
|
685
|
+
- lib/capistrano_multiconfig_parallel/initializers/websocket.rb
|
665
686
|
- lib/capistrano_multiconfig_parallel/version.rb
|
666
687
|
homepage: http://github.com/bogdanRada/capistrano_multiconfig_parallel/
|
667
688
|
licenses:
|