puppet 3.0.2.rc2 → 3.0.2.rc3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

@@ -33,7 +33,7 @@
33
33
  #
34
34
  # === Copyright
35
35
  #
36
- # Copyright <%= Time.now.year -%> Your name here, unless otherwise noted.
36
+ # Copyright <%= Time.now.year %> Your name here, unless otherwise noted.
37
37
  #
38
38
  class <%= metadata.name %> {
39
39
 
@@ -32,7 +32,7 @@ class Puppet::Parser::Collector
32
32
  # we have an override for the collected resources
33
33
  if @overrides and !objects.empty?
34
34
  # force the resource to be always child of any other resource
35
- overrides[:source].meta_def(:child_of?) do
35
+ overrides[:source].meta_def(:child_of?) do |klass|
36
36
  true
37
37
  end
38
38
 
@@ -6,7 +6,7 @@
6
6
  # Raketasks and such to set the version based on the output of `git describe`
7
7
  #
8
8
  module Puppet
9
- PUPPETVERSION = '3.0.2-rc2'
9
+ PUPPETVERSION = '3.0.2-rc3'
10
10
 
11
11
  def self.version
12
12
  @puppet_version || PUPPETVERSION
data/spec/spec_helper.rb CHANGED
@@ -24,6 +24,7 @@ end
24
24
 
25
25
  require 'pathname'
26
26
  require 'tmpdir'
27
+ require 'fileutils'
27
28
 
28
29
  require 'puppet_spec/verbose'
29
30
  require 'puppet_spec/files'
@@ -48,6 +49,10 @@ RSpec.configure do |config|
48
49
 
49
50
  config.mock_with :mocha
50
51
 
52
+ tmpdir = Dir.mktmpdir("rspecrun")
53
+ oldtmpdir = Dir.tmpdir()
54
+ ENV['TMPDIR'] = tmpdir
55
+
51
56
  if Puppet::Util::Platform.windows?
52
57
  config.output_stream = $stdout
53
58
  config.error_stream = $stderr
@@ -121,5 +126,9 @@ RSpec.configure do |config|
121
126
  config.instance_variable_get(:@files_to_run).each { |f| logfile.puts f }
122
127
  end
123
128
  end
129
+ # Clean up switch of TMPDIR, don't know if needed after this, so needs to reset it
130
+ # to old before removing it
131
+ ENV['TMPDIR'] = oldtmpdir
132
+ FileUtils.rm_rf(tmpdir) if File.exists?(tmpdir) && tmpdir.to_s.start_with?(oldtmpdir)
124
133
  end
125
134
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3193552049
4
+ hash: 3784944317
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 2
10
10
  - rc
11
- - 2
12
- version: 3.0.2.rc2
11
+ - 3
12
+ version: 3.0.2.rc3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Puppet Labs
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-12-11 00:00:00 Z
20
+ date: 2012-12-14 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: hiera