lib/caboodle/kits/github/github.rb in caboodle-0.1.4 vs lib/caboodle/kits/github/github.rb in caboodle-0.1.5
- old
+ new
@@ -1,9 +1,9 @@
module Caboodle
class Github < Caboodle::Kit
- get "/code" do
+ menu "Code", "/code" do
@title = "Code"
@repos = GithubAPI.repositories
@repos.sort!{|a, b| a.watchers <=> b.watchers}.reverse!
@my_repos = @repos.clone
@@ -13,14 +13,14 @@
@forked_repos.delete_if{|a| !a.fork }
haml :github
end
- menu "Code", "/code"
-
required [:github_username]
defaults []
+
+ original "http://gitbhu.com/#{Site.github_username}"
end
class GithubAPI < Weary::Base
declare "repositories" do |r|
\ No newline at end of file