-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile.rb
More file actions
49 lines (42 loc) · 1.29 KB
/
Copy pathrakefile.rb
File metadata and controls
49 lines (42 loc) · 1.29 KB
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
require 'rubygems'
require 'rdoc/rdoc'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
desc "Default Task"
task :default => [ :test ]
# Run the unit tests
task :test do
ruby 'test\test_runner.rb'
end
# Generate the documentation
task :rdoc do
rdoc = RDoc::RDoc.new
files = ['README.txt', 'lib/apache_config.rb']
files += Dir.glob('lib/apache_config/*.rb')
rdoc.document(["--main", "README.txt", "--title",
"ApacheConfig -- Apache configuration file library",
"--line-numbers"] + files)
end
# Gem specification
spec = Gem::Specification.new do |s|
s.name = 'apacheconfig'
s.version = '1.0.0'
s.author = 'Brent Matzelle'
s.email = 'bmatzelle@yahoo.com'
s.homepage = 'brentsbits.com'
s.platform = Gem::Platform::RUBY
s.summary = 'Apache configuration file library'
s.files = ["rakefile.rb", "install.rb", "README.txt", "LICENSE.txt"]
s.files = s.files + FileList["{lib,test}/**/*"].to_a
s.require_path = 'lib'
s.autorequire = 'apacheconfig'
s.test_file = 'test/test_runner.rb'
s.has_rdoc = true
s.extra_rdoc_files = ["README.txt"]
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end