{"action":"created","comment":{"url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/comments/54214485","id":54214485,"diff_hunk":"@@ -1,57 +1,68 @@\n+require 'rubygems'\n require 'sinatra'\n require 'sequel'\n+require 'sqlite3'\n \n-DB = Sequel.sqlite('database.sqlite3')\n enable :sessions\n+DB = Sequel.sqlite('database.sqlite3')\n+\n+class Doc < Sequel::Model(:docs)\n+end\n+class User < Sequel::Model(:users)\n+end\n+\n+\n \n   get '/' do\n     File.read(File.join('public', 'index.html'))\n   end\n \n-  get '/login' do\n-    File.read(File.join('public', 'login.html'))\n-  end\n-\n   get '/signup' do\n-    File.read(File.join('public', 'signup.html'))\n+    erb :signup\n   end\n   \n   get '/home' do\n-    dataset = DB[:users].select\n-    @docs = dataset.to_a\n-    File.read(File.join('public', 'home.html'))\n+    @docs = Doc.all\n+    @title = 'All Notes'\n+    erb :home\n+  end\n+\n+  get '/login' do","path":"app.rb","position":39,"original_position":39,"commit_id":"2775008a74db5b533a94ff001dfbca873dd0228e","original_commit_id":"2775008a74db5b533a94ff001dfbca873dd0228e","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Inconsistent indentation detected.<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-02-26T08:13:18Z","updated_at":"2016-02-26T08:13:18Z","html_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker/pull/1#discussion_r54214485","pull_request_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/comments/54214485"},"html":{"href":"https://github.com/akinwalehabib/DocumentManagement-Tracker/pull/1#discussion_r54214485"},"pull_request":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1","id":60806796,"html_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker/pull/1","diff_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker/pull/1.diff","patch_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker/pull/1.patch","issue_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/1","number":1,"state":"open","locked":false,"title":"Updated source code in refactor chore","user":{"login":"akinwalehabib","id":995989,"avatar_url":"https://avatars.githubusercontent.com/u/995989?v=3","gravatar_id":"","url":"https://api.github.com/users/akinwalehabib","html_url":"https://github.com/akinwalehabib","followers_url":"https://api.github.com/users/akinwalehabib/followers","following_url":"https://api.github.com/users/akinwalehabib/following{/other_user}","gists_url":"https://api.github.com/users/akinwalehabib/gists{/gist_id}","starred_url":"https://api.github.com/users/akinwalehabib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinwalehabib/subscriptions","organizations_url":"https://api.github.com/users/akinwalehabib/orgs","repos_url":"https://api.github.com/users/akinwalehabib/repos","events_url":"https://api.github.com/users/akinwalehabib/events{/privacy}","received_events_url":"https://api.github.com/users/akinwalehabib/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-26T08:13:11Z","updated_at":"2016-02-26T08:13:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"381601602475d2606fda3427310c8ce0d1bff186","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1/commits","review_comments_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1/comments","review_comment_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/1/comments","statuses_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/statuses/2775008a74db5b533a94ff001dfbca873dd0228e","head":{"label":"akinwalehabib:ch-ci-refactor","ref":"ch-ci-refactor","sha":"2775008a74db5b533a94ff001dfbca873dd0228e","user":{"login":"akinwalehabib","id":995989,"avatar_url":"https://avatars.githubusercontent.com/u/995989?v=3","gravatar_id":"","url":"https://api.github.com/users/akinwalehabib","html_url":"https://github.com/akinwalehabib","followers_url":"https://api.github.com/users/akinwalehabib/followers","following_url":"https://api.github.com/users/akinwalehabib/following{/other_user}","gists_url":"https://api.github.com/users/akinwalehabib/gists{/gist_id}","starred_url":"https://api.github.com/users/akinwalehabib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinwalehabib/subscriptions","organizations_url":"https://api.github.com/users/akinwalehabib/orgs","repos_url":"https://api.github.com/users/akinwalehabib/repos","events_url":"https://api.github.com/users/akinwalehabib/events{/privacy}","received_events_url":"https://api.github.com/users/akinwalehabib/received_events","type":"User","site_admin":false},"repo":{"id":52286562,"name":"DocumentManagement-Tracker","full_name":"akinwalehabib/DocumentManagement-Tracker","owner":{"login":"akinwalehabib","id":995989,"avatar_url":"https://avatars.githubusercontent.com/u/995989?v=3","gravatar_id":"","url":"https://api.github.com/users/akinwalehabib","html_url":"https://github.com/akinwalehabib","followers_url":"https://api.github.com/users/akinwalehabib/followers","following_url":"https://api.github.com/users/akinwalehabib/following{/other_user}","gists_url":"https://api.github.com/users/akinwalehabib/gists{/gist_id}","starred_url":"https://api.github.com/users/akinwalehabib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinwalehabib/subscriptions","organizations_url":"https://api.github.com/users/akinwalehabib/orgs","repos_url":"https://api.github.com/users/akinwalehabib/repos","events_url":"https://api.github.com/users/akinwalehabib/events{/privacy}","received_events_url":"https://api.github.com/users/akinwalehabib/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker","description":"A project made for presentation at Andela boot camp","fork":false,"url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker","forks_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/forks","keys_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/teams","hooks_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/hooks","issue_events_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/events{/number}","events_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/events","assignees_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/assignees{/user}","branches_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/branches{/branch}","tags_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/tags","blobs_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/languages","stargazers_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/stargazers","contributors_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/contributors","subscribers_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/subscribers","subscription_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/subscription","commits_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/contents/{+path}","compare_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/merges","archive_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/downloads","issues_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues{/number}","pulls_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/labels{/name}","releases_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/releases{/id}","deployments_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/deployments","created_at":"2016-02-22T16:17:01Z","updated_at":"2016-02-25T17:17:30Z","pushed_at":"2016-02-26T08:13:11Z","git_url":"git://github.com/akinwalehabib/DocumentManagement-Tracker.git","ssh_url":"git@github.com:akinwalehabib/DocumentManagement-Tracker.git","clone_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker.git","svn_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker","homepage":null,"size":3241,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"akinwalehabib:master","ref":"master","sha":"cd140d9abedd088e243b163295aa9f8624086d56","user":{"login":"akinwalehabib","id":995989,"avatar_url":"https://avatars.githubusercontent.com/u/995989?v=3","gravatar_id":"","url":"https://api.github.com/users/akinwalehabib","html_url":"https://github.com/akinwalehabib","followers_url":"https://api.github.com/users/akinwalehabib/followers","following_url":"https://api.github.com/users/akinwalehabib/following{/other_user}","gists_url":"https://api.github.com/users/akinwalehabib/gists{/gist_id}","starred_url":"https://api.github.com/users/akinwalehabib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinwalehabib/subscriptions","organizations_url":"https://api.github.com/users/akinwalehabib/orgs","repos_url":"https://api.github.com/users/akinwalehabib/repos","events_url":"https://api.github.com/users/akinwalehabib/events{/privacy}","received_events_url":"https://api.github.com/users/akinwalehabib/received_events","type":"User","site_admin":false},"repo":{"id":52286562,"name":"DocumentManagement-Tracker","full_name":"akinwalehabib/DocumentManagement-Tracker","owner":{"login":"akinwalehabib","id":995989,"avatar_url":"https://avatars.githubusercontent.com/u/995989?v=3","gravatar_id":"","url":"https://api.github.com/users/akinwalehabib","html_url":"https://github.com/akinwalehabib","followers_url":"https://api.github.com/users/akinwalehabib/followers","following_url":"https://api.github.com/users/akinwalehabib/following{/other_user}","gists_url":"https://api.github.com/users/akinwalehabib/gists{/gist_id}","starred_url":"https://api.github.com/users/akinwalehabib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinwalehabib/subscriptions","organizations_url":"https://api.github.com/users/akinwalehabib/orgs","repos_url":"https://api.github.com/users/akinwalehabib/repos","events_url":"https://api.github.com/users/akinwalehabib/events{/privacy}","received_events_url":"https://api.github.com/users/akinwalehabib/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker","description":"A project made for presentation at Andela boot camp","fork":false,"url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker","forks_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/forks","keys_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/teams","hooks_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/hooks","issue_events_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/events{/number}","events_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/events","assignees_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/assignees{/user}","branches_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/branches{/branch}","tags_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/tags","blobs_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/languages","stargazers_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/stargazers","contributors_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/contributors","subscribers_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/subscribers","subscription_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/subscription","commits_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/contents/{+path}","compare_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/merges","archive_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/downloads","issues_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues{/number}","pulls_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/labels{/name}","releases_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/releases{/id}","deployments_url":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/deployments","created_at":"2016-02-22T16:17:01Z","updated_at":"2016-02-25T17:17:30Z","pushed_at":"2016-02-26T08:13:11Z","git_url":"git://github.com/akinwalehabib/DocumentManagement-Tracker.git","ssh_url":"git@github.com:akinwalehabib/DocumentManagement-Tracker.git","clone_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker.git","svn_url":"https://github.com/akinwalehabib/DocumentManagement-Tracker","homepage":null,"size":3241,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1"},"html":{"href":"https://github.com/akinwalehabib/DocumentManagement-Tracker/pull/1"},"issue":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/1"},"comments":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/akinwalehabib/DocumentManagement-Tracker/statuses/2775008a74db5b533a94ff001dfbca873dd0228e"}}}}