capistrano 3.0.0.pre7 → 3.0.0.pre10
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 +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +15 -0
- data/lib/capistrano/configuration/servers.rb +2 -2
- data/lib/capistrano/i18n.rb +1 -1
- data/lib/capistrano/tasks/deploy.rake +1 -1
- data/lib/capistrano/version.rb +1 -1
- data/spec/integration/dsl_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c435ab07209bb964ee9da9e5c134aa2265a9ed0d
|
4
|
+
data.tar.gz: a93041cc0f81586f08e4f32f528bc7c1ce87526b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16860e60c8670911f0172c779cf573c49e7093dfb6c70ededee57894ec2f75d013b98794d4968a645d6f02dd721ffc0ba6d42b7aea75089f75757d079233ae56
|
7
|
+
data.tar.gz: 8e96b332b5a8f49517d343cb63f3587b26047397644bfb6f1638bee0af56fa4d3ff079f9c870596f20c9d61efbe106e76e86eb8d21644daa30125acd180d8053
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,21 @@
|
|
2
2
|
|
3
3
|
Reverse Chronological Order:
|
4
4
|
|
5
|
+
## `3.0.0.pre10`
|
6
|
+
|
7
|
+
* Fixes pre9.
|
8
|
+
|
9
|
+
## `3.0.0.pre9`
|
10
|
+
|
11
|
+
* Fixes a syntax error introduced with filtering (with tests) introduced in
|
12
|
+
`pre8`. (@leehambley)
|
13
|
+
|
14
|
+
## `3.0.0.pre8`
|
15
|
+
|
16
|
+
* Fixed a syntax where `roles(:foo, :bar)` was being mistaken as a filter
|
17
|
+
(roles(:foo, :bar => nil). The correct syntax to use is: roles([:foo,:bar])
|
18
|
+
(@leehambley)
|
19
|
+
|
5
20
|
## `3.0.0.pre7`
|
6
21
|
|
7
22
|
* Fix Git https authentication. (@leehambley)
|
@@ -41,7 +41,7 @@ module Capistrano
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def fetch_roles(names, options)
|
44
|
-
if Array(names).map(&:to_sym).include?(:all)
|
44
|
+
if Array(names).flatten.map(&:to_sym).include?(:all)
|
45
45
|
filter(servers, options)
|
46
46
|
else
|
47
47
|
role_servers = Array(names).flat_map { |name| fetch name }.uniq
|
@@ -70,7 +70,7 @@ module Capistrano
|
|
70
70
|
if servers_with_filter.any?
|
71
71
|
servers_with_filter
|
72
72
|
else
|
73
|
-
fail I18n.t(:filter_removes_all_servers, scope: :capistrano, filter: key )
|
73
|
+
fail I18n.t(:filter_removes_all_servers, scope: :capistrano, filter: key || '(no filter)' )
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
data/lib/capistrano/i18n.rb
CHANGED
@@ -18,7 +18,7 @@ en = {
|
|
18
18
|
mirror_exists: "The repository mirror is at %{at}",
|
19
19
|
revision_log_message: 'Branch %{branch} deployed as release %{release} by %{user}',
|
20
20
|
rollback_log_message: '%{user} rolled back to release %{release}',
|
21
|
-
filter_removes_all_servers: 'Your filter
|
21
|
+
filter_removes_all_servers: 'Your filter `%{filter}` would remove all matching servers',
|
22
22
|
console: {
|
23
23
|
welcome: 'capistrano console - enter command to execute on %{stage}',
|
24
24
|
bye: 'bye'
|
data/lib/capistrano/version.rb
CHANGED
@@ -21,6 +21,13 @@ describe Capistrano::DSL do
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
+
describe 'fetching servers by multiple roles' do
|
25
|
+
it "does not confuse the last role with options" do
|
26
|
+
expect(dsl.roles(:app, :web).count).to eq 4
|
27
|
+
expect(dsl.roles(:app, :web, filter: :active).count).to eq 2
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
24
31
|
describe 'fetching servers by role' do
|
25
32
|
subject { dsl.roles(:app) }
|
26
33
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.pre10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Clements
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sshkit
|