Skip to content

Commit

Permalink
Fix fragment URIs.
Browse files Browse the repository at this point in the history
git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1696 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
drbrain committed Apr 7, 2008
1 parent 564b7b1 commit f6fe28c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion ChangeLog
@@ -1,8 +1,12 @@
2008-04-07 Eric Hodel <drbrain@segment7.net>

* lib/rubygems/server.rb: Fix fragment URIs. Patch by James Tucker.

2008-04-06 Chad Woolley <thewoolleyman@gmail.com>

* lib/rubygems.rb: Add setter Gems.platforms=, to allow platforms
to be set/reset when invoking or testing RubyGems programatically.
Also force Gems.platforms to automatically reset to default of
Also force Gems.platforms to automatically reset to default of
[Gem::Platform::RUBY, Gem::Platform.local] if cleared.
* lib/rubygems/version_option.rb: Change add_platform_option
to initialize Gem.platforms to contain only Gem::Platform::RUBY
Expand Down
10 changes: 5 additions & 5 deletions lib/rubygems/server.rb
Expand Up @@ -29,7 +29,7 @@ class Gem::Server

DOC_TEMPLATE = <<-'WEBPAGE'
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Expand All @@ -51,7 +51,7 @@ class Gem::Server
<h1>Summary</h1>
<p>There are <%=values["gem_count"]%> gems installed:</p>
<p>
<%= values["specs"].map { |v| "<a href=\"#{v["name"]}\">#{v["name"]}</a>" }.join ', ' %>.
<%= values["specs"].map { |v| "<a href=\"##{v["name"]}\">#{v["name"]}</a>" }.join ', ' %>.
<h1>Gems</h1>
<dl>
Expand All @@ -77,7 +77,7 @@ class Gem::Server
<% if spec["has_deps"] then %>
- depends on
<%= spec["dependencies"].map { |v| "<a href=\"#{v["name"]}\">#{v["name"]}</a>" }.join ', ' %>.
<%= spec["dependencies"].map { |v| "<a href=\"##{v["name"]}\">#{v["name"]}</a>" }.join ', ' %>.
<% end %>
</dt>
<dd>
Expand All @@ -91,8 +91,8 @@ class Gem::Server
Executables are
<%end%>
<%= spec["executables"].map { |v| "<span class=\"context-item-name\">#{v["executable"]}</span>"}.join ', ' %>.
<%= spec["executables"].map { |v| "<span class=\"context-item-name\">#{v["executable"]}</span>"}.join ', ' %>.
<%end%>
<br/>
<br/>
Expand Down

0 comments on commit f6fe28c

Please sign in to comment.