ianwhite / resources_controller

resources_controller rails plugin: rc makes RESTful controllers fun

This URL has Read+Write access

resources_controller / garlic_example.rb
100644 38 lines (33 sloc) 1.292 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
35
36
37
38
# This is for running specs against target versions of rails
#
# To use do
# - cp garlic_example.rb garlic.rb
# - rake get_garlic
# - [optional] edit this file to point the repos at your local clones of
# rails, rspec, and rspec-rails
# - rake garlic:all
#
# All of the work and dependencies will be created in the galric dir, and the
# garlic dir can safely be deleted at any point
 
garlic do
  repo 'rails', :url => 'git://github.com/rails/rails'#, :local => "~/dev/vendor/rails"
  # targeting ianwhite/rspec as it has some outstanding patches applied
  repo 'rspec', :url => 'git://github.com/ianwhite/rspec'#, :local => "~/dev/vendor/rspec"
  repo 'rspec-rails', :url => 'git://github.com/ianhwite/rspec-rails'#, :local => "~/dev/vendor/rspec-rails"
  repo 'resources_controller', :path => '.'
 
  target 'edge'
  target '2.0-stable', :branch => 'origin/2-0-stable'
  target '2.1-stable', :branch => 'origin/2-1-stable'
  target '2.0.3', :tag => 'v2.0.3'
  target '2.1.0', :tag => 'v2.1.0'
 
  all_targets do
    prepare do
      plugin 'resources_controller', :clone => true
      plugin 'rspec'
      plugin('rspec-rails') { sh "script/generate rspec -f" }
    end
  
    run do
      cd("vendor/plugins/resources_controller") { sh "rake spec:rcov:verify" }
    end
  end
end