inspec 0.14.1 → 0.14.2

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: 84dfdf4c3180317c15fcb732fcf4cc0098b8177d
4
- data.tar.gz: e239dd876de5734c0fd5ff9f3f539e55df91450b
3
+ metadata.gz: ee4e0eeba70bb333ceb475748c630fddcf391b71
4
+ data.tar.gz: 9905be5cb12a127b4c76dbe94ffbd6ea56f2e94e
5
5
  SHA512:
6
- metadata.gz: 3c608e883ca7d72f263e9e5758ad589391a59ea6b68873bd3d3febd3c98b5e0eeb61b8ae0a0ba913ede5b600088281b9fdb3d303863515b401680ac0cbe3bd2d
7
- data.tar.gz: 5334c5fa729531fca7de775064fb3b82cd0f93efe7d0adf9e9b8b8c2bc28dea4ccfc1f4dd2abcf81af695e6ac79c275231ad18315f55655ead316c3a208942b0
6
+ metadata.gz: db089d42ea726c458809a1326beeb437e14d7b5bc0914974c7a84838c02dcda113307aa5088d0a0c2c0a57a5d7aff8bea787f135d4c04e32be463fc6fa335ff0
7
+ data.tar.gz: d04cb5ae70e8654386a5eba79a92f3dcf60b71c2bf6181e79cd1a78fd4f39d6a0fe41f336461d782368a4e4ad2a59f5aa2ccef6a4c8fded9cbcb8aeeaf3cab8c
data/CHANGELOG.md CHANGED
@@ -1,7 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## [0.14.1](https://github.com/chef/inspec/tree/0.14.1) (2016-02-22)
4
- [Full Changelog](https://github.com/chef/inspec/compare/v0.14.0...0.14.1)
3
+ ## [0.14.2](https://github.com/chef/inspec/tree/0.14.2) (2016-02-22)
4
+ [Full Changelog](https://github.com/chef/inspec/compare/v0.14.1...0.14.2)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - fix cc upload [\#483](https://github.com/chef/inspec/pull/483) ([chris-rock](https://github.com/chris-rock))
9
+
10
+ **Merged pull requests:**
11
+
12
+ - load plugins in the same gem installation [\#482](https://github.com/chef/inspec/pull/482) ([arlimus](https://github.com/arlimus))
13
+
14
+ ## [v0.14.1](https://github.com/chef/inspec/tree/v0.14.1) (2016-02-22)
15
+ [Full Changelog](https://github.com/chef/inspec/compare/v0.14.0...v0.14.1)
5
16
 
6
17
  **Implemented enhancements:**
7
18
 
@@ -12,6 +23,10 @@
12
23
 
13
24
  - ignore `pax\_global\_header` as valid file [\#480](https://github.com/chef/inspec/pull/480) ([chris-rock](https://github.com/chris-rock))
14
25
 
26
+ **Merged pull requests:**
27
+
28
+ - 0.14.1 [\#481](https://github.com/chef/inspec/pull/481) ([chris-rock](https://github.com/chris-rock))
29
+
15
30
  ## [v0.14.0](https://github.com/chef/inspec/tree/v0.14.0) (2016-02-22)
16
31
  [Full Changelog](https://github.com/chef/inspec/compare/v0.13.0...v0.14.0)
17
32
 
@@ -0,0 +1,3 @@
1
+ describe tiny do
2
+ require 'pry'; binding.pry
3
+ end
@@ -0,0 +1,10 @@
1
+ name: resource
2
+ title: InSpec Example Resources
3
+ maintainer: Chef Software, Inc.
4
+ copyright: Chef Software, Inc.
5
+ copyright_email: support@chef.io
6
+ license: Apache 2 license
7
+ summary: Demonstrates the use of InSpec custom resources
8
+ version: 1.0.0
9
+ supports:
10
+ - linux
@@ -0,0 +1,3 @@
1
+ class Tiny < Inspec.resource(1)
2
+ name 'tiny'
3
+ end
@@ -57,7 +57,7 @@ module Compliance
57
57
  o = options.dup
58
58
  configure_logger(o)
59
59
  # check the profile, we only allow to upload valid profiles
60
- profile = Inspec::Profile.from_path(path, o)
60
+ profile = Inspec::Profile.for_target(path, o)
61
61
 
62
62
  # start verification process
63
63
  error_count = 0
@@ -0,0 +1,13 @@
1
+ # encoding: utf-8
2
+ # author: Christoph Hartmann
3
+ # author: Dominik Richter
4
+
5
+ libdir = File.dirname(__FILE__)
6
+ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
7
+
8
+ module Supermarket
9
+ autoload :API, 'inspec-supermarket/api'
10
+ end
11
+
12
+ require 'inspec-supermarket/cli'
13
+ require 'inspec-supermarket/target'
@@ -24,11 +24,18 @@ module Inspec
24
24
  def_delegator :registry, :keys, :list
25
25
 
26
26
  def initialize(home = nil)
27
+ @paths = []
28
+
29
+ # load plugins in the same gem installation
30
+ lib_home = File.expand_path(File.join(__FILE__, '..', '..', '..', '..'))
31
+ @paths += Dir[lib_home+'/inspec-*-*/lib/inspec-*rb']
32
+
33
+ # traverse out of inspec-vX.Y.Z/lib/inspec/plugins.rb
27
34
  @home = home || File.join(Dir.home, '.inspec', 'plugins')
28
- @paths = Dir[File.join(@home, '**{,/*/**}', '*.gemspec')]
29
- .map { |x| File.dirname(x) }
30
- .map { |x| Dir[File.join(x, 'lib', 'inspec-*.rb')] }
31
- .flatten
35
+ @paths += Dir[File.join(@home, '**{,/*/**}', '*.gemspec')]
36
+ .map { |x| File.dirname(x) }
37
+ .map { |x| Dir[File.join(x, 'lib', 'inspec-*.rb')] }
38
+ .flatten
32
39
 
33
40
  # load bundled plugins
34
41
  bundled_dir = File.expand_path(File.dirname(__FILE__))
@@ -3,5 +3,5 @@
3
3
  # author: Christoph Hartmann
4
4
 
5
5
  module Inspec
6
- VERSION = '0.14.1'.freeze
6
+ VERSION = '0.14.2'.freeze
7
7
  end
@@ -0,0 +1,10 @@
1
+ name: complete
2
+ title: complete example profile
3
+ maintainer: Chef Software, Inc.
4
+ copyright: Chef Software, Inc.
5
+ copyright_email: support@chef.io
6
+ license: Proprietary, All rights reserved
7
+ summary: Testing stub
8
+ version: 1.0.0
9
+ supports:
10
+ - os-family: linux
@@ -0,0 +1,3 @@
1
+ class Tiny < Inspec.resource(1)
2
+ name 'tiny'
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
@@ -207,6 +207,9 @@ files:
207
207
  - examples/profile/controls/gordon.rb
208
208
  - examples/profile/inspec.yml
209
209
  - examples/profile/libraries/gordon_config.rb
210
+ - examples/resource/controls/tiny.rb
211
+ - examples/resource/inspec.yml
212
+ - examples/resource/libraries/tiny.rb
210
213
  - inspec.gemspec
211
214
  - lib/bundles/README.md
212
215
  - lib/bundles/inspec-compliance.rb
@@ -221,6 +224,7 @@ files:
221
224
  - lib/bundles/inspec-init/templates/profile/controls/example.rb
222
225
  - lib/bundles/inspec-init/templates/profile/inspec.yml
223
226
  - lib/bundles/inspec-init/templates/profile/libraries/.gitkeep
227
+ - lib/bundles/inspec-supermarket.rb
224
228
  - lib/bundles/inspec-supermarket/README.md
225
229
  - lib/bundles/inspec-supermarket/api.rb
226
230
  - lib/bundles/inspec-supermarket/cli.rb
@@ -482,6 +486,8 @@ files:
482
486
  - test/unit/mock/profiles/legacy-empty-metadata/metadata.rb
483
487
  - test/unit/mock/profiles/legacy-simple-metadata/metadata.rb
484
488
  - test/unit/mock/profiles/legacy-simple-metadata/test/.gitkeep
489
+ - test/unit/mock/profiles/resource-tiny/inspec.yml
490
+ - test/unit/mock/profiles/resource-tiny/libraries/resource.rb
485
491
  - test/unit/mock/profiles/simple-metadata/inspec.yml
486
492
  - test/unit/plugin_test.rb
487
493
  - test/unit/profile_context_test.rb
@@ -557,7 +563,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
557
563
  version: '0'
558
564
  requirements: []
559
565
  rubyforge_project:
560
- rubygems_version: 2.4.6
566
+ rubygems_version: 2.5.1
561
567
  signing_key:
562
568
  specification_version: 4
563
569
  summary: Infrastructure and compliance testing.
@@ -723,6 +729,8 @@ test_files:
723
729
  - test/unit/mock/profiles/legacy-empty-metadata/metadata.rb
724
730
  - test/unit/mock/profiles/legacy-simple-metadata/metadata.rb
725
731
  - test/unit/mock/profiles/legacy-simple-metadata/test/.gitkeep
732
+ - test/unit/mock/profiles/resource-tiny/inspec.yml
733
+ - test/unit/mock/profiles/resource-tiny/libraries/resource.rb
726
734
  - test/unit/mock/profiles/simple-metadata/inspec.yml
727
735
  - test/unit/plugin_test.rb
728
736
  - test/unit/profile_context_test.rb