puppetlabs_spec_helper 2.1.2 → 2.1.3

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: 28e15925ec0c92c16f71d8eed1c8f8a82de0cf68
4
- data.tar.gz: 020f9dafb26284722be445b19dbe512927b9bc7e
3
+ metadata.gz: a4e32792b5b1b9ff5cb3e4549b2e34f8c067358e
4
+ data.tar.gz: bde81e497fccf351baa4c2b7304346ae134f71c7
5
5
  SHA512:
6
- metadata.gz: 16ea5bdac9799b1961f024ff305779bf9969f1cf359110a9cda299bcced3bb4dcfa24e12d3b7378bfd22fa11e1125d3f1b860d242a3ed7152b2fbfa5fd628e9c
7
- data.tar.gz: 4e45b05701149bf0894b4e79caeed2ee1bec7070b8222766034af7c243ae53032bd151b09d179a8bf05be4643f2cf7f082751a6794475ca357c8362edd067a78
6
+ metadata.gz: d61b5e9fb3e9d439f72be5cd436a8c1b2b154696b81647e9a8d133640560e46e0f33be60c046b50715e3e1c8eaa3c691ee416408aa119067f5da1917e8c562ef
7
+ data.tar.gz: 31c88292d17c418fb89bc02f6a80ed5acfabd2384c578f7a8e978e23f27084154e52f465770e73976d2ddbea8386227a7d0b1abdf18f01be452cd9fa957200e7
@@ -2,6 +2,14 @@
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.1.3]
6
+ ### Summary:
7
+ This release fixes puppet module install into paths with spaces, and fix conflicting build names for CI jobs.
8
+
9
+ ### Fixed:
10
+ - Properly exscape paths for puppet module install
11
+ - Add "r" to the beginning of `rake compute_dev_version`
12
+
5
13
  ## [2.1.2]
6
14
  ### Summary:
7
15
  The `release_tasks` now falls back to `spec` if the `parallel_spec` test fails due to the `parallel_tests` gem being absent.
@@ -330,8 +338,9 @@ compatible yet.
330
338
  ### Added
331
339
  * Initial release
332
340
 
333
- [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.2...master
334
- [2.1.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.1...v2.1.2
341
+ [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.3...master
342
+ [2.1.3]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.2...v2.1.3
343
+ [2.1.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.1...v2.1.2
335
344
  [2.1.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.0...v2.1.1
336
345
  [2.1.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.0.1...v2.1.0
337
346
  [2.0.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.0.0...v2.0.1
@@ -308,11 +308,11 @@ task :spec_prep do
308
308
  command = "puppet module install" + ref + flags + \
309
309
  " --ignore-dependencies" \
310
310
  " --force" \
311
- " --module_working_dir #{working_dir}" \
312
- " --target-dir #{target_dir} #{remote}"
311
+ " --module_working_dir \"#{working_dir}\"" \
312
+ " --target-dir \"#{target_dir}\" \"#{remote}\""
313
313
 
314
314
  unless system(command)
315
- fail "Failed to install module #{remote} to #{target}"
315
+ fail "Failed to install module #{remote} to #{target_dir}"
316
316
  end
317
317
  end
318
318
 
@@ -500,10 +500,18 @@ task :compute_dev_version do
500
500
  end
501
501
 
502
502
  sha = `git rev-parse HEAD`[0..7]
503
+ branch = `git rev-parse --abbrev-ref HEAD`
503
504
 
504
505
  # If we're in a CI environment include our build number
506
+ # If the branch is a release branch we append an 'r' into the new_version,
507
+ # this is due to the release branch buildID conflicting with master branch when trying to push to the staging forge.
508
+ # More info can be found at https://tickets.puppetlabs.com/browse/FM-6170
505
509
  if build = ENV['BUILD_NUMBER'] || ENV['TRAVIS_BUILD_NUMBER']
506
- new_version = sprintf('%s-%04d-%s', version, build, sha)
510
+ if branch.eql? "release"
511
+ new_version = sprintf('%s-%s%04d-%s', version, "r", build, sha)
512
+ else
513
+ new_version = sprintf('%s-%04d-%s', version, build, sha)
514
+ end
507
515
  else
508
516
  new_version = "#{version}-#{sha}"
509
517
  end
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
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.1.2
4
+ version: 2.1.3
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-04-17 00:00:00.000000000 Z
12
+ date: 2017-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha