puppetlabs_spec_helper 2.3.1 → 2.3.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: 0ace8c695042d7598dca1a0f85cb349e2eda9721
4
- data.tar.gz: e659c5eb0a21803c1151d910a40b466a9ddca763
3
+ metadata.gz: f488df4c706569eee6e7f47135359abbb222391b
4
+ data.tar.gz: bcc3ef4e868d31908422dec50ff9ab0bc7857269
5
5
  SHA512:
6
- metadata.gz: 8cb50e96c99e20918f99a1ba69f946bd3f8d8dd01efa366f9dc61e2d1ece355a3681454f6ad82a60b517126d5a8559f519d1702514b8b7e854bd555dde9c139e
7
- data.tar.gz: dba488e3be4b0e613dd93c3d3b8a0fc9f645a1b4a9d5edc172612286cb9fd8aa1c107e1fef941c5db3b22d4cef17f8e4ba92ad57572c4da0453b008dd20d6ae0
6
+ metadata.gz: c2622f2e64e0eab60e978d9dcf4087dc58cb4236dd091327744358c6253cf2a4ae94691b70bcf4beb2b7f84639659a4e861a77f1e29326a5b8ed2891bdbd77b2
7
+ data.tar.gz: 56c5b8c957e30886a3bd3b672d0a46e4ab5d0f71071282ef4da04c79e36087d85d575f2bee2150b0e6c217c5d958cc070b4b66e61d8519072c112e65450945f1
@@ -2,6 +2,16 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [2.3.2]
6
+ ### Summary
7
+ Cleanups and fixes around fixture handling.
8
+
9
+ ### Fixed
10
+ - Do not error when no fixtures file is found or specified.
11
+ - Clean up fixtures, even if tests fail. Especially on Windows this is important to not keep lingering symlinks around.
12
+ - Fix creating of directory junctions (symlinks) on Windows for fixtures.
13
+
14
+
5
15
  ## [2.3.1]
6
16
  ### Summary
7
17
  Adds a `spec_list_json` rake task
@@ -375,7 +385,8 @@ compatible yet.
375
385
  ### Added
376
386
  * Initial release
377
387
 
378
- [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.0...master
388
+ [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.2...master
389
+ [2.3.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.1...v2.3.2
379
390
  [2.3.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.0...v2.3.1
380
391
  [2.3.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.2.0...v2.3.0
381
392
  [2.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.5...v2.2.0
@@ -114,7 +114,7 @@ def fixtures(category)
114
114
  end
115
115
 
116
116
  begin
117
- fixtures = YAML.load_file(ENV['FIXTURES_YML'] || fixtures_yaml)["fixtures"]
117
+ fixtures = (YAML.load_file(ENV['FIXTURES_YML'] || fixtures_yaml) || { fixtures: {} })["fixtures"]
118
118
  rescue Errno::ENOENT
119
119
  fixtures = {}
120
120
  rescue Psych::SyntaxError => e
@@ -293,6 +293,7 @@ task :spec_prep do
293
293
  unless File.symlink?(link)
294
294
  logger.info("Creating symlink from #{link} to #{target}")
295
295
  if is_windows
296
+ target = File.join(File.dirname(link), target) unless Pathname.new(target).absolute?
296
297
  if Dir.respond_to?(:create_junction)
297
298
  Dir.create_junction(link, target)
298
299
  else
@@ -368,9 +369,12 @@ end
368
369
 
369
370
  desc "Run spec tests and clean the fixtures directory if successful"
370
371
  task :spec do
371
- Rake::Task[:spec_prep].invoke
372
- Rake::Task[:spec_standalone].invoke
373
- Rake::Task[:spec_clean].invoke
372
+ begin
373
+ Rake::Task[:spec_prep].invoke
374
+ Rake::Task[:spec_standalone].invoke
375
+ ensure
376
+ Rake::Task[:spec_clean].invoke
377
+ end
374
378
  end
375
379
 
376
380
  desc "Parallel spec tests"
@@ -384,9 +388,10 @@ task :parallel_spec do
384
388
 
385
389
  Rake::Task[:spec_prep].invoke
386
390
  ParallelTests::CLI.new.run(args)
387
- Rake::Task[:spec_clean].invoke
388
391
  rescue LoadError
389
392
  raise 'Add the parallel_tests gem to Gemfile to enable this task'
393
+ ensure
394
+ Rake::Task[:spec_clean].invoke
390
395
  end
391
396
  end
392
397
 
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.2"
3
3
 
4
4
  # compat for pre-1.2.0 users; deprecated
5
5
  module Version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetlabs_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-08-02 00:00:00.000000000 Z
12
+ date: 2017-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  requirements: []
217
217
  rubyforge_project:
218
- rubygems_version: 2.5.1
218
+ rubygems_version: 2.5.2
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: Standard tasks and configuration for module spec tests.