{"action":"created","comment":{"url":"https://api.github.com/repos/hueniverse/hueniversity/pulls/comments/27004406","id":27004406,"diff_hunk":"@@ -0,0 +1,24 @@\n+var Package = require('../package.json');\n+\n+\n+exports.register = function (server, options, next) {\n+\n+    server.route({\n+        method: 'GET',\n+        path: '/version',\n+        config: {\n+            description: 'Returns the version of the server',\n+            handler: function (request, reply) {\n+\n+                return reply({ version: Package.version });","path":"lib/version.js","position":null,"original_position":13,"commit_id":"3da89cdf00dcc30f811d45c53c9d3322752516b1","original_commit_id":"cf5f49e3ec8eb244424c4b0a9e85e8c60a7593f1","user":{"login":"gyaresu","id":29263,"avatar_url":"https://avatars.githubusercontent.com/u/29263?v=3","gravatar_id":"","url":"https://api.github.com/users/gyaresu","html_url":"https://github.com/gyaresu","followers_url":"https://api.github.com/users/gyaresu/followers","following_url":"https://api.github.com/users/gyaresu/following{/other_user}","gists_url":"https://api.github.com/users/gyaresu/gists{/gist_id}","starred_url":"https://api.github.com/users/gyaresu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyaresu/subscriptions","organizations_url":"https://api.github.com/users/gyaresu/orgs","repos_url":"https://api.github.com/users/gyaresu/repos","events_url":"https://api.github.com/users/gyaresu/events{/privacy}","received_events_url":"https://api.github.com/users/gyaresu/received_events","type":"User","site_admin":false},"body":"Sorry to jump in here but is it just a matter of declaring `var internals = Package.version;` and if so why?","created_at":"2015-03-24T05:47:12Z","updated_at":"2015-03-24T05:47:12Z","html_url":"https://github.com/hueniverse/hueniversity/pull/71#discussion_r27004406","pull_request_url":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/hueniverse/hueniversity/pulls/comments/27004406"},"html":{"href":"https://github.com/hueniverse/hueniversity/pull/71#discussion_r27004406"},"pull_request":{"href":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71","id":31783942,"html_url":"https://github.com/hueniverse/hueniversity/pull/71","diff_url":"https://github.com/hueniverse/hueniversity/pull/71.diff","patch_url":"https://github.com/hueniverse/hueniversity/pull/71.patch","issue_url":"https://api.github.com/repos/hueniverse/hueniversity/issues/71","number":71,"state":"open","locked":false,"title":"Assignment2","user":{"login":"mikejerome","id":5481599,"avatar_url":"https://avatars.githubusercontent.com/u/5481599?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejerome","html_url":"https://github.com/mikejerome","followers_url":"https://api.github.com/users/mikejerome/followers","following_url":"https://api.github.com/users/mikejerome/following{/other_user}","gists_url":"https://api.github.com/users/mikejerome/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejerome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejerome/subscriptions","organizations_url":"https://api.github.com/users/mikejerome/orgs","repos_url":"https://api.github.com/users/mikejerome/repos","events_url":"https://api.github.com/users/mikejerome/events{/privacy}","received_events_url":"https://api.github.com/users/mikejerome/received_events","type":"User","site_admin":false},"body":"Attempting assignment 2","created_at":"2015-03-23T23:20:15Z","updated_at":"2015-03-24T05:47:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0574600b5eba43097af7055209a71fb50516b567","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71/commits","review_comments_url":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71/comments","review_comment_url":"https://api.github.com/repos/hueniverse/hueniversity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hueniverse/hueniversity/issues/71/comments","statuses_url":"https://api.github.com/repos/hueniverse/hueniversity/statuses/3da89cdf00dcc30f811d45c53c9d3322752516b1","head":{"label":"mikejerome:assignment2","ref":"assignment2","sha":"3da89cdf00dcc30f811d45c53c9d3322752516b1","user":{"login":"mikejerome","id":5481599,"avatar_url":"https://avatars.githubusercontent.com/u/5481599?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejerome","html_url":"https://github.com/mikejerome","followers_url":"https://api.github.com/users/mikejerome/followers","following_url":"https://api.github.com/users/mikejerome/following{/other_user}","gists_url":"https://api.github.com/users/mikejerome/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejerome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejerome/subscriptions","organizations_url":"https://api.github.com/users/mikejerome/orgs","repos_url":"https://api.github.com/users/mikejerome/repos","events_url":"https://api.github.com/users/mikejerome/events{/privacy}","received_events_url":"https://api.github.com/users/mikejerome/received_events","type":"User","site_admin":false},"repo":{"id":32761895,"name":"hueniversity","full_name":"mikejerome/hueniversity","owner":{"login":"mikejerome","id":5481599,"avatar_url":"https://avatars.githubusercontent.com/u/5481599?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejerome","html_url":"https://github.com/mikejerome","followers_url":"https://api.github.com/users/mikejerome/followers","following_url":"https://api.github.com/users/mikejerome/following{/other_user}","gists_url":"https://api.github.com/users/mikejerome/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejerome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejerome/subscriptions","organizations_url":"https://api.github.com/users/mikejerome/orgs","repos_url":"https://api.github.com/users/mikejerome/repos","events_url":"https://api.github.com/users/mikejerome/events{/privacy}","received_events_url":"https://api.github.com/users/mikejerome/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikejerome/hueniversity","description":"Community learning experiment","fork":true,"url":"https://api.github.com/repos/mikejerome/hueniversity","forks_url":"https://api.github.com/repos/mikejerome/hueniversity/forks","keys_url":"https://api.github.com/repos/mikejerome/hueniversity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikejerome/hueniversity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikejerome/hueniversity/teams","hooks_url":"https://api.github.com/repos/mikejerome/hueniversity/hooks","issue_events_url":"https://api.github.com/repos/mikejerome/hueniversity/issues/events{/number}","events_url":"https://api.github.com/repos/mikejerome/hueniversity/events","assignees_url":"https://api.github.com/repos/mikejerome/hueniversity/assignees{/user}","branches_url":"https://api.github.com/repos/mikejerome/hueniversity/branches{/branch}","tags_url":"https://api.github.com/repos/mikejerome/hueniversity/tags","blobs_url":"https://api.github.com/repos/mikejerome/hueniversity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikejerome/hueniversity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikejerome/hueniversity/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikejerome/hueniversity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikejerome/hueniversity/statuses/{sha}","languages_url":"https://api.github.com/repos/mikejerome/hueniversity/languages","stargazers_url":"https://api.github.com/repos/mikejerome/hueniversity/stargazers","contributors_url":"https://api.github.com/repos/mikejerome/hueniversity/contributors","subscribers_url":"https://api.github.com/repos/mikejerome/hueniversity/subscribers","subscription_url":"https://api.github.com/repos/mikejerome/hueniversity/subscription","commits_url":"https://api.github.com/repos/mikejerome/hueniversity/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikejerome/hueniversity/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikejerome/hueniversity/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikejerome/hueniversity/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikejerome/hueniversity/contents/{+path}","compare_url":"https://api.github.com/repos/mikejerome/hueniversity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikejerome/hueniversity/merges","archive_url":"https://api.github.com/repos/mikejerome/hueniversity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikejerome/hueniversity/downloads","issues_url":"https://api.github.com/repos/mikejerome/hueniversity/issues{/number}","pulls_url":"https://api.github.com/repos/mikejerome/hueniversity/pulls{/number}","milestones_url":"https://api.github.com/repos/mikejerome/hueniversity/milestones{/number}","notifications_url":"https://api.github.com/repos/mikejerome/hueniversity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikejerome/hueniversity/labels{/name}","releases_url":"https://api.github.com/repos/mikejerome/hueniversity/releases{/id}","created_at":"2015-03-23T22:13:41Z","updated_at":"2015-03-23T22:13:41Z","pushed_at":"2015-03-24T00:52:03Z","git_url":"git://github.com/mikejerome/hueniversity.git","ssh_url":"git@github.com:mikejerome/hueniversity.git","clone_url":"https://github.com/mikejerome/hueniversity.git","svn_url":"https://github.com/mikejerome/hueniversity","homepage":null,"size":3565,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hueniverse:master","ref":"master","sha":"6cd028154278b2a94bd54edf997e94e36f086712","user":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"repo":{"id":31759095,"name":"hueniversity","full_name":"hueniverse/hueniversity","owner":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hueniverse/hueniversity","description":"Community learning experiment","fork":false,"url":"https://api.github.com/repos/hueniverse/hueniversity","forks_url":"https://api.github.com/repos/hueniverse/hueniversity/forks","keys_url":"https://api.github.com/repos/hueniverse/hueniversity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hueniverse/hueniversity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hueniverse/hueniversity/teams","hooks_url":"https://api.github.com/repos/hueniverse/hueniversity/hooks","issue_events_url":"https://api.github.com/repos/hueniverse/hueniversity/issues/events{/number}","events_url":"https://api.github.com/repos/hueniverse/hueniversity/events","assignees_url":"https://api.github.com/repos/hueniverse/hueniversity/assignees{/user}","branches_url":"https://api.github.com/repos/hueniverse/hueniversity/branches{/branch}","tags_url":"https://api.github.com/repos/hueniverse/hueniversity/tags","blobs_url":"https://api.github.com/repos/hueniverse/hueniversity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hueniverse/hueniversity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hueniverse/hueniversity/git/refs{/sha}","trees_url":"https://api.github.com/repos/hueniverse/hueniversity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hueniverse/hueniversity/statuses/{sha}","languages_url":"https://api.github.com/repos/hueniverse/hueniversity/languages","stargazers_url":"https://api.github.com/repos/hueniverse/hueniversity/stargazers","contributors_url":"https://api.github.com/repos/hueniverse/hueniversity/contributors","subscribers_url":"https://api.github.com/repos/hueniverse/hueniversity/subscribers","subscription_url":"https://api.github.com/repos/hueniverse/hueniversity/subscription","commits_url":"https://api.github.com/repos/hueniverse/hueniversity/commits{/sha}","git_commits_url":"https://api.github.com/repos/hueniverse/hueniversity/git/commits{/sha}","comments_url":"https://api.github.com/repos/hueniverse/hueniversity/comments{/number}","issue_comment_url":"https://api.github.com/repos/hueniverse/hueniversity/issues/comments{/number}","contents_url":"https://api.github.com/repos/hueniverse/hueniversity/contents/{+path}","compare_url":"https://api.github.com/repos/hueniverse/hueniversity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hueniverse/hueniversity/merges","archive_url":"https://api.github.com/repos/hueniverse/hueniversity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hueniverse/hueniversity/downloads","issues_url":"https://api.github.com/repos/hueniverse/hueniversity/issues{/number}","pulls_url":"https://api.github.com/repos/hueniverse/hueniversity/pulls{/number}","milestones_url":"https://api.github.com/repos/hueniverse/hueniversity/milestones{/number}","notifications_url":"https://api.github.com/repos/hueniverse/hueniversity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hueniverse/hueniversity/labels{/name}","releases_url":"https://api.github.com/repos/hueniverse/hueniversity/releases{/id}","created_at":"2015-03-06T08:09:03Z","updated_at":"2015-03-24T05:33:04Z","pushed_at":"2015-03-24T05:39:06Z","git_url":"git://github.com/hueniverse/hueniversity.git","ssh_url":"git@github.com:hueniverse/hueniversity.git","clone_url":"https://github.com/hueniverse/hueniversity.git","svn_url":"https://github.com/hueniverse/hueniversity","homepage":null,"size":3565,"stargazers_count":124,"watchers_count":124,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":30,"forks":95,"open_issues":30,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71"},"html":{"href":"https://github.com/hueniverse/hueniversity/pull/71"},"issue":{"href":"https://api.github.com/repos/hueniverse/hueniversity/issues/71"},"comments":{"href":"https://api.github.com/repos/hueniverse/hueniversity/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/hueniverse/hueniversity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hueniverse/hueniversity/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/hueniverse/hueniversity/statuses/3da89cdf00dcc30f811d45c53c9d3322752516b1"}}}}