summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-02-10 11:03:40 +0100
committerfranck cuny <franck@lumberjaph.net>2010-02-10 11:03:40 +0100
commita9e4f8376b4d9f5083a2fed0440bcd9ca9e6cf4b (patch)
treedcedd26a05be9a41014c25c07938a51946f61c2c /lib
parentsmall fix (diff)
downloadgithub-explorer-a9e4f8376b4d9f5083a2fed0440bcd9ca9e6cf4b.tar.gz
prepare repos
Diffstat (limited to 'lib')
-rw-r--r--lib/githubexplorer/Gexf.pm52
1 files changed, 50 insertions, 2 deletions
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;