forked from rock-core/bundles-rock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (28 loc) · 1.01 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
task :default
package_name = 'rock'
begin
require 'hoe'
Hoe::plugin :yard
hoe_spec = Hoe.spec package_name do
self.version = '0.1'
self.developer "Sylvain Joyeux", "[email protected]"
self.extra_deps <<
['rake', '>= 0.8.0'] <<
["hoe", ">= 3.0.0"] <<
["hoe-yard", ">= 0.1.2"]
self.summary = 'Root bundle for Rock software'
self.readme_file = FileList['README*'].first
self.description = paragraphs_of(readme_file, 3..5).join("\n\n")
self.licenses << "LGPLv2 or later"
self.yard_opts = [ 'models/', 'scripts/', 'config/', 'test/' ]
self.spec_extras = {
:required_ruby_version => '>= 1.8.7'
}
end
# If you need to deviate from the defaults, check utilrb's Rakefile as an example
Rake.clear_tasks(/^default$/)
task :default => []
task :doc => :yard
rescue LoadError => e
puts "Extension for '#{package_name}' cannot be build -- loading gem failed: #{e}"
end