{"action":"opened","number":791,"pull_request":{"url":"https://api.github.com/repos/NoamB/sorcery/pulls/791","id":80812551,"html_url":"https://github.com/NoamB/sorcery/pull/791","diff_url":"https://github.com/NoamB/sorcery/pull/791.diff","patch_url":"https://github.com/NoamB/sorcery/pull/791.patch","issue_url":"https://api.github.com/repos/NoamB/sorcery/issues/791","number":791,"state":"open","locked":false,"title":"Add 'reset_password_attempt_expired?' instance method","user":{"login":"tanraya","id":201753,"avatar_url":"https://avatars.githubusercontent.com/u/201753?v=3","gravatar_id":"","url":"https://api.github.com/users/tanraya","html_url":"https://github.com/tanraya","followers_url":"https://api.github.com/users/tanraya/followers","following_url":"https://api.github.com/users/tanraya/following{/other_user}","gists_url":"https://api.github.com/users/tanraya/gists{/gist_id}","starred_url":"https://api.github.com/users/tanraya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanraya/subscriptions","organizations_url":"https://api.github.com/users/tanraya/orgs","repos_url":"https://api.github.com/users/tanraya/repos","events_url":"https://api.github.com/users/tanraya/events{/privacy}","received_events_url":"https://api.github.com/users/tanraya/received_events","type":"User","site_admin":false},"body":"To check if time between emails has not passed since last email. I just moved existing code into separate method and made this method public. Now It's handy to check if time is expired and show appropriate message in the ResetPasswordsController.","created_at":"2016-08-10T15:14:26Z","updated_at":"2016-08-10T15:14:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a95e61ef1c1a7da8dd93c0b2ae9511a309b016cf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NoamB/sorcery/pulls/791/commits","review_comments_url":"https://api.github.com/repos/NoamB/sorcery/pulls/791/comments","review_comment_url":"https://api.github.com/repos/NoamB/sorcery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NoamB/sorcery/issues/791/comments","statuses_url":"https://api.github.com/repos/NoamB/sorcery/statuses/86b4952c1334ed1854bbe73e1e08fb070f407d45","head":{"label":"tanraya:master","ref":"master","sha":"86b4952c1334ed1854bbe73e1e08fb070f407d45","user":{"login":"tanraya","id":201753,"avatar_url":"https://avatars.githubusercontent.com/u/201753?v=3","gravatar_id":"","url":"https://api.github.com/users/tanraya","html_url":"https://github.com/tanraya","followers_url":"https://api.github.com/users/tanraya/followers","following_url":"https://api.github.com/users/tanraya/following{/other_user}","gists_url":"https://api.github.com/users/tanraya/gists{/gist_id}","starred_url":"https://api.github.com/users/tanraya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanraya/subscriptions","organizations_url":"https://api.github.com/users/tanraya/orgs","repos_url":"https://api.github.com/users/tanraya/repos","events_url":"https://api.github.com/users/tanraya/events{/privacy}","received_events_url":"https://api.github.com/users/tanraya/received_events","type":"User","site_admin":false},"repo":{"id":65389183,"name":"sorcery","full_name":"tanraya/sorcery","owner":{"login":"tanraya","id":201753,"avatar_url":"https://avatars.githubusercontent.com/u/201753?v=3","gravatar_id":"","url":"https://api.github.com/users/tanraya","html_url":"https://github.com/tanraya","followers_url":"https://api.github.com/users/tanraya/followers","following_url":"https://api.github.com/users/tanraya/following{/other_user}","gists_url":"https://api.github.com/users/tanraya/gists{/gist_id}","starred_url":"https://api.github.com/users/tanraya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanraya/subscriptions","organizations_url":"https://api.github.com/users/tanraya/orgs","repos_url":"https://api.github.com/users/tanraya/repos","events_url":"https://api.github.com/users/tanraya/events{/privacy}","received_events_url":"https://api.github.com/users/tanraya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tanraya/sorcery","description":"Magical authentication for Rails 3 & 4","fork":true,"url":"https://api.github.com/repos/tanraya/sorcery","forks_url":"https://api.github.com/repos/tanraya/sorcery/forks","keys_url":"https://api.github.com/repos/tanraya/sorcery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tanraya/sorcery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tanraya/sorcery/teams","hooks_url":"https://api.github.com/repos/tanraya/sorcery/hooks","issue_events_url":"https://api.github.com/repos/tanraya/sorcery/issues/events{/number}","events_url":"https://api.github.com/repos/tanraya/sorcery/events","assignees_url":"https://api.github.com/repos/tanraya/sorcery/assignees{/user}","branches_url":"https://api.github.com/repos/tanraya/sorcery/branches{/branch}","tags_url":"https://api.github.com/repos/tanraya/sorcery/tags","blobs_url":"https://api.github.com/repos/tanraya/sorcery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tanraya/sorcery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tanraya/sorcery/git/refs{/sha}","trees_url":"https://api.github.com/repos/tanraya/sorcery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tanraya/sorcery/statuses/{sha}","languages_url":"https://api.github.com/repos/tanraya/sorcery/languages","stargazers_url":"https://api.github.com/repos/tanraya/sorcery/stargazers","contributors_url":"https://api.github.com/repos/tanraya/sorcery/contributors","subscribers_url":"https://api.github.com/repos/tanraya/sorcery/subscribers","subscription_url":"https://api.github.com/repos/tanraya/sorcery/subscription","commits_url":"https://api.github.com/repos/tanraya/sorcery/commits{/sha}","git_commits_url":"https://api.github.com/repos/tanraya/sorcery/git/commits{/sha}","comments_url":"https://api.github.com/repos/tanraya/sorcery/comments{/number}","issue_comment_url":"https://api.github.com/repos/tanraya/sorcery/issues/comments{/number}","contents_url":"https://api.github.com/repos/tanraya/sorcery/contents/{+path}","compare_url":"https://api.github.com/repos/tanraya/sorcery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tanraya/sorcery/merges","archive_url":"https://api.github.com/repos/tanraya/sorcery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tanraya/sorcery/downloads","issues_url":"https://api.github.com/repos/tanraya/sorcery/issues{/number}","pulls_url":"https://api.github.com/repos/tanraya/sorcery/pulls{/number}","milestones_url":"https://api.github.com/repos/tanraya/sorcery/milestones{/number}","notifications_url":"https://api.github.com/repos/tanraya/sorcery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tanraya/sorcery/labels{/name}","releases_url":"https://api.github.com/repos/tanraya/sorcery/releases{/id}","deployments_url":"https://api.github.com/repos/tanraya/sorcery/deployments","created_at":"2016-08-10T14:28:00Z","updated_at":"2016-08-10T14:28:02Z","pushed_at":"2016-08-10T15:10:11Z","git_url":"git://github.com/tanraya/sorcery.git","ssh_url":"git@github.com:tanraya/sorcery.git","clone_url":"https://github.com/tanraya/sorcery.git","svn_url":"https://github.com/tanraya/sorcery","homepage":"","size":3043,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"NoamB:master","ref":"master","sha":"5344880298d13e81d5a343a24255eca0aa83ec16","user":{"login":"NoamB","id":9786,"avatar_url":"https://avatars.githubusercontent.com/u/9786?v=3","gravatar_id":"","url":"https://api.github.com/users/NoamB","html_url":"https://github.com/NoamB","followers_url":"https://api.github.com/users/NoamB/followers","following_url":"https://api.github.com/users/NoamB/following{/other_user}","gists_url":"https://api.github.com/users/NoamB/gists{/gist_id}","starred_url":"https://api.github.com/users/NoamB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoamB/subscriptions","organizations_url":"https://api.github.com/users/NoamB/orgs","repos_url":"https://api.github.com/users/NoamB/repos","events_url":"https://api.github.com/users/NoamB/events{/privacy}","received_events_url":"https://api.github.com/users/NoamB/received_events","type":"User","site_admin":false},"repo":{"id":1307476,"name":"sorcery","full_name":"NoamB/sorcery","owner":{"login":"NoamB","id":9786,"avatar_url":"https://avatars.githubusercontent.com/u/9786?v=3","gravatar_id":"","url":"https://api.github.com/users/NoamB","html_url":"https://github.com/NoamB","followers_url":"https://api.github.com/users/NoamB/followers","following_url":"https://api.github.com/users/NoamB/following{/other_user}","gists_url":"https://api.github.com/users/NoamB/gists{/gist_id}","starred_url":"https://api.github.com/users/NoamB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoamB/subscriptions","organizations_url":"https://api.github.com/users/NoamB/orgs","repos_url":"https://api.github.com/users/NoamB/repos","events_url":"https://api.github.com/users/NoamB/events{/privacy}","received_events_url":"https://api.github.com/users/NoamB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NoamB/sorcery","description":"Magical authentication for Rails 3 & 4","fork":false,"url":"https://api.github.com/repos/NoamB/sorcery","forks_url":"https://api.github.com/repos/NoamB/sorcery/forks","keys_url":"https://api.github.com/repos/NoamB/sorcery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoamB/sorcery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoamB/sorcery/teams","hooks_url":"https://api.github.com/repos/NoamB/sorcery/hooks","issue_events_url":"https://api.github.com/repos/NoamB/sorcery/issues/events{/number}","events_url":"https://api.github.com/repos/NoamB/sorcery/events","assignees_url":"https://api.github.com/repos/NoamB/sorcery/assignees{/user}","branches_url":"https://api.github.com/repos/NoamB/sorcery/branches{/branch}","tags_url":"https://api.github.com/repos/NoamB/sorcery/tags","blobs_url":"https://api.github.com/repos/NoamB/sorcery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoamB/sorcery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoamB/sorcery/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoamB/sorcery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoamB/sorcery/statuses/{sha}","languages_url":"https://api.github.com/repos/NoamB/sorcery/languages","stargazers_url":"https://api.github.com/repos/NoamB/sorcery/stargazers","contributors_url":"https://api.github.com/repos/NoamB/sorcery/contributors","subscribers_url":"https://api.github.com/repos/NoamB/sorcery/subscribers","subscription_url":"https://api.github.com/repos/NoamB/sorcery/subscription","commits_url":"https://api.github.com/repos/NoamB/sorcery/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoamB/sorcery/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoamB/sorcery/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoamB/sorcery/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoamB/sorcery/contents/{+path}","compare_url":"https://api.github.com/repos/NoamB/sorcery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoamB/sorcery/merges","archive_url":"https://api.github.com/repos/NoamB/sorcery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoamB/sorcery/downloads","issues_url":"https://api.github.com/repos/NoamB/sorcery/issues{/number}","pulls_url":"https://api.github.com/repos/NoamB/sorcery/pulls{/number}","milestones_url":"https://api.github.com/repos/NoamB/sorcery/milestones{/number}","notifications_url":"https://api.github.com/repos/NoamB/sorcery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoamB/sorcery/labels{/name}","releases_url":"https://api.github.com/repos/NoamB/sorcery/releases{/id}","deployments_url":"https://api.github.com/repos/NoamB/sorcery/deployments","created_at":"2011-01-29T23:44:22Z","updated_at":"2016-08-09T10:23:06Z","pushed_at":"2016-08-10T15:14:26Z","git_url":"git://github.com/NoamB/sorcery.git","ssh_url":"git@github.com:NoamB/sorcery.git","clone_url":"https://github.com/NoamB/sorcery.git","svn_url":"https://github.com/NoamB/sorcery","homepage":"","size":3043,"stargazers_count":2455,"watchers_count":2455,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":452,"mirror_url":null,"open_issues_count":87,"forks":452,"open_issues":87,"watchers":2455,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NoamB/sorcery/pulls/791"},"html":{"href":"https://github.com/NoamB/sorcery/pull/791"},"issue":{"href":"https://api.github.com/repos/NoamB/sorcery/issues/791"},"comments":{"href":"https://api.github.com/repos/NoamB/sorcery/issues/791/comments"},"review_comments":{"href":"https://api.github.com/repos/NoamB/sorcery/pulls/791/comments"},"review_comment":{"href":"https://api.github.com/repos/NoamB/sorcery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NoamB/sorcery/pulls/791/commits"},"statuses":{"href":"https://api.github.com/repos/NoamB/sorcery/statuses/86b4952c1334ed1854bbe73e1e08fb070f407d45"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"tanraya"}}