From a9e4f8376b4d9f5083a2fed0440bcd9ca9e6cf4b Mon Sep 17 00:00:00 2001 From: franck cuny Date: Wed, 10 Feb 2010 11:03:40 +0100 Subject: prepare repos --- lib/githubexplorer/Gexf.pm | 52 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/githubexplorer/Gexf.pm b/lib/githubexplorer/Gexf.pm index 503eebe..c3be9dc 100644 --- a/lib/githubexplorer/Gexf.pm +++ b/lib/githubexplorer/Gexf.pm @@ -25,15 +25,55 @@ has graph => ( title => 'name' }, { - id => 1, + id => 1, + type => 'string', + title => 'type', + }, + { + id => 2, type => 'string', title => 'followers_count' }, { - id => 2, + id => 3, type => 'string', title => 'following_count' }, + { + id => 4, + type => 'string', + title => 'forks', + }, + { + id => 5, + type => 'string', + title => 'location', + }, + { + id => 6, + type => 'string', + title => 'public_gist_count', + }, + { + id => 7, + type => 'string', + title => 'public_repo_count', + }, + { + id => 8, + type => 'string', + title => 'language', + }, + { + id => 9, + type => 'string', + title => 'description', + }, + { + id => 10, + type => 'string', + title => 'watchers', + } ] } } @@ -78,4 +118,12 @@ sub profiles { return $xml_out; } +sub repositories { + my $self = shift; + my $repositories = $self->schema->resultset('Repositories')->search(); + + while (my $repo = $repositories->next) { + } +} + 1; -- cgit 1.4.1