{"action":"created","comment":{"url":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/comments/50411480","id":50411480,"diff_hunk":"@@ -0,0 +1,3 @@\n+class Api::BaseController < ActionController::Base\n+  protect_from_forgery with: :null_session  \n+end","path":"app/controllers/api/base_controller.rb","position":3,"original_position":3,"commit_id":"fdfa5106e2793bbc1f2f81b9bb6e4ccb9a93cad0","original_commit_id":"fdfa5106e2793bbc1f2f81b9bb6e4ccb9a93cad0","user":{"login":"ricardobsilva","id":10951588,"avatar_url":"https://avatars.githubusercontent.com/u/10951588?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardobsilva","html_url":"https://github.com/ricardobsilva","followers_url":"https://api.github.com/users/ricardobsilva/followers","following_url":"https://api.github.com/users/ricardobsilva/following{/other_user}","gists_url":"https://api.github.com/users/ricardobsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardobsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardobsilva/subscriptions","organizations_url":"https://api.github.com/users/ricardobsilva/orgs","repos_url":"https://api.github.com/users/ricardobsilva/repos","events_url":"https://api.github.com/users/ricardobsilva/events{/privacy}","received_events_url":"https://api.github.com/users/ricardobsilva/received_events","type":"User","site_admin":false},"body":"@vitortalaia  : sublime\r\n","created_at":"2016-01-21T15:06:29Z","updated_at":"2016-01-21T15:06:29Z","html_url":"https://github.com/pnaponoceno/learning-ruby/pull/56#discussion_r50411480","pull_request_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/comments/50411480"},"html":{"href":"https://github.com/pnaponoceno/learning-ruby/pull/56#discussion_r50411480"},"pull_request":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56","id":56562396,"html_url":"https://github.com/pnaponoceno/learning-ruby/pull/56","diff_url":"https://github.com/pnaponoceno/learning-ruby/pull/56.diff","patch_url":"https://github.com/pnaponoceno/learning-ruby/pull/56.patch","issue_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/issues/56","number":56,"state":"open","locked":false,"title":"base inicial para api e serviço para listar todos usuarios","user":{"login":"ricardobsilva","id":10951588,"avatar_url":"https://avatars.githubusercontent.com/u/10951588?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardobsilva","html_url":"https://github.com/ricardobsilva","followers_url":"https://api.github.com/users/ricardobsilva/followers","following_url":"https://api.github.com/users/ricardobsilva/following{/other_user}","gists_url":"https://api.github.com/users/ricardobsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardobsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardobsilva/subscriptions","organizations_url":"https://api.github.com/users/ricardobsilva/orgs","repos_url":"https://api.github.com/users/ricardobsilva/repos","events_url":"https://api.github.com/users/ricardobsilva/events{/privacy}","received_events_url":"https://api.github.com/users/ricardobsilva/received_events","type":"User","site_admin":false},"body":"  Nesse primeiro PR da API, além de preparar o básico para do desenvolvimento da mesma,  eu dividi o PR em três commits, para que fique mais explicito a forma que estou propondo o desenvolvimento a partir daqui.\r\n  Adicionei a gem FAKER para ser usada junto com a Factory Girl (os atributos estaticos da factory user estavam causando problemas ao criar os objetos os testes ).\r\n Gostaria de um feedback a respeito dos testes. Estou começando agora com TDD e não sei se estou testando de maneira correta.\r\n\r\nPara testar as requisições uso o postman.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/10951588/12439778/dcedb9d2-bf1b-11e5-87f9-8fb02229b5b7.png)\r\n\r\n\r\n\r\n","created_at":"2016-01-20T04:17:04Z","updated_at":"2016-01-21T15:06:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"074eeecb5aefd3fe1f1f9d65bcff48d2ed03c048","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56/commits","review_comments_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56/comments","review_comment_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/issues/56/comments","statuses_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/statuses/fdfa5106e2793bbc1f2f81b9bb6e4ccb9a93cad0","head":{"label":"ricardobsilva:master","ref":"master","sha":"fdfa5106e2793bbc1f2f81b9bb6e4ccb9a93cad0","user":{"login":"ricardobsilva","id":10951588,"avatar_url":"https://avatars.githubusercontent.com/u/10951588?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardobsilva","html_url":"https://github.com/ricardobsilva","followers_url":"https://api.github.com/users/ricardobsilva/followers","following_url":"https://api.github.com/users/ricardobsilva/following{/other_user}","gists_url":"https://api.github.com/users/ricardobsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardobsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardobsilva/subscriptions","organizations_url":"https://api.github.com/users/ricardobsilva/orgs","repos_url":"https://api.github.com/users/ricardobsilva/repos","events_url":"https://api.github.com/users/ricardobsilva/events{/privacy}","received_events_url":"https://api.github.com/users/ricardobsilva/received_events","type":"User","site_admin":false},"repo":{"id":49062648,"name":"learning-ruby","full_name":"ricardobsilva/learning-ruby","owner":{"login":"ricardobsilva","id":10951588,"avatar_url":"https://avatars.githubusercontent.com/u/10951588?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardobsilva","html_url":"https://github.com/ricardobsilva","followers_url":"https://api.github.com/users/ricardobsilva/followers","following_url":"https://api.github.com/users/ricardobsilva/following{/other_user}","gists_url":"https://api.github.com/users/ricardobsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardobsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardobsilva/subscriptions","organizations_url":"https://api.github.com/users/ricardobsilva/orgs","repos_url":"https://api.github.com/users/ricardobsilva/repos","events_url":"https://api.github.com/users/ricardobsilva/events{/privacy}","received_events_url":"https://api.github.com/users/ricardobsilva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ricardobsilva/learning-ruby","description":"Git para estudos de Ruby","fork":true,"url":"https://api.github.com/repos/ricardobsilva/learning-ruby","forks_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/forks","keys_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/teams","hooks_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/hooks","issue_events_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/events","assignees_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/tags","blobs_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/languages","stargazers_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/stargazers","contributors_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/contributors","subscribers_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/subscribers","subscription_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/subscription","commits_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/merges","archive_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/downloads","issues_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/labels{/name}","releases_url":"https://api.github.com/repos/ricardobsilva/learning-ruby/releases{/id}","created_at":"2016-01-05T11:47:47Z","updated_at":"2016-01-11T14:26:02Z","pushed_at":"2016-01-20T03:23:35Z","git_url":"git://github.com/ricardobsilva/learning-ruby.git","ssh_url":"git@github.com:ricardobsilva/learning-ruby.git","clone_url":"https://github.com/ricardobsilva/learning-ruby.git","svn_url":"https://github.com/ricardobsilva/learning-ruby","homepage":null,"size":88,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"pnaponoceno:master","ref":"master","sha":"b769c630dc4587c01c4bf30131260ba2acfdd553","user":{"login":"pnaponoceno","id":8226585,"avatar_url":"https://avatars.githubusercontent.com/u/8226585?v=3","gravatar_id":"","url":"https://api.github.com/users/pnaponoceno","html_url":"https://github.com/pnaponoceno","followers_url":"https://api.github.com/users/pnaponoceno/followers","following_url":"https://api.github.com/users/pnaponoceno/following{/other_user}","gists_url":"https://api.github.com/users/pnaponoceno/gists{/gist_id}","starred_url":"https://api.github.com/users/pnaponoceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnaponoceno/subscriptions","organizations_url":"https://api.github.com/users/pnaponoceno/orgs","repos_url":"https://api.github.com/users/pnaponoceno/repos","events_url":"https://api.github.com/users/pnaponoceno/events{/privacy}","received_events_url":"https://api.github.com/users/pnaponoceno/received_events","type":"User","site_admin":false},"repo":{"id":48884608,"name":"learning-ruby","full_name":"pnaponoceno/learning-ruby","owner":{"login":"pnaponoceno","id":8226585,"avatar_url":"https://avatars.githubusercontent.com/u/8226585?v=3","gravatar_id":"","url":"https://api.github.com/users/pnaponoceno","html_url":"https://github.com/pnaponoceno","followers_url":"https://api.github.com/users/pnaponoceno/followers","following_url":"https://api.github.com/users/pnaponoceno/following{/other_user}","gists_url":"https://api.github.com/users/pnaponoceno/gists{/gist_id}","starred_url":"https://api.github.com/users/pnaponoceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnaponoceno/subscriptions","organizations_url":"https://api.github.com/users/pnaponoceno/orgs","repos_url":"https://api.github.com/users/pnaponoceno/repos","events_url":"https://api.github.com/users/pnaponoceno/events{/privacy}","received_events_url":"https://api.github.com/users/pnaponoceno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pnaponoceno/learning-ruby","description":"Git para estudos de Ruby","fork":false,"url":"https://api.github.com/repos/pnaponoceno/learning-ruby","forks_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/forks","keys_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/teams","hooks_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/hooks","issue_events_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/events","assignees_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/tags","blobs_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/languages","stargazers_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/stargazers","contributors_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/contributors","subscribers_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/subscribers","subscription_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/subscription","commits_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/merges","archive_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/downloads","issues_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/labels{/name}","releases_url":"https://api.github.com/repos/pnaponoceno/learning-ruby/releases{/id}","created_at":"2016-01-01T17:32:46Z","updated_at":"2016-01-11T14:33:34Z","pushed_at":"2016-01-20T13:44:33Z","git_url":"git://github.com/pnaponoceno/learning-ruby.git","ssh_url":"git@github.com:pnaponoceno/learning-ruby.git","clone_url":"https://github.com/pnaponoceno/learning-ruby.git","svn_url":"https://github.com/pnaponoceno/learning-ruby","homepage":null,"size":108,"stargazers_count":29,"watchers_count":29,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":16,"forks":44,"open_issues":16,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56"},"html":{"href":"https://github.com/pnaponoceno/learning-ruby/pull/56"},"issue":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/issues/56"},"comments":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/pnaponoceno/learning-ruby/statuses/fdfa5106e2793bbc1f2f81b9bb6e4ccb9a93cad0"}}}}