{"action":"created","comment":{"url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/comments/70835162","id":70835162,"diff_hunk":"@@ -34,6 +34,16 @@ def authenticate_token\n         end\n       end\n \n+      def authenticate_param\n+        token = params[:authentication_token]\n+        session = Session.find_by_key(token)\n+        @session ||= if session && (session.expiration > DateTime.now)\n+            session\n+          else","path":"lib/token_authenticate_me/controllers/token_authenticateable.rb","position":18,"original_position":18,"commit_id":"83136ef8144fe632eaad6593f23c96e8f3c6fb4c","original_commit_id":"83136ef8144fe632eaad6593f23c96e8f3c6fb4c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Align `else` with `if`.","created_at":"2016-07-14T16:15:23Z","updated_at":"2016-07-14T16:15:23Z","html_url":"https://github.com/wildland/token_authenticate_me/pull/29#discussion_r70835162","pull_request_url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/comments/70835162"},"html":{"href":"https://github.com/wildland/token_authenticate_me/pull/29#discussion_r70835162"},"pull_request":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29","id":77372685,"html_url":"https://github.com/wildland/token_authenticate_me/pull/29","diff_url":"https://github.com/wildland/token_authenticate_me/pull/29.diff","patch_url":"https://github.com/wildland/token_authenticate_me/pull/29.patch","issue_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/29","number":29,"state":"open","locked":false,"title":"Fixes #19.","user":{"login":"jweakley","id":347385,"avatar_url":"https://avatars.githubusercontent.com/u/347385?v=3","gravatar_id":"","url":"https://api.github.com/users/jweakley","html_url":"https://github.com/jweakley","followers_url":"https://api.github.com/users/jweakley/followers","following_url":"https://api.github.com/users/jweakley/following{/other_user}","gists_url":"https://api.github.com/users/jweakley/gists{/gist_id}","starred_url":"https://api.github.com/users/jweakley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jweakley/subscriptions","organizations_url":"https://api.github.com/users/jweakley/orgs","repos_url":"https://api.github.com/users/jweakley/repos","events_url":"https://api.github.com/users/jweakley/events{/privacy}","received_events_url":"https://api.github.com/users/jweakley/received_events","type":"User","site_admin":false},"body":"This will require a version bump to 0.5.0 and publish.","created_at":"2016-07-13T22:29:14Z","updated_at":"2016-07-14T16:15:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed9f1545be2bd17f923cde76522779426681e3fc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29/commits","review_comments_url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29/comments","review_comment_url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/29/comments","statuses_url":"https://api.github.com/repos/wildland/token_authenticate_me/statuses/83136ef8144fe632eaad6593f23c96e8f3c6fb4c","head":{"label":"wildland:param-auth","ref":"param-auth","sha":"83136ef8144fe632eaad6593f23c96e8f3c6fb4c","user":{"login":"wildland","id":8660909,"avatar_url":"https://avatars.githubusercontent.com/u/8660909?v=3","gravatar_id":"","url":"https://api.github.com/users/wildland","html_url":"https://github.com/wildland","followers_url":"https://api.github.com/users/wildland/followers","following_url":"https://api.github.com/users/wildland/following{/other_user}","gists_url":"https://api.github.com/users/wildland/gists{/gist_id}","starred_url":"https://api.github.com/users/wildland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildland/subscriptions","organizations_url":"https://api.github.com/users/wildland/orgs","repos_url":"https://api.github.com/users/wildland/repos","events_url":"https://api.github.com/users/wildland/events{/privacy}","received_events_url":"https://api.github.com/users/wildland/received_events","type":"Organization","site_admin":false},"repo":{"id":26556499,"name":"token_authenticate_me","full_name":"wildland/token_authenticate_me","owner":{"login":"wildland","id":8660909,"avatar_url":"https://avatars.githubusercontent.com/u/8660909?v=3","gravatar_id":"","url":"https://api.github.com/users/wildland","html_url":"https://github.com/wildland","followers_url":"https://api.github.com/users/wildland/followers","following_url":"https://api.github.com/users/wildland/following{/other_user}","gists_url":"https://api.github.com/users/wildland/gists{/gist_id}","starred_url":"https://api.github.com/users/wildland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildland/subscriptions","organizations_url":"https://api.github.com/users/wildland/orgs","repos_url":"https://api.github.com/users/wildland/repos","events_url":"https://api.github.com/users/wildland/events{/privacy}","received_events_url":"https://api.github.com/users/wildland/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wildland/token_authenticate_me","description":"","fork":false,"url":"https://api.github.com/repos/wildland/token_authenticate_me","forks_url":"https://api.github.com/repos/wildland/token_authenticate_me/forks","keys_url":"https://api.github.com/repos/wildland/token_authenticate_me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildland/token_authenticate_me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildland/token_authenticate_me/teams","hooks_url":"https://api.github.com/repos/wildland/token_authenticate_me/hooks","issue_events_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/events{/number}","events_url":"https://api.github.com/repos/wildland/token_authenticate_me/events","assignees_url":"https://api.github.com/repos/wildland/token_authenticate_me/assignees{/user}","branches_url":"https://api.github.com/repos/wildland/token_authenticate_me/branches{/branch}","tags_url":"https://api.github.com/repos/wildland/token_authenticate_me/tags","blobs_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildland/token_authenticate_me/statuses/{sha}","languages_url":"https://api.github.com/repos/wildland/token_authenticate_me/languages","stargazers_url":"https://api.github.com/repos/wildland/token_authenticate_me/stargazers","contributors_url":"https://api.github.com/repos/wildland/token_authenticate_me/contributors","subscribers_url":"https://api.github.com/repos/wildland/token_authenticate_me/subscribers","subscription_url":"https://api.github.com/repos/wildland/token_authenticate_me/subscription","commits_url":"https://api.github.com/repos/wildland/token_authenticate_me/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildland/token_authenticate_me/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildland/token_authenticate_me/contents/{+path}","compare_url":"https://api.github.com/repos/wildland/token_authenticate_me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildland/token_authenticate_me/merges","archive_url":"https://api.github.com/repos/wildland/token_authenticate_me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildland/token_authenticate_me/downloads","issues_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues{/number}","pulls_url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls{/number}","milestones_url":"https://api.github.com/repos/wildland/token_authenticate_me/milestones{/number}","notifications_url":"https://api.github.com/repos/wildland/token_authenticate_me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildland/token_authenticate_me/labels{/name}","releases_url":"https://api.github.com/repos/wildland/token_authenticate_me/releases{/id}","deployments_url":"https://api.github.com/repos/wildland/token_authenticate_me/deployments","created_at":"2014-11-12T21:14:40Z","updated_at":"2015-04-22T16:50:47Z","pushed_at":"2016-07-14T16:15:19Z","git_url":"git://github.com/wildland/token_authenticate_me.git","ssh_url":"git@github.com:wildland/token_authenticate_me.git","clone_url":"https://github.com/wildland/token_authenticate_me.git","svn_url":"https://github.com/wildland/token_authenticate_me","homepage":null,"size":443,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"wildland:master","ref":"master","sha":"9890b3fdf260f8969d3c77392b660f0689d00c1d","user":{"login":"wildland","id":8660909,"avatar_url":"https://avatars.githubusercontent.com/u/8660909?v=3","gravatar_id":"","url":"https://api.github.com/users/wildland","html_url":"https://github.com/wildland","followers_url":"https://api.github.com/users/wildland/followers","following_url":"https://api.github.com/users/wildland/following{/other_user}","gists_url":"https://api.github.com/users/wildland/gists{/gist_id}","starred_url":"https://api.github.com/users/wildland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildland/subscriptions","organizations_url":"https://api.github.com/users/wildland/orgs","repos_url":"https://api.github.com/users/wildland/repos","events_url":"https://api.github.com/users/wildland/events{/privacy}","received_events_url":"https://api.github.com/users/wildland/received_events","type":"Organization","site_admin":false},"repo":{"id":26556499,"name":"token_authenticate_me","full_name":"wildland/token_authenticate_me","owner":{"login":"wildland","id":8660909,"avatar_url":"https://avatars.githubusercontent.com/u/8660909?v=3","gravatar_id":"","url":"https://api.github.com/users/wildland","html_url":"https://github.com/wildland","followers_url":"https://api.github.com/users/wildland/followers","following_url":"https://api.github.com/users/wildland/following{/other_user}","gists_url":"https://api.github.com/users/wildland/gists{/gist_id}","starred_url":"https://api.github.com/users/wildland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildland/subscriptions","organizations_url":"https://api.github.com/users/wildland/orgs","repos_url":"https://api.github.com/users/wildland/repos","events_url":"https://api.github.com/users/wildland/events{/privacy}","received_events_url":"https://api.github.com/users/wildland/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wildland/token_authenticate_me","description":"","fork":false,"url":"https://api.github.com/repos/wildland/token_authenticate_me","forks_url":"https://api.github.com/repos/wildland/token_authenticate_me/forks","keys_url":"https://api.github.com/repos/wildland/token_authenticate_me/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildland/token_authenticate_me/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildland/token_authenticate_me/teams","hooks_url":"https://api.github.com/repos/wildland/token_authenticate_me/hooks","issue_events_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/events{/number}","events_url":"https://api.github.com/repos/wildland/token_authenticate_me/events","assignees_url":"https://api.github.com/repos/wildland/token_authenticate_me/assignees{/user}","branches_url":"https://api.github.com/repos/wildland/token_authenticate_me/branches{/branch}","tags_url":"https://api.github.com/repos/wildland/token_authenticate_me/tags","blobs_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildland/token_authenticate_me/statuses/{sha}","languages_url":"https://api.github.com/repos/wildland/token_authenticate_me/languages","stargazers_url":"https://api.github.com/repos/wildland/token_authenticate_me/stargazers","contributors_url":"https://api.github.com/repos/wildland/token_authenticate_me/contributors","subscribers_url":"https://api.github.com/repos/wildland/token_authenticate_me/subscribers","subscription_url":"https://api.github.com/repos/wildland/token_authenticate_me/subscription","commits_url":"https://api.github.com/repos/wildland/token_authenticate_me/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildland/token_authenticate_me/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildland/token_authenticate_me/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildland/token_authenticate_me/contents/{+path}","compare_url":"https://api.github.com/repos/wildland/token_authenticate_me/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildland/token_authenticate_me/merges","archive_url":"https://api.github.com/repos/wildland/token_authenticate_me/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildland/token_authenticate_me/downloads","issues_url":"https://api.github.com/repos/wildland/token_authenticate_me/issues{/number}","pulls_url":"https://api.github.com/repos/wildland/token_authenticate_me/pulls{/number}","milestones_url":"https://api.github.com/repos/wildland/token_authenticate_me/milestones{/number}","notifications_url":"https://api.github.com/repos/wildland/token_authenticate_me/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildland/token_authenticate_me/labels{/name}","releases_url":"https://api.github.com/repos/wildland/token_authenticate_me/releases{/id}","deployments_url":"https://api.github.com/repos/wildland/token_authenticate_me/deployments","created_at":"2014-11-12T21:14:40Z","updated_at":"2015-04-22T16:50:47Z","pushed_at":"2016-07-14T16:15:19Z","git_url":"git://github.com/wildland/token_authenticate_me.git","ssh_url":"git@github.com:wildland/token_authenticate_me.git","clone_url":"https://github.com/wildland/token_authenticate_me.git","svn_url":"https://github.com/wildland/token_authenticate_me","homepage":null,"size":443,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29"},"html":{"href":"https://github.com/wildland/token_authenticate_me/pull/29"},"issue":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/issues/29"},"comments":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/wildland/token_authenticate_me/statuses/83136ef8144fe632eaad6593f23c96e8f3c6fb4c"}}}}
{"actor":{"display_login":"houndci-bot"}}