{"action":"opened","number":3921,"pull_request":{"url":"https://api.github.com/repos/plataformatec/devise/pulls/3921","id":57578809,"html_url":"https://github.com/plataformatec/devise/pull/3921","diff_url":"https://github.com/plataformatec/devise/pull/3921.diff","patch_url":"https://github.com/plataformatec/devise/pull/3921.patch","issue_url":"https://api.github.com/repos/plataformatec/devise/issues/3921","number":3921,"state":"open","locked":false,"title":"Reduced complexity of multiple methods","user":{"login":"oss92","id":6284234,"avatar_url":"https://avatars.githubusercontent.com/u/6284234?v=3","gravatar_id":"","url":"https://api.github.com/users/oss92","html_url":"https://github.com/oss92","followers_url":"https://api.github.com/users/oss92/followers","following_url":"https://api.github.com/users/oss92/following{/other_user}","gists_url":"https://api.github.com/users/oss92/gists{/gist_id}","starred_url":"https://api.github.com/users/oss92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oss92/subscriptions","organizations_url":"https://api.github.com/users/oss92/orgs","repos_url":"https://api.github.com/users/oss92/repos","events_url":"https://api.github.com/users/oss92/events{/privacy}","received_events_url":"https://api.github.com/users/oss92/received_events","type":"User","site_admin":false},"body":"* Introduced `DeviseController.set_flash_message!` for conditional flash messages setting to reduce method complexity.\r\n\r\n* Reduced complexity of `DeviseHelper#devise_error_messages!` and `Devise::FailureApp#scope_url`.\r\n\r\n* Changed `confirm!` to `confirm` in tests.","created_at":"2016-01-28T22:45:21Z","updated_at":"2016-01-28T22:45:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"512312df3e51814933b1d9e9ea2895c3ed6f4d27","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plataformatec/devise/pulls/3921/commits","review_comments_url":"https://api.github.com/repos/plataformatec/devise/pulls/3921/comments","review_comment_url":"https://api.github.com/repos/plataformatec/devise/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/3921/comments","statuses_url":"https://api.github.com/repos/plataformatec/devise/statuses/072bf3ecf054b73f2678f0e6de2cd8609ef28e10","head":{"label":"oss92:reduce_complexity","ref":"reduce_complexity","sha":"072bf3ecf054b73f2678f0e6de2cd8609ef28e10","user":{"login":"oss92","id":6284234,"avatar_url":"https://avatars.githubusercontent.com/u/6284234?v=3","gravatar_id":"","url":"https://api.github.com/users/oss92","html_url":"https://github.com/oss92","followers_url":"https://api.github.com/users/oss92/followers","following_url":"https://api.github.com/users/oss92/following{/other_user}","gists_url":"https://api.github.com/users/oss92/gists{/gist_id}","starred_url":"https://api.github.com/users/oss92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oss92/subscriptions","organizations_url":"https://api.github.com/users/oss92/orgs","repos_url":"https://api.github.com/users/oss92/repos","events_url":"https://api.github.com/users/oss92/events{/privacy}","received_events_url":"https://api.github.com/users/oss92/received_events","type":"User","site_admin":false},"repo":{"id":50618481,"name":"devise","full_name":"oss92/devise","owner":{"login":"oss92","id":6284234,"avatar_url":"https://avatars.githubusercontent.com/u/6284234?v=3","gravatar_id":"","url":"https://api.github.com/users/oss92","html_url":"https://github.com/oss92","followers_url":"https://api.github.com/users/oss92/followers","following_url":"https://api.github.com/users/oss92/following{/other_user}","gists_url":"https://api.github.com/users/oss92/gists{/gist_id}","starred_url":"https://api.github.com/users/oss92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oss92/subscriptions","organizations_url":"https://api.github.com/users/oss92/orgs","repos_url":"https://api.github.com/users/oss92/repos","events_url":"https://api.github.com/users/oss92/events{/privacy}","received_events_url":"https://api.github.com/users/oss92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oss92/devise","description":"Flexible authentication solution for Rails with Warden.","fork":true,"url":"https://api.github.com/repos/oss92/devise","forks_url":"https://api.github.com/repos/oss92/devise/forks","keys_url":"https://api.github.com/repos/oss92/devise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oss92/devise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oss92/devise/teams","hooks_url":"https://api.github.com/repos/oss92/devise/hooks","issue_events_url":"https://api.github.com/repos/oss92/devise/issues/events{/number}","events_url":"https://api.github.com/repos/oss92/devise/events","assignees_url":"https://api.github.com/repos/oss92/devise/assignees{/user}","branches_url":"https://api.github.com/repos/oss92/devise/branches{/branch}","tags_url":"https://api.github.com/repos/oss92/devise/tags","blobs_url":"https://api.github.com/repos/oss92/devise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oss92/devise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oss92/devise/git/refs{/sha}","trees_url":"https://api.github.com/repos/oss92/devise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oss92/devise/statuses/{sha}","languages_url":"https://api.github.com/repos/oss92/devise/languages","stargazers_url":"https://api.github.com/repos/oss92/devise/stargazers","contributors_url":"https://api.github.com/repos/oss92/devise/contributors","subscribers_url":"https://api.github.com/repos/oss92/devise/subscribers","subscription_url":"https://api.github.com/repos/oss92/devise/subscription","commits_url":"https://api.github.com/repos/oss92/devise/commits{/sha}","git_commits_url":"https://api.github.com/repos/oss92/devise/git/commits{/sha}","comments_url":"https://api.github.com/repos/oss92/devise/comments{/number}","issue_comment_url":"https://api.github.com/repos/oss92/devise/issues/comments{/number}","contents_url":"https://api.github.com/repos/oss92/devise/contents/{+path}","compare_url":"https://api.github.com/repos/oss92/devise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oss92/devise/merges","archive_url":"https://api.github.com/repos/oss92/devise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oss92/devise/downloads","issues_url":"https://api.github.com/repos/oss92/devise/issues{/number}","pulls_url":"https://api.github.com/repos/oss92/devise/pulls{/number}","milestones_url":"https://api.github.com/repos/oss92/devise/milestones{/number}","notifications_url":"https://api.github.com/repos/oss92/devise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oss92/devise/labels{/name}","releases_url":"https://api.github.com/repos/oss92/devise/releases{/id}","deployments_url":"https://api.github.com/repos/oss92/devise/deployments","created_at":"2016-01-28T22:27:21Z","updated_at":"2016-01-28T22:27:27Z","pushed_at":"2016-01-28T22:43:23Z","git_url":"git://github.com/oss92/devise.git","ssh_url":"git@github.com:oss92/devise.git","clone_url":"https://github.com/oss92/devise.git","svn_url":"https://github.com/oss92/devise","homepage":"http://blog.plataformatec.com.br/tag/devise/","size":4311,"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":"plataformatec:master","ref":"master","sha":"ffe9d6d406e79108cf32a2c6a1d0b3828849c40b","user":{"login":"plataformatec","id":127679,"avatar_url":"https://avatars.githubusercontent.com/u/127679?v=3","gravatar_id":"","url":"https://api.github.com/users/plataformatec","html_url":"https://github.com/plataformatec","followers_url":"https://api.github.com/users/plataformatec/followers","following_url":"https://api.github.com/users/plataformatec/following{/other_user}","gists_url":"https://api.github.com/users/plataformatec/gists{/gist_id}","starred_url":"https://api.github.com/users/plataformatec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plataformatec/subscriptions","organizations_url":"https://api.github.com/users/plataformatec/orgs","repos_url":"https://api.github.com/users/plataformatec/repos","events_url":"https://api.github.com/users/plataformatec/events{/privacy}","received_events_url":"https://api.github.com/users/plataformatec/received_events","type":"Organization","site_admin":false},"repo":{"id":308770,"name":"devise","full_name":"plataformatec/devise","owner":{"login":"plataformatec","id":127679,"avatar_url":"https://avatars.githubusercontent.com/u/127679?v=3","gravatar_id":"","url":"https://api.github.com/users/plataformatec","html_url":"https://github.com/plataformatec","followers_url":"https://api.github.com/users/plataformatec/followers","following_url":"https://api.github.com/users/plataformatec/following{/other_user}","gists_url":"https://api.github.com/users/plataformatec/gists{/gist_id}","starred_url":"https://api.github.com/users/plataformatec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plataformatec/subscriptions","organizations_url":"https://api.github.com/users/plataformatec/orgs","repos_url":"https://api.github.com/users/plataformatec/repos","events_url":"https://api.github.com/users/plataformatec/events{/privacy}","received_events_url":"https://api.github.com/users/plataformatec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plataformatec/devise","description":"Flexible authentication solution for Rails with Warden.","fork":false,"url":"https://api.github.com/repos/plataformatec/devise","forks_url":"https://api.github.com/repos/plataformatec/devise/forks","keys_url":"https://api.github.com/repos/plataformatec/devise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plataformatec/devise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plataformatec/devise/teams","hooks_url":"https://api.github.com/repos/plataformatec/devise/hooks","issue_events_url":"https://api.github.com/repos/plataformatec/devise/issues/events{/number}","events_url":"https://api.github.com/repos/plataformatec/devise/events","assignees_url":"https://api.github.com/repos/plataformatec/devise/assignees{/user}","branches_url":"https://api.github.com/repos/plataformatec/devise/branches{/branch}","tags_url":"https://api.github.com/repos/plataformatec/devise/tags","blobs_url":"https://api.github.com/repos/plataformatec/devise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plataformatec/devise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plataformatec/devise/git/refs{/sha}","trees_url":"https://api.github.com/repos/plataformatec/devise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plataformatec/devise/statuses/{sha}","languages_url":"https://api.github.com/repos/plataformatec/devise/languages","stargazers_url":"https://api.github.com/repos/plataformatec/devise/stargazers","contributors_url":"https://api.github.com/repos/plataformatec/devise/contributors","subscribers_url":"https://api.github.com/repos/plataformatec/devise/subscribers","subscription_url":"https://api.github.com/repos/plataformatec/devise/subscription","commits_url":"https://api.github.com/repos/plataformatec/devise/commits{/sha}","git_commits_url":"https://api.github.com/repos/plataformatec/devise/git/commits{/sha}","comments_url":"https://api.github.com/repos/plataformatec/devise/comments{/number}","issue_comment_url":"https://api.github.com/repos/plataformatec/devise/issues/comments{/number}","contents_url":"https://api.github.com/repos/plataformatec/devise/contents/{+path}","compare_url":"https://api.github.com/repos/plataformatec/devise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plataformatec/devise/merges","archive_url":"https://api.github.com/repos/plataformatec/devise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plataformatec/devise/downloads","issues_url":"https://api.github.com/repos/plataformatec/devise/issues{/number}","pulls_url":"https://api.github.com/repos/plataformatec/devise/pulls{/number}","milestones_url":"https://api.github.com/repos/plataformatec/devise/milestones{/number}","notifications_url":"https://api.github.com/repos/plataformatec/devise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plataformatec/devise/labels{/name}","releases_url":"https://api.github.com/repos/plataformatec/devise/releases{/id}","deployments_url":"https://api.github.com/repos/plataformatec/devise/deployments","created_at":"2009-09-16T12:15:12Z","updated_at":"2016-01-28T17:23:25Z","pushed_at":"2016-01-28T22:45:22Z","git_url":"git://github.com/plataformatec/devise.git","ssh_url":"git@github.com:plataformatec/devise.git","clone_url":"https://github.com/plataformatec/devise.git","svn_url":"https://github.com/plataformatec/devise","homepage":"http://blog.plataformatec.com.br/tag/devise/","size":7066,"stargazers_count":14460,"watchers_count":14460,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3177,"mirror_url":null,"open_issues_count":36,"forks":3177,"open_issues":36,"watchers":14460,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/3921"},"html":{"href":"https://github.com/plataformatec/devise/pull/3921"},"issue":{"href":"https://api.github.com/repos/plataformatec/devise/issues/3921"},"comments":{"href":"https://api.github.com/repos/plataformatec/devise/issues/3921/comments"},"review_comments":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/3921/comments"},"review_comment":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plataformatec/devise/pulls/3921/commits"},"statuses":{"href":"https://api.github.com/repos/plataformatec/devise/statuses/072bf3ecf054b73f2678f0e6de2cd8609ef28e10"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":36,"deletions":20,"changed_files":10}}