puppetlabs_spec_helper 2.0.1 → 2.0.2

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: 819c22fe85f43f192c78ba96ba8411af093a0963
4
- data.tar.gz: 22f6d77f079d2d5cd4e6ddfff26dc53ba92bee79
3
+ metadata.gz: b24c3f7342e56650b8a82495db303beeceeba195
4
+ data.tar.gz: 9786d8e2bc84c4c61db486d19bbb133b7c4818f1
5
5
  SHA512:
6
- metadata.gz: 7419040ae20b767fbf7dca9af02a57f2aa9b5b2c921ddf70773c89e6a545e0459920b9ff5c08b091e4b11770bf18f6aaad4ef92904abc5549a4757e4efc22adf
7
- data.tar.gz: 132130484ad98d77f0f00225e72ee2b8b4f226b8fe551f9a29e6dbc7dc050a551e9ad7ca6450f167e1f5784db56ce17b154aa0787175a84b07cbe74db599e8e8
6
+ metadata.gz: 4e08489fbba3e60258485c5a040cb992b56aaa8ec9c2cba58d23148d573ec7bf62e8ba4c27842cc2f9f8bc2c0b2398856c7a06de7f1703f8a8c9b9c870805ab4
7
+ data.tar.gz: 315eb5575a593aac681bec0af09ef2be4c23b84fdc4d04c9f90d094363d36dd139ac9c0e6dd13cfe67ee5f65400dbfb9954ba02735c4852a6f02417a2a01d9d0
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.0.2]
6
+ ### Summary:
7
+ Fixes an issue where the gettext rake tasks look in the spec\_helper and not the current module for the `locales/` directory.
8
+
5
9
  ## [2.0.1]
6
10
  ### Summary:
7
11
  Fixes an issue where older puppets don't bring in the gettext gem requirement causing the psh rake tasks to fail.
@@ -18,12 +18,12 @@ pattern = 'spec/{aliases,classes,defines,unit,functions,hosts,integration,type_a
18
18
  begin
19
19
  spec = Gem::Specification.find_by_name 'gettext-setup'
20
20
  load "#{spec.gem_dir}/lib/tasks/gettext.rake"
21
- locales_dir = File.absolute_path('locales', File.dirname(__FILE__))
21
+ locales_dir = File.absolute_path('locales', Dir.pwd )
22
22
  # Initialization requires a valid locales directory
23
23
  if File.exist? locales_dir
24
24
  GettextSetup.initialize(locales_dir)
25
25
  else
26
- puts "No 'locales' directory found in #{File.dirname(__FILE__)}, skipping gettext initialization" if Rake.verbose == true
26
+ puts "No 'locales' directory found in #{ Dir.pwd }, skipping gettext initialization" if Rake.verbose == true
27
27
  end
28
28
  rescue Gem::LoadError
29
29
  puts "No gettext-setup gem found, skipping gettext initialization" if Rake.verbose == true
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
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.1
4
+ version: 2.0.2
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-08 00:00:00.000000000 Z
12
+ date: 2017-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha