ianwhite / response_for

response for lets you decorate your actions respond_to blocks

This URL has Read+Write access

response_for / garlic.rb
100644 34 lines (30 sloc) 0.874 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
28
29
30
31
32
33
34
# to avail youself of garlic:
# sudo gem install ianwhite-garlic --source http://gems.github.com
# rake garlic:all
 
garlic do
  # requried repositories
  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'
  repo 'response_for', :path => '.'
 
  # our targets
  target 'edge'
  target '2.1-stable', :branch => 'origin/2-1-stable'
  target '2.1.1', :tag => 'v2.1.2'
  target '2.2.0', :tag => 'v2.2.0'
  
  # all targets do the same thing
  all_targets do
    prepare do
      plugin 'response_for', :clone => true
      plugin 'rspec'
      plugin 'rspec-rails' do
        sh "script/generate rspec -f"
      end
    end
  
    run do
      cd "vendor/plugins/response_for" do
        sh "rake spec:rcov:verify"
      end
    end
  end
end