Permalink
Browse files

Added a page listing all the gems used by dbpedia lite

  • Loading branch information...
njh committed Dec 26, 2010
1 parent 92569a5 commit e1e8a2ac2f09d0db1fd020cb74812c6366c3e3ed
Showing with 28 additions and 3 deletions.
  1. +5 −0 dbpedialite.rb
  2. +21 −0 views/gems.erb
  3. +2 −3 views/layout.erb
View
@@ -138,4 +138,9 @@ def format_xmlns(vocabularies)
end
end
+ get '/gems' do
+ @specs = Gem::loaded_specs.values.sort {|a,b| a.name <=> b.name }
+ erb :gems
+ end
+
end
View
@@ -0,0 +1,21 @@
+<div id="header">
+ <h1 id="title">Ruby Gems</h1>
+ <h2>dbpedialite.org is powered by the following ruby gems:</h2>
+</div>
+
+<div id="content">
+ <table>
+ <tr>
+ <th>Name</th>
+ <th>Version</th>
+ <th>Summary</th>
+ </tr>
+ <% @specs.each do |spec| %>
+ <tr>
+ <td><%= link_to(spec.name, spec.homepage) %></td>
+ <td><%= link_to(spec.version, "http://rubygems.org/gems/#{spec.name}/versions/#{spec.version}") %></td>
+ <td><%= spec.summary %></td>
+ </tr>
+ <% end %>
+ </table>
+</div>
View
@@ -38,9 +38,8 @@
Powered by:
<a href="http://heroku.com/">heroku</a>,
<a href="http://www.sinatrarb.com/">Sinatra</a>,
- <a href="http://github.com/bhuga/spira">Spira</a>,
- <a href="http://rdf.rubyforge.org/">RDF.rb</a>,
- <a href="http://nokogiri.org/">nokogiri</a>
+ <a href="http://rdf.rubyforge.org/">RDF.rb</a> and
+ <a href="/gems">more...</a>
</div>
<div class="links">
Source code: <%= link_to('http://github.com/njh/dbpedialite') %>

0 comments on commit e1e8a2a

Please sign in to comment.