summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-06-18 17:07:25 +0200
committerfranck cuny <franck@lumberjaph.net>2011-06-18 17:07:25 +0200
commita339456f18a8bf7dfaccebbd900f7b6527cbadad (patch)
tree47b218992d2339d693eaf2d8907e1e6160993fa4
parenttwo new routes: /about and /api (diff)
downloadstargit-a339456f18a8bf7dfaccebbd900f7b6527cbadad.tar.gz
default for some informations
Signed-off-by: franck cuny <franck@lumberjaph.net>
-rw-r--r--lib/StarGit/Info.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/StarGit/Info.pm b/lib/StarGit/Info.pm
index c7b82c7..0435409 100644
--- a/lib/StarGit/Info.pm
+++ b/lib/StarGit/Info.pm
@@ -20,11 +20,11 @@ sub get {
return {
login => $self->login,
name => $profile->{name} || $self->login,
- website => $profile->{blog},
+ website => $profile->{blog} || "none",
gravatar => $profile->{gravatar_id},
- indegree => $profile->{indegree},
- country => $profile->{country} || "",
- language => $profile->{language} || "",
+ indegree => $profile->{indegree} || 0,
+ country => $profile->{country} || "unknown",
+ language => $profile->{language} || "unknown",
};
}