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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aeb894dbfb76fd3ff17a9c606c1bc1299da63299
4
- data.tar.gz: cd9d64fa44281f85ec1dd7105e4120474556ddf1
3
+ metadata.gz: 86dd1fb642d571bad63544a92f91cceb3796bed0
4
+ data.tar.gz: f2bd78248da4e0016e9d1ef9352d3f6cbf49ce6d
5
5
  SHA512:
6
- metadata.gz: 874c1f79c161f80f9e61f0318f2ba61a87f1f4f834099a3071b3ee52769a4a94a29ccb5a4be20ae854f2733082ab995d1c5eae06375bfb7b1650a864d956ccdf
7
- data.tar.gz: a968bafec4ac99f00998e17cb164ce8ee41acd32d577805f817aacee2c91eeffb47c0a9b4350a08fa3c18b9a6e6da35815d2eb4815975caa5d67e4d49a2558f3
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.0', '>= 0.0.22'
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 'versionomy', '~> 0.4', '>= 0.4.4'
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'
@@ -17,6 +17,7 @@ require 'celluloid_pubsub'
17
17
  require 'configliere'
18
18
  require 'devnull'
19
19
  require 'inquirer'
20
+ require 'rack'
20
21
 
21
22
  require 'logger'
22
23
  require 'fileutils'
@@ -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.connect(actor: Actor.current, enable_debug: debug_websocket?, channel: subscription_channel)
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.connect(actor: Actor.current, enable_debug: debug_websocket?, channel: @subscription_channel)
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
@@ -7,8 +7,8 @@ module CapistranoMulticonfigParallel
7
7
  # module used for generating the version
8
8
  module VERSION
9
9
  MAJOR = 0
10
- MINOR = 24
11
- TINY = 1
10
+ MINOR = 25
11
+ TINY = 0
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.24.1
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.22
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.22
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: versionomy
294
+ name: rack
275
295
  requirement: !ruby/object:Gem::Requirement
276
296
  requirements:
277
297
  - - "~>"
278
298
  - !ruby/object:Gem::Version
279
- version: '0.4'
299
+ version: '1.6'
280
300
  - - ">="
281
301
  - !ruby/object:Gem::Version
282
- version: 0.4.4
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: '0.4'
309
+ version: '1.6'
290
310
  - - ">="
291
311
  - !ruby/object:Gem::Version
292
- version: 0.4.4
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: