puppetlabs_spec_helper 2.0.0 → 2.0.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 +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/puppetlabs_spec_helper/rake_tasks.rb +12 -8
- data/lib/puppetlabs_spec_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 819c22fe85f43f192c78ba96ba8411af093a0963
|
|
4
|
+
data.tar.gz: 22f6d77f079d2d5cd4e6ddfff26dc53ba92bee79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7419040ae20b767fbf7dca9af02a57f2aa9b5b2c921ddf70773c89e6a545e0459920b9ff5c08b091e4b11770bf18f6aaad4ef92904abc5549a4757e4efc22adf
|
|
7
|
+
data.tar.gz: 132130484ad98d77f0f00225e72ee2b8b4f226b8fe551f9a29e6dbc7dc050a551e9ad7ca6450f167e1f5784db56ce17b154aa0787175a84b07cbe74db599e8e8
|
data/CHANGELOG.md
CHANGED
|
@@ -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.0.1]
|
|
6
|
+
### Summary:
|
|
7
|
+
Fixes an issue where older puppets don't bring in the gettext gem requirement causing the psh rake tasks to fail.
|
|
8
|
+
|
|
9
|
+
### Fixed:
|
|
10
|
+
- Don't define gettext rake tasks if gettext library is not present
|
|
11
|
+
|
|
5
12
|
## [2.0.0]
|
|
6
13
|
### Summary:
|
|
7
14
|
This release makes the module working dir configurable, adds features for future puppet features, and updates the spec rake task for TravisCI
|
|
@@ -295,7 +302,8 @@ compatible yet.
|
|
|
295
302
|
### Added
|
|
296
303
|
* Initial release
|
|
297
304
|
|
|
298
|
-
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.0.
|
|
305
|
+
[unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.0.1...master
|
|
306
|
+
[2.0.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v2.0.0...v2.0.1
|
|
299
307
|
[2.0.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v1.2.2...v2.0.0
|
|
300
308
|
[1.2.2]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/v1.2.1...v1.2.2
|
|
301
309
|
[1.2.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.2.0...v1.2.1
|
|
@@ -15,14 +15,18 @@ task :default => [:help]
|
|
|
15
15
|
|
|
16
16
|
pattern = 'spec/{aliases,classes,defines,unit,functions,hosts,integration,type_aliases,types}/**/*_spec.rb'
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
begin
|
|
19
|
+
spec = Gem::Specification.find_by_name 'gettext-setup'
|
|
20
|
+
load "#{spec.gem_dir}/lib/tasks/gettext.rake"
|
|
21
|
+
locales_dir = File.absolute_path('locales', File.dirname(__FILE__))
|
|
22
|
+
# Initialization requires a valid locales directory
|
|
23
|
+
if File.exist? locales_dir
|
|
24
|
+
GettextSetup.initialize(locales_dir)
|
|
25
|
+
else
|
|
26
|
+
puts "No 'locales' directory found in #{File.dirname(__FILE__)}, skipping gettext initialization" if Rake.verbose == true
|
|
27
|
+
end
|
|
28
|
+
rescue Gem::LoadError
|
|
29
|
+
puts "No gettext-setup gem found, skipping gettext initialization" if Rake.verbose == true
|
|
26
30
|
end
|
|
27
31
|
|
|
28
32
|
desc "Run spec tests on an existing fixtures directory"
|
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.0.
|
|
4
|
+
version: 2.0.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-02-
|
|
12
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mocha
|