capistrano_multiconfig_parallel 2.1.1 → 2.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfcc124d469e11ca56f9c100e03202921a35b7bf
|
4
|
+
data.tar.gz: dc5ad4198148c3f0d3218cbbd06395c0c73ef472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84bae3eab933625ea86290d8733010cabe43e28527654706464cdebb0ad17c701a0ccf6bf7d34cd3626b4508efea8244d685a42eb4373848d36218084d05d178
|
7
|
+
data.tar.gz: a926c6383985f65332032a45b5b3701a03b8b40bb49f3669b7743dc25edbea2d9c2be21bf3d92037812b0a71744f65bbcb1175bae1e75791a7afe6b16237a52e
|
data/README.md
CHANGED
@@ -17,7 +17,13 @@ IMPORTANT! The whole reason for this gem was for using [Caphub](https://github.c
|
|
17
17
|
|
18
18
|
CAUTION!! PLEASE READ CAREFULLY!! Capistrano is not thread-safe. However in order to work around this problem, each of the task is executing inside a thread that spawns a new process in order to run capistrano tasks The thread monitors the process. This works well, however if the tasks you are executing is working with files, you might get into deadlocks because multiple proceses try to access same resource. Instead of using files , please consider using StringIO instead.
|
19
19
|
|
20
|
-
|
20
|
+
|
21
|
+
NEW Improvements started in version 2.2.0
|
22
|
+
-------------------------------------------------------------------------------------
|
23
|
+
- the websocket server will automatically detect an unused port and use that, in case port is not set
|
24
|
+
|
25
|
+
|
26
|
+
NEW Improvements started in version 2.0.0
|
21
27
|
-------------------------------------------------------------------------------------
|
22
28
|
|
23
29
|
- Code for handling websocket events when a task is invoked was moved to a new gem [capistrano_sentinel](https://github.com/bogdanRada/capistrano_sentinel)
|
@@ -60,7 +66,7 @@ Requirements
|
|
60
66
|
Compatibility
|
61
67
|
-------------
|
62
68
|
|
63
|
-
|
69
|
+
[MRI >= 2.0](http://www.ruby-lang.org)
|
64
70
|
|
65
71
|
Ruby 1.8, 1.9 are not officially supported.
|
66
72
|
|
@@ -86,10 +92,36 @@ Install locally on your system the capistrano_multiconfig_parallel gem using thi
|
|
86
92
|
**Please check first what is the last release here: [Release Details](https://github.com/bogdanRada/capistrano_multiconfig_parallel/releases) and use that version instead of the one below**
|
87
93
|
|
88
94
|
```ruby
|
89
|
-
gem install capistrano_multiconfig_parallel -v 2.
|
95
|
+
gem install capistrano_multiconfig_parallel -v 2.1.1
|
96
|
+
```
|
97
|
+
|
98
|
+
You will need to have [MRI >= 2.2](http://www.ruby-lang.org) when you install in this way due to activesupport dependency.
|
99
|
+
|
100
|
+
Or if you need to use [MRI > 2.0 and < 2.2](http://www.ruby-lang.org) you can use this command:
|
101
|
+
|
102
|
+
```ruby
|
103
|
+
gem install capistrano_multiconfig_parallel:2.1.1 activesupport:4.0.0
|
90
104
|
```
|
91
105
|
|
92
|
-
You
|
106
|
+
You can replace the activesupport dependency with any version greater than 4.0 ( Please check this issue though first for this case: [Rubygems installation of multiple gems doesn't install dependencies](https://github.com/rubygems/rubygems/issues/1672) . I would suggest to use until that issue is resolved the first scenario.
|
107
|
+
|
108
|
+
For [MRI > 2.0 and < 2.2](http://www.ruby-lang.org) you can use though this workaround. Create a Gemfile on your sytem and add this line of code:
|
109
|
+
|
110
|
+
```ruby
|
111
|
+
|
112
|
+
gem 'capistrano_multiconfig_parallel'
|
113
|
+
|
114
|
+
if RUBY_VERSION >= "2.2.0"
|
115
|
+
gem 'activesupport', '>= 4.0', '>= 4.0'
|
116
|
+
else
|
117
|
+
gem 'activesupport', '>= 4.0', '< 5.0'
|
118
|
+
end
|
119
|
+
|
120
|
+
```
|
121
|
+
|
122
|
+
And use `bundle exec multi_cap` from that directory when running the executable.
|
123
|
+
|
124
|
+
**For Ruby >= 2.2 please use the first scenario and don't use BUNDLE EXEC in that case!!!**
|
93
125
|
|
94
126
|
Please read [Release Details](https://github.com/bogdanRada/capistrano_multiconfig_parallel/releases) if you are upgrading. We break backward compatibility between large ticks but you can expect it to be specified at release notes.
|
95
127
|
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.add_runtime_dependency 'celluloid', '>= 0.16', '>= 0.16'
|
22
22
|
s.add_runtime_dependency 'celluloid-pmap', '~> 0.2', '>= 0.2.2'
|
23
|
-
s.add_runtime_dependency 'celluloid_pubsub', '~> 0.
|
23
|
+
s.add_runtime_dependency 'celluloid_pubsub', '~> 0.9', '>= 0.9'
|
24
24
|
s.add_runtime_dependency 'composable_state_machine', '~> 1.0', '>= 1.0.2'
|
25
25
|
s.add_runtime_dependency 'terminal-table', '~> 1.5', '>= 1.5.2'
|
26
26
|
s.add_runtime_dependency 'colorize', '~> 0.7', '>= 0.7'
|
@@ -239,7 +239,7 @@ module CapistranoMulticonfigParallel
|
|
239
239
|
prepare_application_for_deployment
|
240
240
|
# config_flags = CapistranoMulticonfigParallel.configuration_flags.merge("capistrano_version": job_capistrano_version)
|
241
241
|
environment_options = setup_command_line.join(' ')
|
242
|
-
command = "#{fetch_bundler_check_command(@job_final_gemfile)} && WEBSOCKET_LOGGING=#{debug_websocket?} LOG_FILE=#{websocket_config.fetch('log_file_path', nil)} #{bundle_gemfile_env(@job_final_gemfile)} bundle exec cap #{job_stage} #{capistrano_action} #{environment_options}"
|
242
|
+
command = "#{fetch_bundler_check_command(@job_final_gemfile)} && WS_PORT=#{CelluloidPubsub::WebServer.find_unused_port} WEBSOCKET_LOGGING=#{debug_websocket?} LOG_FILE=#{websocket_config.fetch('log_file_path', nil)} #{bundle_gemfile_env(@job_final_gemfile)} bundle exec cap #{job_stage} #{capistrano_action} #{environment_options}"
|
243
243
|
|
244
244
|
if @job_final_capfile != job_capfile
|
245
245
|
command += " -f #{@job_final_capfile}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano_multiconfig_parallel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|
@@ -50,20 +50,20 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.9'
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: '0.9'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.9'
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
66
|
+
version: '0.9'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: composable_state_machine
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|