{"action":"created","comment":{"url":"https://api.github.com/repos/brimatteng/bt-humon/pulls/comments/22551721","id":22551721,"diff_hunk":"@@ -24,6 +24,8 @@ gem \"simple_form\"\n gem \"title\"\n gem \"uglifier\"\n gem \"unicorn\"\n+gem \"oj\"","path":"Gemfile","position":4,"original_position":4,"commit_id":"0b7ef31daa6e0cb244d59ad80077a918f9c95ab0","original_commit_id":"0b7ef31daa6e0cb244d59ad80077a918f9c95ab0","user":{"login":"dthyresson","id":1051633,"avatar_url":"https://avatars.githubusercontent.com/u/1051633?v=3","gravatar_id":"","url":"https://api.github.com/users/dthyresson","html_url":"https://github.com/dthyresson","followers_url":"https://api.github.com/users/dthyresson/followers","following_url":"https://api.github.com/users/dthyresson/following{/other_user}","gists_url":"https://api.github.com/users/dthyresson/gists{/gist_id}","starred_url":"https://api.github.com/users/dthyresson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dthyresson/subscriptions","organizations_url":"https://api.github.com/users/dthyresson/orgs","repos_url":"https://api.github.com/users/dthyresson/repos","events_url":"https://api.github.com/users/dthyresson/events{/privacy}","received_events_url":"https://api.github.com/users/dthyresson/received_events","type":"User","site_admin":false},"body":"Have a look at the `oj` readme. I think there's an issue with Rails 4.1 (maybe 4.2?) that requires an additional helper gem `oj_mimic_json' to ensure that its parser is used.\r\n\r\nhttps://github.com/ohler55/oj#rails","created_at":"2015-01-06T21:02:02Z","updated_at":"2015-01-06T21:02:02Z","html_url":"https://github.com/brimatteng/bt-humon/pull/1#discussion_r22551721","pull_request_url":"https://api.github.com/repos/brimatteng/bt-humon/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/brimatteng/bt-humon/pulls/comments/22551721"},"html":{"href":"https://github.com/brimatteng/bt-humon/pull/1#discussion_r22551721"},"pull_request":{"href":"https://api.github.com/repos/brimatteng/bt-humon/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/brimatteng/bt-humon/pulls/1","id":26915614,"html_url":"https://github.com/brimatteng/bt-humon/pull/1","diff_url":"https://github.com/brimatteng/bt-humon/pull/1.diff","patch_url":"https://github.com/brimatteng/bt-humon/pull/1.patch","issue_url":"https://api.github.com/repos/brimatteng/bt-humon/issues/1","number":1,"state":"open","locked":false,"title":"Initial setup","user":{"login":"brimatteng","id":7143499,"avatar_url":"https://avatars.githubusercontent.com/u/7143499?v=3","gravatar_id":"","url":"https://api.github.com/users/brimatteng","html_url":"https://github.com/brimatteng","followers_url":"https://api.github.com/users/brimatteng/followers","following_url":"https://api.github.com/users/brimatteng/following{/other_user}","gists_url":"https://api.github.com/users/brimatteng/gists{/gist_id}","starred_url":"https://api.github.com/users/brimatteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brimatteng/subscriptions","organizations_url":"https://api.github.com/users/brimatteng/orgs","repos_url":"https://api.github.com/users/brimatteng/repos","events_url":"https://api.github.com/users/brimatteng/events{/privacy}","received_events_url":"https://api.github.com/users/brimatteng/received_events","type":"User","site_admin":false},"body":"Following the IOS on Rails book.\r\n \r\nAdd\r\n`gem \"oj\"`\r\n`gem \"jbuilder\"`\r\nto gem file for fast json parsing and creating json objects.\r\nand\r\n`gem \"rails_12factor\"`\r\nto staging and production for use with heroku .\r\n\r\nAdd api module and version one namespace to routes file. The book does this right off the bat without putting any resources in there so I did too. \r\n```\r\nscope module :api, defaults { format: 'json'} do\r\n    namespace :v1 do # V1 resources will go here\r\n    end\r\nend\r\n````","created_at":"2015-01-06T20:30:10Z","updated_at":"2015-01-06T21:02:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"630c39a72e286db0dc254eb659056e6e5ece190c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brimatteng/bt-humon/pulls/1/commits","review_comments_url":"https://api.github.com/repos/brimatteng/bt-humon/pulls/1/comments","review_comment_url":"https://api.github.com/repos/brimatteng/bt-humon/pulls/comments/{number}","comments_url":"https://api.github.com/repos/brimatteng/bt-humon/issues/1/comments","statuses_url":"https://api.github.com/repos/brimatteng/bt-humon/statuses/0b7ef31daa6e0cb244d59ad80077a918f9c95ab0","head":{"label":"brimatteng:initialSetup","ref":"initialSetup","sha":"0b7ef31daa6e0cb244d59ad80077a918f9c95ab0","user":{"login":"brimatteng","id":7143499,"avatar_url":"https://avatars.githubusercontent.com/u/7143499?v=3","gravatar_id":"","url":"https://api.github.com/users/brimatteng","html_url":"https://github.com/brimatteng","followers_url":"https://api.github.com/users/brimatteng/followers","following_url":"https://api.github.com/users/brimatteng/following{/other_user}","gists_url":"https://api.github.com/users/brimatteng/gists{/gist_id}","starred_url":"https://api.github.com/users/brimatteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brimatteng/subscriptions","organizations_url":"https://api.github.com/users/brimatteng/orgs","repos_url":"https://api.github.com/users/brimatteng/repos","events_url":"https://api.github.com/users/brimatteng/events{/privacy}","received_events_url":"https://api.github.com/users/brimatteng/received_events","type":"User","site_admin":false},"repo":{"id":28878377,"name":"bt-humon","full_name":"brimatteng/bt-humon","owner":{"login":"brimatteng","id":7143499,"avatar_url":"https://avatars.githubusercontent.com/u/7143499?v=3","gravatar_id":"","url":"https://api.github.com/users/brimatteng","html_url":"https://github.com/brimatteng","followers_url":"https://api.github.com/users/brimatteng/followers","following_url":"https://api.github.com/users/brimatteng/following{/other_user}","gists_url":"https://api.github.com/users/brimatteng/gists{/gist_id}","starred_url":"https://api.github.com/users/brimatteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brimatteng/subscriptions","organizations_url":"https://api.github.com/users/brimatteng/orgs","repos_url":"https://api.github.com/users/brimatteng/repos","events_url":"https://api.github.com/users/brimatteng/events{/privacy}","received_events_url":"https://api.github.com/users/brimatteng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brimatteng/bt-humon","description":"","fork":false,"url":"https://api.github.com/repos/brimatteng/bt-humon","forks_url":"https://api.github.com/repos/brimatteng/bt-humon/forks","keys_url":"https://api.github.com/repos/brimatteng/bt-humon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brimatteng/bt-humon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brimatteng/bt-humon/teams","hooks_url":"https://api.github.com/repos/brimatteng/bt-humon/hooks","issue_events_url":"https://api.github.com/repos/brimatteng/bt-humon/issues/events{/number}","events_url":"https://api.github.com/repos/brimatteng/bt-humon/events","assignees_url":"https://api.github.com/repos/brimatteng/bt-humon/assignees{/user}","branches_url":"https://api.github.com/repos/brimatteng/bt-humon/branches{/branch}","tags_url":"https://api.github.com/repos/brimatteng/bt-humon/tags","blobs_url":"https://api.github.com/repos/brimatteng/bt-humon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brimatteng/bt-humon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brimatteng/bt-humon/git/refs{/sha}","trees_url":"https://api.github.com/repos/brimatteng/bt-humon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brimatteng/bt-humon/statuses/{sha}","languages_url":"https://api.github.com/repos/brimatteng/bt-humon/languages","stargazers_url":"https://api.github.com/repos/brimatteng/bt-humon/stargazers","contributors_url":"https://api.github.com/repos/brimatteng/bt-humon/contributors","subscribers_url":"https://api.github.com/repos/brimatteng/bt-humon/subscribers","subscription_url":"https://api.github.com/repos/brimatteng/bt-humon/subscription","commits_url":"https://api.github.com/repos/brimatteng/bt-humon/commits{/sha}","git_commits_url":"https://api.github.com/repos/brimatteng/bt-humon/git/commits{/sha}","comments_url":"https://api.github.com/repos/brimatteng/bt-humon/comments{/number}","issue_comment_url":"https://api.github.com/repos/brimatteng/bt-humon/issues/comments/{number}","contents_url":"https://api.github.com/repos/brimatteng/bt-humon/contents/{+path}","compare_url":"https://api.github.com/repos/brimatteng/bt-humon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brimatteng/bt-humon/merges","archive_url":"https://api.github.com/repos/brimatteng/bt-humon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brimatteng/bt-humon/downloads","issues_url":"https://api.github.com/repos/brimatteng/bt-humon/issues{/number}","pulls_url":"https://api.github.com/repos/brimatteng/bt-humon/pulls{/number}","milestones_url":"https://api.github.com/repos/brimatteng/bt-humon/milestones{/number}","notifications_url":"https://api.github.com/repos/brimatteng/bt-humon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brimatteng/bt-humon/labels{/name}","releases_url":"https://api.github.com/repos/brimatteng/bt-humon/releases{/id}","created_at":"2015-01-06T18:59:17Z","updated_at":"2015-01-06T19:25:29Z","pushed_at":"2015-01-06T20:03:38Z","git_url":"git://github.com/brimatteng/bt-humon.git","ssh_url":"git@github.com:brimatteng/bt-humon.git","clone_url":"https://github.com/brimatteng/bt-humon.git","svn_url":"https://github.com/brimatteng/bt-humon","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"brimatteng:master","ref":"master","sha":"ad654294b2b465ea25e242c2faf9937a77021786","user":{"login":"brimatteng","id":7143499,"avatar_url":"https://avatars.githubusercontent.com/u/7143499?v=3","gravatar_id":"","url":"https://api.github.com/users/brimatteng","html_url":"https://github.com/brimatteng","followers_url":"https://api.github.com/users/brimatteng/followers","following_url":"https://api.github.com/users/brimatteng/following{/other_user}","gists_url":"https://api.github.com/users/brimatteng/gists{/gist_id}","starred_url":"https://api.github.com/users/brimatteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brimatteng/subscriptions","organizations_url":"https://api.github.com/users/brimatteng/orgs","repos_url":"https://api.github.com/users/brimatteng/repos","events_url":"https://api.github.com/users/brimatteng/events{/privacy}","received_events_url":"https://api.github.com/users/brimatteng/received_events","type":"User","site_admin":false},"repo":{"id":28878377,"name":"bt-humon","full_name":"brimatteng/bt-humon","owner":{"login":"brimatteng","id":7143499,"avatar_url":"https://avatars.githubusercontent.com/u/7143499?v=3","gravatar_id":"","url":"https://api.github.com/users/brimatteng","html_url":"https://github.com/brimatteng","followers_url":"https://api.github.com/users/brimatteng/followers","following_url":"https://api.github.com/users/brimatteng/following{/other_user}","gists_url":"https://api.github.com/users/brimatteng/gists{/gist_id}","starred_url":"https://api.github.com/users/brimatteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brimatteng/subscriptions","organizations_url":"https://api.github.com/users/brimatteng/orgs","repos_url":"https://api.github.com/users/brimatteng/repos","events_url":"https://api.github.com/users/brimatteng/events{/privacy}","received_events_url":"https://api.github.com/users/brimatteng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brimatteng/bt-humon","description":"","fork":false,"url":"https://api.github.com/repos/brimatteng/bt-humon","forks_url":"https://api.github.com/repos/brimatteng/bt-humon/forks","keys_url":"https://api.github.com/repos/brimatteng/bt-humon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brimatteng/bt-humon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brimatteng/bt-humon/teams","hooks_url":"https://api.github.com/repos/brimatteng/bt-humon/hooks","issue_events_url":"https://api.github.com/repos/brimatteng/bt-humon/issues/events{/number}","events_url":"https://api.github.com/repos/brimatteng/bt-humon/events","assignees_url":"https://api.github.com/repos/brimatteng/bt-humon/assignees{/user}","branches_url":"https://api.github.com/repos/brimatteng/bt-humon/branches{/branch}","tags_url":"https://api.github.com/repos/brimatteng/bt-humon/tags","blobs_url":"https://api.github.com/repos/brimatteng/bt-humon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brimatteng/bt-humon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brimatteng/bt-humon/git/refs{/sha}","trees_url":"https://api.github.com/repos/brimatteng/bt-humon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brimatteng/bt-humon/statuses/{sha}","languages_url":"https://api.github.com/repos/brimatteng/bt-humon/languages","stargazers_url":"https://api.github.com/repos/brimatteng/bt-humon/stargazers","contributors_url":"https://api.github.com/repos/brimatteng/bt-humon/contributors","subscribers_url":"https://api.github.com/repos/brimatteng/bt-humon/subscribers","subscription_url":"https://api.github.com/repos/brimatteng/bt-humon/subscription","commits_url":"https://api.github.com/repos/brimatteng/bt-humon/commits{/sha}","git_commits_url":"https://api.github.com/repos/brimatteng/bt-humon/git/commits{/sha}","comments_url":"https://api.github.com/repos/brimatteng/bt-humon/comments{/number}","issue_comment_url":"https://api.github.com/repos/brimatteng/bt-humon/issues/comments/{number}","contents_url":"https://api.github.com/repos/brimatteng/bt-humon/contents/{+path}","compare_url":"https://api.github.com/repos/brimatteng/bt-humon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brimatteng/bt-humon/merges","archive_url":"https://api.github.com/repos/brimatteng/bt-humon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brimatteng/bt-humon/downloads","issues_url":"https://api.github.com/repos/brimatteng/bt-humon/issues{/number}","pulls_url":"https://api.github.com/repos/brimatteng/bt-humon/pulls{/number}","milestones_url":"https://api.github.com/repos/brimatteng/bt-humon/milestones{/number}","notifications_url":"https://api.github.com/repos/brimatteng/bt-humon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brimatteng/bt-humon/labels{/name}","releases_url":"https://api.github.com/repos/brimatteng/bt-humon/releases{/id}","created_at":"2015-01-06T18:59:17Z","updated_at":"2015-01-06T19:25:29Z","pushed_at":"2015-01-06T20:03:38Z","git_url":"git://github.com/brimatteng/bt-humon.git","ssh_url":"git@github.com:brimatteng/bt-humon.git","clone_url":"https://github.com/brimatteng/bt-humon.git","svn_url":"https://github.com/brimatteng/bt-humon","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/brimatteng/bt-humon/pulls/1"},"html":{"href":"https://github.com/brimatteng/bt-humon/pull/1"},"issue":{"href":"https://api.github.com/repos/brimatteng/bt-humon/issues/1"},"comments":{"href":"https://api.github.com/repos/brimatteng/bt-humon/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/brimatteng/bt-humon/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/brimatteng/bt-humon/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/brimatteng/bt-humon/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/brimatteng/bt-humon/statuses/0b7ef31daa6e0cb244d59ad80077a918f9c95ab0"}}}}