inspec 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -2
- data/lib/inspec/version.rb +1 -1
- data/lib/matchers/matchers.rb +4 -0
- data/lib/resources/service.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bb4dc9badefe6bf34ad0969692d1185c9e5b31e
|
4
|
+
data.tar.gz: 46bca7c1a454afb81415070f573bc48801a0aa8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b51e806a28c23227926dba00753cfcb9491221930bf16bd87baf7914b45bede895c6be023fe0ce1d2f29ce2009d1c68676aecc44964b04c195e7b7ccdee87c7
|
7
|
+
data.tar.gz: ef376dbe78816aa749ae27c1d934eb361c84e050c165cd494385fefe9ba59faa79af73ccda87e80c9af60ac6f54a8dc269cea2a50d8f6c0f0efe0d23d8bdcd89
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,33 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [1.
|
4
|
-
[Full Changelog](https://github.com/chef/inspec/compare/v1.
|
3
|
+
## [1.2.0](https://github.com/chef/inspec/tree/1.2.0) (2016-10-10)
|
4
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v1.1.0...1.2.0)
|
5
|
+
|
6
|
+
**Implemented enhancements:**
|
7
|
+
|
8
|
+
- Support of linux mint or OS detection via distro families [\#280](https://github.com/chef/inspec/issues/280)
|
9
|
+
- Support of Linux Mint [\#1209](https://github.com/chef/inspec/pull/1209) ([artem-sidorenko](https://github.com/artem-sidorenko))
|
10
|
+
|
11
|
+
**Fixed bugs:**
|
12
|
+
|
13
|
+
- Online tutorial: weird behavior with backspace, invalid commands [\#1184](https://github.com/chef/inspec/issues/1184)
|
14
|
+
- parse\_config and parse\_config\_file does not show fully info when test fails \(or even if it succedes\) [\#1147](https://github.com/chef/inspec/issues/1147)
|
15
|
+
- www: Online tutorial: safari inspec online demo bug! [\#1086](https://github.com/chef/inspec/issues/1086)
|
16
|
+
- cmp code\_desc missing operation and expected valid [\#1204](https://github.com/chef/inspec/pull/1204) ([alexpop](https://github.com/alexpop))
|
17
|
+
|
18
|
+
**Closed issues:**
|
19
|
+
|
20
|
+
- Resources on `http://inspec.io/docs/reference/resources/` are not in alphabetical order [\#1195](https://github.com/chef/inspec/issues/1195)
|
21
|
+
- www: Online tutorial: update inspec tutorial to 1.0.0 version [\#1169](https://github.com/chef/inspec/issues/1169)
|
22
|
+
|
23
|
+
**Merged pull requests:**
|
24
|
+
|
25
|
+
- fix backspace bug [\#1206](https://github.com/chef/inspec/pull/1206) ([vjeffrey](https://github.com/vjeffrey))
|
26
|
+
- es5. that is a thing. [\#1191](https://github.com/chef/inspec/pull/1191) ([vjeffrey](https://github.com/vjeffrey))
|
27
|
+
- tutorial response filename length [\#1159](https://github.com/chef/inspec/pull/1159) ([chris-rock](https://github.com/chris-rock))
|
28
|
+
|
29
|
+
## [v1.1.0](https://github.com/chef/inspec/tree/v1.1.0) (2016-10-05)
|
30
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v1.0.0...v1.1.0)
|
5
31
|
|
6
32
|
**Fixed bugs:**
|
7
33
|
|
data/lib/inspec/version.rb
CHANGED
data/lib/matchers/matchers.rb
CHANGED
@@ -313,6 +313,10 @@ RSpec::Matchers.define :cmp do |first_expected|
|
|
313
313
|
actual = '0' + actual.to_s(8) if octal?(@expected)
|
314
314
|
"\n" + format_expectation(true) + "\n got: #{actual}\n\n(compared using `cmp` matcher)\n"
|
315
315
|
end
|
316
|
+
|
317
|
+
description do
|
318
|
+
"cmp #{@operation} #{@expected.inspect}"
|
319
|
+
end
|
316
320
|
end
|
317
321
|
|
318
322
|
# user resource matcher for serverspec compatibility
|
data/lib/resources/service.rb
CHANGED
@@ -120,6 +120,13 @@ module Inspec::Resources
|
|
120
120
|
else
|
121
121
|
Systemd.new(inspec, service_ctl)
|
122
122
|
end
|
123
|
+
elsif %w{linuxmint}.include?(platform)
|
124
|
+
version = os[:release].to_f
|
125
|
+
if version < 18
|
126
|
+
Upstart.new(inspec, service_ctl)
|
127
|
+
else
|
128
|
+
Systemd.new(inspec, service_ctl)
|
129
|
+
end
|
123
130
|
elsif %w{debian}.include?(platform)
|
124
131
|
version = os[:release].to_i
|
125
132
|
if version > 7
|
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.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: train
|