shadow_puppet 0.5.2 → 0.6.0.pre

Sign up to get free protection for your applications and to get access to all the features.
data/Appraisals ADDED
@@ -0,0 +1,21 @@
1
+ # 2.1 lacks deep_merge, so no more love
2
+ #appraise "2.1" do
3
+ # gem "activesupport", "~> 2.1.0"
4
+ #end
5
+
6
+ appraise "2.2" do
7
+ gem "activesupport", "~> 2.2.0"
8
+ end
9
+
10
+
11
+ appraise "2.3" do
12
+ gem "activesupport", "~> 2.3.0"
13
+ end
14
+
15
+ appraise "3.0" do
16
+ gem "activesupport", "~> 3.0.0"
17
+ end
18
+
19
+ appraise "3.1" do
20
+ gem "activesupport", "~> 3.1.0"
21
+ end
data/Gemfile CHANGED
@@ -3,13 +3,16 @@ source :rubygems
3
3
  gem 'puppet', '2.7.3'
4
4
  gem 'highline', '>= 1.5.0'
5
5
  gem 'builder', '>= 2.1.2'
6
- gem 'activesupport', '>= 2.0.0'
6
+ gem 'activesupport', '>= 2.2.0'
7
7
  gem 'i18n', '>= 0.5.0'
8
8
 
9
9
  group :development do
10
+ gem "rake"
11
+ gem "appraisal", :git => 'git://github.com/technicalpickles/appraisal.git'
10
12
  gem "rspec", "~> 2.6.0"
11
13
  gem "rspec-core", "~> 2.6.0"
12
14
  gem "jeweler", "~> 1.6.2"
15
+ gem "rdoc"
13
16
  gem 'ruby-debug', :platforms => :ruby_18
14
17
  gem 'ruby-debug19', :platforms => :ruby_19
15
18
  end
data/Gemfile.lock CHANGED
@@ -1,14 +1,23 @@
1
+ GIT
2
+ remote: git://github.com/technicalpickles/appraisal.git
3
+ revision: a755e5a086fa545f13c7465009e3fb8d4b4ff571
4
+ specs:
5
+ appraisal (0.3.8)
6
+ bundler
7
+ rake
8
+
1
9
  GEM
2
10
  remote: http://rubygems.org/
3
11
  specs:
4
- activesupport (3.0.10)
12
+ activesupport (3.1.1)
13
+ multi_json (~> 1.0)
5
14
  archive-tar-minitar (0.5.2)
6
- builder (2.1.2)
15
+ builder (3.0.0)
7
16
  columnize (0.3.4)
8
17
  diff-lcs (1.1.3)
9
- facter (1.6.0)
18
+ facter (1.6.1)
10
19
  git (1.2.5)
11
- highline (1.5.2)
20
+ highline (1.6.2)
12
21
  i18n (0.6.0)
13
22
  jeweler (1.6.4)
14
23
  bundler (~> 1.0)
@@ -18,10 +27,12 @@ GEM
18
27
  rbx-require-relative (> 0.0.4)
19
28
  linecache19 (0.5.12)
20
29
  ruby_core_source (>= 0.1.4)
30
+ multi_json (1.0.3)
21
31
  puppet (2.7.3)
22
32
  facter (>= 1.5.1)
23
33
  rake (0.9.2)
24
34
  rbx-require-relative (0.0.5)
35
+ rdoc (3.9.4)
25
36
  rspec (2.6.0)
26
37
  rspec-core (~> 2.6.0)
27
38
  rspec-expectations (~> 2.6.0)
@@ -50,12 +61,15 @@ PLATFORMS
50
61
  ruby
51
62
 
52
63
  DEPENDENCIES
53
- activesupport (>= 2.0.0)
64
+ activesupport (>= 2.2.0)
65
+ appraisal!
54
66
  builder (>= 2.1.2)
55
67
  highline (>= 1.5.0)
56
68
  i18n (>= 0.5.0)
57
69
  jeweler (~> 1.6.2)
58
70
  puppet (= 2.7.3)
71
+ rake
72
+ rdoc
59
73
  rspec (~> 2.6.0)
60
74
  rspec-core (~> 2.6.0)
61
75
  ruby-debug
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
- require 'rake'
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ Bundler.setup(:default, :development)
4
+ require 'appraisal'
2
5
 
3
6
  require 'jeweler'
4
7
  Jeweler::Tasks.new do |gem|
@@ -10,7 +13,7 @@ Jeweler::Tasks.new do |gem|
10
13
  gem.rubyforge_project = "moonshine"
11
14
  gem.authors = ["Jesse Newland", "Josh Nichols", "Eric Lindvall", "Lee Jones", "Will Farrington", "dreamcat4", "Patrick Schless", "Ches Martin", "Rob Lingle", "Scott Fleckenstein"]
12
15
 
13
- gem.version = "0.5.2"
16
+ gem.version = "0.6.0.pre"
14
17
 
15
18
  gem.rdoc_options << '--inline-source' << '--webcvs=http://github.com/railsmachine/shadow_puppet/tree/master/'
16
19
 
@@ -19,12 +22,7 @@ end
19
22
  Jeweler::GemcutterTasks.new
20
23
 
21
24
 
22
- begin
23
- require 'rubygems'
24
- require 'hanna/rdoctask'
25
- rescue LoadError
26
- require 'rake/rdoctask'
27
- end
25
+ require 'rdoc/task'
28
26
  Rake::RDocTask.new(:rdoc) do |rdoc|
29
27
  rdoc.rdoc_files.include('lib/shadow_puppet/*.rb')
30
28
  rdoc.rdoc_files.include('bin/shadow_puppet')
data/lib/shadow_puppet.rb CHANGED
@@ -1,7 +1,36 @@
1
+ require 'shadow_puppet/core_ext'
2
+
3
+ # Silence puppet's dependencies warnings like:
4
+ # racc/parser.rb:27: warning: already initialized constant Racc_Runtime_Version
5
+ # racc/parser.rb:28: warning: already initialized constant Racc_Runtime_Revision
6
+ # racc/parser.rb:30: warning: already initialized constant Racc_Runtime_Core_Version_R
7
+ # racc/parser.rb:31: warning: already initialized constant Racc_Runtime_Core_Revision_R
8
+ # racc/parser.rb:35: warning: already initialized constant Racc_Runtime_Core_Revision_C
9
+ # racc/parser.rb:39: warning: already initialized constant Racc_Main_Parsing_Routine
10
+ # racc/parser.rb:40: warning: already initialized constant Racc_YY_Parse_Method
11
+ # racc/parser.rb:41: warning: already initialized constant Racc_Runtime_Core_Version
12
+ # racc/parser.rb:42: warning: already initialized constant Racc_Runtime_Core_Revision
13
+ # racc/parser.rb:43: warning: already initialized constant Racc_Runtime_Type
14
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:102: warning: class variable access from toplevel
15
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:107: warning: class variable access from toplevel
16
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:107: warning: class variable access from toplevel
17
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:108: warning: class variable access from toplevel
18
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:108: warning: class variable access from toplevel
19
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:109: warning: class variable access from toplevel
20
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:109: warning: class variable access from toplevel
21
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/type/tidy.rb:149: warning: class variable access from toplevel
22
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/provider/service/freebsd.rb:8: warning: class variable access from toplevel
23
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/provider/service/freebsd.rb:9: warning: class variable access from toplevel
24
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/provider/service/freebsd.rb:10: warning: class variable access from toplevel
25
+ # /usr/lib/ruby/gems/1.9.1/gems/puppet-2.7.3/lib/puppet/provider/service/bsd.rb:11: warning: class variable access from toplevel
26
+ # NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
27
+ # Gem.source_index called from /srv/app/current/vendor/plugins/moonshine/lib/moonshine/manifest/rails/rails.rb:223.
28
+ # NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.
29
+ # Gem::SourceIndex#search called from /srv/app/current/vendor/plugins/moonshine/lib/moonshine/manifest/rails/rails.rb:223
30
+ $VERBOSE = nil # comment this out to debug
1
31
  require 'puppet'
2
32
  require 'erb'
3
33
 
4
- require 'shadow_puppet/core_ext'
5
34
  require 'shadow_puppet/manifest'
6
35
 
7
36
  class ShadowPuppet::Manifest::Setup < ShadowPuppet::Manifest
@@ -1,34 +1,13 @@
1
+ require 'active_support'
1
2
  require 'active_support/version'
2
- require 'active_support/core_ext/class/attribute_accessors'
3
- require 'active_support/core_ext/array'
4
- require 'active_support/core_ext/hash/deep_merge'
5
- require 'active_support/core_ext/hash/indifferent_access'
6
- require 'active_support/inflector'
7
- require 'active_support/core_ext/class/inheritable_attributes'
8
3
 
9
- # zomg epic hax
10
- if ActiveSupport::VERSION::MAJOR < 3
11
- if ActiveSupport::VERSION::TINY > 5
12
- # hack around absurd number of deprecation warnings from puppet
13
- # using `metaclass`
14
- require 'active_support/core_ext/kernel/reporting'
15
- require 'active_support/core_ext/module/attribute_accessors'
16
- require 'active_support/deprecation'
17
- ActiveSupport::Deprecation.silenced = true
18
- end
19
- require 'active_support/core_ext/string/inflections'
20
- unless String.included_modules.include?(ActiveSupport::CoreExtensions::String::Inflections)
21
- String.send :include, ActiveSupport::CoreExtensions::String::Inflections
22
- end
23
- require 'active_support/core_ext/duplicable'
24
- class Hash #:nodoc:
25
- include ActiveSupport::CoreExtensions::Hash::DeepMerge
26
- include ActiveSupport::CoreExtensions::Hash::IndifferentAccess
27
- end
28
- else
29
- require 'active_support/core_ext/object/duplicable'
4
+ # ActiveSupport 3 doesn't automatically load core_ext anymore
5
+ if ActiveSupport::VERSION::MAJOR == 3
6
+ require 'active_support/core_ext'
30
7
  end
31
8
 
9
+ ActiveSupport::Deprecation.silenced = true
10
+
32
11
  class Hash #:nodoc:
33
12
  def deep_symbolize_keys
34
13
  self.inject({}) { |result, (key, value)|
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{shadow_puppet}
8
- s.version = "0.5.2"
8
+ s.version = "0.6.0.pre"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jesse Newland", "Josh Nichols", "Eric Lindvall", "Lee Jones", "Will Farrington", "dreamcat4", "Patrick Schless", "Ches Martin", "Rob Lingle", "Scott Fleckenstein"]
12
- s.date = %q{2011-09-20}
12
+ s.date = %q{2011-10-09}
13
13
  s.default_executable = %q{shadow_puppet}
14
14
  s.description = %q{A Ruby Puppet DSL}
15
15
  s.email = %q{will@railsmachine.com}
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.files = [
22
22
  ".gitmodules",
23
23
  ".rspec",
24
+ "Appraisals",
24
25
  "Gemfile",
25
26
  "Gemfile.lock",
26
27
  "LICENSE",
@@ -34,6 +35,7 @@ Gem::Specification.new do |s|
34
35
  "lib/shadow_puppet/test.rb",
35
36
  "shadow_puppet.gemspec",
36
37
  "spec/cli_spec.rb",
38
+ "spec/core_ext_spec.rb",
37
39
  "spec/fixtures/cli_spec_manifest.rb",
38
40
  "spec/fixtures/manifests.rb",
39
41
  "spec/manifest_spec.rb",
@@ -55,22 +57,28 @@ Gem::Specification.new do |s|
55
57
  s.add_runtime_dependency(%q<puppet>, ["= 2.7.3"])
56
58
  s.add_runtime_dependency(%q<highline>, [">= 1.5.0"])
57
59
  s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
58
- s.add_runtime_dependency(%q<activesupport>, [">= 2.0.0"])
60
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.2.0"])
59
61
  s.add_runtime_dependency(%q<i18n>, [">= 0.5.0"])
62
+ s.add_development_dependency(%q<rake>, [">= 0"])
63
+ s.add_development_dependency(%q<appraisal>, [">= 0"])
60
64
  s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
61
65
  s.add_development_dependency(%q<rspec-core>, ["~> 2.6.0"])
62
66
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
67
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
63
68
  s.add_development_dependency(%q<ruby-debug>, [">= 0"])
64
69
  s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
65
70
  else
66
71
  s.add_dependency(%q<puppet>, ["= 2.7.3"])
67
72
  s.add_dependency(%q<highline>, [">= 1.5.0"])
68
73
  s.add_dependency(%q<builder>, [">= 2.1.2"])
69
- s.add_dependency(%q<activesupport>, [">= 2.0.0"])
74
+ s.add_dependency(%q<activesupport>, [">= 2.2.0"])
70
75
  s.add_dependency(%q<i18n>, [">= 0.5.0"])
76
+ s.add_dependency(%q<rake>, [">= 0"])
77
+ s.add_dependency(%q<appraisal>, [">= 0"])
71
78
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
72
79
  s.add_dependency(%q<rspec-core>, ["~> 2.6.0"])
73
80
  s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
81
+ s.add_dependency(%q<rdoc>, [">= 0"])
74
82
  s.add_dependency(%q<ruby-debug>, [">= 0"])
75
83
  s.add_dependency(%q<ruby-debug19>, [">= 0"])
76
84
  end
@@ -78,11 +86,14 @@ Gem::Specification.new do |s|
78
86
  s.add_dependency(%q<puppet>, ["= 2.7.3"])
79
87
  s.add_dependency(%q<highline>, [">= 1.5.0"])
80
88
  s.add_dependency(%q<builder>, [">= 2.1.2"])
81
- s.add_dependency(%q<activesupport>, [">= 2.0.0"])
89
+ s.add_dependency(%q<activesupport>, [">= 2.2.0"])
82
90
  s.add_dependency(%q<i18n>, [">= 0.5.0"])
91
+ s.add_dependency(%q<rake>, [">= 0"])
92
+ s.add_dependency(%q<appraisal>, [">= 0"])
83
93
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
84
94
  s.add_dependency(%q<rspec-core>, ["~> 2.6.0"])
85
95
  s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
96
+ s.add_dependency(%q<rdoc>, [">= 0"])
86
97
  s.add_dependency(%q<ruby-debug>, [">= 0"])
87
98
  s.add_dependency(%q<ruby-debug19>, [">= 0"])
88
99
  end
@@ -0,0 +1,19 @@
1
+ describe Object do
2
+ subject { Object.new }
3
+
4
+ it { should respond_to(:present?) }
5
+ it { should respond_to(:with_options) }
6
+ end
7
+
8
+ describe String do
9
+ subject { "rake db:migrate spec" }
10
+
11
+ it { should respond_to(:present?) }
12
+ end
13
+
14
+ describe Hash do
15
+ subject { {:foo => :bar} }
16
+ it { should respond_to(:reverse_merge) }
17
+ it { should respond_to(:deep_merge) }
18
+ it { should respond_to(:with_indifferent_access) }
19
+ end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shadow_puppet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease:
4
+ hash: 961916020
5
+ prerelease: 6
6
6
  segments:
7
7
  - 0
8
- - 5
9
- - 2
10
- version: 0.5.2
8
+ - 6
9
+ - 0
10
+ - pre
11
+ version: 0.6.0.pre
11
12
  platform: ruby
12
13
  authors:
13
14
  - Jesse Newland
@@ -24,7 +25,7 @@ autorequire:
24
25
  bindir: bin
25
26
  cert_chain: []
26
27
 
27
- date: 2011-09-20 00:00:00 -04:00
28
+ date: 2011-10-09 00:00:00 -04:00
28
29
  default_executable: shadow_puppet
29
30
  dependencies:
30
31
  - !ruby/object:Gem::Dependency
@@ -83,12 +84,12 @@ dependencies:
83
84
  requirements:
84
85
  - - ">="
85
86
  - !ruby/object:Gem::Version
86
- hash: 15
87
+ hash: 7
87
88
  segments:
88
89
  - 2
90
+ - 2
89
91
  - 0
90
- - 0
91
- version: 2.0.0
92
+ version: 2.2.0
92
93
  prerelease: false
93
94
  requirement: *id004
94
95
  - !ruby/object:Gem::Dependency
@@ -109,8 +110,36 @@ dependencies:
109
110
  requirement: *id005
110
111
  - !ruby/object:Gem::Dependency
111
112
  type: :development
112
- name: rspec
113
+ name: rake
113
114
  version_requirements: &id006 !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ prerelease: false
124
+ requirement: *id006
125
+ - !ruby/object:Gem::Dependency
126
+ type: :development
127
+ name: appraisal
128
+ version_requirements: &id007 !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ hash: 3
134
+ segments:
135
+ - 0
136
+ version: "0"
137
+ prerelease: false
138
+ requirement: *id007
139
+ - !ruby/object:Gem::Dependency
140
+ type: :development
141
+ name: rspec
142
+ version_requirements: &id008 !ruby/object:Gem::Requirement
114
143
  none: false
115
144
  requirements:
116
145
  - - ~>
@@ -122,11 +151,11 @@ dependencies:
122
151
  - 0
123
152
  version: 2.6.0
124
153
  prerelease: false
125
- requirement: *id006
154
+ requirement: *id008
126
155
  - !ruby/object:Gem::Dependency
127
156
  type: :development
128
157
  name: rspec-core
129
- version_requirements: &id007 !ruby/object:Gem::Requirement
158
+ version_requirements: &id009 !ruby/object:Gem::Requirement
130
159
  none: false
131
160
  requirements:
132
161
  - - ~>
@@ -138,11 +167,11 @@ dependencies:
138
167
  - 0
139
168
  version: 2.6.0
140
169
  prerelease: false
141
- requirement: *id007
170
+ requirement: *id009
142
171
  - !ruby/object:Gem::Dependency
143
172
  type: :development
144
173
  name: jeweler
145
- version_requirements: &id008 !ruby/object:Gem::Requirement
174
+ version_requirements: &id010 !ruby/object:Gem::Requirement
146
175
  none: false
147
176
  requirements:
148
177
  - - ~>
@@ -154,11 +183,25 @@ dependencies:
154
183
  - 2
155
184
  version: 1.6.2
156
185
  prerelease: false
157
- requirement: *id008
186
+ requirement: *id010
187
+ - !ruby/object:Gem::Dependency
188
+ type: :development
189
+ name: rdoc
190
+ version_requirements: &id011 !ruby/object:Gem::Requirement
191
+ none: false
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ hash: 3
196
+ segments:
197
+ - 0
198
+ version: "0"
199
+ prerelease: false
200
+ requirement: *id011
158
201
  - !ruby/object:Gem::Dependency
159
202
  type: :development
160
203
  name: ruby-debug
161
- version_requirements: &id009 !ruby/object:Gem::Requirement
204
+ version_requirements: &id012 !ruby/object:Gem::Requirement
162
205
  none: false
163
206
  requirements:
164
207
  - - ">="
@@ -168,11 +211,11 @@ dependencies:
168
211
  - 0
169
212
  version: "0"
170
213
  prerelease: false
171
- requirement: *id009
214
+ requirement: *id012
172
215
  - !ruby/object:Gem::Dependency
173
216
  type: :development
174
217
  name: ruby-debug19
175
- version_requirements: &id010 !ruby/object:Gem::Requirement
218
+ version_requirements: &id013 !ruby/object:Gem::Requirement
176
219
  none: false
177
220
  requirements:
178
221
  - - ">="
@@ -182,7 +225,7 @@ dependencies:
182
225
  - 0
183
226
  version: "0"
184
227
  prerelease: false
185
- requirement: *id010
228
+ requirement: *id013
186
229
  description: A Ruby Puppet DSL
187
230
  email: will@railsmachine.com
188
231
  executables:
@@ -195,6 +238,7 @@ extra_rdoc_files:
195
238
  files:
196
239
  - .gitmodules
197
240
  - .rspec
241
+ - Appraisals
198
242
  - Gemfile
199
243
  - Gemfile.lock
200
244
  - LICENSE
@@ -208,6 +252,7 @@ files:
208
252
  - lib/shadow_puppet/test.rb
209
253
  - shadow_puppet.gemspec
210
254
  - spec/cli_spec.rb
255
+ - spec/core_ext_spec.rb
211
256
  - spec/fixtures/cli_spec_manifest.rb
212
257
  - spec/fixtures/manifests.rb
213
258
  - spec/manifest_spec.rb
@@ -236,12 +281,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
281
  required_rubygems_version: !ruby/object:Gem::Requirement
237
282
  none: false
238
283
  requirements:
239
- - - ">="
284
+ - - ">"
240
285
  - !ruby/object:Gem::Version
241
- hash: 3
286
+ hash: 25
242
287
  segments:
243
- - 0
244
- version: "0"
288
+ - 1
289
+ - 3
290
+ - 1
291
+ version: 1.3.1
245
292
  requirements: []
246
293
 
247
294
  rubyforge_project: moonshine