ianwhite / nested_has_many_through
- Source
- Commits
- Network (9)
- Issues (3)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
c7ba2df
nested_has_many_through / garlic_example.rb
| eabb09cf » | ianwhite | 2008-04-28 | 1 | # This is for running specs against target versions of rails | |
| 2 | # | ||||
| 1ec8b85f » | ianwhite | 2008-04-28 | 3 | # To use do | |
| 4 | # - cp garlic_example.rb garlic.rb | ||||
| eabb09cf » | ianwhite | 2008-04-28 | 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 | ||||
| 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 | ||||
| 12 | |||||
| 13 | garlic do | ||||
| 14 | # default paths are 'garlic/work', and 'garlic/repos' | ||||
| 15 | # work_path 'garlic/work' | ||||
| 16 | # repo_path 'garlic/repos' | ||||
| 17 | |||||
| 18 | # repo, give a url, specify :local to use a local repo (faster | ||||
| 19 | # and will still update from the origin url) | ||||
| 1ec8b85f » | ianwhite | 2008-04-28 | 20 | repo 'rails', :url => 'git://github.com/rails/rails'#, :local => "~/dev/vendor/rails" | |
| 21 | repo 'rspec', :url => 'git://github.com/dchelimsky/rspec'#, :local => "~/dev/vendor/rspec" | ||||
| 22 | repo 'rspec-rails', :url => 'git://github.com/dchelimsky/rspec-rails'#, :local => "~/dev/vendor/rspec-rails" | ||||
| eabb09cf » | ianwhite | 2008-04-28 | 23 | repo 'nested_has_many_through', :path => '.' | |
| 24 | |||||
| 25 | # for target, default repo is 'rails', default branch is 'master' | ||||
| 26 | target 'edge' | ||||
| 27 | target '2.0-stable', :branch => 'origin/2-0-stable' | ||||
| c7ba2df1 » | ianwhite | 2008-09-24 | 28 | target '2.1-stable', :branch => 'origin/2-1-stable' | |
| eabb09cf » | ianwhite | 2008-04-28 | 29 | ||
| 30 | all_targets do | ||||
| 31 | prepare do | ||||
| 32 | plugin 'rspec' | ||||
| 33 | plugin('rspec-rails') { sh "script/generate rspec -f" } | ||||
| 34 | plugin 'nested_has_many_through', :clone => true # so we can work on it and push fixes upstream | ||||
| 35 | end | ||||
| 36 | |||||
| 37 | run do | ||||
| 38 | cd "vendor/plugins/nested_has_many_through" do | ||||
| 39 | sh "rake spec:rcov:verify" | ||||
| 40 | end | ||||
| 41 | end | ||||
| 42 | end | ||||
| 43 | end | ||||
