rspec-puppet 2.6.7 → 2.6.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f566b2171b96404fe94df6cbc1453c1f06ab9963
4
- data.tar.gz: 7eb940e7fea32c49cedc972b20f77a5bbd2010c4
3
+ metadata.gz: 685eff630cb1067919ce2264cfb87657480b75ff
4
+ data.tar.gz: 9139248ce97fee84aab8e4e963f8196ee5486e64
5
5
  SHA512:
6
- metadata.gz: b4dd3865ee6571c5ad0983c7d723862acfba73d23d47789bbcac5e60d8a026ee234bbec04460011cc62c5d2a045e6c3292c222ed057e8353b1732bcb450dabc4
7
- data.tar.gz: e5b070746880deb423cd1f00f29f4e9e27ca76eca529327ea8f228a77781ef9e534138d816fc0a097ceaf77ca432b7cacf2985594716c33c6024e8856e4492aa
6
+ metadata.gz: cb91f5eea8e985d26590d6da1f74ec363d58ba762bf6e4b13542f71ee87de7977cf4887776aceaf17a2d80ded6c6ffd6e74812094f7a8689916ab25c4c1f0117
7
+ data.tar.gz: a112713996ca8b0bf03df1d85e57bf24f6f4e3c3a4c58e22bbad18e600a2aaa4f2cd6d5d216ca5d992263ea6883193fa8d394d951e220287d77cf459de3ec06d
@@ -2,6 +2,15 @@
2
2
  All notable changes to this project will be documented in this file. This
3
3
  project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [2.6.8]
6
+
7
+ ### Fixed
8
+
9
+ * Performance regression with Puppet < 4.0.0 due to overly agressive cache
10
+ invalidation.
11
+ * Clarified rspec-puppet-init output when run inside a directory that does not
12
+ contain a `metadata.json` file.
13
+
5
14
  ## [2.6.7]
6
15
 
7
16
  ### Fixed
data/README.md CHANGED
@@ -12,7 +12,8 @@
12
12
 
13
13
  ## Starting out with a new module
14
14
 
15
- When you start out on a new module, run `rspec-puppet-init` to create the necessary files to configure rspec-puppet for your module's tests.
15
+ When you start out on a new module, create a metadata.json file for your module and then run `rspec-puppet-init` to create the necessary files to configure rspec-puppet for your module's tests.
16
+
16
17
 
17
18
  ## Configure manifests for Puppet 4
18
19
 
@@ -105,7 +105,9 @@ module Puppet
105
105
  RSpec::Puppet::Consts.stub_consts_for(RSpec.configuration.platform)
106
106
  end
107
107
 
108
- environment.send(:value_cache).clear if environment.respond_to?(:value_cache, true)
108
+ if pretending && pretending != Puppet::Util::Platform.actual_platform
109
+ environment.send(:value_cache).clear if environment.respond_to?(:value_cache, true)
110
+ end
109
111
  output = old_find_manifests_in_modules(pattern, environment)
110
112
 
111
113
  unless pretending.nil?
@@ -12,6 +12,14 @@ module RSpec::Puppet
12
12
  return false
13
13
  end
14
14
 
15
+ if control_repo?
16
+ $stderr.puts <<-END
17
+ Unable to find a metadata.json file. If this is a module, please create a
18
+ metadata.json file and try again.
19
+ END
20
+ return false
21
+ end
22
+
15
23
  safe_setup_directories(module_name)
16
24
  safe_touch(File.join('spec', 'fixtures', 'manifests', 'site.pp'))
17
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.7
4
+ version: 2.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-08 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec