forked from godfat/rest-graph
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
51 lines (39 loc) · 1.15 KB
/
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
43
44
45
46
47
48
49
50
51
# encoding: utf-8
begin
require 'bones'
rescue LoadError
abort '### Please install the "bones" gem ###'
end
ensure_in_path 'lib'
proj = 'rest-graph'
require "#{proj}/version"
Bones{
ruby_opts [''] # silence warning for now
version RestGraph::VERSION
depend_on 'rest-client'
depend_on 'json', :development => true
depend_on 'rack', :development => true
depend_on 'rr', :development => true
depend_on 'webmock', :development => true
depend_on 'bacon', :development => true
name proj
url "http://github.com/cardinalblue/#{proj}"
authors ['Cardinal Blue', 'Lin Jen-Shin (aka godfat 真常)']
email 'dev (XD) cardinalblue.com'
history_file 'CHANGES'
readme_file 'README.rdoc'
ignore_file '.gitignore'
rdoc.include ['\w+']
rdoc.exclude ['test', 'doc', 'Rakefile']
}
CLEAN.include Dir['**/*.rbc']
task :default do
Rake.application.options.show_task_pattern = /./
Rake.application.display_tasks_and_comments
end
desc 'Run example tests'
task 'test:example' => ['gem:install'] do
sh "cd example/rails; #{Gem.ruby} -S rake test"
end
desc 'Run all tests'
task 'test:all' => ['test', 'test:example']