{"action":"created","comment":{"url":"https://api.github.com/repos/bhaan/Apptivity/pulls/comments/25253086","id":25253086,"diff_hunk":"@@ -0,0 +1,40 @@\n+require 'mongo'\n+\n+module Apptivity \n+\tclass DBAdapter\n+\t\tinclude Mongo\n+\t\tdef initialize(host, port, db_name)\n+\t\t\t# May need to validate these arguments\t\n+\t\t\t@db = MongoClient.new(host, port, db_name).db(db_name)\n+\t\t\tunless @db.collection_names.include? \"APP_ROOT\"\n+\t\t\t\t@db.create_collection(\"APP_ROOT\")","path":"lib/DBAdapter.rb","position":10,"original_position":10,"commit_id":"f34f693a1363eee29624b53a2b487abedfa401ac","original_commit_id":"f34f693a1363eee29624b53a2b487abedfa401ac","user":{"login":"bhaan","id":3206948,"avatar_url":"https://avatars.githubusercontent.com/u/3206948?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaan","html_url":"https://github.com/bhaan","followers_url":"https://api.github.com/users/bhaan/followers","following_url":"https://api.github.com/users/bhaan/following{/other_user}","gists_url":"https://api.github.com/users/bhaan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaan/subscriptions","organizations_url":"https://api.github.com/users/bhaan/orgs","repos_url":"https://api.github.com/users/bhaan/repos","events_url":"https://api.github.com/users/bhaan/events{/privacy}","received_events_url":"https://api.github.com/users/bhaan/received_events","type":"User","site_admin":false},"body":"Could you create a Constant out of \"APP_ROOT\" (`APP_ROOT = \"APP_ROOT\"`) at the top of this class?","created_at":"2015-02-24T13:59:03Z","updated_at":"2015-02-24T13:59:03Z","html_url":"https://github.com/bhaan/Apptivity/pull/8#discussion_r25253086","pull_request_url":"https://api.github.com/repos/bhaan/Apptivity/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/bhaan/Apptivity/pulls/comments/25253086"},"html":{"href":"https://github.com/bhaan/Apptivity/pull/8#discussion_r25253086"},"pull_request":{"href":"https://api.github.com/repos/bhaan/Apptivity/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/bhaan/Apptivity/pulls/8","id":29870228,"html_url":"https://github.com/bhaan/Apptivity/pull/8","diff_url":"https://github.com/bhaan/Apptivity/pull/8.diff","patch_url":"https://github.com/bhaan/Apptivity/pull/8.patch","issue_url":"https://api.github.com/repos/bhaan/Apptivity/issues/8","number":8,"state":"open","locked":false,"title":"created DBAdapter; addresses issue #5","user":{"login":"jcrevier","id":10648432,"avatar_url":"https://avatars.githubusercontent.com/u/10648432?v=3","gravatar_id":"","url":"https://api.github.com/users/jcrevier","html_url":"https://github.com/jcrevier","followers_url":"https://api.github.com/users/jcrevier/followers","following_url":"https://api.github.com/users/jcrevier/following{/other_user}","gists_url":"https://api.github.com/users/jcrevier/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrevier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrevier/subscriptions","organizations_url":"https://api.github.com/users/jcrevier/orgs","repos_url":"https://api.github.com/users/jcrevier/repos","events_url":"https://api.github.com/users/jcrevier/events{/privacy}","received_events_url":"https://api.github.com/users/jcrevier/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-24T04:27:17Z","updated_at":"2015-02-24T13:59:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0654473b20463afeba1dd7d7cc1306e5c109a37","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bhaan/Apptivity/pulls/8/commits","review_comments_url":"https://api.github.com/repos/bhaan/Apptivity/pulls/8/comments","review_comment_url":"https://api.github.com/repos/bhaan/Apptivity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bhaan/Apptivity/issues/8/comments","statuses_url":"https://api.github.com/repos/bhaan/Apptivity/statuses/f34f693a1363eee29624b53a2b487abedfa401ac","head":{"label":"jcrevier:DBAdapter","ref":"DBAdapter","sha":"f34f693a1363eee29624b53a2b487abedfa401ac","user":{"login":"jcrevier","id":10648432,"avatar_url":"https://avatars.githubusercontent.com/u/10648432?v=3","gravatar_id":"","url":"https://api.github.com/users/jcrevier","html_url":"https://github.com/jcrevier","followers_url":"https://api.github.com/users/jcrevier/followers","following_url":"https://api.github.com/users/jcrevier/following{/other_user}","gists_url":"https://api.github.com/users/jcrevier/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrevier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrevier/subscriptions","organizations_url":"https://api.github.com/users/jcrevier/orgs","repos_url":"https://api.github.com/users/jcrevier/repos","events_url":"https://api.github.com/users/jcrevier/events{/privacy}","received_events_url":"https://api.github.com/users/jcrevier/received_events","type":"User","site_admin":false},"repo":{"id":29716079,"name":"Apptivity","full_name":"jcrevier/Apptivity","owner":{"login":"jcrevier","id":10648432,"avatar_url":"https://avatars.githubusercontent.com/u/10648432?v=3","gravatar_id":"","url":"https://api.github.com/users/jcrevier","html_url":"https://github.com/jcrevier","followers_url":"https://api.github.com/users/jcrevier/followers","following_url":"https://api.github.com/users/jcrevier/following{/other_user}","gists_url":"https://api.github.com/users/jcrevier/gists{/gist_id}","starred_url":"https://api.github.com/users/jcrevier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcrevier/subscriptions","organizations_url":"https://api.github.com/users/jcrevier/orgs","repos_url":"https://api.github.com/users/jcrevier/repos","events_url":"https://api.github.com/users/jcrevier/events{/privacy}","received_events_url":"https://api.github.com/users/jcrevier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcrevier/Apptivity","description":"","fork":true,"url":"https://api.github.com/repos/jcrevier/Apptivity","forks_url":"https://api.github.com/repos/jcrevier/Apptivity/forks","keys_url":"https://api.github.com/repos/jcrevier/Apptivity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcrevier/Apptivity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcrevier/Apptivity/teams","hooks_url":"https://api.github.com/repos/jcrevier/Apptivity/hooks","issue_events_url":"https://api.github.com/repos/jcrevier/Apptivity/issues/events{/number}","events_url":"https://api.github.com/repos/jcrevier/Apptivity/events","assignees_url":"https://api.github.com/repos/jcrevier/Apptivity/assignees{/user}","branches_url":"https://api.github.com/repos/jcrevier/Apptivity/branches{/branch}","tags_url":"https://api.github.com/repos/jcrevier/Apptivity/tags","blobs_url":"https://api.github.com/repos/jcrevier/Apptivity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcrevier/Apptivity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcrevier/Apptivity/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcrevier/Apptivity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcrevier/Apptivity/statuses/{sha}","languages_url":"https://api.github.com/repos/jcrevier/Apptivity/languages","stargazers_url":"https://api.github.com/repos/jcrevier/Apptivity/stargazers","contributors_url":"https://api.github.com/repos/jcrevier/Apptivity/contributors","subscribers_url":"https://api.github.com/repos/jcrevier/Apptivity/subscribers","subscription_url":"https://api.github.com/repos/jcrevier/Apptivity/subscription","commits_url":"https://api.github.com/repos/jcrevier/Apptivity/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcrevier/Apptivity/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcrevier/Apptivity/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcrevier/Apptivity/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcrevier/Apptivity/contents/{+path}","compare_url":"https://api.github.com/repos/jcrevier/Apptivity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcrevier/Apptivity/merges","archive_url":"https://api.github.com/repos/jcrevier/Apptivity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcrevier/Apptivity/downloads","issues_url":"https://api.github.com/repos/jcrevier/Apptivity/issues{/number}","pulls_url":"https://api.github.com/repos/jcrevier/Apptivity/pulls{/number}","milestones_url":"https://api.github.com/repos/jcrevier/Apptivity/milestones{/number}","notifications_url":"https://api.github.com/repos/jcrevier/Apptivity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcrevier/Apptivity/labels{/name}","releases_url":"https://api.github.com/repos/jcrevier/Apptivity/releases{/id}","created_at":"2015-01-23T04:12:24Z","updated_at":"2015-02-18T02:17:29Z","pushed_at":"2015-02-24T04:24:36Z","git_url":"git://github.com/jcrevier/Apptivity.git","ssh_url":"git@github.com:jcrevier/Apptivity.git","clone_url":"https://github.com/jcrevier/Apptivity.git","svn_url":"https://github.com/jcrevier/Apptivity","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"bhaan:master","ref":"master","sha":"15f51b09cd9ddc3e2ffc7ee1bd06fab174b81fab","user":{"login":"bhaan","id":3206948,"avatar_url":"https://avatars.githubusercontent.com/u/3206948?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaan","html_url":"https://github.com/bhaan","followers_url":"https://api.github.com/users/bhaan/followers","following_url":"https://api.github.com/users/bhaan/following{/other_user}","gists_url":"https://api.github.com/users/bhaan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaan/subscriptions","organizations_url":"https://api.github.com/users/bhaan/orgs","repos_url":"https://api.github.com/users/bhaan/repos","events_url":"https://api.github.com/users/bhaan/events{/privacy}","received_events_url":"https://api.github.com/users/bhaan/received_events","type":"User","site_admin":false},"repo":{"id":29554041,"name":"Apptivity","full_name":"bhaan/Apptivity","owner":{"login":"bhaan","id":3206948,"avatar_url":"https://avatars.githubusercontent.com/u/3206948?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaan","html_url":"https://github.com/bhaan","followers_url":"https://api.github.com/users/bhaan/followers","following_url":"https://api.github.com/users/bhaan/following{/other_user}","gists_url":"https://api.github.com/users/bhaan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaan/subscriptions","organizations_url":"https://api.github.com/users/bhaan/orgs","repos_url":"https://api.github.com/users/bhaan/repos","events_url":"https://api.github.com/users/bhaan/events{/privacy}","received_events_url":"https://api.github.com/users/bhaan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhaan/Apptivity","description":"","fork":false,"url":"https://api.github.com/repos/bhaan/Apptivity","forks_url":"https://api.github.com/repos/bhaan/Apptivity/forks","keys_url":"https://api.github.com/repos/bhaan/Apptivity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhaan/Apptivity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhaan/Apptivity/teams","hooks_url":"https://api.github.com/repos/bhaan/Apptivity/hooks","issue_events_url":"https://api.github.com/repos/bhaan/Apptivity/issues/events{/number}","events_url":"https://api.github.com/repos/bhaan/Apptivity/events","assignees_url":"https://api.github.com/repos/bhaan/Apptivity/assignees{/user}","branches_url":"https://api.github.com/repos/bhaan/Apptivity/branches{/branch}","tags_url":"https://api.github.com/repos/bhaan/Apptivity/tags","blobs_url":"https://api.github.com/repos/bhaan/Apptivity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhaan/Apptivity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhaan/Apptivity/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhaan/Apptivity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhaan/Apptivity/statuses/{sha}","languages_url":"https://api.github.com/repos/bhaan/Apptivity/languages","stargazers_url":"https://api.github.com/repos/bhaan/Apptivity/stargazers","contributors_url":"https://api.github.com/repos/bhaan/Apptivity/contributors","subscribers_url":"https://api.github.com/repos/bhaan/Apptivity/subscribers","subscription_url":"https://api.github.com/repos/bhaan/Apptivity/subscription","commits_url":"https://api.github.com/repos/bhaan/Apptivity/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhaan/Apptivity/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhaan/Apptivity/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhaan/Apptivity/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhaan/Apptivity/contents/{+path}","compare_url":"https://api.github.com/repos/bhaan/Apptivity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhaan/Apptivity/merges","archive_url":"https://api.github.com/repos/bhaan/Apptivity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhaan/Apptivity/downloads","issues_url":"https://api.github.com/repos/bhaan/Apptivity/issues{/number}","pulls_url":"https://api.github.com/repos/bhaan/Apptivity/pulls{/number}","milestones_url":"https://api.github.com/repos/bhaan/Apptivity/milestones{/number}","notifications_url":"https://api.github.com/repos/bhaan/Apptivity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhaan/Apptivity/labels{/name}","releases_url":"https://api.github.com/repos/bhaan/Apptivity/releases{/id}","created_at":"2015-01-20T21:51:06Z","updated_at":"2015-02-17T21:43:22Z","pushed_at":"2015-02-17T21:43:22Z","git_url":"git://github.com/bhaan/Apptivity.git","ssh_url":"git@github.com:bhaan/Apptivity.git","clone_url":"https://github.com/bhaan/Apptivity.git","svn_url":"https://github.com/bhaan/Apptivity","homepage":null,"size":215,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bhaan/Apptivity/pulls/8"},"html":{"href":"https://github.com/bhaan/Apptivity/pull/8"},"issue":{"href":"https://api.github.com/repos/bhaan/Apptivity/issues/8"},"comments":{"href":"https://api.github.com/repos/bhaan/Apptivity/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/bhaan/Apptivity/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/bhaan/Apptivity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bhaan/Apptivity/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/bhaan/Apptivity/statuses/f34f693a1363eee29624b53a2b487abedfa401ac"}}}}