rspec-puppet 2.6.3 → 2.6.4
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 +11 -0
- data/lib/rspec-puppet/adapters.rb +5 -0
- data/lib/rspec-puppet/monkey_patches.rb +14 -0
- data/lib/rspec-puppet/support.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: 1b4f7cd327bd2ebc223082a8f2ec4fa260a33099
|
4
|
+
data.tar.gz: 5f863681cfce560d3c821d097aa9b659b1911ff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8ac24b9e683cb744bbe2102bf05c13c439594b4923b3aea580837b96795ee99973342ffab028e2feaaa9a0da1ccca6152ecbbc25c866f06d227c44b72e7840e
|
7
|
+
data.tar.gz: 933f349b6375c4e158afa6f87069c37b764989b315dbf0801c3f3e3b45a9519d441ae17ce6de30299500356730a36f15d19fe3e52dc60c3c38e92cf681d1aa84
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,17 @@
|
|
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.4]
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
* A regression that prevented environment names to be specified as a symbol.
|
10
|
+
* A regression that prevented the `environmentpath` setting from taking
|
11
|
+
effect.
|
12
|
+
* Stubbed out the automatic confines created by resource providers on their
|
13
|
+
specified commands, which was preventing the correct provider from being
|
14
|
+
assigned to a resource when performing cross-platform testing.
|
15
|
+
|
5
16
|
## [2.6.3]
|
6
17
|
|
7
18
|
### Fixed
|
@@ -50,6 +50,11 @@ module RSpec::Puppet
|
|
50
50
|
|
51
51
|
if Puppet.settings.respond_to?(:initialize_app_defaults)
|
52
52
|
Puppet.settings.initialize_app_defaults(settings_hash)
|
53
|
+
|
54
|
+
# Forcefully apply the environmentpath setting instead of relying on
|
55
|
+
# the application defaults as Puppet::Test::TestHelper automatically
|
56
|
+
# sets this value as well, overriding our application default
|
57
|
+
Puppet.settings[:environmentpath] = settings_hash[:environmentpath] if settings_hash.key?(:environmentpath)
|
53
58
|
else
|
54
59
|
# Set settings the old way for Puppet 2.x, because that's how
|
55
60
|
# they're defaulted in that version of Puppet::Test::TestHelper and
|
@@ -111,6 +111,20 @@ module Puppet
|
|
111
111
|
module_function :pretend_platform
|
112
112
|
end
|
113
113
|
end
|
114
|
+
|
115
|
+
if defined?(Puppet::Confine)
|
116
|
+
class Confine::Exists < Puppet::Confine
|
117
|
+
def pass?(value)
|
118
|
+
true
|
119
|
+
end
|
120
|
+
end
|
121
|
+
else
|
122
|
+
class Provider::Confine::Exists < Puppet::Provider::Confine
|
123
|
+
def pass?(value)
|
124
|
+
true
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
114
128
|
end
|
115
129
|
|
116
130
|
class Pathname
|
data/lib/rspec-puppet/support.rb
CHANGED
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.
|
4
|
+
version: 2.6.4
|
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-07-
|
11
|
+
date: 2017-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|