{"action":"created","comment":{"url":"https://api.github.com/repos/komagata/holiday_jp/pulls/comments/22764291","id":22764291,"diff_hunk":"@@ -7,10 +7,18 @@ class Holidays\n \n     def initialize\n       @holidays = {}\n-      yaml = YAML.load_file(File.expand_path('../../../holidays.yml', __FILE__))\n-      yaml.map do |key, value|\n-        @holidays[key] = Holiday.new(key, value)\n+      holiday_sources.each do |source|\n+        YAML.load_file(source).each do |key, value|\n+          @holidays[key] = Holiday.new(key, value)\n+        end\n       end\n     end\n+\n+    private\n+\n+    def holiday_sources\n+      HolidayJp.default_holiday_sources\n+    end\n+","path":"lib/holiday_jp/holidays.rb","position":19,"original_position":19,"commit_id":"6b033b433b145911387edd7c90e5a0df7b5ca591","original_commit_id":"6b033b433b145911387edd7c90e5a0df7b5ca591","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at body end.","created_at":"2015-01-11T04:28:39Z","updated_at":"2015-01-11T04:28:39Z","html_url":"https://github.com/komagata/holiday_jp/pull/16#discussion_r22764291","pull_request_url":"https://api.github.com/repos/komagata/holiday_jp/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/komagata/holiday_jp/pulls/comments/22764291"},"html":{"href":"https://github.com/komagata/holiday_jp/pull/16#discussion_r22764291"},"pull_request":{"href":"https://api.github.com/repos/komagata/holiday_jp/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/komagata/holiday_jp/pulls/16","id":27158669,"html_url":"https://github.com/komagata/holiday_jp/pull/16","diff_url":"https://github.com/komagata/holiday_jp/pull/16.diff","patch_url":"https://github.com/komagata/holiday_jp/pull/16.patch","issue_url":"https://api.github.com/repos/komagata/holiday_jp/issues/16","number":16,"state":"open","locked":false,"title":"Add custom holidays","user":{"login":"tyabe","id":87799,"avatar_url":"https://avatars.githubusercontent.com/u/87799?v=3","gravatar_id":"","url":"https://api.github.com/users/tyabe","html_url":"https://github.com/tyabe","followers_url":"https://api.github.com/users/tyabe/followers","following_url":"https://api.github.com/users/tyabe/following{/other_user}","gists_url":"https://api.github.com/users/tyabe/gists{/gist_id}","starred_url":"https://api.github.com/users/tyabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyabe/subscriptions","organizations_url":"https://api.github.com/users/tyabe/orgs","repos_url":"https://api.github.com/users/tyabe/repos","events_url":"https://api.github.com/users/tyabe/events{/privacy}","received_events_url":"https://api.github.com/users/tyabe/received_events","type":"User","site_admin":false},"body":"I want to be able to add custom holiday definitions.\nWhat do you think?","created_at":"2015-01-11T04:28:35Z","updated_at":"2015-01-11T04:28:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76fe901e4d5add4cd54843f8fea955dd6c44b6fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/komagata/holiday_jp/pulls/16/commits","review_comments_url":"https://api.github.com/repos/komagata/holiday_jp/pulls/16/comments","review_comment_url":"https://api.github.com/repos/komagata/holiday_jp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/komagata/holiday_jp/issues/16/comments","statuses_url":"https://api.github.com/repos/komagata/holiday_jp/statuses/6b033b433b145911387edd7c90e5a0df7b5ca591","head":{"label":"tyabe:add_custom_holidays","ref":"add_custom_holidays","sha":"6b033b433b145911387edd7c90e5a0df7b5ca591","user":{"login":"tyabe","id":87799,"avatar_url":"https://avatars.githubusercontent.com/u/87799?v=3","gravatar_id":"","url":"https://api.github.com/users/tyabe","html_url":"https://github.com/tyabe","followers_url":"https://api.github.com/users/tyabe/followers","following_url":"https://api.github.com/users/tyabe/following{/other_user}","gists_url":"https://api.github.com/users/tyabe/gists{/gist_id}","starred_url":"https://api.github.com/users/tyabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyabe/subscriptions","organizations_url":"https://api.github.com/users/tyabe/orgs","repos_url":"https://api.github.com/users/tyabe/repos","events_url":"https://api.github.com/users/tyabe/events{/privacy}","received_events_url":"https://api.github.com/users/tyabe/received_events","type":"User","site_admin":false},"repo":{"id":29081169,"name":"holiday_jp","full_name":"tyabe/holiday_jp","owner":{"login":"tyabe","id":87799,"avatar_url":"https://avatars.githubusercontent.com/u/87799?v=3","gravatar_id":"","url":"https://api.github.com/users/tyabe","html_url":"https://github.com/tyabe","followers_url":"https://api.github.com/users/tyabe/followers","following_url":"https://api.github.com/users/tyabe/following{/other_user}","gists_url":"https://api.github.com/users/tyabe/gists{/gist_id}","starred_url":"https://api.github.com/users/tyabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyabe/subscriptions","organizations_url":"https://api.github.com/users/tyabe/orgs","repos_url":"https://api.github.com/users/tyabe/repos","events_url":"https://api.github.com/users/tyabe/events{/privacy}","received_events_url":"https://api.github.com/users/tyabe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tyabe/holiday_jp","description":"Japanese holiday.","fork":true,"url":"https://api.github.com/repos/tyabe/holiday_jp","forks_url":"https://api.github.com/repos/tyabe/holiday_jp/forks","keys_url":"https://api.github.com/repos/tyabe/holiday_jp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tyabe/holiday_jp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tyabe/holiday_jp/teams","hooks_url":"https://api.github.com/repos/tyabe/holiday_jp/hooks","issue_events_url":"https://api.github.com/repos/tyabe/holiday_jp/issues/events{/number}","events_url":"https://api.github.com/repos/tyabe/holiday_jp/events","assignees_url":"https://api.github.com/repos/tyabe/holiday_jp/assignees{/user}","branches_url":"https://api.github.com/repos/tyabe/holiday_jp/branches{/branch}","tags_url":"https://api.github.com/repos/tyabe/holiday_jp/tags","blobs_url":"https://api.github.com/repos/tyabe/holiday_jp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tyabe/holiday_jp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tyabe/holiday_jp/git/refs{/sha}","trees_url":"https://api.github.com/repos/tyabe/holiday_jp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tyabe/holiday_jp/statuses/{sha}","languages_url":"https://api.github.com/repos/tyabe/holiday_jp/languages","stargazers_url":"https://api.github.com/repos/tyabe/holiday_jp/stargazers","contributors_url":"https://api.github.com/repos/tyabe/holiday_jp/contributors","subscribers_url":"https://api.github.com/repos/tyabe/holiday_jp/subscribers","subscription_url":"https://api.github.com/repos/tyabe/holiday_jp/subscription","commits_url":"https://api.github.com/repos/tyabe/holiday_jp/commits{/sha}","git_commits_url":"https://api.github.com/repos/tyabe/holiday_jp/git/commits{/sha}","comments_url":"https://api.github.com/repos/tyabe/holiday_jp/comments{/number}","issue_comment_url":"https://api.github.com/repos/tyabe/holiday_jp/issues/comments/{number}","contents_url":"https://api.github.com/repos/tyabe/holiday_jp/contents/{+path}","compare_url":"https://api.github.com/repos/tyabe/holiday_jp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tyabe/holiday_jp/merges","archive_url":"https://api.github.com/repos/tyabe/holiday_jp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tyabe/holiday_jp/downloads","issues_url":"https://api.github.com/repos/tyabe/holiday_jp/issues{/number}","pulls_url":"https://api.github.com/repos/tyabe/holiday_jp/pulls{/number}","milestones_url":"https://api.github.com/repos/tyabe/holiday_jp/milestones{/number}","notifications_url":"https://api.github.com/repos/tyabe/holiday_jp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tyabe/holiday_jp/labels{/name}","releases_url":"https://api.github.com/repos/tyabe/holiday_jp/releases{/id}","created_at":"2015-01-11T04:23:03Z","updated_at":"2015-01-11T04:23:06Z","pushed_at":"2015-01-11T04:28:18Z","git_url":"git://github.com/tyabe/holiday_jp.git","ssh_url":"git@github.com:tyabe/holiday_jp.git","clone_url":"https://github.com/tyabe/holiday_jp.git","svn_url":"https://github.com/tyabe/holiday_jp","homepage":"http://docs.komagata.org/4393","size":259,"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":"komagata:master","ref":"master","sha":"8dd3c0906260c93f22c16770369386390410ad25","user":{"login":"komagata","id":16577,"avatar_url":"https://avatars.githubusercontent.com/u/16577?v=3","gravatar_id":"","url":"https://api.github.com/users/komagata","html_url":"https://github.com/komagata","followers_url":"https://api.github.com/users/komagata/followers","following_url":"https://api.github.com/users/komagata/following{/other_user}","gists_url":"https://api.github.com/users/komagata/gists{/gist_id}","starred_url":"https://api.github.com/users/komagata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komagata/subscriptions","organizations_url":"https://api.github.com/users/komagata/orgs","repos_url":"https://api.github.com/users/komagata/repos","events_url":"https://api.github.com/users/komagata/events{/privacy}","received_events_url":"https://api.github.com/users/komagata/received_events","type":"User","site_admin":false},"repo":{"id":373613,"name":"holiday_jp","full_name":"komagata/holiday_jp","owner":{"login":"komagata","id":16577,"avatar_url":"https://avatars.githubusercontent.com/u/16577?v=3","gravatar_id":"","url":"https://api.github.com/users/komagata","html_url":"https://github.com/komagata","followers_url":"https://api.github.com/users/komagata/followers","following_url":"https://api.github.com/users/komagata/following{/other_user}","gists_url":"https://api.github.com/users/komagata/gists{/gist_id}","starred_url":"https://api.github.com/users/komagata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komagata/subscriptions","organizations_url":"https://api.github.com/users/komagata/orgs","repos_url":"https://api.github.com/users/komagata/repos","events_url":"https://api.github.com/users/komagata/events{/privacy}","received_events_url":"https://api.github.com/users/komagata/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/komagata/holiday_jp","description":"Japanese holiday.","fork":false,"url":"https://api.github.com/repos/komagata/holiday_jp","forks_url":"https://api.github.com/repos/komagata/holiday_jp/forks","keys_url":"https://api.github.com/repos/komagata/holiday_jp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/komagata/holiday_jp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/komagata/holiday_jp/teams","hooks_url":"https://api.github.com/repos/komagata/holiday_jp/hooks","issue_events_url":"https://api.github.com/repos/komagata/holiday_jp/issues/events{/number}","events_url":"https://api.github.com/repos/komagata/holiday_jp/events","assignees_url":"https://api.github.com/repos/komagata/holiday_jp/assignees{/user}","branches_url":"https://api.github.com/repos/komagata/holiday_jp/branches{/branch}","tags_url":"https://api.github.com/repos/komagata/holiday_jp/tags","blobs_url":"https://api.github.com/repos/komagata/holiday_jp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/komagata/holiday_jp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/komagata/holiday_jp/git/refs{/sha}","trees_url":"https://api.github.com/repos/komagata/holiday_jp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/komagata/holiday_jp/statuses/{sha}","languages_url":"https://api.github.com/repos/komagata/holiday_jp/languages","stargazers_url":"https://api.github.com/repos/komagata/holiday_jp/stargazers","contributors_url":"https://api.github.com/repos/komagata/holiday_jp/contributors","subscribers_url":"https://api.github.com/repos/komagata/holiday_jp/subscribers","subscription_url":"https://api.github.com/repos/komagata/holiday_jp/subscription","commits_url":"https://api.github.com/repos/komagata/holiday_jp/commits{/sha}","git_commits_url":"https://api.github.com/repos/komagata/holiday_jp/git/commits{/sha}","comments_url":"https://api.github.com/repos/komagata/holiday_jp/comments{/number}","issue_comment_url":"https://api.github.com/repos/komagata/holiday_jp/issues/comments/{number}","contents_url":"https://api.github.com/repos/komagata/holiday_jp/contents/{+path}","compare_url":"https://api.github.com/repos/komagata/holiday_jp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/komagata/holiday_jp/merges","archive_url":"https://api.github.com/repos/komagata/holiday_jp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/komagata/holiday_jp/downloads","issues_url":"https://api.github.com/repos/komagata/holiday_jp/issues{/number}","pulls_url":"https://api.github.com/repos/komagata/holiday_jp/pulls{/number}","milestones_url":"https://api.github.com/repos/komagata/holiday_jp/milestones{/number}","notifications_url":"https://api.github.com/repos/komagata/holiday_jp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/komagata/holiday_jp/labels{/name}","releases_url":"https://api.github.com/repos/komagata/holiday_jp/releases{/id}","created_at":"2009-11-15T11:44:43Z","updated_at":"2015-01-10T09:11:50Z","pushed_at":"2015-01-02T18:26:49Z","git_url":"git://github.com/komagata/holiday_jp.git","ssh_url":"git@github.com:komagata/holiday_jp.git","clone_url":"https://github.com/komagata/holiday_jp.git","svn_url":"https://github.com/komagata/holiday_jp","homepage":"http://docs.komagata.org/4393","size":259,"stargazers_count":100,"watchers_count":100,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":1,"forks":17,"open_issues":1,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/komagata/holiday_jp/pulls/16"},"html":{"href":"https://github.com/komagata/holiday_jp/pull/16"},"issue":{"href":"https://api.github.com/repos/komagata/holiday_jp/issues/16"},"comments":{"href":"https://api.github.com/repos/komagata/holiday_jp/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/komagata/holiday_jp/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/komagata/holiday_jp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/komagata/holiday_jp/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/komagata/holiday_jp/statuses/6b033b433b145911387edd7c90e5a0df7b5ca591"}}}}