capistrano 3.0.0.pre7 → 3.0.0.pre10

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: 117f494efdcee24c00ce4880240a374a8a8a82ee
4
- data.tar.gz: e2eb9bee0c6d23634ba571f47e367584df04f112
3
+ metadata.gz: c435ab07209bb964ee9da9e5c134aa2265a9ed0d
4
+ data.tar.gz: a93041cc0f81586f08e4f32f528bc7c1ce87526b
5
5
  SHA512:
6
- metadata.gz: 8abcc2ca0e5dd55d43d0e6e09ca13ec585b71b7fed96a9c1fd87a0d896c123257ddf49be61e7b4ea0c21edf4aa3397fc4b6938d1a10f653b0f5dceb682115ae0
7
- data.tar.gz: 3412ab48b2ff5b8aeeec526113a7208955189bb933f5ba5b4cd9026cc47d2a2e6fb0b23c99c5d7d1e21cdc7aab472e2bc354a0ef6e20394565f40f940c30e97c
6
+ metadata.gz: 16860e60c8670911f0172c779cf573c49e7093dfb6c70ededee57894ec2f75d013b98794d4968a645d6f02dd721ffc0ba6d42b7aea75089f75757d079233ae56
7
+ data.tar.gz: 8e96b332b5a8f49517d343cb63f3587b26047397644bfb6f1638bee0af56fa4d3ff079f9c870596f20c9d61efbe106e76e86eb8d21644daa30125acd180d8053
data/.travis.yml CHANGED
@@ -1,5 +1,7 @@
1
+ language: ruby
1
2
  rvm:
2
3
  - 2.0.0
3
4
  - 1.9.3
4
5
  - 1.9.2
5
6
  - rbx-19mode
7
+ script: "rake spec"
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
 
@@ -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 `:%{filter}` would remove all matching servers',
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'
@@ -59,7 +59,7 @@ namespace :deploy do
59
59
  namespace :symlink do
60
60
  desc 'Symlink release to current'
61
61
  task :release do
62
- on roles :web, :app do
62
+ on roles :all do
63
63
  execute :rm, '-rf', current_path
64
64
  execute :ln, '-s', release_path, current_path
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.0.0.pre7"
2
+ VERSION = "3.0.0.pre10"
3
3
  end
@@ -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.pre7
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-04 00:00:00.000000000 Z
12
+ date: 2013-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sshkit