{"action":"opened","number":27966,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/27966","id":105683965,"html_url":"https://github.com/rails/rails/pull/27966","diff_url":"https://github.com/rails/rails/pull/27966.diff","patch_url":"https://github.com/rails/rails/pull/27966.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/27966","number":27966,"state":"open","locked":false,"title":"Add methods [days, weeks, months, years]_between","user":{"login":"bogdanvlviv","id":6443532,"avatar_url":"https://avatars.githubusercontent.com/u/6443532?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdanvlviv","html_url":"https://github.com/bogdanvlviv","followers_url":"https://api.github.com/users/bogdanvlviv/followers","following_url":"https://api.github.com/users/bogdanvlviv/following{/other_user}","gists_url":"https://api.github.com/users/bogdanvlviv/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanvlviv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanvlviv/subscriptions","organizations_url":"https://api.github.com/users/bogdanvlviv/orgs","repos_url":"https://api.github.com/users/bogdanvlviv/repos","events_url":"https://api.github.com/users/bogdanvlviv/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanvlviv/received_events","type":"User","site_admin":false},"body":"I think it might be useful, so i decided to make this PR.\r\n\r\nYour thoughts guys?\r\n\r\nAdded methods:\r\n  `#days_between`\r\n  returns the number of days to given date, default to +Date.current+.\r\n\r\n  `#weeks_between`\r\n  returns the number of weeks to given date, default to +Date.current+.\r\n\r\n  `#months_between`\r\n  returns the number of months to given date, default to +Date.current+.\r\n\r\n  `#years_between`\r\n  returns the number of years to given date, default to +Date.current+.","created_at":"2017-02-10T18:50:40Z","updated_at":"2017-02-10T18:50:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/27966/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/27966/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/27966/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/cc21f5c3a0288934c28991a923a4953f977c1f3c","head":{"label":"bogdanvlviv:days_weeks_month_years_between","ref":"days_weeks_month_years_between","sha":"cc21f5c3a0288934c28991a923a4953f977c1f3c","user":{"login":"bogdanvlviv","id":6443532,"avatar_url":"https://avatars.githubusercontent.com/u/6443532?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdanvlviv","html_url":"https://github.com/bogdanvlviv","followers_url":"https://api.github.com/users/bogdanvlviv/followers","following_url":"https://api.github.com/users/bogdanvlviv/following{/other_user}","gists_url":"https://api.github.com/users/bogdanvlviv/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanvlviv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanvlviv/subscriptions","organizations_url":"https://api.github.com/users/bogdanvlviv/orgs","repos_url":"https://api.github.com/users/bogdanvlviv/repos","events_url":"https://api.github.com/users/bogdanvlviv/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanvlviv/received_events","type":"User","site_admin":false},"repo":{"id":54744114,"name":"rails","full_name":"bogdanvlviv/rails","owner":{"login":"bogdanvlviv","id":6443532,"avatar_url":"https://avatars.githubusercontent.com/u/6443532?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdanvlviv","html_url":"https://github.com/bogdanvlviv","followers_url":"https://api.github.com/users/bogdanvlviv/followers","following_url":"https://api.github.com/users/bogdanvlviv/following{/other_user}","gists_url":"https://api.github.com/users/bogdanvlviv/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanvlviv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanvlviv/subscriptions","organizations_url":"https://api.github.com/users/bogdanvlviv/orgs","repos_url":"https://api.github.com/users/bogdanvlviv/repos","events_url":"https://api.github.com/users/bogdanvlviv/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanvlviv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bogdanvlviv/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/bogdanvlviv/rails","forks_url":"https://api.github.com/repos/bogdanvlviv/rails/forks","keys_url":"https://api.github.com/repos/bogdanvlviv/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bogdanvlviv/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bogdanvlviv/rails/teams","hooks_url":"https://api.github.com/repos/bogdanvlviv/rails/hooks","issue_events_url":"https://api.github.com/repos/bogdanvlviv/rails/issues/events{/number}","events_url":"https://api.github.com/repos/bogdanvlviv/rails/events","assignees_url":"https://api.github.com/repos/bogdanvlviv/rails/assignees{/user}","branches_url":"https://api.github.com/repos/bogdanvlviv/rails/branches{/branch}","tags_url":"https://api.github.com/repos/bogdanvlviv/rails/tags","blobs_url":"https://api.github.com/repos/bogdanvlviv/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bogdanvlviv/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bogdanvlviv/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/bogdanvlviv/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bogdanvlviv/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/bogdanvlviv/rails/languages","stargazers_url":"https://api.github.com/repos/bogdanvlviv/rails/stargazers","contributors_url":"https://api.github.com/repos/bogdanvlviv/rails/contributors","subscribers_url":"https://api.github.com/repos/bogdanvlviv/rails/subscribers","subscription_url":"https://api.github.com/repos/bogdanvlviv/rails/subscription","commits_url":"https://api.github.com/repos/bogdanvlviv/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/bogdanvlviv/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/bogdanvlviv/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/bogdanvlviv/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/bogdanvlviv/rails/contents/{+path}","compare_url":"https://api.github.com/repos/bogdanvlviv/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bogdanvlviv/rails/merges","archive_url":"https://api.github.com/repos/bogdanvlviv/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bogdanvlviv/rails/downloads","issues_url":"https://api.github.com/repos/bogdanvlviv/rails/issues{/number}","pulls_url":"https://api.github.com/repos/bogdanvlviv/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/bogdanvlviv/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/bogdanvlviv/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bogdanvlviv/rails/labels{/name}","releases_url":"https://api.github.com/repos/bogdanvlviv/rails/releases{/id}","deployments_url":"https://api.github.com/repos/bogdanvlviv/rails/deployments","created_at":"2016-03-25T19:54:02Z","updated_at":"2016-03-25T19:55:12Z","pushed_at":"2017-02-10T18:49:45Z","git_url":"git://github.com/bogdanvlviv/rails.git","ssh_url":"git@github.com:bogdanvlviv/rails.git","clone_url":"https://github.com/bogdanvlviv/rails.git","svn_url":"https://github.com/bogdanvlviv/rails","homepage":"http://rubyonrails.org","size":139702,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rails:master","ref":"master","sha":"6950a973708aa2b77243eddd72130d6d90257bcb","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2017-02-10T18:17:51Z","pushed_at":"2017-02-10T17:09:20Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":142854,"stargazers_count":34426,"watchers_count":34426,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14010,"mirror_url":null,"open_issues_count":1259,"forks":14010,"open_issues":1259,"watchers":34426,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/27966"},"html":{"href":"https://github.com/rails/rails/pull/27966"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/27966"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/27966/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/27966/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/27966/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/cc21f5c3a0288934c28991a923a4953f977c1f3c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":91,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"bogdanvlviv"}}