serverspec 2.41.5 → 2.41.6

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
- SHA1:
3
- metadata.gz: 4c1fd50d20575e8df2a43fd77526b1f64cf2cd67
4
- data.tar.gz: 059832ec274b1ec8c380533fb89e84a14ba9c5d6
2
+ SHA256:
3
+ metadata.gz: c055c97caf2f1a49b8a9636f73ecfe4b9b63ee7c03fbee33e61bc4a3bf3c03b3
4
+ data.tar.gz: aabdb043508a030010e43e5da1a6d575a75de901c3c1e830e3afb2bf96aa6fdd
5
5
  SHA512:
6
- metadata.gz: 61dca279925253ed95fc21330613c21fd16b30acd669720cfdf6edbe851beb056f92246cb20081059ab804471d6f5f046984b1f897adb09e5113c0cc806acabd
7
- data.tar.gz: 40b3ac40bbd38b6a71ced13930de75ce29290f225a63e65a018cb1643c506f4f75c2dd1c3ad1ae2a7270488586695255083e4b0e74dd2ac81ce2e7370cab12c2
6
+ metadata.gz: 2aca68fe8c54039f3a5187c20d69700dcbbf6fba3a57555c89cd13203bb8f2bc7c42fdb990252bf178b6402e894fa3fde552f9c7c5cb20f2e58c2f32be45ff7f
7
+ data.tar.gz: 2d2f0baa539f472927d5287d5b26f6d22395f183718305dd1a123b77538c815a94362e794b363d8413c28f9d9e13de0f9cbdcc03c223959ecf9220767d3b39c4
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.8.7
5
4
  - 1.9.3
6
5
  - 2.0.0
7
6
  - 2.1.1
@@ -18,6 +17,7 @@ before_install:
18
17
  script:
19
18
  - bundle exec rake spec
20
19
 
20
+ dist: trusty
21
21
  sudo: false
22
22
  cache: bundler
23
23
  notifications:
data/appveyor.yml CHANGED
@@ -59,6 +59,7 @@ install:
59
59
  - ps: $PSVersionTable
60
60
 
61
61
  build_script:
62
+ - set SSL_CERT_FILE=C:/ruby24-x64/ssl/cert.pem
62
63
  - ruby -rfileutils -e 'FileUtils.rm_r(File.join(Gem.dir, "cache", "bundler")) if Dir.exists?(File.join(Gem.dir, "cache", "bundler"))'
63
64
  - bundle install --jobs 3 --retry 3
64
65
  - net user
@@ -7,11 +7,11 @@ module Serverspec::Type
7
7
  end
8
8
 
9
9
  def subject
10
- run_openssl_command_with("-subject -noout").stdout.chomp.gsub(/^subject= */,'')
10
+ normalize_dn(run_openssl_command_with("-subject -noout").stdout.chomp.gsub(/^subject= */,''))
11
11
  end
12
12
 
13
13
  def issuer
14
- run_openssl_command_with("-issuer -noout").stdout.chomp.gsub(/^issuer= */,'')
14
+ normalize_dn(run_openssl_command_with("-issuer -noout").stdout.chomp.gsub(/^issuer= */,''))
15
15
  end
16
16
 
17
17
  def email
@@ -81,5 +81,12 @@ module Serverspec::Type
81
81
  res.merge({ kv_arr[0].to_sym => time })
82
82
  end
83
83
  end
84
+
85
+ # Normalize output between openssl versions.
86
+ def normalize_dn(dn)
87
+ return subject unless subject.start_with?('/')
88
+ # normalize openssl >= 1.1 to < 1.1 output
89
+ subject[1..-1].split('/').join(', ').gsub('=', ' = ')
90
+ end
84
91
  end
85
92
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.41.5"
2
+ VERSION = "2.41.6"
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.41.5
4
+ version: 2.41.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-18 00:00:00.000000000 Z
11
+ date: 2021-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -306,7 +306,7 @@ homepage: http://serverspec.org/
306
306
  licenses:
307
307
  - MIT
308
308
  metadata: {}
309
- post_install_message:
309
+ post_install_message:
310
310
  rdoc_options: []
311
311
  require_paths:
312
312
  - lib
@@ -321,9 +321,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  - !ruby/object:Gem::Version
322
322
  version: '0'
323
323
  requirements: []
324
- rubyforge_project:
325
- rubygems_version: 2.2.2
326
- signing_key:
324
+ rubygems_version: 3.1.2
325
+ signing_key:
327
326
  specification_version: 4
328
327
  summary: RSpec tests for your servers configured by Puppet, Chef, Itamae or anything
329
328
  else