Lines 2-8
Link Here
|
2 |
#ENV.delete('RUBYOPT') # Don't propagate RUBYOPT/Bundler to subprocesses |
2 |
#ENV.delete('RUBYOPT') # Don't propagate RUBYOPT/Bundler to subprocesses |
3 |
require 'rake/clean' |
3 |
require 'rake/clean' |
4 |
require 'rubygems/package_task' |
4 |
require 'rubygems/package_task' |
5 |
require 'rdoc/task' |
|
|
6 |
require 'rake/testtask' |
5 |
require 'rake/testtask' |
7 |
begin |
6 |
begin |
8 |
require 'rake/extensiontask' |
7 |
require 'rake/extensiontask' |
Lines 20-26
Link Here
|
20 |
CLEAN.include ["#{BIN}", "ext/**/#{BIN}", "lib/**/#{BIN}", "test/**/#{BIN}", |
19 |
CLEAN.include ["#{BIN}", "ext/**/#{BIN}", "lib/**/#{BIN}", "test/**/#{BIN}", |
21 |
'ext/fast_xs/Makefile', 'ext/hpricot_scan/Makefile', |
20 |
'ext/fast_xs/Makefile', 'ext/hpricot_scan/Makefile', |
22 |
'**/.*.sw?', '*.gem', '.config', 'pkg', 'lib/hpricot_scan.rb', 'lib/fast_xs.rb'] |
21 |
'**/.*.sw?', '*.gem', '.config', 'pkg', 'lib/hpricot_scan.rb', 'lib/fast_xs.rb'] |
23 |
RDOC_OPTS = ['--quiet', '--title', 'The Hpricot Reference', '--main', 'README.md', '--inline-source'] |
|
|
24 |
PKG_FILES = %w(CHANGELOG COPYING README.md Rakefile) + |
22 |
PKG_FILES = %w(CHANGELOG COPYING README.md Rakefile) + |
25 |
Dir.glob("{bin,doc,test,extras}/**/*") + |
23 |
Dir.glob("{bin,doc,test,extras}/**/*") + |
26 |
(Dir.glob("lib/**/*.rb") - %w(lib/hpricot_scan.rb lib/fast_xs.rb)) + |
24 |
(Dir.glob("lib/**/*.rb") - %w(lib/hpricot_scan.rb lib/fast_xs.rb)) + |
Lines 42-50
Link Here
|
42 |
s.name = NAME |
40 |
s.name = NAME |
43 |
s.version = VERS |
41 |
s.version = VERS |
44 |
s.platform = Gem::Platform::RUBY |
42 |
s.platform = Gem::Platform::RUBY |
45 |
s.has_rdoc = true |
43 |
s.has_rdoc = false |
46 |
s.rdoc_options += RDOC_OPTS |
|
|
47 |
s.extra_rdoc_files = ["README.md", "CHANGELOG", "COPYING"] |
48 |
s.summary = "a swift, liberal HTML parser with a fantastic library" |
44 |
s.summary = "a swift, liberal HTML parser with a fantastic library" |
49 |
s.description = s.summary |
45 |
s.description = s.summary |
50 |
s.author = "why the lucky stiff" |
46 |
s.author = "why the lucky stiff" |
Lines 116-128
Link Here
|
116 |
t.verbose = true |
112 |
t.verbose = true |
117 |
end |
113 |
end |
118 |
|
114 |
|
119 |
Rake::RDocTask.new do |rdoc| |
|
|
120 |
rdoc.rdoc_dir = 'doc/rdoc' |
121 |
rdoc.options += RDOC_OPTS |
122 |
rdoc.main = "README.md" |
123 |
rdoc.rdoc_files.add ['README.md', 'CHANGELOG', 'COPYING', 'lib/**/*.rb'] |
124 |
end |
125 |
|
126 |
Gem::PackageTask.new(SPEC) do |p| |
115 |
Gem::PackageTask.new(SPEC) do |p| |
127 |
p.need_tar = true |
116 |
p.need_tar = true |
128 |
p.gem_spec = SPEC |
117 |
p.gem_spec = SPEC |