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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17a5c19be4add055f3aad207d6788fd9e7d8d035
4
- data.tar.gz: 8d3c8cc56e0a7a37291b70b50706b1ea51ac74c2
3
+ metadata.gz: 3affcf7ef4aba1d19795493e811f5f2f5e48a027
4
+ data.tar.gz: dbab27e32498d872bc7aa9683c2aefb941e51444
5
5
  SHA512:
6
- metadata.gz: d62146f5981c071b10a4424139aba93fa1cc7c363ae2bd995655f1ecf3e0be84820addf91991e2f68b87950327830a08bc7bce3b397eacf5df0e1d798e31e2e1
7
- data.tar.gz: 4be3b5105481d822b40504effa55a5f0168ce49dfe21e8969eaf05f2035dcb1570acc035d571d0b2c16b5d0b8fc5adbc28259db24ada2346c56a401959a7351b
6
+ metadata.gz: f5faddd1bad64b5cae4ad495394bc01b8551a1f829342e61f8f5a578eddfd4f4e2fe3475898e9606c46b768422296266e3c849bcf30f465980f30bbc1df9e97d
7
+ data.tar.gz: 2552cfbeac6b19b03e50aa4f95ec6027c8308f31389f7eeb62f769cd9c52be6e63ac57d1ac1725c2110535858782de21b12698cab8c63fb068f880de5777dca7
@@ -43,8 +43,7 @@ module Specinfra
43
43
  end
44
44
 
45
45
  def method_missing(meth, val=nil)
46
- key = meth.to_s
47
- key.gsub!(/=$/, '')
46
+ key = meth.to_s.gsub(/=$/, '')
48
47
  ret = nil
49
48
  begin
50
49
  if ! val.nil?
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.2"
2
+ VERSION = "2.82.3"
3
3
  end
@@ -18,7 +18,12 @@ describe Specinfra::Backend::Exec do
18
18
  end
19
19
 
20
20
  it 'should escape quotes' do
21
- 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\"')
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp