rspec-puppet 2.11.1 → 2.12.0
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 +6 -0
- data/lib/rspec-puppet/matchers/create_generic.rb +2 -0
- data/lib/rspec-puppet/matchers/run.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0983cc8fe444bc2035b1e58df39027ab7589cbeae175ace159a384dea8ef2cf
|
|
4
|
+
data.tar.gz: 8d91008e48102d7053911236a0173daa8daf64e94274a5f6046a45656770c8fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c2a790b3d4e4f7dc14dce67ba3c1e2c635534962acfa8523390aa2b07389c216c7ffb1cbddccd5ebd0e627372267dad4f07c59293e5fd36ce3d659b9d0c35bd
|
|
7
|
+
data.tar.gz: 7c9d11d0c5047af4ad2dd7a7743c2e5ff341257f9f2036beabd4b23a88294bf22e8d7e282f1a95cef230a66e7b6e5e5f2c429fb95a265116dd341bc38698aaa7
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.12.0]
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
* Handle nil autorequire results ([#22](https://github.com/puppetlabs/rspec-puppet/pull/22))
|
|
9
|
+
* Add the ability to use kind_of matchers ([#24](https://github.com/puppetlabs/rspec-puppet/pull/24))
|
|
10
|
+
|
|
5
11
|
## [2.11.1]
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -313,6 +313,8 @@ module RSpec::Puppet
|
|
|
313
313
|
if resource.resource_type.respond_to?(func)
|
|
314
314
|
resource.resource_type.send(func) do |t, b|
|
|
315
315
|
Array(resource.to_ral.instance_eval(&b)).each do |dep|
|
|
316
|
+
next if dep.nil?
|
|
317
|
+
|
|
316
318
|
res = "#{t.to_s.capitalize}[#{dep}]"
|
|
317
319
|
if r = relationship_refs(res, type, visited)
|
|
318
320
|
results << res
|
|
@@ -35,6 +35,8 @@ module RSpec::Puppet
|
|
|
35
35
|
case @expected_return
|
|
36
36
|
when Regexp
|
|
37
37
|
return !!(@actual_return =~ @expected_return)
|
|
38
|
+
when RSpec::Mocks::ArgumentMatchers::KindOf, RSpec::Matchers::AliasedMatcher
|
|
39
|
+
return @expected_return === @actual_return
|
|
38
40
|
else
|
|
39
41
|
return @actual_return == @expected_return
|
|
40
42
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-puppet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Sharpe
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2022-07-21 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|