Skip to content

Commit

Permalink
woot. finally found a way around that stupid rakefile hack for runnin…
Browse files Browse the repository at this point in the history
…g the r_c tests
  • Loading branch information
jamesgolick committed Feb 4, 2009
1 parent 5d1a77a commit 6cdc988
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
Dir.chdir('test')
load 'Rakefile'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "resource_controller"
s.summary = "Rails RESTful controller abstraction plugin."
s.email = "james@giraffesoft.ca"
s.homepage = "http://jamesgolick.com/resource_controller"
s.description = ""
s.authors = ["James Golick"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

desc 'Generate documentation for the ResourceController plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
Expand All @@ -10,6 +25,12 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('../lib/**/*.rb')
end

task :rc_test do
Dir.chdir('test')
load 'Rakefile'
Rake::Task['test'].execute
end

task :upload_docs => :rdoc do
puts 'Deleting previous rdoc'
`ssh jamesgolick.com 'rm -Rf /home/apps/jamesgolick.com/public/resource_controller/rdoc'`
Expand All @@ -20,3 +41,5 @@ task :upload_docs => :rdoc do
puts "Deleting rdoc"
`rm -Rf ../rdoc`
end

task :default => :rc_test

0 comments on commit 6cdc988

Please sign in to comment.