forked from nu7hatch/gmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (33 loc) · 823 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- ruby -*-
$:.unshift(File.expand_path('../lib', __FILE__))
require 'gmail/version'
begin
require 'ore/tasks'
Ore::Tasks.new
rescue LoadError => e
STDERR.puts e.message
STDERR.puts "Run `gem install ore-tasks` to install 'ore/tasks'."
end
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
task :spec do
abort 'Run `gem install rspec` to install RSpec'
end
end
task :test => :spec
task :default => :test
begin
require 'metric_fu'
rescue LoadError => e
STDERR.puts e.message
STDERR.puts "Run `gem install metric_fu` to install Metric-Fu"
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "Gmail for Ruby #{Gmail.version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end