forked from jcrosby/cloudkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (38 loc) · 925 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
40
41
42
require 'rake/clean'
require 'spec/rake/spectask'
CLEAN.include 'doc/api'
task :default => :spec
desc "Run all examples (or a specific spec with TASK=xxxx)"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_opts = ["-c"]
t.spec_files = begin
if ENV["TASK"]
ENV["TASK"].split(',').map { |task| "spec/**/#{task}_spec.rb" }
else
FileList['spec/**/*_spec.rb']
end
end
end
desc 'Generate rdoc'
task :rdoc do
rm_rf 'doc/api'
sh((<<-SH).gsub(/[\s\n]+/, ' ').strip)
hanna
--inline-source
--line-numbers
--include=lib/cloudkit.rb
--include=lib/cloudkit/*.rb
--include=lib/cloudkit/*/*.rb
--exclude=Rakefile
--exclude=TODO
--exclude=cloudkit.gemspec
--exclude=templates/*
--exclude=examples/*
--exclude=spec/*
--exclude=doc/index.html
--exclude=doc/curl.html
--exclude=doc/rest-api.html
--exclude=doc/main.css
--op=doc/api
SH
end