ianwhite / inherit_views

rails plugin that enables inheritance of views along a controller class heirachy

This URL has Read+Write access

inherit_views / garlic_example.rb
d0c5bd32 » ianwhite 2008-04-26 Added get_garlic rake task,... 1 # This is for running specs against target versions of rails
ee52f895 » ianwhite 2008-04-26 Better garlic config 2 #
13d1690c » ianwhite 2008-04-28 garlic.rb now ignored, so l... 3 # To use do
4 # - cp garlic_example.rb garlic.rb
d0c5bd32 » ianwhite 2008-04-26 Added get_garlic rake task,... 5 # - rake get_garlic
6 # - [optional] edit this file to point the repos at your local clones of
7 # rails, rspec, and rspec-rails
8 # - rake garlic:all
ee52f895 » ianwhite 2008-04-26 Better garlic config 9 #
10 # All of the work and dependencies will be created in the galric dir, and the
11 # garlic dir can safely be deleted at any point
1e33142f » ianwhite 2008-04-25 Using new garlic 12
13 garlic do
14 # default paths are 'garlic/work', and 'garlic/repos'
ee52f895 » ianwhite 2008-04-26 Better garlic config 15 # work_path 'garlic/work'
16 # repo_path 'garlic/repos'
17
1e33142f » ianwhite 2008-04-25 Using new garlic 18 # repo, give a url, specify :local to use a local repo (faster
19 # and will still update from the origin url)
976cffb2 » ianwhite 2008-04-26 Fixed typo 20 repo 'rails', :url => 'git://github.com/rails/rails' #, :local => "~/dev/vendor/rails"
234333a9 » ianwhite 2008-05-21 Using ianwhite clone of rsp... 21 # using own clone of rspec, until aliased-render-partial gets fixed.
22 repo 'rspec', :url => 'git://github.com/ianwhite/rspec'
1e33142f » ianwhite 2008-04-25 Using new garlic 23 repo 'rspec-rails', :url => 'git://github.com/ianwhite/rspec-rails'
f3d25c5a » ian 2008-04-26 Using new options in garlic 24 repo 'inherit_views', :path => '.'
ee52f895 » ianwhite 2008-04-26 Better garlic config 25
1e33142f » ianwhite 2008-04-25 Using new garlic 26 # for target, default repo is 'rails', default branch is 'master'
27 target 'edge'
28 target '2.0-stable', :branch => 'origin/2-0-stable'
129264b8 » ianwhite 2008-05-22 Updated garlic targets, now... 29 target '2.0.3', :tag => 'v2.0.3'
30 target '2.1.0-RC1', :tag => 'v2.1.0_RC1'
ee52f895 » ianwhite 2008-04-26 Better garlic config 31
1e33142f » ianwhite 2008-04-25 Using new garlic 32 all_targets do
33 prepare do
234333a9 » ianwhite 2008-05-21 Using ianwhite clone of rsp... 34 plugin 'rspec', :branch => 'origin/aliased-render-partial'
1e33142f » ianwhite 2008-04-25 Using new garlic 35 plugin 'rspec-rails', :branch => 'origin/aliased-render-partial' do
36 sh "script/generate rspec -f"
37 end
f3d25c5a » ian 2008-04-26 Using new options in garlic 38 plugin 'inherit_views', :clone => true # so we can work on it and push fixes upstream
1e33142f » ianwhite 2008-04-25 Using new garlic 39 end
ee52f895 » ianwhite 2008-04-26 Better garlic config 40
1e33142f » ianwhite 2008-04-25 Using new garlic 41 run do
42 cd "vendor/plugins/inherit_views" do
43 sh "rake spec:rcov:verify"
44 end
45 end
46 end
ee52f895 » ianwhite 2008-04-26 Better garlic config 47 end