Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (36 sloc) 1.254 kB
ProjectName = 'twitter'
WebsitePath = "jnunemaker@rubyforge.org:/var/www/gforge-projects/#{ProjectName}"
require 'rubygems'
require 'rake'
require 'echoe'
require 'spec/rake/spectask'
require "lib/#{ProjectName}/version"
Echoe.new(ProjectName, Twitter::Version) do |p|
p.description = "a command line interface for twitter, also a library which wraps the twitter api"
p.url = "http://#{ProjectName}.rubyforge.org"
p.author = "John Nunemaker"
p.email = "nunemaker@gmail.com"
p.extra_deps = [['hpricot', '>= 0.6'], ['activesupport', '>= 2.1'], ['httparty', '>= 0.2.4']]
p.need_tar_gz = false
p.docs_host = WebsitePath
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
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
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
end
Jump to Line
Something went wrong with that request. Please try again.