public
Description: resources_controller rails plugin: rc makes RESTful controllers fun
Homepage: http://plugins.ardes.com/doc/resources_controller
Clone URL: git://github.com/ianwhite/resources_controller.git
Click here to lend your support to: resources_controller and make a donation at www.pledgie.com !
resources_controller / garlic.rb
100644 27 lines (22 sloc) 0.721 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
garlic do
  repo 'resources_controller', :path => '.'
  repo 'rails', :url => 'git://github.com/rails/rails'
  repo 'rspec', :url => 'git://github.com/dchelimsky/rspec'
  repo 'rspec-rails', :url => 'git://github.com/dchelimsky/rspec-rails'
 
  ['2-3-stable', '2-2-stable', '2-1-stable', '2-0-stable'].each do |rails|
 
    target rails, :tree_ish => "origin/#{rails}" do
      prepare do
        plugin 'resources_controller', :clone => true
        plugin 'rspec'
        plugin 'rspec-rails' do
          sh "script/generate rspec -f"
        end
      end
  
      run do
        cd "vendor/plugins/resources_controller" do
          sh "rake rcov:verify && rake spec:generate"
        end
      end
    end
 
  end
end