specinfra 2.82.9 → 2.82.10

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: 12be641da0b979fbb7e114c6a6b40987d41a0e30
4
- data.tar.gz: 23542c373ee045664d8612268396ed21c7278a1d
3
+ metadata.gz: 36edd5c2c39aba78bb953d8b931c7445fe51605d
4
+ data.tar.gz: a854908612f769a9d66bf3c92055540d194ba08d
5
5
  SHA512:
6
- metadata.gz: f7ba4a22c7825dbfd0c17734f2d69edf8e422903ec61e2d2318e6fe0a2dfcdcb81d8580aa4ed48535886888b2840897c5eae1ace0dc3e75b43b0569f492abeb6
7
- data.tar.gz: e6599750de210765cc448f39fd36c3ebe7287a44625c375fc61fac01b95d01aa3180697855638cadb3eebdc4b2be752ad942128bb1d3a5306019de7981c64289
6
+ metadata.gz: b421ce3c0e70247c01e54bcdbdcce495e764ee3d01651d56c18a584ecb9567c83b6aa0e854fb20ae97481950cfe72409fb7b413e3f11ea62af11583b78f6097e
7
+ data.tar.gz: 696609db9a2c4c3be304cb3d5a9b75ba2abe251efdaaeb831ce8e7ae4dbb2dd579073c5f219cebdbf84e800e3fc3060d994690ed3c08e0a25fd49eb5b3679b90
@@ -11,5 +11,9 @@ class Specinfra::Command::Openbsd::Base::Package < Specinfra::Command::Base::Pac
11
11
  def install(package, version=nil, option='')
12
12
  "pkg_add #{option} #{package}"
13
13
  end
14
+
15
+ def get_version(package, _opts=nil)
16
+ "pkg_info -I #{package} | sed -e 's/#{package}-//' | cut -d' ' -f1"
17
+ end
14
18
  end
15
19
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.9"
2
+ VERSION = "2.82.10"
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.82.9
4
+ version: 2.82.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-09 00:00:00.000000000 Z
11
+ date: 2020-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp