puppetlabs_spec_helper 1.1.1 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
+ require 'fileutils'
1
2
  require 'rake'
2
3
  require 'rspec/core/rake_task'
4
+ require 'tmpdir'
3
5
  require 'yaml'
4
6
 
5
7
  # optional gems
@@ -11,10 +13,23 @@ end
11
13
 
12
14
  task :default => [:help]
13
15
 
16
+ pattern = 'spec/{aliases,classes,defines,unit,functions,hosts,integration,types}/**/*_spec.rb'
17
+
14
18
  desc "Run spec tests on an existing fixtures directory"
15
19
  RSpec::Core::RakeTask.new(:spec_standalone) do |t|
16
20
  t.rspec_opts = ['--color']
17
- t.pattern = 'spec/{classes,defines,unit,functions,hosts,integration,types}/**/*_spec.rb'
21
+
22
+ if ENV['CI_NODE_TOTAL'] && ENV['CI_NODE_INDEX']
23
+ ci_total = ENV['CI_NODE_TOTAL'].to_i
24
+ ci_index = ENV['CI_NODE_INDEX'].to_i
25
+ raise "CI_NODE_INDEX must be between 1-#{ci_total}" unless ci_index >= 1 && ci_index <= ci_total
26
+
27
+ files = Rake::FileList[pattern].to_a
28
+ per_node = (files.size / ci_total.to_f).ceil
29
+ t.pattern = files.each_slice(per_node).to_a[ci_index - 1] || files.first
30
+ else
31
+ t.pattern = pattern
32
+ end
18
33
  end
19
34
 
20
35
  desc "Run beaker acceptance tests"
@@ -23,12 +38,6 @@ RSpec::Core::RakeTask.new(:beaker) do |t|
23
38
  t.pattern = 'spec/acceptance'
24
39
  end
25
40
 
26
- desc "Generate code coverage information"
27
- RSpec::Core::RakeTask.new(:coverage) do |t|
28
- t.rcov = true
29
- t.rcov_opts = ['--exclude', 'spec']
30
- end
31
-
32
41
  # This is a helper for the self-symlink entry of fixtures.yml
33
42
  def source_dir
34
43
  Dir.pwd
@@ -47,6 +56,43 @@ def repositories
47
56
  @repositories
48
57
  end
49
58
 
59
+ # get the array of Beaker set names
60
+ # @return [Array<String>]
61
+ def beaker_node_sets
62
+ return @beaker_nodes if @beaker_nodes
63
+ @beaker_nodes = Dir['spec/acceptance/nodesets/*.yml'].sort.map do |node_set|
64
+ node_set.slice!('.yml')
65
+ File.basename(node_set)
66
+ end
67
+ end
68
+
69
+ # Use "vagrant ssh" to login to the given node in the node set
70
+ # @param set [String] The name of the node set (yml file)
71
+ # @param node [String] The name of the node in the set. For multi-node sets.
72
+ def vagrant_ssh(set, node = nil)
73
+ vagrant_yml_dir = File.join '.vagrant', 'beaker_vagrant_files', "#{set}.yml"
74
+ vagrant_file = File.join vagrant_yml_dir, 'Vagrantfile'
75
+ unless File.file? vagrant_file
76
+ puts "There is no Vagrantfile at: '#{vagrant_file}'. Perhaps, the node is not created or is destroyed."
77
+ exit 1
78
+ end
79
+ Dir.chdir(vagrant_yml_dir) do
80
+ command = 'vagrant ssh'
81
+ command += " #{node}" if node
82
+ # Vagrant is not distributed as a normal gem
83
+ # and we should protect it from the current Ruby environment
84
+ env = {
85
+ 'RUBYLIB' => nil,
86
+ 'GEM_PATH' => nil,
87
+ 'BUNDLE_BIN_PATH' => nil,
88
+ }
89
+ system env, command
90
+ end
91
+ end
92
+
93
+ def auto_symlink
94
+ { Dir.pwd.split('/').last.split('-').last => '#{source_dir}' }
95
+ end
50
96
 
51
97
  def fixtures(category)
52
98
  if File.exists?('.fixtures.yml')
@@ -58,13 +104,17 @@ def fixtures(category)
58
104
  end
59
105
 
60
106
  begin
61
- fixtures = YAML.load_file(fixtures_yaml)["fixtures"]
107
+ fixtures = YAML.load_file(ENV['FIXTURES_YML'] || fixtures_yaml)["fixtures"]
62
108
  rescue Errno::ENOENT
63
- return {}
109
+ fixtures = {}
64
110
  rescue Psych::SyntaxError => e
65
111
  abort("Found malformed YAML in #{fixtures_yaml} on line #{e.line} column #{e.column}: #{e.problem}")
66
112
  end
67
113
 
114
+ if fixtures['symlinks'].nil?
115
+ fixtures['symlinks'] = auto_symlink
116
+ end
117
+
68
118
  result = {}
69
119
  if fixtures.include? category and fixtures[category] != nil
70
120
  fixtures[category].each do |fixture, opts|
@@ -76,14 +126,14 @@ def fixtures(category)
76
126
  elsif opts.instance_of?(Hash)
77
127
  target = "spec/fixtures/modules/#{fixture}"
78
128
  real_source = eval('"'+opts["repo"]+'"')
79
- result[real_source] = { "target" => target, "ref" => opts["ref"], "branch" => opts["branch"], "scm" => opts["scm"], "flags" => opts["flags"]}
129
+ result[real_source] = { "target" => target, "ref" => opts["ref"], "branch" => opts["branch"], "scm" => opts["scm"], "flags" => opts["flags"], "subdir" => opts["subdir"]}
80
130
  end
81
131
  end
82
132
  end
83
133
  return result
84
134
  end
85
135
 
86
- def clone_repo(scm, remote, target, ref=nil, branch=nil, flags = nil)
136
+ def clone_repo(scm, remote, target, subdir=nil, ref=nil, branch=nil, flags = nil)
87
137
  args = []
88
138
  case scm
89
139
  when 'hg'
@@ -120,6 +170,16 @@ def revision(scm, target, ref)
120
170
  system("cd #{target} && #{scm} #{args.flatten.join ' '}")
121
171
  end
122
172
 
173
+ def remove_subdirectory(target, subdir)
174
+ unless subdir.nil?
175
+ Dir.mktmpdir {|tmpdir|
176
+ FileUtils.mv(Dir.glob("#{target}/#{subdir}/{.[^\.]*,*}"), tmpdir)
177
+ FileUtils.rm_rf("#{target}/#{subdir}")
178
+ FileUtils.mv(Dir.glob("#{tmpdir}/{.[^\.]*,*}"), "#{target}")
179
+ }
180
+ end
181
+ end
182
+
123
183
  # creates a logger so we can log events with certain levels
124
184
  def logger
125
185
  unless @logger
@@ -177,9 +237,13 @@ task :spec_prep do
177
237
  rescue
178
238
  end
179
239
 
240
+ # git has a race condition creating that directory, that would lead to aborted clone operations
241
+ FileUtils::mkdir_p("spec/fixtures/modules")
242
+
180
243
  repositories.each do |remote, opts|
181
244
  scm = 'git'
182
245
  target = opts["target"]
246
+ subdir = opts["subdir"]
183
247
  ref = opts["ref"]
184
248
  scm = opts["scm"] if opts["scm"]
185
249
  branch = opts["branch"] if opts["branch"]
@@ -190,8 +254,9 @@ task :spec_prep do
190
254
  logger.debug "New Thread started for #{remote}"
191
255
  # start up a new thread and store it in the opts hash
192
256
  opts[:thread] = Thread.new do
