puppetlabs_spec_helper 2.0.0 → 2.0.1

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: d40eb48aae63d24394a645d4bf5d437db8097e79
4
- data.tar.gz: e09d2f87d8f18eb5e0cd5e86b8160c0624176ce6
3
+ metadata.gz: 819c22fe85f43f192c78ba96ba8411af093a0963
4
+ data.tar.gz: 22f6d77f079d2d5cd4e6ddfff26dc53ba92bee79
5
5
  SHA512:
6
- metadata.gz: a39cc71ee400db75509c38dc41bbeda0df3ab17cd4192ac82473a35aff91119fa74e893551c99ae6e19b7391da77f8e75b3aa0755ad2b2c0189d032ce670e1ed
7
- data.tar.gz: 245f2b941cf6b373c8df8371e3f8213f8ce595b7b79ffdbb9e2398fe071c32efa76156d2fd7f0eb44b244bcc8170ecd2e9ece37b6d3320e3cc249607fa40989a
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.0...master
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
- spec = Gem::Specification.find_by_name 'gettext-setup'
19
- load "#{spec.gem_dir}/lib/tasks/gettext.rake"
20
- locales_dir = File.absolute_path('locales', File.dirname(__FILE__))
21
- # Initialization requires a valid locales directory
22
- if File.exist? locales_dir
23
- GettextSetup.initialize(locales_dir)
24
- else
25
- puts "No 'locales' directory found in #{File.dirname(__FILE__)}, skipping gettext initialization"
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"
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.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.0.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-07 00:00:00.000000000 Z
12
+ date: 2017-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha