capistrano 3.10.0 → 3.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +13 -1
- data/LICENSE.txt +1 -1
- data/lib/capistrano/configuration/host_filter.rb +1 -1
- data/lib/capistrano/version.rb +1 -1
- data/spec/lib/capistrano/configuration/host_filter_spec.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 404e54f1e5c948447a42f25d3747b65a2f1781adfb5ef3c4442e338cbce4aab1
|
4
|
+
data.tar.gz: 2d7150c57e5cc6cbb9e2c99a8685beb96d44a64582167116db8726ced468910c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06d16ce9d224b8b59fb80d201c964f056ae4eb529a154706d0a5289558b9e1ef701a83d02bcd5d73731c3ab4876e3b9c9ab07af1c31effd6635ddfa823f5e5a
|
7
|
+
data.tar.gz: 40055c8e10dace6d5ddbefb04b6020449c147e07fa017b707541d79595525a31097c534c0c3524fad0b135e9eb3ccd0e21582e1b62ea0df2377661f2ca9c9a87
|
data/CHANGELOG.md
CHANGED
@@ -16,10 +16,22 @@ gem "capistrano", :github => "capistrano/capistrano"
|
|
16
16
|
|
17
17
|
## [master]
|
18
18
|
|
19
|
-
[master]: https://github.com/capistrano/capistrano/compare/v3.10.
|
19
|
+
[master]: https://github.com/capistrano/capistrano/compare/v3.10.1...HEAD
|
20
20
|
|
21
21
|
* Your contribution here!
|
22
22
|
|
23
|
+
## [`3.10.1`] (2017-12-08)
|
24
|
+
|
25
|
+
[`3.10.1`]: https://github.com/capistrano/capistrano/compare/v3.10.0...v3.10.1
|
26
|
+
|
27
|
+
### Breaking changes:
|
28
|
+
|
29
|
+
* None
|
30
|
+
|
31
|
+
### Fixes:
|
32
|
+
|
33
|
+
* [#1954](https://github.com/capistrano/capistrano/pull/1954): Fix Host filtering when multi-host strings contain `0`
|
34
|
+
|
23
35
|
## [`3.10.0`] (2017-10-23)
|
24
36
|
|
25
37
|
[`3.10.0`]: https://github.com/capistrano/capistrano/compare/v3.9.1...v3.10.0
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2012-
|
3
|
+
Copyright (c) 2012-2017 Tom Clements, Lee Hambley
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -3,7 +3,7 @@ module Capistrano
|
|
3
3
|
class HostFilter
|
4
4
|
def initialize(values)
|
5
5
|
av = Array(values).dup
|
6
|
-
av = av.flat_map { |v| v.is_a?(String) && v =~ /^(?<name>[-A-Za-
|
6
|
+
av = av.flat_map { |v| v.is_a?(String) && v =~ /^(?<name>[-A-Za-z0-9.]+)(,\g<name>)*$/ ? v.split(",") : v }
|
7
7
|
@rex = regex_matcher(av)
|
8
8
|
end
|
9
9
|
|
data/lib/capistrano/version.rb
CHANGED
@@ -10,7 +10,7 @@ module Capistrano
|
|
10
10
|
Server.new("server2"),
|
11
11
|
Server.new("server3"),
|
12
12
|
Server.new("server4"),
|
13
|
-
Server.new("
|
13
|
+
Server.new("server10")]
|
14
14
|
end
|
15
15
|
|
16
16
|
shared_examples "it filters hosts correctly" do |expected|
|
@@ -32,8 +32,8 @@ module Capistrano
|
|
32
32
|
end
|
33
33
|
|
34
34
|
context "with a comma separated string" do
|
35
|
-
let(:values) { "server1,
|
36
|
-
it_behaves_like "it filters hosts correctly", %w{server1
|
35
|
+
let(:values) { "server1,server10" }
|
36
|
+
it_behaves_like "it filters hosts correctly", %w{server1 server10}
|
37
37
|
end
|
38
38
|
|
39
39
|
context "with an array of strings" do
|
@@ -53,12 +53,12 @@ module Capistrano
|
|
53
53
|
|
54
54
|
context "with a regexp with line boundaries" do
|
55
55
|
let(:values) { "^server" }
|
56
|
-
it_behaves_like "it filters hosts correctly", %w{server1 server2 server3 server4
|
56
|
+
it_behaves_like "it filters hosts correctly", %w{server1 server2 server3 server4 server10}
|
57
57
|
end
|
58
58
|
|
59
59
|
context "with a regexp with a comma" do
|
60
60
|
let(:values) { 'server\d{1,3}$' }
|
61
|
-
it_behaves_like "it filters hosts correctly", %w{server1 server2 server3 server4
|
61
|
+
it_behaves_like "it filters hosts correctly", %w{server1 server2 server3 server4 server10}
|
62
62
|
end
|
63
63
|
|
64
64
|
context "without number" 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.10.
|
4
|
+
version: 3.10.1
|
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: 2017-
|
12
|
+
date: 2017-12-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: airbrussh
|
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
285
|
version: '0'
|
286
286
|
requirements: []
|
287
287
|
rubyforge_project:
|
288
|
-
rubygems_version: 2.
|
288
|
+
rubygems_version: 2.7.3
|
289
289
|
signing_key:
|
290
290
|
specification_version: 4
|
291
291
|
summary: Capistrano - Welcome to easy deployment with Ruby over SSH
|