193
- clone_repo(scm, remote, target, ref, branch, flags)
257
+ clone_repo(scm, remote, target, subdir, ref, branch, flags)
194
258
  revision(scm, target, ref) if ref
259
+ remove_subdirectory(target, subdir) if subdir
195
260
  end
196
261
  else
197
262
  # the last thread started should be the longest wait
@@ -206,7 +271,6 @@ task :spec_prep do
206
271
  # wait for all the threads to finish
207
272
  repositories.each {|remote, opts| opts[:thread].join }
208
273
 
209
- FileUtils::mkdir_p("spec/fixtures/modules")
210
274
  fixtures("symlinks").each do |source, target|
211
275
  if is_windows
212
276
  fail "Cannot symlink on Windows unless using at least Puppet 3.5" if !puppet_symlink_available
@@ -231,6 +295,7 @@ task :spec_prep do
231
295
  command = "puppet module install" + ref + flags + \
232
296
  " --ignore-dependencies" \
233
297
  " --force" \
298
+ " --module_working_dir spec/fixtures/module-working-dir" \
234
299
  " --target-dir spec/fixtures/modules #{remote}"
235
300
 
236
301
  unless system(command)
@@ -262,6 +327,8 @@ task :spec_clean do
262
327
  FileUtils::rm_rf(target)
263
328
  end
264
329
 
330
+ FileUtils::rm_rf("spec/fixtures/module-working-dir")
331
+
265
332
  fixtures("symlinks").each do |source, target|
266
333
  FileUtils::rm_f(target)
267
334
  end
@@ -272,19 +339,59 @@ task :spec_clean do
272
339
 
273
340
  end
274
341
 
275
- desc "Run spec tests in a clean fixtures directory"
342
+ desc "Run spec tests and clean the fixtures directory if successful"
276
343
  task :spec do
277
344
  Rake::Task[:spec_prep].invoke
278
345
  Rake::Task[:spec_standalone].invoke
279
346
  Rake::Task[:spec_clean].invoke
280
347
  end
281
348
 
349
+ desc "Parallel spec tests"
350
+ task :parallel_spec do
351
+ begin
352
+ require 'parallel_tests'
353
+
354
+ args = ['-t', 'rspec'].
355
+ concat(Rake::FileList[pattern].to_a)
356
+
357
+ Rake::Task[:spec_prep].invoke
358
+ ParallelTests::CLI.new.run(args)
359
+ Rake::Task[:spec_clean].invoke
360
+ rescue LoadError
361
+ fail 'Add the parallel_tests gem to Gemfile to enable this task'
362
+ end
363
+ end
364
+
282
365
  desc "List available beaker nodesets"
283
- task :beaker_nodes do
284
- Dir['spec/acceptance/nodesets/*.yml'].sort!.select { |node|
285
- node.slice!('.yml')
286
- puts File.basename(node)
287
- }
366
+ task 'beaker:sets' do
367
+ beaker_node_sets.each do |set|
368
+ puts set
369
+ end
370
+ end
371
+
372
+ # alias for compatibility
373
+ task 'beaker_nodes' => 'beaker:sets'
374
+
375
+ desc 'Try to use vagrant to login to the Beaker node'
376
+ task 'beaker:ssh', [:set, :node] do |_task, args|
377
+ set = args[:set] || ENV['BEAKER_set'] || ENV['RS_SET'] || 'default'
378
+ node = args[:node]
379
+ vagrant_ssh set, node
380
+ end
381
+
382
+ beaker_node_sets.each do |set|
383
+ desc "Run the Beaker acceptance tests for the node set '#{set}'"
384
+ task "beaker:#{set}" do
385
+ ENV['BEAKER_set'] = set
386
+ Rake::Task['beaker'].reenable
387
+ Rake::Task['beaker'].invoke
388
+ end
389
+
390
+ desc "Use vagrant to login to a node from the set '#{set}'"
391
+ task "beaker:ssh:#{set}", [:node] do |_task, args|
392
+ node = args[:node]
393
+ vagrant_ssh set, node
394
+ end
288
395
  end
289
396
 
290
397
  desc "Build puppet module package"
@@ -314,11 +421,19 @@ PuppetLint::RakeTask.new(:lint) do |config|
314
421
  config.fail_on_warnings = true
315
422
  config.disable_checks = [
316
423
  '80chars',
424
+ '140chars',
317
425
  'class_inherits_from_params_class',
318
426
  'class_parameter_defaults',
319
427
  'documentation',
320
428
  'single_quote_string_with_variables']
321
- config.ignore_paths = ["tests/**/*.pp", "vendor/**/*.pp","examples/**/*.pp", "spec/**/*.pp", "pkg/**/*.pp"]
429
+ config.ignore_paths = [
430
+ "bundle/**/*.pp",
431
+ "pkg/**/*.pp",
432
+ "spec/**/*.pp",
433
+ "tests/**/*.pp",
434
+ "types/**/*.pp",
435
+ "vendor/**/*.pp",
436
+ ]
322
437
  end
323
438
 
324
439
  require 'puppet-syntax/tasks/puppet-syntax'
@@ -326,6 +441,9 @@ PuppetSyntax.exclude_paths ||= []
326
441
  PuppetSyntax.exclude_paths << "spec/fixtures/**/*"
327
442
  PuppetSyntax.exclude_paths << "pkg/**/*"
328
443
  PuppetSyntax.exclude_paths << "vendor/**/*"
444
+ if Puppet.version.to_f < 4.0
445
+ PuppetSyntax.exclude_paths << "types/**/*"
446
+ end
329
447
  PuppetSyntax.future_parser = true if ENV['FUTURE_PARSER'] == 'yes'
330
448
 
331
449
  desc "Check syntax of Ruby files and call :syntax and :metadata_lint"
@@ -380,7 +498,7 @@ task :compute_dev_version do
380
498
  print new_version
381
499
  end
382
500
 
383
- desc "Runs all nessesary checks on a module in preparation for a release"
501
+ desc "Runs all necessary checks on a module in preparation for a release"
384
502
  task :release_checks do
385
503
  Rake::Task[:lint].invoke
386
504
  Rake::Task[:validate].invoke
@@ -394,7 +512,7 @@ end
394
512
  namespace :check do
395
513
  desc "Fails if symlinks are present in directory"
396
514
  task :symlinks do
397
- symlink = `find . -type l -ls`
515
+ symlink = `find . -path ./.git -prune -o -type l -ls`
398
516
  unless symlink == ""
399
517
  puts symlink
400
518
  fail "A symlink exists within this directory"
@@ -436,3 +554,16 @@ desc "Display the list of available rake tasks"
436
554
  task :help do
437
555
  system("rake -T")
438
556
  end
557
+
558
+ begin
559
+ require 'rubocop/rake_task'
560
+ RuboCop::RakeTask.new(:rubocop) do |task|
561
+ # These make the rubocop experience maybe slightly less terrible
562
+ task.options = ['-D', '-S', '-E']
563
+ end
564
+ rescue LoadError
565
+ desc "rubocop is not available in this installation"
566
+ task :rubocop do
567
+ fail "rubocop is not available in this installation"
568
+ end
569
+ end
@@ -1,5 +1,8 @@
1
1
  module PuppetlabsSpecHelper
2
+ VERSION = "1.2.1"
3
+
4
+ # compat for pre-1.2.0 users; deprecated
2
5
  module Version
3
- STRING = '1.1.1'
6
+ STRING = PuppetlabsSpecHelper::VERSION
4
7
  end
5
8
  end
@@ -1,88 +1,32 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: puppetlabs_spec_helper 1.1.1 ruby lib
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'puppetlabs_spec_helper/version'
6
5
 
7
- Gem::Specification.new do |s|
8
- s.name = "puppetlabs_spec_helper"
9
- s.version = "1.1.1"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "puppetlabs_spec_helper"
8
+ spec.version = PuppetlabsSpecHelper::VERSION
9
+ spec.authors = ["Puppet, Inc.", "Community Contributors"]
10
+ spec.email = ["modules-team@puppet.com"]
10
11
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Puppet Labs"]
14
- s.date = "2016-03-02"
15
- s.description = "Contains rake tasks and a standard spec_helper for running spec tests on puppet modules"
16
- s.email = ["modules-dept@puppetlabs.com"]
17
- s.extra_rdoc_files = [
18
- "LICENSE",
19
- "README.markdown"
20
- ]
21
- s.files = [
22
- ".noexec.yaml",
23
- ".travis.yml",
24
- "CHANGELOG.md",
25
- "CONTRIBUTING.md",
26
- "Gemfile",
27
- "LICENSE",
28
- "README.markdown",
29
- "Rakefile",
30
- "lib/puppetlabs_spec_helper/module_spec_helper.rb",
31
- "lib/puppetlabs_spec_helper/puppet_spec_helper.rb",
32
- "lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb",
33
- "lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb",
34
- "lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb",
35
- "lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb",
36
- "lib/puppetlabs_spec_helper/puppetlabs_spec_helper.rb",
37
- "lib/puppetlabs_spec_helper/rake_tasks.rb",
38
- "lib/puppetlabs_spec_helper/version.rb",
39
- "puppet_spec_helper.rb",
40
- "puppetlabs_spec_helper.gemspec",
41
- "puppetlabs_spec_helper.rb",
42
- "spec/lib/puppet/type/spechelper.rb",
43
- "spec/spec_helper.rb",
44
- "spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb",
45
- "spec/watchr.rb"
46
- ]
47
- s.homepage = "http://github.com/puppetlabs/puppetlabs_spec_helper"
48
- s.licenses = ["Apache-2.0"]
49
- s.rubygems_version = "2.4.5.1"
50
- s.summary = "Standard tasks and configuration for module spec tests"
12
+ spec.summary = %q{Standard tasks and configuration for module spec tests.}
13
+ spec.description = %q{Contains rake tasks and a standard spec_helper for running spec tests on puppet modules.}
14
+ spec.homepage = "http://github.com/puppetlabs/puppetlabs_spec_helper"
51
15
 
52
- if s.respond_to? :specification_version then
53
- s.specification_version = 4
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
54
20
 
55
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
- s.add_runtime_dependency(%q<rake>, [">= 0"])
57
- s.add_runtime_dependency(%q<rspec-puppet>, [">= 0"])
58
- s.add_runtime_dependency(%q<puppet-lint>, [">= 0"])
59
- s.add_runtime_dependency(%q<puppet-syntax>, [">= 0"])
60
- s.add_runtime_dependency(%q<mocha>, [">= 0"])
61
- s.add_development_dependency(%q<yard>, [">= 0"])
62
- s.add_development_dependency(%q<pry>, [">= 0"])
63
- s.add_development_dependency(%q<jeweler>, [">= 0"])
64
- s.add_development_dependency(%q<puppet>, ["~> 3.8.3"])
65
- else
66
- s.add_dependency(%q<rake>, [">= 0"])
67
- s.add_dependency(%q<rspec-puppet>, [">= 0"])
68
- s.add_dependency(%q<puppet-lint>, [">= 0"])
69
- s.add_dependency(%q<puppet-syntax>, [">= 0"])
70
- s.add_dependency(%q<mocha>, [">= 0"])
71
- s.add_dependency(%q<yard>, [">= 0"])
72
- s.add_dependency(%q<pry>, [">= 0"])
73
- s.add_dependency(%q<jeweler>, [">= 0"])
74
- s.add_dependency(%q<puppet>, ["~> 3.8.3"])
75
- end
76
- else
77
- s.add_dependency(%q<rake>, [">= 0"])
78
- s.add_dependency(%q<rspec-puppet>, [">= 0"])
79
- s.add_dependency(%q<puppet-lint>, [">= 0"])
80
- s.add_dependency(%q<puppet-syntax>, [">= 0"])
81
- s.add_dependency(%q<mocha>, [">= 0"])
82
- s.add_dependency(%q<yard>, [">= 0"])
83
- s.add_dependency(%q<pry>, [">= 0"])
84
- s.add_dependency(%q<jeweler>, [">= 0"])
85
- s.add_dependency(%q<puppet>, ["~> 3.8.3"])
86
- end
87
- end
21
+ spec.add_runtime_dependency "mocha", "~> 1.0"
22
+ spec.add_runtime_dependency "puppet-lint", "~> 2.0"
23
+ spec.add_runtime_dependency "puppet-syntax", "~> 2.0"
24
+ spec.add_runtime_dependency "rspec-puppet", "~> 2.0"
88
25
 
26
+ spec.add_development_dependency "bundler", "~> 1.12"
27
+ spec.add_development_dependency "pry"
28
+ spec.add_development_dependency "puppet", "~> 3"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rspec", "~> 3.0"
31
+ spec.add_development_dependency "yard"
32
+ end
metadata CHANGED
@@ -1,87 +1,88 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetlabs_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
- - Puppet Labs
7
+ - Puppet, Inc.
8
+ - Community Contributors
8
9
  autorequire:
9
- bindir: bin
10
+ bindir: exe
10
11
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
12
+ date: 2016-08-24 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: rake
15
+ name: mocha
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ">="
18
+ - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '0'
20
+ version: '1.0'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - ">="
25
+ - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '0'
27
+ version: '1.0'
27
28
  - !ruby/object:Gem::Dependency
28
- name: rspec-puppet
29
+ name: puppet-lint
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ">="
32
+ - - "~>"
32
33
  - !ruby/object:Gem::Version
33
- version: '0'
34
+ version: '2.0'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - ">="
39
+ - - "~>"
39
40
  - !ruby/object:Gem::Version
40
- version: '0'
41
+ version: '2.0'
41
42
  - !ruby/object:Gem::Dependency
42
- name: puppet-lint
43
+ name: puppet-syntax
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - ">="
46
+ - - "~>"
46
47
  - !ruby/object:Gem::Version
47
- version: '0'
48
+ version: '2.0'
48
49
  type: :runtime
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - ">="
53
+ - - "~>"
53
54
  - !ruby/object:Gem::Version
54
- version: '0'
55
+ version: '2.0'
55
56
  - !ruby/object:Gem::Dependency
56
- name: puppet-syntax
57
+ name: rspec-puppet
57
58
  requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - ">="
60
+ - - "~>"
60
61
  - !ruby/object:Gem::Version
61
- version: '0'
62
+ version: '2.0'
62
63
  type: :runtime
63
64
  prerelease: false
64
65
  version_requirements: !ruby/object:Gem::Requirement
65
66
  requirements:
66
- - - ">="
67
+ - - "~>"
67
68
  - !ruby/object:Gem::Version
68
- version: '0'
69
+ version: '2.0'
69
70
  - !ruby/object:Gem::Dependency
70
- name: mocha
71
+ name: bundler
71
72
  requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
- - - ">="
74
+ - - "~>"
74
75
  - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
76
+ version: '1.12'
77
+ type: :development
77
78
  prerelease: false
78
79
  version_requirements: !ruby/object:Gem::Requirement
79
80
  requirements:
80
- - - ">="
81
+ - - "~>"
81
82
  - !ruby/object:Gem::Version
82
- version: '0'
83
+ version: '1.12'
83
84
  - !ruby/object:Gem::Dependency
84
- name: yard
85
+ name: pry
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
88
  - - ">="
@@ -95,64 +96,79 @@ dependencies:
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  - !ruby/object:Gem::Dependency
98
- name: pry
99
+ name: puppet
99
100
  requirement: !ruby/object:Gem::Requirement
100
101
  requirements:
101
- - - ">="
102
+ - - "~>"
102
103
  - !ruby/object:Gem::Version
103
- version: '0'
104
+ version: '3'
104
105
  type: :development
105
106
  prerelease: false
106
107
  version_requirements: !ruby/object:Gem::Requirement
107
108
  requirements:
108
- - - ">="
109
+ - - "~>"
109
110
  - !ruby/object:Gem::Version
110
- version: '0'
111
+ version: '3'
111
112
  - !ruby/object:Gem::Dependency
112
- name: jeweler
113
+ name: rake
113
114
  requirement: !ruby/object:Gem::Requirement
114
115
  requirements:
115
- - - ">="
116
+ - - "~>"
116
117
  - !ruby/object:Gem::Version
117
- version: '0'
118
+ version: '10.0'
118
119
  type: :development
119
120
  prerelease: false
120
121
  version_requirements: !ruby/object:Gem::Requirement
121
122
  requirements:
122
- - - ">="
123
+ - - "~>"
123
124
  - !ruby/object:Gem::Version
124
- version: '0'
125
+ version: '10.0'
125
126
  - !ruby/object:Gem::Dependency
126
- name: puppet
127
+ name: rspec
127
128
  requirement: !ruby/object:Gem::Requirement
128
129
  requirements:
129
130
  - - "~>"
130
131
  - !ruby/object:Gem::Version
131
- version: 3.8.3
132
+ version: '3.0'
132
133
  type: :development
133
134
  prerelease: false
134
135
  version_requirements: !ruby/object:Gem::Requirement
135
136
  requirements:
136
137
  - - "~>"
137
138
  - !ruby/object:Gem::Version
138
- version: 3.8.3
139
+ version: '3.0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: yard
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
139
154
  description: Contains rake tasks and a standard spec_helper for running spec tests
140
- on puppet modules
155
+ on puppet modules.
141
156
  email:
142
- - modules-dept@puppetlabs.com
157
+ - modules-team@puppet.com
143
158
  executables: []
144
159
  extensions: []
145
- extra_rdoc_files:
146
- - LICENSE
147
- - README.markdown
160
+ extra_rdoc_files: []
148
161
  files:
162
+ - ".gitignore"
149
163
  - ".noexec.yaml"
164
+ - ".rspec"
165
+ - ".rubocop.yml"
150
166
  - ".travis.yml"
151
167
  - CHANGELOG.md
152
168
  - CONTRIBUTING.md
153
169
  - Gemfile
154
170
  - LICENSE
155
- - README.markdown
171
+ - README.md
156
172
  - Rakefile
157
173
  - lib/puppetlabs_spec_helper/module_spec_helper.rb
158
174
  - lib/puppetlabs_spec_helper/puppet_spec_helper.rb
@@ -166,13 +182,8 @@ files:
166
182
  - puppet_spec_helper.rb
167
183
  - puppetlabs_spec_helper.gemspec
168
184
  - puppetlabs_spec_helper.rb
169
- - spec/lib/puppet/type/spechelper.rb
170
- - spec/spec_helper.rb
171
- - spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb
172
- - spec/watchr.rb
173
185
  homepage: http://github.com/puppetlabs/puppetlabs_spec_helper
174
- licenses:
175
- - Apache-2.0
186
+ licenses: []
176
187
  metadata: {}
177
188
  post_install_message:
178
189
  rdoc_options: []
@@ -190,8 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
201
  version: '0'
191
202
  requirements: []
192
203
  rubyforge_project:
193
- rubygems_version: 2.4.5.1
204
+ rubygems_version: 2.5.1
194
205
  signing_key:
195
206
  specification_version: 4
196
- summary: Standard tasks and configuration for module spec tests
207
+ summary: Standard tasks and configuration for module spec tests.
197
208
  test_files: []