puppetlabs_spec_helper 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2af2de3c35e1218a908641c49faafa015ef5a31d
4
- data.tar.gz: 66433a97c6001f9d162256c20b747d7d16f122b1
3
+ metadata.gz: 0130f0a082660bbb7b06949f05de5b12fba0495a
4
+ data.tar.gz: 221164acdd88485d5c1925a6c1ff5f4c819a27b7
5
5
  SHA512:
6
- metadata.gz: d7b08134e2037452e20e37e4a8d805b0194d9b1204e9eec1a6463c2f00091578043f66f7de1d001c01ba203e32e23639d1e0cd1b9e354109f426e6556e07f74b
7
- data.tar.gz: f15b5756ad0aef32714b9c52d46a7ca4fb4b42642880655c8c7713595368744b949b587d7aacbaedfb8beee7ec7ef32b5eecc04850033d63983f91d540235aad
6
+ metadata.gz: 32cef604ccbab6524d8c19c77809d792084c87afb15dfdfcf2b178a7768a2eaccad081820fd58221d52febbea46822dd61815836118c20a14fe9cfa7c6c534bc
7
+ data.tar.gz: 5aacb1ac9e6c48033d1c4779f857dc9869a18b00e38c374e26fac01cae4587e7e27b9afd04ddc2dea94817429579df84f1cd3da20de9501e4c824eb6e1042bc7
@@ -2,6 +2,13 @@
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.5.1]
6
+ ### Summary
7
+ Adds a fix to the parallel_spec rake task.
8
+
9
+ ### Fixed
10
+ - In parallel_spec, warn when there are no files to test against rather than fail.
11
+
5
12
  ## [2.5.0]
6
13
  ### Summary
7
14
  Adds a feature to pass test file targets from 'rake spec' to 'rspec', also fixes a parsing issue with test\_tiers.
@@ -408,7 +415,8 @@ compatible yet.
408
415
  ### Added
409
416
  * Initial release
410
417
 
411
- [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.0...master
418
+ [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.1...master
419
+ [2.5.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.5.0...v2.5.1
412
420
  [2.5.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.4.0...v2.5.0
413
421
  [2.4.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.2...v2.4.0
414
422
  [2.3.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.3.1...v2.3.2
@@ -416,15 +416,19 @@ end
416
416
  desc "Parallel spec tests"
417
417
  task :parallel_spec do
418
418
  raise 'Add the parallel_tests gem to Gemfile to enable this task' unless parallel_tests_loaded
419
- begin
420
- args = ['-t', 'rspec']
421
- args.push('--').concat(ENV['CI_SPEC_OPTIONS'].strip.split(' ')).push('--') unless ENV['CI_SPEC_OPTIONS'].nil? || ENV['CI_SPEC_OPTIONS'].strip.empty?
422
- args.concat(Rake::FileList[pattern].to_a)
423
-
424
- Rake::Task[:spec_prep].invoke
425
- ParallelTests::CLI.new.run(args)
426
- ensure
427
- Rake::Task[:spec_clean].invoke
419
+ if Rake::FileList[pattern].to_a.empty?
420
+ warn "No files for parallel_spec to run against"
421
+ else
422
+ begin
423
+ args = ['-t', 'rspec']
424
+ args.push('--').concat(ENV['CI_SPEC_OPTIONS'].strip.split(' ')).push('--') unless ENV['CI_SPEC_OPTIONS'].nil? || ENV['CI_SPEC_OPTIONS'].strip.empty?
425
+ args.concat(Rake::FileList[pattern].to_a)
426
+
427
+ Rake::Task[:spec_prep].invoke
428
+ ParallelTests::CLI.new.run(args)
429
+ ensure
430
+ Rake::Task[:spec_clean].invoke
431
+ end
428
432
  end
429
433
  end
430
434
 
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
- VERSION = "2.5.0"
2
+ VERSION = "2.5.1"
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.5.0
4
+ version: 2.5.1
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-11-15 00:00:00.000000000 Z
12
+ date: 2017-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha