puppetlabs_spec_helper 1.2.1 → 1.2.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: cc3386df61b1fedabba7e20fcbf2d7e19d588210
4
- data.tar.gz: c892ab82a4647c84f728f31ed22c49b2821c7ea8
3
+ metadata.gz: 51b4fc08aa43ea4df29d204be5a86f0e7d3f2015
4
+ data.tar.gz: d760da22c37eb44ba79b32b005e2e90c3330b1eb
5
5
  SHA512:
6
- metadata.gz: 35f46e0d7db0fad995e00e8f6e7ea029f4fc91c1a187855eb1d76a27d1ef898a2fcf6daa713260f792ad1aace5bd6d169abece553f9c612ce521c3ef5fb64436
7
- data.tar.gz: 366b7962fd0794271799a36c29889a502af326099ad410546f730f8d87786a26608842f719f16a7cfb03d8caec5730f3e2f25bfa9d47d044eac27579843a6787
6
+ metadata.gz: 1f68c4e945087d2dae2f75a8f9bcc1df10992604958be56874d88dc1f51284e00b16989bf73aafa41b3fd83dcfbc923cb3e2c58994e69bf386757be2e2e9bf67
7
+ data.tar.gz: e910986a66e093ec80a4d5073c6498f6ed4552a3282a52e6b0483dd1997a2c3347e415af3e4248fbe06c00d548d19dc6b05fcb6baf5ea6b2f76a8dac5c949223
@@ -2,6 +2,11 @@
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
+ ## [1.2.2]
6
+ ### Summary:
7
+
8
+ Dominic Cleal reported and fixed an issue with the STRICT_VARIABLES setting on puppet versions before 3.5.
9
+
5
10
  ## [1.2.1]
6
11
  ### Summary:
7
12
 
@@ -276,6 +281,7 @@ compatible yet.
276
281
  * Initial release
277
282
 
278
283
  [unreleased]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.1.1...master
284
+ [1.2.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.2.1...1.2.2
279
285
  [1.2.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.2.0...1.2.1
280
286
  [1.2.0]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.1.1...1.2.0
281
287
  [1.1.1]: https://github.com/puppetlabs/puppetlabs_spec_helper/compare/1.1.0...1.1.1
data/README.md CHANGED
@@ -145,9 +145,10 @@ variables for the spec run. These are:
145
145
  * ``FUTURE_PARSER`` - set to "yes" to enable the [future parser](http://docs.puppetlabs.com/puppet/latest/reference/experiments_future.html),
146
146
  the equivalent of setting [parser=future](http://docs.puppetlabs.com/references/latest/configuration.html#parser)
147
147
  in puppet.conf.
148
- * ``STRICT_VARIABLES`` - set to "no" to disable strict variable checking when using Puppet >= 4.0,
149
- the equivalent of not setting [strict_variables](http://docs.puppetlabs.com/references/latest/configuration.html#strictvariables)
150
- in puppet.conf.
148
+ * ``STRICT_VARIABLES`` - set to "yes" to enable set to strict variable checking when using Puppet versions between 3.5 and 4.0;
149
+ set to "no" to disable strict variable checking on Puppet versions 4.0, and later.
150
+ See [strict_variables](http://docs.puppetlabs.com/references/latest/configuration.html#strictvariables)
151
+ in puppet.conf for details.
151
152
  * ``ORDERING`` - set to the desired ordering method ("title-hash", "manifest", or "random")
152
153
  to set the order of unrelated resources when applying a catalog. Leave unset for the default
153
154
  behavior, currently "random". This is equivalent to setting [ordering](http://docs.puppetlabs.com/references/latest/configuration.html#ordering)
@@ -32,7 +32,7 @@ RSpec.configure do |c|
32
32
  Puppet.settings[:stringify_facts] = false if ENV['STRINGIFY_FACTS'] == 'no'
33
33
  Puppet.settings[:trusted_node_data] = true if ENV['TRUSTED_NODE_DATA'] == 'yes'
34
34
  end
35
- Puppet.settings[:strict_variables] = (ENV['STRICT_VARIABLES'] == 'yes' or (Puppet.version.to_f >= 4.0 and ENV['STRICT_VARIABLES'] != 'no'))
35
+ Puppet.settings[:strict_variables] = true if ENV['STRICT_VARIABLES'] == 'yes' || (Puppet.version.to_f >= 4.0 && ENV['STRICT_VARIABLES'] != 'no')
36
36
  Puppet.settings[:ordering] = ENV['ORDERING'] if ENV['ORDERING']
37
37
  end
38
38
  end
@@ -1,5 +1,5 @@
1
1
  module PuppetlabsSpecHelper
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.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: 1.2.1
4
+ version: 1.2.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: 2016-08-24 00:00:00.000000000 Z
12
+ date: 2016-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha