inspec 1.1.0 → 1.2.0

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: 2faac665307feffb17c77bd84bfc153d4d9bd67c
4
- data.tar.gz: 102164908f57fcdd0d7f98f9718e3d66befbbf17
3
+ metadata.gz: 6bb4dc9badefe6bf34ad0969692d1185c9e5b31e
4
+ data.tar.gz: 46bca7c1a454afb81415070f573bc48801a0aa8a
5
5
  SHA512:
6
- metadata.gz: 63805e739ec2374b9c42a9a0ab9c48934eb8e49c858ae4543d42dafbaacd42c2bb570a5046bea4fb63c7d6ce848bb58a245c814485e1cfff78bca6a3020e5f58
7
- data.tar.gz: 7a2953246e9a34fcfb34664b65cc479ff56bb1bfb3fdd208ad045c162dce613590b52c26f297cdb5a40f4a60dfcdde6bfedcea04b3215f7a65d782b9721516f4
6
+ metadata.gz: 9b51e806a28c23227926dba00753cfcb9491221930bf16bd87baf7914b45bede895c6be023fe0ce1d2f29ce2009d1c68676aecc44964b04c195e7b7ccdee87c7
7
+ data.tar.gz: ef376dbe78816aa749ae27c1d934eb361c84e050c165cd494385fefe9ba59faa79af73ccda87e80c9af60ac6f54a8dc269cea2a50d8f6c0f0efe0d23d8bdcd89
@@ -1,7 +1,33 @@
1
1
  # Change Log
2
2
 
3
- ## [1.1.0](https://github.com/chef/inspec/tree/1.1.0) (2016-10-05)
4
- [Full Changelog](https://github.com/chef/inspec/compare/v1.0.0...1.1.0)
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
 
@@ -4,5 +4,5 @@
4
4
  # author: Christoph Hartmann
5
5
 
6
6
  module Inspec
7
- VERSION = '1.1.0'.freeze
7
+ VERSION = '1.2.0'.freeze
8
8
  end
@@ -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
@@ -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.1.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: train