2008-12-05 17:10:21 -05:00
|
|
|
ProjectName = 'httparty'
|
|
|
|
WebsitePath = "jnunemaker@rubyforge.org:/var/www/gforge-projects/#{ProjectName}"
|
2008-07-27 11:52:18 -04:00
|
|
|
|
2008-12-05 17:10:21 -05:00
|
|
|
require 'rubygems'
|
|
|
|
require 'rake'
|
|
|
|
require 'echoe'
|
|
|
|
require 'spec/rake/spectask'
|
|
|
|
require "lib/#{ProjectName}/version"
|
2009-01-28 23:37:10 -05:00
|
|
|
require 'cucumber/rake/task'
|
2008-10-25 00:37:51 -04:00
|
|
|
|
2008-12-05 17:10:21 -05:00
|
|
|
Echoe.new(ProjectName, HTTParty::Version) do |p|
|
2008-12-05 17:15:09 -05:00
|
|
|
p.description = "Makes http fun! Also, makes consuming restful web services dead easy."
|
|
|
|
p.install_message = "When you HTTParty, you must party hard!"
|
|
|
|
p.url = "http://#{ProjectName}.rubyforge.org"
|
|
|
|
p.author = "John Nunemaker"
|
|
|
|
p.email = "nunemaker@gmail.com"
|
2008-12-06 22:47:01 -05:00
|
|
|
p.extra_deps = [['json', '~> 1.1']]
|
2008-12-05 17:15:09 -05:00
|
|
|
p.need_tar_gz = false
|
|
|
|
p.docs_host = WebsitePath
|
2008-12-05 17:10:21 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
desc 'Upload website files to rubyforge'
|
|
|
|
task :website do
|
|
|
|
sh %{rsync -av website/ #{WebsitePath}}
|
|
|
|
Rake::Task['website_docs'].invoke
|
|
|
|
end
|
|
|
|
|
|
|
|
task :website_docs do
|
|
|
|
Rake::Task['redocs'].invoke
|
|
|
|
sh %{rsync -av doc/ #{WebsitePath}/docs}
|
|
|
|
end
|
2008-10-25 00:37:51 -04:00
|
|
|
|
2008-12-05 17:10:21 -05:00
|
|
|
desc 'Preps the gem for a new release'
|
|
|
|
task :prepare do
|
|
|
|
%w[manifest build_gemspec].each do |task|
|
|
|
|
Rake::Task[task].invoke
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Rake::Task[:default].prerequisites.clear
|
|
|
|
task :default => :spec
|
2008-10-25 00:37:51 -04:00
|
|
|
Spec::Rake::SpecTask.new do |t|
|
|
|
|
t.spec_files = FileList["spec/**/*_spec.rb"]
|
2009-01-28 23:37:10 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
Cucumber::Rake::Task.new(:features) do |t|
|
|
|
|
t.cucumber_opts = "--format pretty"
|
|
|
|
end
|