public
Rubygem
Description: Apache Buildr
Homepage: http://incubator.apache.org/buildr
Clone URL: git://github.com/vic/buildr.git
Search Repo:
Added specification for accepting .yml in addition to .yaml for build, 
settings and profiles files.


git-svn-id: https://svn.apache.org/repos/asf/incubator/buildr/trunk@652718 
13f79535-47bb-0310-9956-ffa450edef68
Assaf (author)
Thu May 01 17:07:13 -0700 2008
commit  acdd2387c34e34d786672bfa6904d4f85f8dfb0d
tree    29689dbf8f6eb46157873387f3fd67c857362cb1
parent  42eba6d4c47f0e064fb42eb95522f0b02d77faa7
...
210
211
212
 
 
 
 
 
213
214
215
...
231
232
233
 
 
 
 
 
234
235
236
...
249
250
251
 
 
 
 
 
 
 
 
252
253
254
...
210
211
212
213
214
215
216
217
218
219
220
...
236
237
238
239
240
241
242
243
244
245
246
...
259
260
261
262
263
264
265
266
267
268
269
270
271
272
0
@@ -210,6 +210,11 @@
0
       Buildr.settings.user.should == { 'foo'=>'bar' }
0
     end
0
 
0
+ it 'should return loaded settings.yml file' do
0
+ write 'home/.buildr/settings.yml', 'foo: bar'
0
+ Buildr.settings.user.should == { 'foo'=>'bar' }
0
+ end
0
+
0
     it 'should fail if settings.yaml file is not a hash' do
0
       write 'home/.buildr/settings.yaml', 'foo bar'
0
       lambda { Buildr.settings.user }.should raise_error(RuntimeError, /expecting.*settings.yaml/i)
0
@@ -231,6 +236,11 @@
0
       Buildr.settings.build.should == { 'foo'=>'bar' }
0
     end
0
 
0
+ it 'should return loaded build.yml file' do
0
+ write 'build.yml', 'foo: bar'
0
+ Buildr.settings.build.should == { 'foo'=>'bar' }
0
+ end
0
+
0
     it 'should fail if build.yaml file is not a hash' do
0
       write 'build.yaml', 'foo bar'
0
       lambda { Buildr.settings.build }.should raise_error(RuntimeError, /expecting.*build.yaml/i)
0
@@ -249,6 +259,14 @@
0
 
0
     it 'should return loaded profiles.yaml file' do
0
       write 'profiles.yaml', <<-YAML
0
+ development:
0
+ foo: bar
0
+ YAML
0
+ Buildr.settings.profiles.should == { 'development'=> { 'foo'=>'bar' } }
0
+ end
0
+
0
+ it 'should return loaded profiles.yml file' do
0
+ write 'profiles.yml', <<-YAML
0
         development:
0
           foo: bar
0
       YAML

Comments

    No one has commented yet.