{"action":"created","comment":{"url":"https://api.github.com/repos/sempliva/Witesy/pulls/comments/70195589","id":70195589,"diff_hunk":"@@ -0,0 +1,22 @@\n+=begin\n+Copyright (C) 2014  Witesy Contributors\n+\n+This program is free software: you can redistribute it and/or modify\n+it under the terms of the GNU General Public License as published by\n+the Free Software Foundation, either version 3 of the License, or\n+(at your option) any later version.\n+\n+This program is distributed in the hope that it will be useful,\n+but WITHOUT ANY WARRANTY; without even the implied warranty of\n+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+GNU General Public License for more details.\n+\n+You should have received a copy of the GNU General Public License\n+along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+=end\n+\n+class Token < ActiveRecord::Base\n+  validates :user, presence: true\n+  belongs_to :user\n+  enum token_type: { email: 0 }","path":"app/models/token.rb","position":21,"original_position":21,"commit_id":"4074a4afd6b217bf8a4058abe542e6b1f80854e4","original_commit_id":"4074a4afd6b217bf8a4058abe542e6b1f80854e4","user":{"login":"michelangelo","id":10796,"avatar_url":"https://avatars.githubusercontent.com/u/10796?v=3","gravatar_id":"","url":"https://api.github.com/users/michelangelo","html_url":"https://github.com/michelangelo","followers_url":"https://api.github.com/users/michelangelo/followers","following_url":"https://api.github.com/users/michelangelo/following{/other_user}","gists_url":"https://api.github.com/users/michelangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/michelangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelangelo/subscriptions","organizations_url":"https://api.github.com/users/michelangelo/orgs","repos_url":"https://api.github.com/users/michelangelo/repos","events_url":"https://api.github.com/users/michelangelo/events{/privacy}","received_events_url":"https://api.github.com/users/michelangelo/received_events","type":"User","site_admin":false},"body":"Unique?","created_at":"2016-07-11T02:28:09Z","updated_at":"2016-07-11T02:28:09Z","html_url":"https://github.com/sempliva/Witesy/pull/4#discussion_r70195589","pull_request_url":"https://api.github.com/repos/sempliva/Witesy/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/sempliva/Witesy/pulls/comments/70195589"},"html":{"href":"https://github.com/sempliva/Witesy/pull/4#discussion_r70195589"},"pull_request":{"href":"https://api.github.com/repos/sempliva/Witesy/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/sempliva/Witesy/pulls/4","id":75859798,"html_url":"https://github.com/sempliva/Witesy/pull/4","diff_url":"https://github.com/sempliva/Witesy/pull/4.diff","patch_url":"https://github.com/sempliva/Witesy/pull/4.patch","issue_url":"https://api.github.com/repos/sempliva/Witesy/issues/4","number":4,"state":"open","locked":false,"title":"Registration, Authintication, Role and Permission.","user":{"login":"tizianasellitto","id":1314811,"avatar_url":"https://avatars.githubusercontent.com/u/1314811?v=3","gravatar_id":"","url":"https://api.github.com/users/tizianasellitto","html_url":"https://github.com/tizianasellitto","followers_url":"https://api.github.com/users/tizianasellitto/followers","following_url":"https://api.github.com/users/tizianasellitto/following{/other_user}","gists_url":"https://api.github.com/users/tizianasellitto/gists{/gist_id}","starred_url":"https://api.github.com/users/tizianasellitto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tizianasellitto/subscriptions","organizations_url":"https://api.github.com/users/tizianasellitto/orgs","repos_url":"https://api.github.com/users/tizianasellitto/repos","events_url":"https://api.github.com/users/tizianasellitto/events{/privacy}","received_events_url":"https://api.github.com/users/tizianasellitto/received_events","type":"User","site_admin":false},"body":"Added User, Token and Role management with registration and authentication.\r\nAdded Support for sending email on registration.\r\nAdded Permission management of users based on roles(\"pundit gem\").\r\nRemove Test::Unit and adde Rspec for testing.","created_at":"2016-06-30T17:35:29Z","updated_at":"2016-07-11T02:28:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1666f3cf329cef29984f9fc2831e88f231aae23a","assignee":{"login":"michelangelo","id":10796,"avatar_url":"https://avatars.githubusercontent.com/u/10796?v=3","gravatar_id":"","url":"https://api.github.com/users/michelangelo","html_url":"https://github.com/michelangelo","followers_url":"https://api.github.com/users/michelangelo/followers","following_url":"https://api.github.com/users/michelangelo/following{/other_user}","gists_url":"https://api.github.com/users/michelangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/michelangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelangelo/subscriptions","organizations_url":"https://api.github.com/users/michelangelo/orgs","repos_url":"https://api.github.com/users/michelangelo/repos","events_url":"https://api.github.com/users/michelangelo/events{/privacy}","received_events_url":"https://api.github.com/users/michelangelo/received_events","type":"User","site_admin":false},"assignees":[{"login":"michelangelo","id":10796,"avatar_url":"https://avatars.githubusercontent.com/u/10796?v=3","gravatar_id":"","url":"https://api.github.com/users/michelangelo","html_url":"https://github.com/michelangelo","followers_url":"https://api.github.com/users/michelangelo/followers","following_url":"https://api.github.com/users/michelangelo/following{/other_user}","gists_url":"https://api.github.com/users/michelangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/michelangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelangelo/subscriptions","organizations_url":"https://api.github.com/users/michelangelo/orgs","repos_url":"https://api.github.com/users/michelangelo/repos","events_url":"https://api.github.com/users/michelangelo/events{/privacy}","received_events_url":"https://api.github.com/users/michelangelo/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sempliva/Witesy/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sempliva/Witesy/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sempliva/Witesy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sempliva/Witesy/issues/4/comments","statuses_url":"https://api.github.com/repos/sempliva/Witesy/statuses/4074a4afd6b217bf8a4058abe542e6b1f80854e4","head":{"label":"sempliva:role_permission","ref":"role_permission","sha":"4074a4afd6b217bf8a4058abe542e6b1f80854e4","user":{"login":"sempliva","id":18060320,"avatar_url":"https://avatars.githubusercontent.com/u/18060320?v=3","gravatar_id":"","url":"https://api.github.com/users/sempliva","html_url":"https://github.com/sempliva","followers_url":"https://api.github.com/users/sempliva/followers","following_url":"https://api.github.com/users/sempliva/following{/other_user}","gists_url":"https://api.github.com/users/sempliva/gists{/gist_id}","starred_url":"https://api.github.com/users/sempliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sempliva/subscriptions","organizations_url":"https://api.github.com/users/sempliva/orgs","repos_url":"https://api.github.com/users/sempliva/repos","events_url":"https://api.github.com/users/sempliva/events{/privacy}","received_events_url":"https://api.github.com/users/sempliva/received_events","type":"Organization","site_admin":false},"repo":{"id":59399400,"name":"Witesy","full_name":"sempliva/Witesy","owner":{"login":"sempliva","id":18060320,"avatar_url":"https://avatars.githubusercontent.com/u/18060320?v=3","gravatar_id":"","url":"https://api.github.com/users/sempliva","html_url":"https://github.com/sempliva","followers_url":"https://api.github.com/users/sempliva/followers","following_url":"https://api.github.com/users/sempliva/following{/other_user}","gists_url":"https://api.github.com/users/sempliva/gists{/gist_id}","starred_url":"https://api.github.com/users/sempliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sempliva/subscriptions","organizations_url":"https://api.github.com/users/sempliva/orgs","repos_url":"https://api.github.com/users/sempliva/repos","events_url":"https://api.github.com/users/sempliva/events{/privacy}","received_events_url":"https://api.github.com/users/sempliva/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sempliva/Witesy","description":"","fork":false,"url":"https://api.github.com/repos/sempliva/Witesy","forks_url":"https://api.github.com/repos/sempliva/Witesy/forks","keys_url":"https://api.github.com/repos/sempliva/Witesy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sempliva/Witesy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sempliva/Witesy/teams","hooks_url":"https://api.github.com/repos/sempliva/Witesy/hooks","issue_events_url":"https://api.github.com/repos/sempliva/Witesy/issues/events{/number}","events_url":"https://api.github.com/repos/sempliva/Witesy/events","assignees_url":"https://api.github.com/repos/sempliva/Witesy/assignees{/user}","branches_url":"https://api.github.com/repos/sempliva/Witesy/branches{/branch}","tags_url":"https://api.github.com/repos/sempliva/Witesy/tags","blobs_url":"https://api.github.com/repos/sempliva/Witesy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sempliva/Witesy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sempliva/Witesy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sempliva/Witesy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sempliva/Witesy/statuses/{sha}","languages_url":"https://api.github.com/repos/sempliva/Witesy/languages","stargazers_url":"https://api.github.com/repos/sempliva/Witesy/stargazers","contributors_url":"https://api.github.com/repos/sempliva/Witesy/contributors","subscribers_url":"https://api.github.com/repos/sempliva/Witesy/subscribers","subscription_url":"https://api.github.com/repos/sempliva/Witesy/subscription","commits_url":"https://api.github.com/repos/sempliva/Witesy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sempliva/Witesy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sempliva/Witesy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sempliva/Witesy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sempliva/Witesy/contents/{+path}","compare_url":"https://api.github.com/repos/sempliva/Witesy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sempliva/Witesy/merges","archive_url":"https://api.github.com/repos/sempliva/Witesy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sempliva/Witesy/downloads","issues_url":"https://api.github.com/repos/sempliva/Witesy/issues{/number}","pulls_url":"https://api.github.com/repos/sempliva/Witesy/pulls{/number}","milestones_url":"https://api.github.com/repos/sempliva/Witesy/milestones{/number}","notifications_url":"https://api.github.com/repos/sempliva/Witesy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sempliva/Witesy/labels{/name}","releases_url":"https://api.github.com/repos/sempliva/Witesy/releases{/id}","deployments_url":"https://api.github.com/repos/sempliva/Witesy/deployments","created_at":"2016-05-22T07:00:30Z","updated_at":"2016-06-06T23:10:34Z","pushed_at":"2016-07-09T19:04:03Z","git_url":"git://github.com/sempliva/Witesy.git","ssh_url":"git@github.com:sempliva/Witesy.git","clone_url":"https://github.com/sempliva/Witesy.git","svn_url":"https://github.com/sempliva/Witesy","homepage":null,"size":418,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"sempliva:master","ref":"master","sha":"bf506f36c70a036fdafac1a1614662c923239c2f","user":{"login":"sempliva","id":18060320,"avatar_url":"https://avatars.githubusercontent.com/u/18060320?v=3","gravatar_id":"","url":"https://api.github.com/users/sempliva","html_url":"https://github.com/sempliva","followers_url":"https://api.github.com/users/sempliva/followers","following_url":"https://api.github.com/users/sempliva/following{/other_user}","gists_url":"https://api.github.com/users/sempliva/gists{/gist_id}","starred_url":"https://api.github.com/users/sempliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sempliva/subscriptions","organizations_url":"https://api.github.com/users/sempliva/orgs","repos_url":"https://api.github.com/users/sempliva/repos","events_url":"https://api.github.com/users/sempliva/events{/privacy}","received_events_url":"https://api.github.com/users/sempliva/received_events","type":"Organization","site_admin":false},"repo":{"id":59399400,"name":"Witesy","full_name":"sempliva/Witesy","owner":{"login":"sempliva","id":18060320,"avatar_url":"https://avatars.githubusercontent.com/u/18060320?v=3","gravatar_id":"","url":"https://api.github.com/users/sempliva","html_url":"https://github.com/sempliva","followers_url":"https://api.github.com/users/sempliva/followers","following_url":"https://api.github.com/users/sempliva/following{/other_user}","gists_url":"https://api.github.com/users/sempliva/gists{/gist_id}","starred_url":"https://api.github.com/users/sempliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sempliva/subscriptions","organizations_url":"https://api.github.com/users/sempliva/orgs","repos_url":"https://api.github.com/users/sempliva/repos","events_url":"https://api.github.com/users/sempliva/events{/privacy}","received_events_url":"https://api.github.com/users/sempliva/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sempliva/Witesy","description":"","fork":false,"url":"https://api.github.com/repos/sempliva/Witesy","forks_url":"https://api.github.com/repos/sempliva/Witesy/forks","keys_url":"https://api.github.com/repos/sempliva/Witesy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sempliva/Witesy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sempliva/Witesy/teams","hooks_url":"https://api.github.com/repos/sempliva/Witesy/hooks","issue_events_url":"https://api.github.com/repos/sempliva/Witesy/issues/events{/number}","events_url":"https://api.github.com/repos/sempliva/Witesy/events","assignees_url":"https://api.github.com/repos/sempliva/Witesy/assignees{/user}","branches_url":"https://api.github.com/repos/sempliva/Witesy/branches{/branch}","tags_url":"https://api.github.com/repos/sempliva/Witesy/tags","blobs_url":"https://api.github.com/repos/sempliva/Witesy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sempliva/Witesy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sempliva/Witesy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sempliva/Witesy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sempliva/Witesy/statuses/{sha}","languages_url":"https://api.github.com/repos/sempliva/Witesy/languages","stargazers_url":"https://api.github.com/repos/sempliva/Witesy/stargazers","contributors_url":"https://api.github.com/repos/sempliva/Witesy/contributors","subscribers_url":"https://api.github.com/repos/sempliva/Witesy/subscribers","subscription_url":"https://api.github.com/repos/sempliva/Witesy/subscription","commits_url":"https://api.github.com/repos/sempliva/Witesy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sempliva/Witesy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sempliva/Witesy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sempliva/Witesy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sempliva/Witesy/contents/{+path}","compare_url":"https://api.github.com/repos/sempliva/Witesy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sempliva/Witesy/merges","archive_url":"https://api.github.com/repos/sempliva/Witesy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sempliva/Witesy/downloads","issues_url":"https://api.github.com/repos/sempliva/Witesy/issues{/number}","pulls_url":"https://api.github.com/repos/sempliva/Witesy/pulls{/number}","milestones_url":"https://api.github.com/repos/sempliva/Witesy/milestones{/number}","notifications_url":"https://api.github.com/repos/sempliva/Witesy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sempliva/Witesy/labels{/name}","releases_url":"https://api.github.com/repos/sempliva/Witesy/releases{/id}","deployments_url":"https://api.github.com/repos/sempliva/Witesy/deployments","created_at":"2016-05-22T07:00:30Z","updated_at":"2016-06-06T23:10:34Z","pushed_at":"2016-07-09T19:04:03Z","git_url":"git://github.com/sempliva/Witesy.git","ssh_url":"git@github.com:sempliva/Witesy.git","clone_url":"https://github.com/sempliva/Witesy.git","svn_url":"https://github.com/sempliva/Witesy","homepage":null,"size":418,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sempliva/Witesy/pulls/4"},"html":{"href":"https://github.com/sempliva/Witesy/pull/4"},"issue":{"href":"https://api.github.com/repos/sempliva/Witesy/issues/4"},"comments":{"href":"https://api.github.com/repos/sempliva/Witesy/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sempliva/Witesy/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sempliva/Witesy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sempliva/Witesy/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sempliva/Witesy/statuses/4074a4afd6b217bf8a4058abe542e6b1f80854e4"}}}}
{"actor":{"display_login":"michelangelo"}}