{"action":"closed","number":198,"pull_request":{"url":"https://api.github.com/repos/holidays/holidays/pulls/198","id":72719400,"html_url":"https://github.com/holidays/holidays/pull/198","diff_url":"https://github.com/holidays/holidays/pull/198.diff","patch_url":"https://github.com/holidays/holidays/pull/198.patch","issue_url":"https://api.github.com/repos/holidays/holidays/issues/198","number":198,"state":"closed","locked":false,"title":"Add method to calculate holidays for duration of year","user":{"login":"jonathanpike","id":8129357,"avatar_url":"https://avatars.githubusercontent.com/u/8129357?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanpike","html_url":"https://github.com/jonathanpike","followers_url":"https://api.github.com/users/jonathanpike/followers","following_url":"https://api.github.com/users/jonathanpike/following{/other_user}","gists_url":"https://api.github.com/users/jonathanpike/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanpike/subscriptions","organizations_url":"https://api.github.com/users/jonathanpike/orgs","repos_url":"https://api.github.com/users/jonathanpike/repos","events_url":"https://api.github.com/users/jonathanpike/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanpike/received_events","type":"User","site_admin":false},"body":"I needed a way of getting a list of all the holidays for a region from a certain date to the end of the year, so I wrote it.  I used some of Rails' Date calculations in order to do this (ie. end_of_month, change).  I thought that if I needed this functionality, it may also be useful for others.","created_at":"2016-06-06T14:33:45Z","updated_at":"2016-06-23T01:10:16Z","closed_at":"2016-06-23T01:10:16Z","merged_at":"2016-06-23T01:10:16Z","merge_commit_sha":"06aa9617ab946b1499b9c411ecb5fe4d12f8d53b","assignee":{"login":"ptrimble","id":2753372,"avatar_url":"https://avatars.githubusercontent.com/u/2753372?v=3","gravatar_id":"","url":"https://api.github.com/users/ptrimble","html_url":"https://github.com/ptrimble","followers_url":"https://api.github.com/users/ptrimble/followers","following_url":"https://api.github.com/users/ptrimble/following{/other_user}","gists_url":"https://api.github.com/users/ptrimble/gists{/gist_id}","starred_url":"https://api.github.com/users/ptrimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptrimble/subscriptions","organizations_url":"https://api.github.com/users/ptrimble/orgs","repos_url":"https://api.github.com/users/ptrimble/repos","events_url":"https://api.github.com/users/ptrimble/events{/privacy}","received_events_url":"https://api.github.com/users/ptrimble/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/holidays/holidays/pulls/198/commits","review_comments_url":"https://api.github.com/repos/holidays/holidays/pulls/198/comments","review_comment_url":"https://api.github.com/repos/holidays/holidays/pulls/comments{/number}","comments_url":"https://api.github.com/repos/holidays/holidays/issues/198/comments","statuses_url":"https://api.github.com/repos/holidays/holidays/statuses/38c442e0183b9b69c89b25e375a92e3a62b13f0b","head":{"label":"jonathanpike:master","ref":"master","sha":"38c442e0183b9b69c89b25e375a92e3a62b13f0b","user":{"login":"jonathanpike","id":8129357,"avatar_url":"https://avatars.githubusercontent.com/u/8129357?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanpike","html_url":"https://github.com/jonathanpike","followers_url":"https://api.github.com/users/jonathanpike/followers","following_url":"https://api.github.com/users/jonathanpike/following{/other_user}","gists_url":"https://api.github.com/users/jonathanpike/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanpike/subscriptions","organizations_url":"https://api.github.com/users/jonathanpike/orgs","repos_url":"https://api.github.com/users/jonathanpike/repos","events_url":"https://api.github.com/users/jonathanpike/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanpike/received_events","type":"User","site_admin":false},"repo":{"id":60529171,"name":"holidays","full_name":"jonathanpike/holidays","owner":{"login":"jonathanpike","id":8129357,"avatar_url":"https://avatars.githubusercontent.com/u/8129357?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanpike","html_url":"https://github.com/jonathanpike","followers_url":"https://api.github.com/users/jonathanpike/followers","following_url":"https://api.github.com/users/jonathanpike/following{/other_user}","gists_url":"https://api.github.com/users/jonathanpike/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanpike/subscriptions","organizations_url":"https://api.github.com/users/jonathanpike/orgs","repos_url":"https://api.github.com/users/jonathanpike/repos","events_url":"https://api.github.com/users/jonathanpike/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanpike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonathanpike/holidays","description":"A collection of Ruby methods to deal with statutory and other holidays.  You deserve a holiday!","fork":true,"url":"https://api.github.com/repos/jonathanpike/holidays","forks_url":"https://api.github.com/repos/jonathanpike/holidays/forks","keys_url":"https://api.github.com/repos/jonathanpike/holidays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonathanpike/holidays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonathanpike/holidays/teams","hooks_url":"https://api.github.com/repos/jonathanpike/holidays/hooks","issue_events_url":"https://api.github.com/repos/jonathanpike/holidays/issues/events{/number}","events_url":"https://api.github.com/repos/jonathanpike/holidays/events","assignees_url":"https://api.github.com/repos/jonathanpike/holidays/assignees{/user}","branches_url":"https://api.github.com/repos/jonathanpike/holidays/branches{/branch}","tags_url":"https://api.github.com/repos/jonathanpike/holidays/tags","blobs_url":"https://api.github.com/repos/jonathanpike/holidays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonathanpike/holidays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonathanpike/holidays/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonathanpike/holidays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonathanpike/holidays/statuses/{sha}","languages_url":"https://api.github.com/repos/jonathanpike/holidays/languages","stargazers_url":"https://api.github.com/repos/jonathanpike/holidays/stargazers","contributors_url":"https://api.github.com/repos/jonathanpike/holidays/contributors","subscribers_url":"https://api.github.com/repos/jonathanpike/holidays/subscribers","subscription_url":"https://api.github.com/repos/jonathanpike/holidays/subscription","commits_url":"https://api.github.com/repos/jonathanpike/holidays/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonathanpike/holidays/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonathanpike/holidays/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonathanpike/holidays/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonathanpike/holidays/contents/{+path}","compare_url":"https://api.github.com/repos/jonathanpike/holidays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonathanpike/holidays/merges","archive_url":"https://api.github.com/repos/jonathanpike/holidays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonathanpike/holidays/downloads","issues_url":"https://api.github.com/repos/jonathanpike/holidays/issues{/number}","pulls_url":"https://api.github.com/repos/jonathanpike/holidays/pulls{/number}","milestones_url":"https://api.github.com/repos/jonathanpike/holidays/milestones{/number}","notifications_url":"https://api.github.com/repos/jonathanpike/holidays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonathanpike/holidays/labels{/name}","releases_url":"https://api.github.com/repos/jonathanpike/holidays/releases{/id}","deployments_url":"https://api.github.com/repos/jonathanpike/holidays/deployments","created_at":"2016-06-06T13:18:00Z","updated_at":"2016-06-06T13:18:02Z","pushed_at":"2016-06-20T15:10:25Z","git_url":"git://github.com/jonathanpike/holidays.git","ssh_url":"git@github.com:jonathanpike/holidays.git","clone_url":"https://github.com/jonathanpike/holidays.git","svn_url":"https://github.com/jonathanpike/holidays","homepage":"","size":1346,"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":"holidays:master","ref":"master","sha":"032fd6e00e90176a46f8dc63607efc6dc2aeffc3","user":{"login":"holidays","id":11636900,"avatar_url":"https://avatars.githubusercontent.com/u/11636900?v=3","gravatar_id":"","url":"https://api.github.com/users/holidays","html_url":"https://github.com/holidays","followers_url":"https://api.github.com/users/holidays/followers","following_url":"https://api.github.com/users/holidays/following{/other_user}","gists_url":"https://api.github.com/users/holidays/gists{/gist_id}","starred_url":"https://api.github.com/users/holidays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holidays/subscriptions","organizations_url":"https://api.github.com/users/holidays/orgs","repos_url":"https://api.github.com/users/holidays/repos","events_url":"https://api.github.com/users/holidays/events{/privacy}","received_events_url":"https://api.github.com/users/holidays/received_events","type":"Organization","site_admin":false},"repo":{"id":98540,"name":"holidays","full_name":"holidays/holidays","owner":{"login":"holidays","id":11636900,"avatar_url":"https://avatars.githubusercontent.com/u/11636900?v=3","gravatar_id":"","url":"https://api.github.com/users/holidays","html_url":"https://github.com/holidays","followers_url":"https://api.github.com/users/holidays/followers","following_url":"https://api.github.com/users/holidays/following{/other_user}","gists_url":"https://api.github.com/users/holidays/gists{/gist_id}","starred_url":"https://api.github.com/users/holidays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holidays/subscriptions","organizations_url":"https://api.github.com/users/holidays/orgs","repos_url":"https://api.github.com/users/holidays/repos","events_url":"https://api.github.com/users/holidays/events{/privacy}","received_events_url":"https://api.github.com/users/holidays/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/holidays/holidays","description":"A collection of Ruby methods to deal with statutory and other holidays.  You deserve a holiday!","fork":false,"url":"https://api.github.com/repos/holidays/holidays","forks_url":"https://api.github.com/repos/holidays/holidays/forks","keys_url":"https://api.github.com/repos/holidays/holidays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/holidays/holidays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/holidays/holidays/teams","hooks_url":"https://api.github.com/repos/holidays/holidays/hooks","issue_events_url":"https://api.github.com/repos/holidays/holidays/issues/events{/number}","events_url":"https://api.github.com/repos/holidays/holidays/events","assignees_url":"https://api.github.com/repos/holidays/holidays/assignees{/user}","branches_url":"https://api.github.com/repos/holidays/holidays/branches{/branch}","tags_url":"https://api.github.com/repos/holidays/holidays/tags","blobs_url":"https://api.github.com/repos/holidays/holidays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/holidays/holidays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/holidays/holidays/git/refs{/sha}","trees_url":"https://api.github.com/repos/holidays/holidays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/holidays/holidays/statuses/{sha}","languages_url":"https://api.github.com/repos/holidays/holidays/languages","stargazers_url":"https://api.github.com/repos/holidays/holidays/stargazers","contributors_url":"https://api.github.com/repos/holidays/holidays/contributors","subscribers_url":"https://api.github.com/repos/holidays/holidays/subscribers","subscription_url":"https://api.github.com/repos/holidays/holidays/subscription","commits_url":"https://api.github.com/repos/holidays/holidays/commits{/sha}","git_commits_url":"https://api.github.com/repos/holidays/holidays/git/commits{/sha}","comments_url":"https://api.github.com/repos/holidays/holidays/comments{/number}","issue_comment_url":"https://api.github.com/repos/holidays/holidays/issues/comments{/number}","contents_url":"https://api.github.com/repos/holidays/holidays/contents/{+path}","compare_url":"https://api.github.com/repos/holidays/holidays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/holidays/holidays/merges","archive_url":"https://api.github.com/repos/holidays/holidays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/holidays/holidays/downloads","issues_url":"https://api.github.com/repos/holidays/holidays/issues{/number}","pulls_url":"https://api.github.com/repos/holidays/holidays/pulls{/number}","milestones_url":"https://api.github.com/repos/holidays/holidays/milestones{/number}","notifications_url":"https://api.github.com/repos/holidays/holidays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/holidays/holidays/labels{/name}","releases_url":"https://api.github.com/repos/holidays/holidays/releases{/id}","deployments_url":"https://api.github.com/repos/holidays/holidays/deployments","created_at":"2008-12-30T18:33:59Z","updated_at":"2016-06-18T18:53:02Z","pushed_at":"2016-06-23T01:10:17Z","git_url":"git://github.com/holidays/holidays.git","ssh_url":"git@github.com:holidays/holidays.git","clone_url":"https://github.com/holidays/holidays.git","svn_url":"https://github.com/holidays/holidays","homepage":"","size":1553,"stargazers_count":324,"watchers_count":324,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":172,"mirror_url":null,"open_issues_count":4,"forks":172,"open_issues":4,"watchers":324,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/holidays/holidays/pulls/198"},"html":{"href":"https://github.com/holidays/holidays/pull/198"},"issue":{"href":"https://api.github.com/repos/holidays/holidays/issues/198"},"comments":{"href":"https://api.github.com/repos/holidays/holidays/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/holidays/holidays/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/holidays/holidays/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/holidays/holidays/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/holidays/holidays/statuses/38c442e0183b9b69c89b25e375a92e3a62b13f0b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ptrimble","id":2753372,"avatar_url":"https://avatars.githubusercontent.com/u/2753372?v=3","gravatar_id":"","url":"https://api.github.com/users/ptrimble","html_url":"https://github.com/ptrimble","followers_url":"https://api.github.com/users/ptrimble/followers","following_url":"https://api.github.com/users/ptrimble/following{/other_user}","gists_url":"https://api.github.com/users/ptrimble/gists{/gist_id}","starred_url":"https://api.github.com/users/ptrimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptrimble/subscriptions","organizations_url":"https://api.github.com/users/ptrimble/orgs","repos_url":"https://api.github.com/users/ptrimble/repos","events_url":"https://api.github.com/users/ptrimble/events{/privacy}","received_events_url":"https://api.github.com/users/ptrimble/received_events","type":"User","site_admin":false},"comments":9,"review_comments":12,"commits":5,"additions":266,"deletions":0,"changed_files":8}}
{"actor":{"display_login":"ptrimble"}}