specinfra 2.82.2 → 2.82.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/configuration.rb +1 -2
- data/lib/specinfra/version.rb +1 -1
- data/spec/backend/exec/build_command_spec.rb +6 -1
- 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: 3affcf7ef4aba1d19795493e811f5f2f5e48a027
|
4
|
+
data.tar.gz: dbab27e32498d872bc7aa9683c2aefb941e51444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5faddd1bad64b5cae4ad495394bc01b8551a1f829342e61f8f5a578eddfd4f4e2fe3475898e9606c46b768422296266e3c849bcf30f465980f30bbc1df9e97d
|
7
|
+
data.tar.gz: 2552cfbeac6b19b03e50aa4f95ec6027c8308f31389f7eeb62f769cd9c52be6e63ac57d1ac1725c2110535858782de21b12698cab8c63fb068f880de5777dca7
|
data/lib/specinfra/version.rb
CHANGED
@@ -18,7 +18,12 @@ describe Specinfra::Backend::Exec do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'should escape quotes' do
|
21
|
-
|
21
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.7')
|
22
|
+
expect(Specinfra.backend.build_command(%Q{find /etc/apt/ -name \*.list | xargs grep -o -E "^deb +[\\"']?http://ppa.launchpad.net/gluster/glusterfs-3.7"})).to eq('/bin/sh -c find\ /etc/apt/\ -name\ \*.list\ \|\ xargs\ grep\ -o\ -E\ \"\^deb\ \+\[\\\\\"\\\'\]\?http://ppa.launchpad.net/gluster/glusterfs-3.7\"')
|
23
|
+
else
|
24
|
+
# Since Ruby 2.7, `+` is not escaped.
|
25
|
+
expect(Specinfra.backend.build_command(%Q{find /etc/apt/ -name \*.list | xargs grep -o -E "^deb +[\\"']?http://ppa.launchpad.net/gluster/glusterfs-3.7"})).to eq('/bin/sh -c find\ /etc/apt/\ -name\ \*.list\ \|\ xargs\ grep\ -o\ -E\ \"\^deb\ +\[\\\\\"\\\'\]\?http://ppa.launchpad.net/gluster/glusterfs-3.7\"')
|
26
|
+
end
|
22
27
|
end
|
23
28
|
end
|
24
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.82.
|
4
|
+
version: 2.82.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|