inspec-test-fixture 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/inspec-test-fixture.gemspec +30 -0
- data/lib/inspec-test-fixture.rb +2 -0
- data/lib/inspec-test-fixture/mock_plugin.rb +13 -0
- data/lib/inspec-test-fixture/plugin.rb +13 -0
- data/lib/inspec-test-fixture/version.rb +5 -0
- metadata +63 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9ed9abab21ea0e51a03cb79c68796a8e64a6653b
|
4
|
+
data.tar.gz: be2ef69d0c410ce6e9bb6b412dfa72fb6850b893
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a80d093aac3b3d2fbbb8a6b98551fc916dc7fc5d4dbab0ed2924670d3ff70dcfcfa2b3d0797985239c7003c75062191f059d163e1cfb6068136d976d59209df6
|
7
|
+
data.tar.gz: 8fcc3b0b4eb882c94cf5b6c819cb6d5d50a121d97757731d7a1898b6eee4ceddcf4176532f17722752fbf65c486b1f4a7f6dce77e180be893082f37348c72b5e
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "inspec-test-fixture/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "inspec-test-fixture"
|
8
|
+
spec.version = InspecPlugins::TestFixture::VERSION
|
9
|
+
spec.authors = ["InSpec Engineering Team"]
|
10
|
+
spec.email = ["hello@chef.io"]
|
11
|
+
|
12
|
+
spec.summary = %q{A simple test plugin gem for InSpec}
|
13
|
+
spec.description = %q{This gem is used to test the gem search and install capabilities of InSpec's plugin V2 system. It is not a good example or starting point for plugin development.}
|
14
|
+
spec.homepage = "https://github.com/inspec/inspec"
|
15
|
+
|
16
|
+
spec.files = [
|
17
|
+
'inspec-test-fixture.gemspec',
|
18
|
+
'lib/inspec-test-fixture.rb',
|
19
|
+
'lib/inspec-test-fixture/plugin.rb',
|
20
|
+
'lib/inspec-test-fixture/mock_plugin.rb',
|
21
|
+
'lib/inspec-test-fixture/version.rb',
|
22
|
+
]
|
23
|
+
spec.executables = []
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
if InspecPlugins::TestFixture::VERSION == '0.2.0'
|
28
|
+
spec.add_dependency "ordinal_array", "~> 0.2.0"
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'inspec-test-fixture/version'
|
2
|
+
if InspecPlugins::TestFixture::VERSION == Gem::Version.new('0.2.0')
|
3
|
+
require "ordinal_array"
|
4
|
+
end
|
5
|
+
|
6
|
+
module InspecPlugins::TextFixture
|
7
|
+
class MockPlugin < Inspec.plugin(2, :mock_plugin_type)
|
8
|
+
def execute(opts = {})
|
9
|
+
# Check to see if Array responds to 'third'
|
10
|
+
Array.respond_to?(:third)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: inspec-test-fixture
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- InSpec Engineering Team
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-08-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.0'
|
27
|
+
description: This gem is used to test the gem search and install capabilities of InSpec's
|
28
|
+
plugin V2 system. It is not a good example or starting point for plugin development.
|
29
|
+
email:
|
30
|
+
- hello@chef.io
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- inspec-test-fixture.gemspec
|
36
|
+
- lib/inspec-test-fixture.rb
|
37
|
+
- lib/inspec-test-fixture/mock_plugin.rb
|
38
|
+
- lib/inspec-test-fixture/plugin.rb
|
39
|
+
- lib/inspec-test-fixture/version.rb
|
40
|
+
homepage: https://github.com/inspec/inspec
|
41
|
+
licenses: []
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
requirements: []
|
58
|
+
rubyforge_project:
|
59
|
+
rubygems_version: 2.6.13
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
62
|
+
summary: A simple test plugin gem for InSpec
|
63
|
+
test_files: []
|