Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (42 sloc) 1.2 KB
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "twilio"
gem.summary = %Q{Twilio API Client}
gem.email = "github@webficient.com"
gem.homepage = "http://github.com/webficient/twilio"
gem.authors = ["Phil Misiowiec"]
gem.add_dependency 'builder', '>= 2.1.2'
gem.add_dependency 'httparty', '>= 0.4.3'
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'twilio'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = false
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
task :default => :test
Something went wrong with that request. Please try again.