puppetlabs_spec_helper 2.1.4 → 2.1.5
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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/puppetlabs_spec_helper/rake_tasks.rb +7 -6
- data/lib/puppetlabs_spec_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e3472ad77e608056f88474bab00098c3572c9d7
|
4
|
+
data.tar.gz: df118099df1ce052efcfa6be4a439b46af203375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a093dfbc32ddf5b989121857bc08f17f265242d58ec04c2c071771bf361ee5dce912502e1b2997314a223d96666a14af26e7df22bb402a591f2ac48cd52567e
|
7
|
+
data.tar.gz: 0ffb1040801d8692fecacd7814ffa50169e95ffba49fb799870d116e14148a6fc1c164fd3a9a14e9f17461abc1bd5c045f8acc2b5620b9a308d7ab9088ac305a
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
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.5]
|
6
|
+
### Summary:
|
7
|
+
Fix symlinks fixtures code.
|
8
|
+
|
5
9
|
## [2.1.4]
|
6
10
|
### Summary:
|
7
11
|
Better Windows support.
|
@@ -346,7 +350,9 @@ compatible yet.
|
|
346
350
|
### Added
|
347
351
|
* Initial release
|
348
352
|
|
349
|
-
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.
|
353
|
+
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.5...master
|
354
|
+
[2.1.5]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.4...v2.1.5
|
355
|
+
[2.1.4]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.3...v2.1.4
|
350
356
|
[2.1.3]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.2...v2.1.3
|
351
357
|
[2.1.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.1...v2.1.2
|
352
358
|
[2.1.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.1.0...v2.1.1
|
@@ -283,17 +283,18 @@ task :spec_prep do
|
|
283
283
|
# wait for all the threads to finish
|
284
284
|
repositories.each {|remote, opts| opts[:thread].join }
|
285
285
|
|
286
|
-
fixtures("symlinks").each do |
|
287
|
-
unless File.symlink(
|
286
|
+
fixtures("symlinks").each do |target, link|
|
287
|
+
unless File.symlink?(link)
|
288
|
+
logger.info("Creating symlink from #{link} to #{target}")
|
288
289
|
if is_windows
|
289
290
|
if Dir.respond_to?(:create_junction)
|
290
|
-
Dir.create_junction(
|
291
|
+
Dir.create_junction(link, target)
|
291
292
|
else
|
292
|
-
system("call mklink /J \"#{
|
293
|
+
system("call mklink /J \"#{link.gsub('/', '\\')}\" \"#{target.gsub('/', '\\')}\"")
|
293
294
|
end
|
295
|
+
else
|
296
|
+
FileUtils::ln_sf(target, link)
|
294
297
|
end
|
295
|
-
else
|
296
|
-
FileUtils::ln_sf(source, target)
|
297
298
|
end
|
298
299
|
end
|
299
300
|
|