specinfra 2.77.3 → 2.78.0

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: 8298f534eb799315d2668c7aa87ab7f7ba3e782b
4
- data.tar.gz: 87ede0e5c80701a4711db671aa8594d033bf00a7
3
+ metadata.gz: b031d358904bc240a4a7417087aa4f1c55719d51
4
+ data.tar.gz: 4a67733eee44c54a7ec229e77ea24980515e4c85
5
5
  SHA512:
6
- metadata.gz: ae268a5bf8cba85c6502465962fb03139ecb91b7977de81520601a678fcde2e591d5a4d983fb50eeea8ac92c39620cf59a6595b9b2f16dc61b4141b13124db65
7
- data.tar.gz: 5827def71e3936751f8e1be0ce47c38c3a3499d5443372a1f8f328226da5306041efd58119502ca3b4ed0f10bfe15b60b12db0b0ca14e6bfd12aafadbc67fead
6
+ metadata.gz: 832b20479f43cfacac9295500a316997778a969f038d73189f31f23fb1f0499172f0100ec3f3f2f98459c4f7902c7bdf1f691bd88bde6ecc66d67dad161f2d19
7
+ data.tar.gz: 016e76dc1d537f43affe7e7e18d4138c4d71f86fddc4ce22802fd0753590ed22a0671ab2e77e1fd2faaf0233faf944542212941f6b1d5f59eb114b709d737f02
@@ -41,6 +41,13 @@ class Specinfra::Command::Base::Package < Specinfra::Command::Base
41
41
  cmd = "#{cmd} | grep -w -- #{escape(version)}" if version
42
42
  cmd
43
43
  end
44
+
45
+ def check_is_installed_by_pip2(name, version=nil)
46
+ regexp = "^#{name}"
47
+ cmd = "pip2 list | grep -iw -- #{escape(regexp)}"
48
+ cmd = "#{cmd} | grep -w -- #{escape(version)}" if version
49
+ cmd
50
+ end
44
51
 
45
52
  def check_is_installed_by_pip3(name, version=nil)
46
53
  regexp = "^#{name} "
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.77.3"
2
+ VERSION = "2.78.0"
3
3
  end
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.77.3
4
+ version: 2.78.0
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-05-28 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp