-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (29 loc) · 736 Bytes
/
Copy pathRakefile
File metadata and controls
37 lines (29 loc) · 736 Bytes
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
# -*- ruby -*-
require 'rubygems'
require 'rubygems/package_task'
require 'rake/testtask'
require 'rdoc/task'
require 'bundler/gem_tasks'
if RUBY_VERSION >= '1.9'
begin
gem 'psych'
rescue Exception => e
# it's okay, fall back on the bundled psych
end
end
$:.push 'lib'
version = Webhookr::Mandrill::VERSION
desc 'Test Webhookr Mandrill'
Rake::TestTask.new(:test) do |t|
t.test_files = FileList['test/**/*_tests.rb']
t.verbose = !!ENV['VERBOSE_TESTS']
t.warning = !!ENV['WARNINGS']
end
desc 'Build docs'
Rake::RDocTask.new do |t|
t.main = 'README.md'
t.title = "Webhookr Mandrill #{version}"
t.rdoc_dir = 'doc'
t.rdoc_files.include('README.md', 'MIT-LICENSE', 'lib/**/*.rb')
end
task :default => :test