specinfra 2.73.4 → 2.74.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: bc27341bcbba32f7f8a1fc7e0530c2acc9daac24
4
- data.tar.gz: ba76bee5de71de97962a52513b6e7b15d6d484c2
3
+ metadata.gz: 02f19ca5bac80d27973d69b932379a3012d40484
4
+ data.tar.gz: 302a1856a3af721bb4d84f1f4ba66c527ff241d2
5
5
  SHA512:
6
- metadata.gz: f90c1000d71304e280b6f289df44d8c050b7a26d936cec74603a69fc043d0537664b9f6c6d2a0729ce895937f55281a8e2fe84d7bc44055b8309c2768e68b2be
7
- data.tar.gz: c50257609a1e510fa53bbe37044d337a7aaf49ce9784c795b77284312c9e697cf4b3d3daf1790eed96c65369934060671ff81fd5dc46416ba5b165b487d3763b
6
+ metadata.gz: 00f7d4d18fab654f49e62b4cf39e0a6ee891f3894c1997c486b137595ee85f8c6e0a4d3a6ff7a3fd7350d8b014e08829705b381f45c6e54c88454a8f9e1a03e3
7
+ data.tar.gz: 5344b42460a82e962d5df9580d696c471528d9a665416bffcf4f8cdf801037e566fb88d73f34968df5fe119aa62339d34bcb2c75e8e7e35ffb16ead7636ccd1f
@@ -36,11 +36,18 @@ class Specinfra::Command::Base::Package < Specinfra::Command::Base
36
36
  end
37
37
 
38
38
  def check_is_installed_by_pip(name, version=nil)
39
- regexp = "^#{name} "
39
+ regexp = "^#{name}"
40
40
  cmd = "pip list | grep -iw -- #{escape(regexp)}"
41
41
  cmd = "#{cmd} | grep -w -- #{escape(version)}" if version
42
42
  cmd
43
43
  end
44
+
45
+ def check_is_installed_by_pip3(name, version=nil)
46
+ regexp = "^#{name} "
47
+ cmd = "pip3 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_cpan(name, version=nil)
46
53
  regexp = "^#{name}"
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.73.4"
2
+ VERSION = "2.74.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.73.4
4
+ version: 2.74.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: 2018-07-02 00:00:00.000000000 Z
11
+ date: 2018-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp