rspec-puppet 2.3.0 → 2.3.1

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: c9c6c2a6e166342f02c503667f8312efd1d411e5
4
- data.tar.gz: 407d9b0fc06f52c63428320819fd634eee4cf049
3
+ metadata.gz: 37a6de12d38ce6c99a1bd99a3292d3f5d34e2724
4
+ data.tar.gz: 929a90de8b45f893e3394c9cf668dfb832856b67
5
5
  SHA512:
6
- metadata.gz: e1c780ece606028d4a134797cec9740204529a597b2b4a14400dd4dbf623c8b689ba067726d4ebcac7f09ce792c7867ab47860b8d5fbd82304e1204be46c5b74
7
- data.tar.gz: c5b11365c94d792e111b804c87a225583461f68570b5e29be03bb1e87a621cef66b08283c04e5bf42eb120c50afaae57375a8483a0be33f1ea569eaf2fa71617
6
+ metadata.gz: a080e6059982a35b4387b2be636486352091638def20248111e2fe08c606feed03a751156aa19cfd4af31054dde72f9f4d2233eab4bd03e146a3bc2cf7bd706a
7
+ data.tar.gz: 21f51c2cfc8f04adc464d53660860dcb8eab1beb4d9ec250a16a0e3d7df1269f52f4dc06b39d2e7ed9c631453842307e5d7b06c9645416ba190f4ec42aa47ff7
@@ -2,6 +2,10 @@
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.3.1]
6
+
7
+ A quick workaround to re-enable testing with the recently released puppet 3.8.5 and the soon to be released puppet 4.3.2. See PUP-5743 for the gritty details. Upgrade to this version if you hit the "undefined method \`resource' for nil:NilClass" error.
8
+
5
9
  ## [2.3.0]
6
10
 
7
11
  Rspec-puppet now supports testing custom types, `:undef` values in params, structured facts, and checks resource dependencies recursively.
@@ -9,7 +9,18 @@ module RSpec::Puppet
9
9
  end
10
10
 
11
11
  def environment
12
- 'rp_env'
12
+ # unfreeze PUPPETVERSION because of https://github.com/bundler/bundler/issues/3187
13
+ ver = Gem::Version.new("#{Puppet::PUPPETVERSION}")
14
+ # Since applying a fix for PUP-5522 (puppet 3.8.5 and 4.3.2) puppet symbolizes environment names
15
+ # internally. The catalog cache needs to assume that the facts and other args do not change between
16
+ # runs, so we have to mirror this here. Puppet versions before the change require a string as environment
17
+ # name, or they fail with "Unsupported data type: 'Symbol' on node xyz"
18
+ # See https://github.com/rodjek/rspec-puppet/pull/354 and PUP-5743 for discussion of this
19
+ if (Gem::Version.new('3.8.5') <= ver && ver < Gem::Version.new('4.0.0')) || Gem::Version.new('4.3.2') <= ver
20
+ :rp_env
21
+ else
22
+ 'rp_env'
23
+ end
13
24
  end
14
25
 
15
26
  def load_catalogue(type)
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: RSpec tests for your Puppet manifests
@@ -33,16 +33,19 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - CHANGELOG.md
35
35
  - README.md
36
+ - bin/rspec-puppet-init
37
+ - lib/rspec-puppet.rb
36
38
  - lib/rspec-puppet/cache.rb
37
39
  - lib/rspec-puppet/coverage.rb
38
40
  - lib/rspec-puppet/errors.rb
41
+ - lib/rspec-puppet/example.rb
39
42
  - lib/rspec-puppet/example/class_example_group.rb
40
43
  - lib/rspec-puppet/example/define_example_group.rb
41
44
  - lib/rspec-puppet/example/function_example_group.rb
42
45
  - lib/rspec-puppet/example/host_example_group.rb
43
46
  - lib/rspec-puppet/example/provider_example_group.rb
44
47
  - lib/rspec-puppet/example/type_example_group.rb
45
- - lib/rspec-puppet/example.rb
48
+ - lib/rspec-puppet/matchers.rb
46
49
  - lib/rspec-puppet/matchers/compile.rb
47
50
  - lib/rspec-puppet/matchers/count_generic.rb
48
51
  - lib/rspec-puppet/matchers/create_generic.rb
@@ -51,13 +54,10 @@ files:
51
54
  - lib/rspec-puppet/matchers/parameter_matcher.rb
52
55
  - lib/rspec-puppet/matchers/run.rb
53
56
  - lib/rspec-puppet/matchers/type_matchers.rb
54
- - lib/rspec-puppet/matchers.rb
55
57
  - lib/rspec-puppet/rake_task.rb
56
58
  - lib/rspec-puppet/setup.rb
57
59
  - lib/rspec-puppet/spec_helper.rb
58
60
  - lib/rspec-puppet/support.rb
59
- - lib/rspec-puppet.rb
60
- - bin/rspec-puppet-init
61
61
  homepage: https://github.com/rodjek/rspec-puppet/
62
62
  licenses:
63
63
  - MIT
@@ -68,17 +68,17 @@ require_paths:
68
68
  - lib
69
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.0.14
81
+ rubygems_version: 2.4.5.1
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: RSpec tests for your Puppet manifests