Skip to content

Commit

Permalink
rails 2.2.0 now included in garlic
Browse files Browse the repository at this point in the history
Updated to use garlic gem
  • Loading branch information
ianwhite committed Oct 30, 2008
1 parent 94749ff commit 1378228
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 57 deletions.
4 changes: 1 addition & 3 deletions .gitignore
@@ -1,5 +1,3 @@
.DS_Store
doc/*
garlic
garlic.rb
garlic_report.txt
.garlic_work
12 changes: 1 addition & 11 deletions Rakefile
Expand Up @@ -5,6 +5,7 @@ $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base) and !$LOAD_PATH.includ
require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'
require 'rake/rdoctask'
begin; require 'garlic/tasks'; rescue LoadError; end

plugin_name = 'response_for'

Expand Down Expand Up @@ -67,17 +68,6 @@ namespace :doc do
task :all => ["spec:doc:html", "spec:doc", "spec:rcov", "doc"]
end

# load up garlic if it's here
if File.directory?(File.join(File.dirname(__FILE__), 'garlic'))
require File.join(File.dirname(__FILE__), 'garlic/lib/garlic_tasks')
require File.join(File.dirname(__FILE__), 'garlic')
end

desc "clone the garlic repo (for running ci tasks)"
task :get_garlic do
sh "git clone git://github.com/ianwhite/garlic.git garlic"
end

task :cruise do
# run the garlic task, capture the output, if succesful make the docs and copy them to ardes
begin
Expand Down
30 changes: 30 additions & 0 deletions garlic.rb
@@ -0,0 +1,30 @@
garlic do
# requried repositories
repo 'rails', :url => 'git://github.com/rails/rails', :local => '~/dev/vendor/rails'
repo 'rspec', :url => 'git://github.com/dchelimsky/rspec', :local => '~/dev/vendor/rspec'
repo 'rspec-rails', :url => 'git://github.com/dchelimsky/rspec-rails', :local => '~/dev/vendor/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
43 changes: 0 additions & 43 deletions garlic_example.rb

This file was deleted.

0 comments on commit 1378228

Please sign in to comment.