rspec-puppet 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +9 -0
- data/lib/rspec-puppet/support.rb +7 -2
- metadata +30 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a0e8acfd6bedb13be688133733c083494c88e9a7
|
4
|
+
data.tar.gz: eea4578b689eb7cf0907e0018201ffd41dcd764c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f4907f8744a4a6d789d7516cea4dfe0efb916385850628a2e21a3b1bb8bf5c297ed710793640fd40ba1803663e183dcb40205fdd5ac0d8fcb1ef937a42d3487b
|
7
|
+
data.tar.gz: c32d0f3ce0bd57ae412a192135c93a7806dd4bdf40ab0cd1d05941463784e0a7ea33f1d6247dbe1bf1cfcb9eff294a06dd443c0f304d7c72ab1e95ac47cbc29e
|
data/CHANGELOG.md
CHANGED
@@ -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.1]
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
* 2.6.0 introduced a change to how resource titles are rendered in the test
|
10
|
+
manifest which caused them to get rendered as double quoted strings. This
|
11
|
+
caused a failure for tests of defined types that contained `$` characters
|
12
|
+
as Puppet would try and interpolate the values in the title as variable(s).
|
13
|
+
|
5
14
|
## [2.6.0]
|
6
15
|
|
7
16
|
The Windows parity release. rspec-puppet now officially supports Windows. A lot
|
data/lib/rspec-puppet/support.rb
CHANGED
@@ -149,10 +149,15 @@ module RSpec::Puppet
|
|
149
149
|
raise ArgumentError, "You need to provide params for an application"
|
150
150
|
end
|
151
151
|
elsif type == :define
|
152
|
+
title_str = if title.is_a?(Array)
|
153
|
+
'[' + title.map { |r| "'#{r}'" }.join(', ') + ']'
|
154
|
+
else
|
155
|
+
"'#{title}'"
|
156
|
+
end
|
152
157
|
if opts.has_key?(:params)
|
153
|
-
"#{class_name} { #{
|
158
|
+
"#{class_name} { #{title_str}: #{param_str(opts[:params])} }"
|
154
159
|
else
|
155
|
-
"#{class_name} { #{
|
160
|
+
"#{class_name} { #{title_str}: }"
|
156
161
|
end
|
157
162
|
elsif type == :host
|
158
163
|
nil
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
5
|
-
prerelease:
|
4
|
+
version: 2.6.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tim Sharpe
|
@@ -14,17 +13,15 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
description: RSpec tests for your Puppet manifests
|
@@ -36,60 +33,59 @@ extra_rdoc_files: []
|
|
36
33
|
files:
|
37
34
|
- CHANGELOG.md
|
38
35
|
- README.md
|
36
|
+
- bin/rspec-puppet-init
|
39
37
|
- lib/rspec-puppet.rb
|
40
|
-
- lib/rspec-puppet/raw_string.rb
|
41
|
-
- lib/rspec-puppet/monkey_patches.rb
|
42
|
-
- lib/rspec-puppet/support.rb
|
43
|
-
- lib/rspec-puppet/matchers/run.rb
|
44
|
-
- lib/rspec-puppet/matchers/allow_value.rb
|
45
|
-
- lib/rspec-puppet/matchers/parameter_matcher.rb
|
46
|
-
- lib/rspec-puppet/matchers/count_generic.rb
|
47
|
-
- lib/rspec-puppet/matchers/create_generic.rb
|
48
|
-
- lib/rspec-puppet/matchers/dynamic_matchers.rb
|
49
|
-
- lib/rspec-puppet/matchers/include_class.rb
|
50
|
-
- lib/rspec-puppet/matchers/compile.rb
|
51
|
-
- lib/rspec-puppet/matchers/type_matchers.rb
|
52
|
-
- lib/rspec-puppet/spec_helper.rb
|
53
38
|
- lib/rspec-puppet/adapters.rb
|
54
39
|
- lib/rspec-puppet/cache.rb
|
55
|
-
- lib/rspec-puppet/setup.rb
|
56
40
|
- lib/rspec-puppet/coverage.rb
|
41
|
+
- lib/rspec-puppet/errors.rb
|
42
|
+
- lib/rspec-puppet/example.rb
|
43
|
+
- lib/rspec-puppet/example/application_example_group.rb
|
44
|
+
- lib/rspec-puppet/example/class_example_group.rb
|
45
|
+
- lib/rspec-puppet/example/define_example_group.rb
|
57
46
|
- lib/rspec-puppet/example/function_example_group.rb
|
58
|
-
- lib/rspec-puppet/example/type_alias_example_group.rb
|
59
|
-
- lib/rspec-puppet/example/type_example_group.rb
|
60
47
|
- lib/rspec-puppet/example/host_example_group.rb
|
61
48
|
- lib/rspec-puppet/example/provider_example_group.rb
|
62
|
-
- lib/rspec-puppet/example/
|
63
|
-
- lib/rspec-puppet/example/
|
64
|
-
- lib/rspec-puppet/example/class_example_group.rb
|
65
|
-
- lib/rspec-puppet/example.rb
|
49
|
+
- lib/rspec-puppet/example/type_alias_example_group.rb
|
50
|
+
- lib/rspec-puppet/example/type_example_group.rb
|
66
51
|
- lib/rspec-puppet/matchers.rb
|
52
|
+
- lib/rspec-puppet/matchers/allow_value.rb
|
53
|
+
- lib/rspec-puppet/matchers/compile.rb
|
54
|
+
- lib/rspec-puppet/matchers/count_generic.rb
|
55
|
+
- lib/rspec-puppet/matchers/create_generic.rb
|
56
|
+
- lib/rspec-puppet/matchers/dynamic_matchers.rb
|
57
|
+
- lib/rspec-puppet/matchers/include_class.rb
|
58
|
+
- lib/rspec-puppet/matchers/parameter_matcher.rb
|
59
|
+
- lib/rspec-puppet/matchers/run.rb
|
60
|
+
- lib/rspec-puppet/matchers/type_matchers.rb
|
61
|
+
- lib/rspec-puppet/monkey_patches.rb
|
67
62
|
- lib/rspec-puppet/rake_task.rb
|
68
|
-
- lib/rspec-puppet/
|
69
|
-
-
|
63
|
+
- lib/rspec-puppet/raw_string.rb
|
64
|
+
- lib/rspec-puppet/setup.rb
|
65
|
+
- lib/rspec-puppet/spec_helper.rb
|
66
|
+
- lib/rspec-puppet/support.rb
|
70
67
|
homepage: https://github.com/rodjek/rspec-puppet/
|
71
68
|
licenses:
|
72
69
|
- MIT
|
70
|
+
metadata: {}
|
73
71
|
post_install_message:
|
74
72
|
rdoc_options: []
|
75
73
|
require_paths:
|
76
74
|
- lib
|
77
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
76
|
requirements:
|
80
|
-
- -
|
77
|
+
- - ">="
|
81
78
|
- !ruby/object:Gem::Version
|
82
79
|
version: '0'
|
83
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
81
|
requirements:
|
86
|
-
- -
|
82
|
+
- - ">="
|
87
83
|
- !ruby/object:Gem::Version
|
88
84
|
version: '0'
|
89
85
|
requirements: []
|
90
86
|
rubyforge_project:
|
91
|
-
rubygems_version:
|
87
|
+
rubygems_version: 2.6.11
|
92
88
|
signing_key:
|
93
|
-
specification_version:
|
89
|
+
specification_version: 4
|
94
90
|
summary: RSpec tests for your Puppet manifests
|
95
91
|
test_files: []
|