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 +4 -4
- data/lib/specinfra/command/base/package.rb +8 -1
- data/lib/specinfra/version.rb +1 -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: 02f19ca5bac80d27973d69b932379a3012d40484
|
4
|
+
data.tar.gz: 302a1856a3af721bb4d84f1f4ba66c527ff241d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}"
|
data/lib/specinfra/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|