{"action":"closed","number":2054,"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2054","id":40312186,"html_url":"https://github.com/bbatsov/rubocop/pull/2054","diff_url":"https://github.com/bbatsov/rubocop/pull/2054.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/2054.patch","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2054","number":2054,"state":"closed","locked":false,"title":"Don't hardcode \"today\" into Rails Date cop","user":{"login":"sferik","id":10308,"avatar_url":"https://avatars.githubusercontent.com/u/10308?v=3","gravatar_id":"","url":"https://api.github.com/users/sferik","html_url":"https://github.com/sferik","followers_url":"https://api.github.com/users/sferik/followers","following_url":"https://api.github.com/users/sferik/following{/other_user}","gists_url":"https://api.github.com/users/sferik/gists{/gist_id}","starred_url":"https://api.github.com/users/sferik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sferik/subscriptions","organizations_url":"https://api.github.com/users/sferik/orgs","repos_url":"https://api.github.com/users/sferik/repos","events_url":"https://api.github.com/users/sferik/events{/privacy}","received_events_url":"https://api.github.com/users/sferik/received_events","type":"User","site_admin":false},"body":"Currently, the `RuboCop::Cop::Rails::Date` cop generates messages like:\r\n\r\n> Do not use `Date.yesterday` without zone. Use `Time.zone.today` instead.\r\n\r\nClearly, this is the wrong message. This pull request fixes this issue.","created_at":"2015-07-19T17:55:29Z","updated_at":"2015-07-19T18:17:39Z","closed_at":"2015-07-19T18:17:39Z","merged_at":"2015-07-19T18:17:39Z","merge_commit_sha":"9831bdbc1b63b0d1e6b10b05af992c0be11d54fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2054/commits","review_comments_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2054/comments","review_comment_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2054/comments","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/3bc885c131634b0da487c559f428ac6021a44563","head":{"label":"sferik:dont-hardcode-today","ref":"dont-hardcode-today","sha":"3bc885c131634b0da487c559f428ac6021a44563","user":{"login":"sferik","id":10308,"avatar_url":"https://avatars.githubusercontent.com/u/10308?v=3","gravatar_id":"","url":"https://api.github.com/users/sferik","html_url":"https://github.com/sferik","followers_url":"https://api.github.com/users/sferik/followers","following_url":"https://api.github.com/users/sferik/following{/other_user}","gists_url":"https://api.github.com/users/sferik/gists{/gist_id}","starred_url":"https://api.github.com/users/sferik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sferik/subscriptions","organizations_url":"https://api.github.com/users/sferik/orgs","repos_url":"https://api.github.com/users/sferik/repos","events_url":"https://api.github.com/users/sferik/events{/privacy}","received_events_url":"https://api.github.com/users/sferik/received_events","type":"User","site_admin":false},"repo":{"id":15034024,"name":"rubocop","full_name":"sferik/rubocop","owner":{"login":"sferik","id":10308,"avatar_url":"https://avatars.githubusercontent.com/u/10308?v=3","gravatar_id":"","url":"https://api.github.com/users/sferik","html_url":"https://github.com/sferik","followers_url":"https://api.github.com/users/sferik/followers","following_url":"https://api.github.com/users/sferik/following{/other_user}","gists_url":"https://api.github.com/users/sferik/gists{/gist_id}","starred_url":"https://api.github.com/users/sferik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sferik/subscriptions","organizations_url":"https://api.github.com/users/sferik/orgs","repos_url":"https://api.github.com/users/sferik/repos","events_url":"https://api.github.com/users/sferik/events{/privacy}","received_events_url":"https://api.github.com/users/sferik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sferik/rubocop","description":"A robust Ruby code analyzer, based on the community Ruby style guide.","fork":true,"url":"https://api.github.com/repos/sferik/rubocop","forks_url":"https://api.github.com/repos/sferik/rubocop/forks","keys_url":"https://api.github.com/repos/sferik/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sferik/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sferik/rubocop/teams","hooks_url":"https://api.github.com/repos/sferik/rubocop/hooks","issue_events_url":"https://api.github.com/repos/sferik/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/sferik/rubocop/events","assignees_url":"https://api.github.com/repos/sferik/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/sferik/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/sferik/rubocop/tags","blobs_url":"https://api.github.com/repos/sferik/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sferik/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sferik/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/sferik/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sferik/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/sferik/rubocop/languages","stargazers_url":"https://api.github.com/repos/sferik/rubocop/stargazers","contributors_url":"https://api.github.com/repos/sferik/rubocop/contributors","subscribers_url":"https://api.github.com/repos/sferik/rubocop/subscribers","subscription_url":"https://api.github.com/repos/sferik/rubocop/subscription","commits_url":"https://api.github.com/repos/sferik/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/sferik/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/sferik/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/sferik/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/sferik/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/sferik/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sferik/rubocop/merges","archive_url":"https://api.github.com/repos/sferik/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sferik/rubocop/downloads","issues_url":"https://api.github.com/repos/sferik/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/sferik/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/sferik/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/sferik/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sferik/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/sferik/rubocop/releases{/id}","created_at":"2013-12-09T00:03:05Z","updated_at":"2014-08-17T23:45:06Z","pushed_at":"2015-07-19T17:50:27Z","git_url":"git://github.com/sferik/rubocop.git","ssh_url":"git@github.com:sferik/rubocop.git","clone_url":"https://github.com/sferik/rubocop.git","svn_url":"https://github.com/sferik/rubocop","homepage":"","size":7015,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bbatsov:master","ref":"master","sha":"13308bd36240c005c9c772176dda61815a8a7bb7","user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"repo":{"id":4095287,"name":"rubocop","full_name":"bbatsov/rubocop","owner":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbatsov/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":false,"url":"https://api.github.com/repos/bbatsov/rubocop","forks_url":"https://api.github.com/repos/bbatsov/rubocop/forks","keys_url":"https://api.github.com/repos/bbatsov/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbatsov/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbatsov/rubocop/teams","hooks_url":"https://api.github.com/repos/bbatsov/rubocop/hooks","issue_events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/bbatsov/rubocop/events","assignees_url":"https://api.github.com/repos/bbatsov/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/bbatsov/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/bbatsov/rubocop/tags","blobs_url":"https://api.github.com/repos/bbatsov/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbatsov/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbatsov/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbatsov/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/bbatsov/rubocop/languages","stargazers_url":"https://api.github.com/repos/bbatsov/rubocop/stargazers","contributors_url":"https://api.github.com/repos/bbatsov/rubocop/contributors","subscribers_url":"https://api.github.com/repos/bbatsov/rubocop/subscribers","subscription_url":"https://api.github.com/repos/bbatsov/rubocop/subscription","commits_url":"https://api.github.com/repos/bbatsov/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbatsov/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbatsov/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/bbatsov/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbatsov/rubocop/merges","archive_url":"https://api.github.com/repos/bbatsov/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbatsov/rubocop/downloads","issues_url":"https://api.github.com/repos/bbatsov/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/bbatsov/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/bbatsov/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/bbatsov/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbatsov/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/bbatsov/rubocop/releases{/id}","created_at":"2012-04-21T10:09:58Z","updated_at":"2015-07-19T03:11:12Z","pushed_at":"2015-07-19T18:17:40Z","git_url":"git://github.com/bbatsov/rubocop.git","ssh_url":"git@github.com:bbatsov/rubocop.git","clone_url":"https://github.com/bbatsov/rubocop.git","svn_url":"https://github.com/bbatsov/rubocop","homepage":"","size":19920,"stargazers_count":4820,"watchers_count":4820,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":539,"mirror_url":null,"open_issues_count":104,"forks":539,"open_issues":104,"watchers":4820,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2054"},"html":{"href":"https://github.com/bbatsov/rubocop/pull/2054"},"issue":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/2054"},"comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/2054/comments"},"review_comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2054/comments"},"review_comment":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2054/commits"},"statuses":{"href":"https://api.github.com/repos/bbatsov/rubocop/statuses/3bc885c131634b0da487c559f428ac6021a44563"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}