capistrano 3.3.4 → 3.3.5
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/CHANGELOG.md +10 -1
- data/lib/capistrano/configuration/servers.rb +3 -3
- data/lib/capistrano/version.rb +1 -1
- data/spec/lib/capistrano/configuration/servers_spec.rb +5 -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: c070509b8ffb4ed5817485be5837b7f33b98a99c
|
4
|
+
data.tar.gz: 08c9555174d74715e0615738d7deb4f472e77595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 338b464cb5443d6ce1f63a121637c5d3acb5c8b956add0b7a0af1fbd27d92d57ebf34ecb052dccdd6ff1d7fb1579cbc54027a9c4d219b6dc269998af6457bdfb
|
7
|
+
data.tar.gz: d4e7ab991450dc7f6072137b09e10e5500cbbb79c536896b8b4228a4976cd6e7a37dd57970d3908662d2083e78457a4376d45d0144e753bc13a50f307cfc9544
|
data/CHANGELOG.md
CHANGED
@@ -4,10 +4,19 @@ Reverse Chronological Order:
|
|
4
4
|
|
5
5
|
## master
|
6
6
|
|
7
|
-
https://github.com/capistrano/capistrano/compare/v3.3.
|
7
|
+
https://github.com/capistrano/capistrano/compare/v3.3.5...HEAD
|
8
|
+
|
9
|
+
## `3.3.5`
|
10
|
+
|
11
|
+
https://github.com/capistrano/capistrano/compare/v3.3.4...v3.3.5
|
12
|
+
|
13
|
+
* Fixed setting properties twice when creating new server. See [issue
|
14
|
+
#1214](https://github.com/capistrano/capistrano/issues/1214) (@ayastreb)
|
8
15
|
|
9
16
|
## `3.3.4`
|
10
17
|
|
18
|
+
https://github.com/capistrano/capistrano/compare/v3.3.3...v3.3.4
|
19
|
+
|
11
20
|
* Minor changes:
|
12
21
|
* Rely on a newer version of capistrano-stats with better privacy (@leehambley)
|
13
22
|
* Fix cucumber spec for loading tasks from stage configs (@sponomarev)
|
@@ -8,7 +8,7 @@ module Capistrano
|
|
8
8
|
include Enumerable
|
9
9
|
|
10
10
|
def add_host(host, properties={})
|
11
|
-
servers.add server(host
|
11
|
+
servers.add server(host).with(properties)
|
12
12
|
end
|
13
13
|
|
14
14
|
def add_role(role, hosts, options={})
|
@@ -33,8 +33,8 @@ module Capistrano
|
|
33
33
|
|
34
34
|
private
|
35
35
|
|
36
|
-
def server(host
|
37
|
-
new_host = Server[host]
|
36
|
+
def server(host)
|
37
|
+
new_host = Server[host]
|
38
38
|
servers.find { |server| server.matches? new_host } || new_host
|
39
39
|
end
|
40
40
|
|
data/lib/capistrano/version.rb
CHANGED
@@ -164,6 +164,11 @@ module Capistrano
|
|
164
164
|
expect(servers.roles_for([:b]).first.properties.endpoints).to eq(Set[123,222,333])
|
165
165
|
end
|
166
166
|
|
167
|
+
it 'adds array property value only ones for a new host' do
|
168
|
+
servers.add_host('2', roles: [:array_test], array_property: [1,2])
|
169
|
+
expect(servers.roles_for([:array_test]).first.properties.array_property).to eq [1,2]
|
170
|
+
end
|
171
|
+
|
167
172
|
end
|
168
173
|
|
169
174
|
describe 'selecting roles' do
|
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.3.
|
4
|
+
version: 3.3.5
|
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: 2014-12-
|
12
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sshkit
|