Skip to content

Commit

Permalink
Removed iCal support from master
Browse files Browse the repository at this point in the history
  • Loading branch information
leereilly committed Oct 20, 2011
1 parent ea26383 commit e320da9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 111 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@

Github High Scores is a fun way to rank Github repository contributors in a 8-bit, 80's-tastic viewing environment.

## iCalendar

This is an extension to convert the most recent commit log of a repo into [iCalendar](http://tools.ietf.org/html/rfc5545) format, to be included into iCal.

This will generate events which are 30 minutes in duration -- there is no really easy way to specify a duration for a commit.

To use:
http://example.com/<user>/<repo>.ics
http://example.com/<user>/<repo>/<branch>.ics

branch defaults to master, if not provided.

## Installation

git clone git://github.com/leereilly/github-high-scores.git
Expand Down
2 changes: 0 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
require 'helpers'
require 'User'
require 'Repo'
require 'Commit'

disable :show_exceptions
set :environment, :production
Expand Down Expand Up @@ -62,7 +61,6 @@

get '/recent_searches/?' do
@repos = Repo.all(:limit => 5, :order => [ :updated_at.desc ])
puts @repos.inspect
@display_small_search = true
erb :recent_searches
end
Expand Down
61 changes: 0 additions & 61 deletions lib/Commit.rb

This file was deleted.

3 changes: 0 additions & 3 deletions lib/Repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@ def self.create_from_username_and_repo(username, repo)

if found_repo = Repo.first(:owner => username, :name => repo)
if Time.now - Time.parse(found_repo.updated_at.to_s) <= 60*60*24
puts "Repo created less than 24 hours ago. Returning DB record"
return found_repo
else
puts "Updating current repo"
repo = found_repo
end
else
puts "User not found; using web services"
repo = Repo.new
end

Expand Down
30 changes: 0 additions & 30 deletions views/ical.erb

This file was deleted.

3 changes: 0 additions & 3 deletions views/repo.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<dt>Created by</dt>
<dd><%= @repo.owner %></dd>

<dt>Commit Log</dt>
<dd>iCal: <a href="/<%= @repo.owner %>/<%= @repo.name %>.ics"><%= request.url %>.ics</a></dd>

</dl>

<%= erb :footer %>

0 comments on commit e320da9

Please sign in to comment.