inspec 1.28.0 → 1.28.1

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: a0d407da61108e3110902410c9250bb1aa65727d
4
- data.tar.gz: '08e3dfe5818627298ae9fada47ebdb20295be3d3'
3
+ metadata.gz: 07e85e45e04bc18a16384094f928312ced530555
4
+ data.tar.gz: a7212297dbebbfff82d361783023260b691e3241
5
5
  SHA512:
6
- metadata.gz: 00b4a96e07c8b54024b756c1abfe4fe0334d16817177ae538902ddb76cc9e21fbd604a473c41fc3538b2a26491872f8ae30c02af82cf913c430238fe526a07d9
7
- data.tar.gz: a020a8a48d76d26da019ea92ad298b9e1c70d5a22dc8d3f691457201649d5108c85fb49ff90f37d1112f6b5710db2c5296a20d09ab9512fc5281a68535ba218a
6
+ metadata.gz: 1441aca0a41c7282725538090d035951afc2182e477028fa3ae6b6acd79c7773cced561a2d249fdb63875ab955653b728e28fd7b0f84795ffa3e4a0d123b0727
7
+ data.tar.gz: 6785041126e8b742e273209e9bcfe2c62884433157266832169741f4a4a548c421767f75e6f3dc42ab1fc3489d24adc1f650c78669bcf39e8baaa3f706acd47d
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.28.1](https://github.com/chef/inspec/tree/v1.28.1) (2017-06-16)
4
+ [Full Changelog](https://github.com/chef/inspec/compare/v1.28.0...v1.28.1)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Update zlib to 1.2.11 to address known CVEs [\#1934](https://github.com/chef/inspec/issues/1934)
9
+
3
10
  ## [v1.28.0](https://github.com/chef/inspec/tree/v1.28.0) (2017-06-15)
4
11
  [Full Changelog](https://github.com/chef/inspec/compare/v1.27.0...v1.28.0)
5
12
 
@@ -137,6 +137,7 @@ require 'resources/shadow'
137
137
  require 'resources/ssl'
138
138
  require 'resources/ssh_conf'
139
139
  require 'resources/sys_info'
140
+ require 'resources/toml'
140
141
  require 'resources/users'
141
142
  require 'resources/vbscript'
142
143
  require 'resources/virtualization'
@@ -4,5 +4,5 @@
4
4
  # author: Christoph Hartmann
5
5
 
6
6
  module Inspec
7
- VERSION = '1.28.0'.freeze
7
+ VERSION = '1.28.1'.freeze
8
8
  end
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+ # author: Nolan Davidson
3
+
4
+ require 'toml'
5
+
6
+ module Inspec::Resources
7
+ class TomlConfig < JsonConfig
8
+ name 'toml'
9
+ desc 'Use the toml InSpec resource to test configuration data in a TOML file'
10
+ example "
11
+ describe toml('default.toml') do
12
+ its('key') { should eq('value') }
13
+ its (['arr', 1]) { should eq 2 }
14
+ its (['mytable', 'key1']) { should eq 'value1' }
15
+ end
16
+ "
17
+
18
+ def parse(content)
19
+ TOML::Parser.new(content).parsed
20
+ end
21
+
22
+ def to_s
23
+ "TOML #{@path}"
24
+ end
25
+ end
26
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2017-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: train
@@ -608,6 +608,7 @@ files:
608
608
  - lib/resources/ssh_conf.rb
609
609
  - lib/resources/ssl.rb
610
610
  - lib/resources/sys_info.rb
611
+ - lib/resources/toml.rb
611
612
  - lib/resources/users.rb
612
613
  - lib/resources/vbscript.rb
613
614
  - lib/resources/virtualization.rb