scripts/gemdoc.rb in rubygems-update-0.8.10 vs scripts/gemdoc.rb in rubygems-update-0.8.11
- old
+ new
@@ -33,11 +33,11 @@
out = cs.string.grep(/^\s+(\w+)\s+(.*)$/).join("\n")
# Add a link to the relevant section in the margin.
out.gsub(/^\s+(\w+)/) {
cmd_name = $1
" [http://rubygems.rubyforge.org/wiki/wiki.pl?GemReference##{cmd_name} -] #{cmd_name}"
- }.gsub(/RubyGems/, '<nowiki>RubyGems</nowiki>')
+ }
end
while line = gets
if line =~ /^!/
cmd, arg = line.split
@@ -50,10 +50,10 @@
puts "Usage of command #{arg} failed"
end
when "!toc"
puts table_of_contents()
when "!toc-link"
- puts "''[http://rubygems.rubyforge.org/wiki/wiki.pl?GemReference#toc ^ Table of Contents]''"
+ puts "\"Table of Contents\":http://docs.rubygems.org/read/chapter/10#toc"
when "!version"
puts Gem::RubyGemsPackageVersion
end
else
puts line