-
Notifications
You must be signed in to change notification settings - Fork 33
/
Rakefile
37 lines (32 loc) · 755 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
require 'rake/clean'
require 'rspec/core'
require 'rspec/core/rake_task'
CLEAN.include 'doc/api'
task :default => :spec
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new do |task|
task.rspec_opts = ["-c"]
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