summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-02-05 12:14:41 -0800
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-02-06 10:07:42 +1300
commit5d072b370fb9227e94e2287b9f7f4c9e9701dc93 (patch)
treee092052f4c07f33b9ccc7e08336990bc90ac4d32
parent1f89eaafd39040707bf2a76cab134dd7a78b1441 (diff)
downloadrack-5d072b370fb9227e94e2287b9f7f4c9e9701dc93.tar.gz
Move from SPEC to SPEC.rdoc
SPEC is already in rdoc format, and this results in nicer rendering on GitHub.
-rw-r--r--Rakefile10
-rw-r--r--SPEC.rdoc (renamed from SPEC)0
2 files changed, 5 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index 6ad8d1f0..5876080f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -21,7 +21,7 @@ end
desc "Make an archive as .tar.gz"
task dist: %w[chmod changelog spec rdoc] do
sh "git archive --format=tar --prefix=#{release}/ HEAD^{tree} >#{release}.tar"
- sh "pax -waf #{release}.tar -s ':^:#{release}/:' SPEC ChangeLog doc rack.gemspec"
+ sh "pax -waf #{release}.tar -s ':^:#{release}/:' SPEC.rdoc ChangeLog doc rack.gemspec"
sh "gzip -f -9 #{release}.tar"
end
@@ -72,11 +72,11 @@ file "ChangeLog" => '.git/index' do
end
desc "Generate Rack Specification"
-task spec: "SPEC"
+task spec: "SPEC.rdoc"
file 'lib/rack/lint.rb'
-file "SPEC" => 'lib/rack/lint.rb' do
- File.open("SPEC", "wb") { |file|
+file "SPEC.rdoc" => 'lib/rack/lint.rb' do
+ File.open("SPEC.rdoc", "wb") { |file|
IO.foreach("lib/rack/lint.rb") { |line|
if line =~ /## (.*)/
file.puts $1
@@ -114,7 +114,7 @@ desc "Generate RDoc documentation"
task rdoc: %w[changelog spec] do
sh(*%w{rdoc --line-numbers --main README.rdoc
--title 'Rack\ Documentation' --charset utf-8 -U -o doc} +
- %w{README.rdoc KNOWN-ISSUES SPEC ChangeLog} +
+ %w{README.rdoc KNOWN-ISSUES SPEC.rdoc ChangeLog} +
`git ls-files lib/\*\*/\*.rb`.strip.split)
cp "contrib/rdoc.css", "doc/rdoc.css"
end
diff --git a/SPEC b/SPEC.rdoc
index 356cf569..356cf569 100644
--- a/SPEC
+++ b/SPEC.rdoc