{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/1","id":30535043,"html_url":"https://github.com/ssravi/fifty-hypes/pull/1","diff_url":"https://github.com/ssravi/fifty-hypes/pull/1.diff","patch_url":"https://github.com/ssravi/fifty-hypes/pull/1.patch","issue_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues/1","number":1,"state":"open","locked":false,"title":"Preliminary Angular-Rails integration","user":{"login":"fromtheothershore","id":3848302,"avatar_url":"https://avatars.githubusercontent.com/u/3848302?v=3","gravatar_id":"","url":"https://api.github.com/users/fromtheothershore","html_url":"https://github.com/fromtheothershore","followers_url":"https://api.github.com/users/fromtheothershore/followers","following_url":"https://api.github.com/users/fromtheothershore/following{/other_user}","gists_url":"https://api.github.com/users/fromtheothershore/gists{/gist_id}","starred_url":"https://api.github.com/users/fromtheothershore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fromtheothershore/subscriptions","organizations_url":"https://api.github.com/users/fromtheothershore/orgs","repos_url":"https://api.github.com/users/fromtheothershore/repos","events_url":"https://api.github.com/users/fromtheothershore/events{/privacy}","received_events_url":"https://api.github.com/users/fromtheothershore/received_events","type":"User","site_admin":false},"body":"I mostly followed the project setup instructions on here http://www.intridea.com/blog/2014/9/25/how-to-set-up-angular-with-rails, combined with existing changes made in my own branch here https://github.com/fromtheothershore/50-hypocrites\r\n\r\nNot 100% sure how I feel about the current structure of directories, might want to move them around a bit (for example, most things I have read seem to suggest that the best practice is to place templates in app/asset/javascripts/templates). \r\n\r\nRight now there is one bug, when loading the index page. There is some discussion of the problem here https://github.com/pitr/angular-rails-templates/issues/71, I tried looking into it a bit but did not get very far. Maybe I am missing some important knowledge about how asset pipeline works. :)\r\n\r\ndrawStates.js is the directive that is in charge of everything on the page at the moment.\r\nhypocriteCtrl.js currently contains all the hard-coded data. When the database is ready, we can remove those hard-coded values and interact with model instead. \r\n\r\nAlso, I am not too familiar with coffeescript so I've just kept everything in plain JS.","created_at":"2015-03-05T07:15:03Z","updated_at":"2015-03-05T07:15:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4319eb33f6ebf8d2d27a6317c90687efacb00295","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues/1/comments","statuses_url":"https://api.github.com/repos/ssravi/fifty-hypes/statuses/170a2b91a00daf6a25fcf121b5c9996e37fecc21","head":{"label":"ssravi:angularize","ref":"angularize","sha":"170a2b91a00daf6a25fcf121b5c9996e37fecc21","user":{"login":"ssravi","id":2524185,"avatar_url":"https://avatars.githubusercontent.com/u/2524185?v=3","gravatar_id":"","url":"https://api.github.com/users/ssravi","html_url":"https://github.com/ssravi","followers_url":"https://api.github.com/users/ssravi/followers","following_url":"https://api.github.com/users/ssravi/following{/other_user}","gists_url":"https://api.github.com/users/ssravi/gists{/gist_id}","starred_url":"https://api.github.com/users/ssravi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssravi/subscriptions","organizations_url":"https://api.github.com/users/ssravi/orgs","repos_url":"https://api.github.com/users/ssravi/repos","events_url":"https://api.github.com/users/ssravi/events{/privacy}","received_events_url":"https://api.github.com/users/ssravi/received_events","type":"User","site_admin":false},"repo":{"id":31405046,"name":"fifty-hypes","full_name":"ssravi/fifty-hypes","owner":{"login":"ssravi","id":2524185,"avatar_url":"https://avatars.githubusercontent.com/u/2524185?v=3","gravatar_id":"","url":"https://api.github.com/users/ssravi","html_url":"https://github.com/ssravi","followers_url":"https://api.github.com/users/ssravi/followers","following_url":"https://api.github.com/users/ssravi/following{/other_user}","gists_url":"https://api.github.com/users/ssravi/gists{/gist_id}","starred_url":"https://api.github.com/users/ssravi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssravi/subscriptions","organizations_url":"https://api.github.com/users/ssravi/orgs","repos_url":"https://api.github.com/users/ssravi/repos","events_url":"https://api.github.com/users/ssravi/events{/privacy}","received_events_url":"https://api.github.com/users/ssravi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ssravi/fifty-hypes","description":null,"fork":false,"url":"https://api.github.com/repos/ssravi/fifty-hypes","forks_url":"https://api.github.com/repos/ssravi/fifty-hypes/forks","keys_url":"https://api.github.com/repos/ssravi/fifty-hypes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssravi/fifty-hypes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssravi/fifty-hypes/teams","hooks_url":"https://api.github.com/repos/ssravi/fifty-hypes/hooks","issue_events_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues/events{/number}","events_url":"https://api.github.com/repos/ssravi/fifty-hypes/events","assignees_url":"https://api.github.com/repos/ssravi/fifty-hypes/assignees{/user}","branches_url":"https://api.github.com/repos/ssravi/fifty-hypes/branches{/branch}","tags_url":"https://api.github.com/repos/ssravi/fifty-hypes/tags","blobs_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssravi/fifty-hypes/statuses/{sha}","languages_url":"https://api.github.com/repos/ssravi/fifty-hypes/languages","stargazers_url":"https://api.github.com/repos/ssravi/fifty-hypes/stargazers","contributors_url":"https://api.github.com/repos/ssravi/fifty-hypes/contributors","subscribers_url":"https://api.github.com/repos/ssravi/fifty-hypes/subscribers","subscription_url":"https://api.github.com/repos/ssravi/fifty-hypes/subscription","commits_url":"https://api.github.com/repos/ssravi/fifty-hypes/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssravi/fifty-hypes/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssravi/fifty-hypes/contents/{+path}","compare_url":"https://api.github.com/repos/ssravi/fifty-hypes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssravi/fifty-hypes/merges","archive_url":"https://api.github.com/repos/ssravi/fifty-hypes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssravi/fifty-hypes/downloads","issues_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues{/number}","pulls_url":"https://api.github.com/repos/ssravi/fifty-hypes/pulls{/number}","milestones_url":"https://api.github.com/repos/ssravi/fifty-hypes/milestones{/number}","notifications_url":"https://api.github.com/repos/ssravi/fifty-hypes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssravi/fifty-hypes/labels{/name}","releases_url":"https://api.github.com/repos/ssravi/fifty-hypes/releases{/id}","created_at":"2015-02-27T05:33:19Z","updated_at":"2015-02-27T05:36:58Z","pushed_at":"2015-03-05T06:52:26Z","git_url":"git://github.com/ssravi/fifty-hypes.git","ssh_url":"git@github.com:ssravi/fifty-hypes.git","clone_url":"https://github.com/ssravi/fifty-hypes.git","svn_url":"https://github.com/ssravi/fifty-hypes","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":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ssravi:master","ref":"master","sha":"3557ba47afbf6d3dd508e64f6ff63bc5b836aae3","user":{"login":"ssravi","id":2524185,"avatar_url":"https://avatars.githubusercontent.com/u/2524185?v=3","gravatar_id":"","url":"https://api.github.com/users/ssravi","html_url":"https://github.com/ssravi","followers_url":"https://api.github.com/users/ssravi/followers","following_url":"https://api.github.com/users/ssravi/following{/other_user}","gists_url":"https://api.github.com/users/ssravi/gists{/gist_id}","starred_url":"https://api.github.com/users/ssravi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssravi/subscriptions","organizations_url":"https://api.github.com/users/ssravi/orgs","repos_url":"https://api.github.com/users/ssravi/repos","events_url":"https://api.github.com/users/ssravi/events{/privacy}","received_events_url":"https://api.github.com/users/ssravi/received_events","type":"User","site_admin":false},"repo":{"id":31405046,"name":"fifty-hypes","full_name":"ssravi/fifty-hypes","owner":{"login":"ssravi","id":2524185,"avatar_url":"https://avatars.githubusercontent.com/u/2524185?v=3","gravatar_id":"","url":"https://api.github.com/users/ssravi","html_url":"https://github.com/ssravi","followers_url":"https://api.github.com/users/ssravi/followers","following_url":"https://api.github.com/users/ssravi/following{/other_user}","gists_url":"https://api.github.com/users/ssravi/gists{/gist_id}","starred_url":"https://api.github.com/users/ssravi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssravi/subscriptions","organizations_url":"https://api.github.com/users/ssravi/orgs","repos_url":"https://api.github.com/users/ssravi/repos","events_url":"https://api.github.com/users/ssravi/events{/privacy}","received_events_url":"https://api.github.com/users/ssravi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ssravi/fifty-hypes","description":null,"fork":false,"url":"https://api.github.com/repos/ssravi/fifty-hypes","forks_url":"https://api.github.com/repos/ssravi/fifty-hypes/forks","keys_url":"https://api.github.com/repos/ssravi/fifty-hypes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ssravi/fifty-hypes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ssravi/fifty-hypes/teams","hooks_url":"https://api.github.com/repos/ssravi/fifty-hypes/hooks","issue_events_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues/events{/number}","events_url":"https://api.github.com/repos/ssravi/fifty-hypes/events","assignees_url":"https://api.github.com/repos/ssravi/fifty-hypes/assignees{/user}","branches_url":"https://api.github.com/repos/ssravi/fifty-hypes/branches{/branch}","tags_url":"https://api.github.com/repos/ssravi/fifty-hypes/tags","blobs_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/refs{/sha}","trees_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ssravi/fifty-hypes/statuses/{sha}","languages_url":"https://api.github.com/repos/ssravi/fifty-hypes/languages","stargazers_url":"https://api.github.com/repos/ssravi/fifty-hypes/stargazers","contributors_url":"https://api.github.com/repos/ssravi/fifty-hypes/contributors","subscribers_url":"https://api.github.com/repos/ssravi/fifty-hypes/subscribers","subscription_url":"https://api.github.com/repos/ssravi/fifty-hypes/subscription","commits_url":"https://api.github.com/repos/ssravi/fifty-hypes/commits{/sha}","git_commits_url":"https://api.github.com/repos/ssravi/fifty-hypes/git/commits{/sha}","comments_url":"https://api.github.com/repos/ssravi/fifty-hypes/comments{/number}","issue_comment_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues/comments{/number}","contents_url":"https://api.github.com/repos/ssravi/fifty-hypes/contents/{+path}","compare_url":"https://api.github.com/repos/ssravi/fifty-hypes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ssravi/fifty-hypes/merges","archive_url":"https://api.github.com/repos/ssravi/fifty-hypes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ssravi/fifty-hypes/downloads","issues_url":"https://api.github.com/repos/ssravi/fifty-hypes/issues{/number}","pulls_url":"https://api.github.com/repos/ssravi/fifty-hypes/pulls{/number}","milestones_url":"https://api.github.com/repos/ssravi/fifty-hypes/milestones{/number}","notifications_url":"https://api.github.com/repos/ssravi/fifty-hypes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ssravi/fifty-hypes/labels{/name}","releases_url":"https://api.github.com/repos/ssravi/fifty-hypes/releases{/id}","created_at":"2015-02-27T05:33:19Z","updated_at":"2015-02-27T05:36:58Z","pushed_at":"2015-03-05T06:52:26Z","git_url":"git://github.com/ssravi/fifty-hypes.git","ssh_url":"git@github.com:ssravi/fifty-hypes.git","clone_url":"https://github.com/ssravi/fifty-hypes.git","svn_url":"https://github.com/ssravi/fifty-hypes","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":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/1"},"html":{"href":"https://github.com/ssravi/fifty-hypes/pull/1"},"issue":{"href":"https://api.github.com/repos/ssravi/fifty-hypes/issues/1"},"comments":{"href":"https://api.github.com/repos/ssravi/fifty-hypes/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ssravi/fifty-hypes/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ssravi/fifty-hypes/statuses/170a2b91a00daf6a25fcf121b5c9996e37fecc21"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":234,"deletions":167,"changed_files":12}}