puppet 3.0.2.rc2 → 3.0.2.rc3
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.
|
@@ -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
|
|
data/lib/puppet/version.rb
CHANGED
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:
|
|
4
|
+
hash: 3784944317
|
|
5
5
|
prerelease: 6
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 0
|
|
9
9
|
- 2
|
|
10
10
|
- rc
|
|
11
|
-
-
|
|
12
|
-
version: 3.0.2.
|
|
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-
|
|
20
|
+
date: 2012-12-14 00:00:00 Z
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
23
23
|
name: hiera
|