public
Description: rails plugin that allows has_many :through to go through other has_many :throughs
Homepage:
Clone URL: git://github.com/ianwhite/nested_has_many_through.git
100644 27 lines (23 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 'nested_has_many_through', :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'
  
  # target rails versions
  ['2-3-stable', '2-2-stable', '2-1-stable'].each do |rails|
    target rails, :branch => "origin/#{rails}" do
      prepare do
        plugin 'rspec'
        plugin 'rspec-rails' do
          `script/generate rspec -f`
        end
        plugin 'nested_has_many_through', :clone => true
      end
 
      run do
        cd "vendor/plugins/nested_has_many_through" do
          sh "rake spec:rcov:verify"
        end
      end
    end
  end
end