serverspec 2.14.0 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ec3be10279eb102c596746869b1d1d55709c732
4
- data.tar.gz: 325dd53f2dd1f87c39c092425ce26886a5cd379c
3
+ metadata.gz: 3fe300550c27745bd9a03bcd64182cbe3f3f9552
4
+ data.tar.gz: 3f9e27015060fb43d7f04f9b36203b30d72a422f
5
5
  SHA512:
6
- metadata.gz: fee7c4b404b30816d84cec6e3c76ee7f9f2c8655e09955d62ba5f28859d7467405b802643fe6069f03246725d1d7ecdec1b20264b78fd26c24a720abc0788d93
7
- data.tar.gz: 72bae1f47fcee1cf140074db7ba2b5988543d1f54ab521de402a0c2397320e173747b10bfbcb54ee51c19e5b853e20c33f8083c2e14ad916cb61d1b8d12f04e6
6
+ metadata.gz: f2d318baf95e1261f80fce54e9caacaba9574fd175a57ba6637d3f51ccd674be2b3dac27bee8a661f7d0f09a9df107b051bfcce6cb4a8240cb7763df57d72625
7
+ data.tar.gz: 1072a58ad8a3e63a184d0b5b0ca23c1e6ca1fb4df20a58aa8a1c4b75235246e99b2595a45661ab1d41c1cdb3fb5694116a84ee8618c1d331f690d82e8d90601a
@@ -26,8 +26,12 @@ module Serverspec::Type
26
26
  run_openssl_command_with("-alias -noout").stdout.chomp
27
27
  end
28
28
 
29
+ # Modern openssl use following output format for key length:
30
+ # Public-Key: (4096 bit)
31
+ # while ancient (0.9.8 for example) use
32
+ # RSA Public Key: (2048 bit)
29
33
  def keylength
30
- len_str = run_openssl_command_with("-text -noout | grep \"Public-Key\"").stdout.chomp
34
+ len_str = run_openssl_command_with("-text -noout | grep -E 'Public(-| )Key: \\([[:digit:]]+ bit\\)'").stdout.chomp
31
35
  len_str.gsub(/^.*\(/,'').gsub(/ bit\)$/,'').to_i
32
36
  end
33
37
 
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.14.0"
2
+ VERSION = "2.14.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-30 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec