[DRE-commits] r5332 - in trunk/gemwatch: . views

Antonio Terceiro terceiro-guest at alioth.debian.org
Sat May 15 17:26:25 UTC 2010


Author: terceiro-guest
Date: 2010-05-15 17:26:24 +0000 (Sat, 15 May 2010)
New Revision: 5332

Modified:
   trunk/gemwatch/gemwatch.rb
   trunk/gemwatch/views/gem.haml
Log:
Provide more information about packages



Modified: trunk/gemwatch/gemwatch.rb
===================================================================
--- trunk/gemwatch/gemwatch.rb	2010-05-15 16:57:15 UTC (rev 5331)
+++ trunk/gemwatch/gemwatch.rb	2010-05-15 17:26:24 UTC (rev 5332)
@@ -43,6 +43,12 @@
   def info
     @data['info']
   end
+  def home
+    @data['project_uri']
+  end
+  def authors
+    @data['authors']
+  end
   def gem
     File.basename(uri)
   end

Modified: trunk/gemwatch/views/gem.haml
===================================================================
--- trunk/gemwatch/views/gem.haml	2010-05-15 16:57:15 UTC (rev 5331)
+++ trunk/gemwatch/views/gem.haml	2010-05-15 17:26:24 UTC (rev 5332)
@@ -1,6 +1,12 @@
 - @title = @gem.name
 %h1= 'Package: %s' % @gem.name
 %blockquote= @gem.info
+%ul
+  %li
+    Authors:
+    = @gem.authors
+  %li
+    %a{:href => @gem.home} Home at rubygems.org
 %h2 Available downloads
 %p
   Most recent version:




More information about the Pkg-ruby-extras-commits mailing list