Skip to content

Commit

Permalink
more debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon committed Jul 29, 2009
1 parent db53532 commit f606da7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions contest.rb
Expand Up @@ -41,6 +41,7 @@ class Push
property :ref, String
property :sha, String
property :results_sha, String
property :message, String
property :entered, DateTime
end

Expand Down Expand Up @@ -116,6 +117,9 @@ class Push
f.read
end

pu.message = tree
pu.save

new_tree = JSON.parse(tree)
new_tree.each do |f|
if f['name'] == 'results.txt'
Expand Down
6 changes: 3 additions & 3 deletions views/debug.erb
@@ -1,16 +1,16 @@
<h1>Entries</h1>
<% @entries.each do |e| %>
<%= e.name %><br/>
<%= e.attributes %><br/>
<pre><%= e.attributes %></pre><br/>
<% end %>

<h1>Pushes</h1>
<% @pushes.each do |e| %>
<%= e.attributes %><br/>
<pre><%= e.attributes %></pre><br/>
<% end %>

<h1>Scores</h1>
<% @scores.each do |e| %>
<%= e.score %><br/>
<%= e.attributes %><br/>
<pre><%= e.attributes %></pre><br/>
<% end %>

0 comments on commit f606da7

Please sign in to comment.