-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
81 lines (57 loc) · 1.77 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Rakefile for rake -*- ruby -*-
# Copyright 2003, 2004, 2005 by Jim Weirich ([email protected])
# All rights reserved.
# This file may be distributed under an MIT style license. See
# MIT-LICENSE for details.
require 'rbconfig'
system_rake = File.join RbConfig::CONFIG['rubylibdir'], 'rake.rb'
# Use our rake, not the installed rake from system
if $".include? system_rake or $".grep(/rake\/name_space\.rb$/).empty? then
exec Gem.ruby, '-Ilib', 'bin/rake', *ARGV
end
require 'hoe'
Hoe.plugin :git
Hoe.plugin :minitest
Hoe.plugin :travis
hoe = Hoe.spec 'rake' do
developer 'Eric Hodel', '[email protected]'
developer 'Jim Weirich', ''
require_ruby_version '>= 1.8.7'
require_rubygems_version '>= 1.3.2'
dependency 'minitest', '~> 5.0', :developer
license "MIT"
self.readme_file = 'README.rdoc'
self.history_file = 'History.rdoc'
self.extra_rdoc_files.concat FileList[
'MIT-LICENSE',
'doc/**/*.rdoc',
'*.rdoc',
]
self.local_rdoc_dir = 'html'
self.rsync_args = '-avz --delete'
rdoc_locations << 'docs.seattlerb.org:/data/www/docs.seattlerb.org/rake/'
self.clean_globs += [
'**/*.o',
'**/*.rbc',
'*.dot',
'TAGS',
'doc/example/main',
]
end
hoe.test_prelude = 'gem "minitest", "~> 5.0"'
# Use custom rdoc task due to existence of doc directory
Rake::Task['docs'].clear
Rake::Task['clobber_docs'].clear
begin
require 'rdoc/task'
RDoc::Task.new :rdoc => 'docs', :clobber_rdoc => 'clobber_docs' do |doc|
doc.main = hoe.readme_file
doc.title = 'Rake -- Ruby Make'
rdoc_files = Rake::FileList.new %w[lib History.rdoc MIT-LICENSE doc]
rdoc_files.add hoe.extra_rdoc_files
doc.rdoc_files = rdoc_files
doc.rdoc_dir = 'html'
end
rescue LoadError
warn 'run `rake newb` to install rdoc'
end