forked from danquack/train-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train-kubernetes.gemspec
49 lines (41 loc) · 2.08 KB
/
train-kubernetes.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# As plugins are usually packaged and distributed as a RubyGem,
# we have to provide a .gemspec file, which controls the gembuild
# and publish process. This is a fairly generic gemspec.
# It is traditional in a gemspec to dynamically load the current version
# from a file in the source tree. The next three lines make that happen.
# lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'train-kubernetes/version'
Gem::Specification.new do |spec|
# Importantly, all Train plugins must be prefixed with `train-`
spec.name = 'train-kubernetes'
# It is polite to namespace your plugin under TrainPlugins::YourPluginInCamelCase
spec.version = TrainPlugins::TrainKubernetes::VERSION
spec.authors = ['Brad Geesaman']
spec.email = ['bradgeesaman@gmail.com']
spec.summary = 'Train Kubernetes'
spec.description = 'A Train "transport" plugin for Chef Inspec that allows testing of all Kubernetes API resources'
spec.homepage = 'https://github.com/bgeesaman/train-kubernetes'
spec.license = 'Apache-2.0'
spec.required_ruby_version = '>= 2.4'
# Though complicated-looking, this is pretty standard for a gemspec.
# It just filters what will actually be packaged in the gem (leaving
# out tests, etc)
spec.files = %w{
README.md train-kubernetes.gemspec Gemfile
} + Dir.glob(
'lib/**/*', File::FNM_DOTMATCH
).reject { |f| File.directory?(f) }
spec.require_paths = ['lib']
# If you rely on any other gems, list them here with any constraints.
# This is how `inspec plugin install` is able to manage your dependencies.
# For example, perhaps you are writing a thing that talks to AWS, and you
# want to ensure you have `aws-sdk` in a certain version.
# If you only need certain gems during development or testing, list
# them in Gemfile, not here.
# Do not list inspec as a dependency of the train plugin.
# All plugins should mention train, > 1.4
spec.add_dependency 'k8s-ruby', '~> 0.10'
spec.add_dependency 'train', '~> 3.0'
end