capistrano 3.3.4 → 3.3.5

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: 6f29153f55673d7e5e6d7941c8ff781bd98e7c75
4
- data.tar.gz: 6685c780f1e49372c56de8af1665736c4e8c7c5d
3
+ metadata.gz: c070509b8ffb4ed5817485be5837b7f33b98a99c
4
+ data.tar.gz: 08c9555174d74715e0615738d7deb4f472e77595
5
5
  SHA512:
6
- metadata.gz: 78b8c50f1ca69b7a705c64114b3a7488a8a8ed22418a7ecb1f13faf3ebe9b7322694c5ea9bc84b32f80499419b1aa8e2a886a2c9ee6c04970a52075677d3c7c1
7
- data.tar.gz: e4717b8b7a5bbf1515474f40c949f7060640286c1223394e1c34466a7df69218e6d1dfae063595ec637f983602786689a5bf00146b8fdf7425f80d52f58d52aa
6
+ metadata.gz: 338b464cb5443d6ce1f63a121637c5d3acb5c8b956add0b7a0af1fbd27d92d57ebf34ecb052dccdd6ff1d7fb1579cbc54027a9c4d219b6dc269998af6457bdfb
7
+ data.tar.gz: d4e7ab991450dc7f6072137b09e10e5500cbbb79c536896b8b4228a4976cd6e7a37dd57970d3908662d2083e78457a4376d45d0144e753bc13a50f307cfc9544
@@ -4,10 +4,19 @@ Reverse Chronological Order:
4
4
 
5
5
  ## master
6
6
 
7
- https://github.com/capistrano/capistrano/compare/v3.3.4...HEAD
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, properties).with(properties)
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, properties)
37
- new_host = Server[host].with(properties)
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
 
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- VERSION = "3.3.4"
2
+ VERSION = "3.3.5"
3
3
  end
@@ -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
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-10 00:00:00.000000000 Z
12
+ date: 2014-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sshkit