inspec 1.33.12 → 1.34.1

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: f226b9d3651d0f220a203377ab9144850da1f060
4
- data.tar.gz: 949dc3f2d16a4c7206ca6c8724897ed1a8406b08
3
+ metadata.gz: f8652931e666396eaecf1bdfd94e9979cd8dea97
4
+ data.tar.gz: 1769b0dea0a7fe11e89943ada4951b1b1d219545
5
5
  SHA512:
6
- metadata.gz: 130d871eb491b561820541fd4541b1669135cbb736ebb2436c8412320629b5b3f2a35bb1855d774982ea27f3a194c3b2be9ea656d2cf923eede98d70807245b5
7
- data.tar.gz: d273d6b721bd2a97efdc9c175f47fe1045ed3cf85f428f55ce922e453a2d47a35b472b1c8b41b93d11d33bc9f1aa2044cd029feeaef71f177739d49a5ef079c8
6
+ metadata.gz: c85ea367f1d2d196cae095cbc3e9479947bb1876718ff55d68db0d506226f5ea2ddccec00bf36e7d2fd296e49337d4c376889bf3aa88680845b51dd09f19b765
7
+ data.tar.gz: ef7c008ff3915b2f80bf3fa60a4f302bb0a245cd50cfc6a293e3a788d64ff275b7f642f4dc21594b274c6e1c4aa033ad765c458751e4c2a1778ffffc1bcb48d0
@@ -1,9 +1,21 @@
1
1
  # Change Log
2
2
 
3
- <!-- latest_release -->
3
+ <!-- latest_release 1.33.15 -->
4
+ ## [v1.33.15](https://github.com/chef/inspec/tree/v1.33.15) (2017-08-23)
5
+
6
+ #### Enhancements
7
+ - Refine the profile/test summary output of the CLI formatter [#2094](https://github.com/chef/inspec/pull/2094) ([adamleff](https://github.com/adamleff))
4
8
  <!-- latest_release -->
5
9
 
6
- <!-- release_rollup -->
10
+ <!-- release_rollup since=1.33.12 -->
11
+ ### Changes since 1.33.12 release
12
+
13
+ #### Enhancements
14
+ - Refine the profile/test summary output of the CLI formatter [#2094](https://github.com/chef/inspec/pull/2094) ([adamleff](https://github.com/adamleff)) <!-- 1.33.15 -->
15
+
16
+ #### Merged Pull Requests
17
+ - Add slack notifications for Travis CI builds to master [#2092](https://github.com/chef/inspec/pull/2092) ([adamleff](https://github.com/adamleff)) <!-- 1.33.14 -->
18
+ - Update CHANGELOG (add fix author) [#2091](https://github.com/chef/inspec/pull/2091) ([n-rodriguez](https://github.com/n-rodriguez)) <!-- 1.33.13 -->
7
19
  <!-- release_rollup -->
8
20
 
9
21
  <!-- latest_stable_release -->
@@ -37,7 +49,7 @@
37
49
 
38
50
  #### Merged Pull Requests
39
51
  - bug fix: properly support profile files that are more than one directory deep
40
- - bug fix: fix mysql_session resource to not use socket for host target
52
+ - bug fix: fix mysql_session resource to not use socket for host target [#2020](https://github.com/chef/inspec/pull/2020) ([n-rodriguez](https://github.com/n-rodriguez))
41
53
  - host resource now properly handles localhost lookup
42
54
  - bugfix: empty file strings from archive readers [#2027](https://github.com/chef/inspec/pull/2027) ([arlimus](https://github.com/arlimus))
43
55
  - Fix issue when xinetd.conf does not end in newline [#2040](https://github.com/chef/inspec/pull/2040) ([kareiva](https://github.com/kareiva))
@@ -613,10 +613,18 @@ class InspecRspecCli < InspecRspecJson # rubocop:disable Metrics/ClassLength
613
613
  summary = profile_summary
614
614
  return unless summary['total'] > 0
615
615
 
616
+ success_str = summary['passed'] == 1 ? '1 successful control' : "#{summary['passed']} successful controls"
617
+ failed_str = summary['failed']['total'] == 1 ? '1 control failure' : "#{summary['failed']['total']} control failures"
618
+ skipped_str = summary['skipped'] == 1 ? '1 control skipped' : "#{summary['skipped']} controls skipped"
619
+
620
+ success_color = summary['passed'] > 0 ? 'passed' : 'no_color'
621
+ failed_color = summary['failed']['total'] > 0 ? 'failed' : 'no_color'
622
+ skipped_color = summary['skipped'] > 0 ? 'skipped' : 'no_color'
623
+
616
624
  s = format('Profile Summary: %s, %s, %s',
617
- format_with_color('passed', "#{summary['passed']} successful"),
618
- format_with_color('failed', "#{summary['failed']['total']} failures"),
619
- format_with_color('skipped', "#{summary['skipped']} skipped"),
625
+ format_with_color(success_color, success_str),
626
+ format_with_color(failed_color, failed_str),
627
+ format_with_color(skipped_color, skipped_str),
620
628
  )
621
629
  output.puts(s) if summary['total'] > 0
622
630
  end
@@ -624,10 +632,16 @@ class InspecRspecCli < InspecRspecJson # rubocop:disable Metrics/ClassLength
624
632
  def print_tests_summary
625
633
  summary = tests_summary
626
634
 
635
+ failed_str = summary['failed'] == 1 ? '1 failure' : "#{summary['failed']} failures"
636
+
637
+ success_color = summary['passed'] > 0 ? 'passed' : 'no_color'
638
+ failed_color = summary['failed'] > 0 ? 'failed' : 'no_color'
639
+ skipped_color = summary['skipped'] > 0 ? 'skipped' : 'no_color'
640
+
627
641
  s = format('Test Summary: %s, %s, %s',
628
- format_with_color('passed', "#{summary['passed']} successful"),
629
- format_with_color('failed', "#{summary['failed']} failures"),
630
- format_with_color('skipped', "#{summary['skipped']} skipped"),
642
+ format_with_color(success_color, "#{summary['passed']} successful"),
643
+ format_with_color(failed_color, failed_str),
644
+ format_with_color(skipped_color, "#{summary['skipped']} skipped"),
631
645
  )
632
646
 
633
647
  output.puts(s)
@@ -4,5 +4,5 @@
4
4
  # author: Christoph Hartmann
5
5
 
6
6
  module Inspec
7
- VERSION = '1.33.12'.freeze
7
+ VERSION = '1.34.1'.freeze
8
8
  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.33.12
4
+ version: 1.34.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-08-18 00:00:00.000000000 Z
11
+ date: 2017-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: train
@@ -304,7 +304,6 @@ files:
304
304
  - bin/inspec
305
305
  - docs/.gitignore
306
306
  - docs/README.md
307
- - docs/cli.md
308
307
  - docs/dsl_inspec.md
309
308
  - docs/dsl_resource.md
310
309
  - docs/habitat.md
@@ -313,7 +312,6 @@ files:
313
312
  - docs/migration.md
314
313
  - docs/plugin_kitchen_inspec.md
315
314
  - docs/profiles.md
316
- - docs/resources.md
317
315
  - docs/resources/apache_conf.md.erb
318
316
  - docs/resources/apt.md.erb
319
317
  - docs/resources/audit_policy.md.erb
@@ -669,7 +667,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
669
667
  version: '0'
670
668
  requirements: []
671
669
  rubyforge_project:
672
- rubygems_version: 2.6.11
670
+ rubygems_version: 2.6.12
673
671
  signing_key:
674
672
  specification_version: 4
675
673
  summary: Infrastructure and compliance testing.