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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/inspec/resource.rb +1 -0
- data/lib/inspec/version.rb +1 -1
- data/lib/resources/toml.rb +26 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07e85e45e04bc18a16384094f928312ced530555
|
4
|
+
data.tar.gz: a7212297dbebbfff82d361783023260b691e3241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1441aca0a41c7282725538090d035951afc2182e477028fa3ae6b6acd79c7773cced561a2d249fdb63875ab955653b728e28fd7b0f84795ffa3e4a0d123b0727
|
7
|
+
data.tar.gz: 6785041126e8b742e273209e9bcfe2c62884433157266832169741f4a4a548c421767f75e6f3dc42ab1fc3489d24adc1f650c78669bcf39e8baaa3f706acd47d
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/inspec/resource.rb
CHANGED
data/lib/inspec/version.rb
CHANGED
@@ -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.
|
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-
|
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
|