{"action":"created","comment":{"url":"https://api.github.com/repos/edubs5/scheduler/pulls/comments/59974332","id":59974332,"diff_hunk":"@@ -0,0 +1,57 @@\n+# ensure week array account for all seven days of the week\n+class Schedule\n+  class CompleteTheWeek\n+    WEEK_DAYS = {\n+      \"Sunday\": \"28/2/2016\".to_date,\n+      \"Monday\": \"29/2/2016\".to_date,\n+      \"Tuesday\": \"1/3/2016\".to_date,\n+      \"Wednesday\": \"2/3/2016\".to_date,\n+      \"Thursday\": \"3/3/2016\".to_date,\n+      \"Friday\": \"4/3/2016\".to_date,\n+      \"Saturday\": \"5/3/2016\".to_date\n+    }\n+\n+    DAYS = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\",\n+            \"Friday\", \"Saturday\"]\n+\n+    def initialize(week)\n+      @week = week\n+    end\n+\n+    def complete_the_week\n+      is_not_a_full_week? ? complete_week : @week\n+    end\n+\n+    def is_not_a_full_week?","path":"app/models/schedule/complete_the_week.rb","position":25,"original_position":25,"commit_id":"8275dc6fa40bb64b293fcc339a794554fd872e71","original_commit_id":"8275dc6fa40bb64b293fcc339a794554fd872e71","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":"Rename `is_not_a_full_week?` to `not_a_full_week?`.","created_at":"2016-04-16T21:35:13Z","updated_at":"2016-04-16T21:35:13Z","html_url":"https://github.com/edubs5/scheduler/pull/15#discussion_r59974332","pull_request_url":"https://api.github.com/repos/edubs5/scheduler/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/edubs5/scheduler/pulls/comments/59974332"},"html":{"href":"https://github.com/edubs5/scheduler/pull/15#discussion_r59974332"},"pull_request":{"href":"https://api.github.com/repos/edubs5/scheduler/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/edubs5/scheduler/pulls/15","id":66750593,"html_url":"https://github.com/edubs5/scheduler/pull/15","diff_url":"https://github.com/edubs5/scheduler/pull/15.diff","patch_url":"https://github.com/edubs5/scheduler/pull/15.patch","issue_url":"https://api.github.com/repos/edubs5/scheduler/issues/15","number":15,"state":"open","locked":false,"title":"Update schedule and location tables","user":{"login":"edubs5","id":3847044,"avatar_url":"https://avatars.githubusercontent.com/u/3847044?v=3","gravatar_id":"","url":"https://api.github.com/users/edubs5","html_url":"https://github.com/edubs5","followers_url":"https://api.github.com/users/edubs5/followers","following_url":"https://api.github.com/users/edubs5/following{/other_user}","gists_url":"https://api.github.com/users/edubs5/gists{/gist_id}","starred_url":"https://api.github.com/users/edubs5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubs5/subscriptions","organizations_url":"https://api.github.com/users/edubs5/orgs","repos_url":"https://api.github.com/users/edubs5/repos","events_url":"https://api.github.com/users/edubs5/events{/privacy}","received_events_url":"https://api.github.com/users/edubs5/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-16T21:35:10Z","updated_at":"2016-04-16T21:35:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6eeadce56f3470153a7432183eff23aa82a96d1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edubs5/scheduler/pulls/15/commits","review_comments_url":"https://api.github.com/repos/edubs5/scheduler/pulls/15/comments","review_comment_url":"https://api.github.com/repos/edubs5/scheduler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edubs5/scheduler/issues/15/comments","statuses_url":"https://api.github.com/repos/edubs5/scheduler/statuses/8275dc6fa40bb64b293fcc339a794554fd872e71","head":{"label":"edubs5:Update-schedule-and-location-tables","ref":"Update-schedule-and-location-tables","sha":"8275dc6fa40bb64b293fcc339a794554fd872e71","user":{"login":"edubs5","id":3847044,"avatar_url":"https://avatars.githubusercontent.com/u/3847044?v=3","gravatar_id":"","url":"https://api.github.com/users/edubs5","html_url":"https://github.com/edubs5","followers_url":"https://api.github.com/users/edubs5/followers","following_url":"https://api.github.com/users/edubs5/following{/other_user}","gists_url":"https://api.github.com/users/edubs5/gists{/gist_id}","starred_url":"https://api.github.com/users/edubs5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubs5/subscriptions","organizations_url":"https://api.github.com/users/edubs5/orgs","repos_url":"https://api.github.com/users/edubs5/repos","events_url":"https://api.github.com/users/edubs5/events{/privacy}","received_events_url":"https://api.github.com/users/edubs5/received_events","type":"User","site_admin":false},"repo":{"id":46953630,"name":"scheduler","full_name":"edubs5/scheduler","owner":{"login":"edubs5","id":3847044,"avatar_url":"https://avatars.githubusercontent.com/u/3847044?v=3","gravatar_id":"","url":"https://api.github.com/users/edubs5","html_url":"https://github.com/edubs5","followers_url":"https://api.github.com/users/edubs5/followers","following_url":"https://api.github.com/users/edubs5/following{/other_user}","gists_url":"https://api.github.com/users/edubs5/gists{/gist_id}","starred_url":"https://api.github.com/users/edubs5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubs5/subscriptions","organizations_url":"https://api.github.com/users/edubs5/orgs","repos_url":"https://api.github.com/users/edubs5/repos","events_url":"https://api.github.com/users/edubs5/events{/privacy}","received_events_url":"https://api.github.com/users/edubs5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edubs5/scheduler","description":"","fork":false,"url":"https://api.github.com/repos/edubs5/scheduler","forks_url":"https://api.github.com/repos/edubs5/scheduler/forks","keys_url":"https://api.github.com/repos/edubs5/scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edubs5/scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edubs5/scheduler/teams","hooks_url":"https://api.github.com/repos/edubs5/scheduler/hooks","issue_events_url":"https://api.github.com/repos/edubs5/scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/edubs5/scheduler/events","assignees_url":"https://api.github.com/repos/edubs5/scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/edubs5/scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/edubs5/scheduler/tags","blobs_url":"https://api.github.com/repos/edubs5/scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edubs5/scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edubs5/scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/edubs5/scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edubs5/scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/edubs5/scheduler/languages","stargazers_url":"https://api.github.com/repos/edubs5/scheduler/stargazers","contributors_url":"https://api.github.com/repos/edubs5/scheduler/contributors","subscribers_url":"https://api.github.com/repos/edubs5/scheduler/subscribers","subscription_url":"https://api.github.com/repos/edubs5/scheduler/subscription","commits_url":"https://api.github.com/repos/edubs5/scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/edubs5/scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/edubs5/scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/edubs5/scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/edubs5/scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/edubs5/scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edubs5/scheduler/merges","archive_url":"https://api.github.com/repos/edubs5/scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edubs5/scheduler/downloads","issues_url":"https://api.github.com/repos/edubs5/scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/edubs5/scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/edubs5/scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/edubs5/scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edubs5/scheduler/labels{/name}","releases_url":"https://api.github.com/repos/edubs5/scheduler/releases{/id}","deployments_url":"https://api.github.com/repos/edubs5/scheduler/deployments","created_at":"2015-11-27T01:32:20Z","updated_at":"2016-02-21T22:11:52Z","pushed_at":"2016-04-16T21:35:10Z","git_url":"git://github.com/edubs5/scheduler.git","ssh_url":"git@github.com:edubs5/scheduler.git","clone_url":"https://github.com/edubs5/scheduler.git","svn_url":"https://github.com/edubs5/scheduler","homepage":null,"size":99,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edubs5:master","ref":"master","sha":"1c0d7f956650d6f5a62799fd54e9660197db7461","user":{"login":"edubs5","id":3847044,"avatar_url":"https://avatars.githubusercontent.com/u/3847044?v=3","gravatar_id":"","url":"https://api.github.com/users/edubs5","html_url":"https://github.com/edubs5","followers_url":"https://api.github.com/users/edubs5/followers","following_url":"https://api.github.com/users/edubs5/following{/other_user}","gists_url":"https://api.github.com/users/edubs5/gists{/gist_id}","starred_url":"https://api.github.com/users/edubs5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubs5/subscriptions","organizations_url":"https://api.github.com/users/edubs5/orgs","repos_url":"https://api.github.com/users/edubs5/repos","events_url":"https://api.github.com/users/edubs5/events{/privacy}","received_events_url":"https://api.github.com/users/edubs5/received_events","type":"User","site_admin":false},"repo":{"id":46953630,"name":"scheduler","full_name":"edubs5/scheduler","owner":{"login":"edubs5","id":3847044,"avatar_url":"https://avatars.githubusercontent.com/u/3847044?v=3","gravatar_id":"","url":"https://api.github.com/users/edubs5","html_url":"https://github.com/edubs5","followers_url":"https://api.github.com/users/edubs5/followers","following_url":"https://api.github.com/users/edubs5/following{/other_user}","gists_url":"https://api.github.com/users/edubs5/gists{/gist_id}","starred_url":"https://api.github.com/users/edubs5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubs5/subscriptions","organizations_url":"https://api.github.com/users/edubs5/orgs","repos_url":"https://api.github.com/users/edubs5/repos","events_url":"https://api.github.com/users/edubs5/events{/privacy}","received_events_url":"https://api.github.com/users/edubs5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edubs5/scheduler","description":"","fork":false,"url":"https://api.github.com/repos/edubs5/scheduler","forks_url":"https://api.github.com/repos/edubs5/scheduler/forks","keys_url":"https://api.github.com/repos/edubs5/scheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edubs5/scheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edubs5/scheduler/teams","hooks_url":"https://api.github.com/repos/edubs5/scheduler/hooks","issue_events_url":"https://api.github.com/repos/edubs5/scheduler/issues/events{/number}","events_url":"https://api.github.com/repos/edubs5/scheduler/events","assignees_url":"https://api.github.com/repos/edubs5/scheduler/assignees{/user}","branches_url":"https://api.github.com/repos/edubs5/scheduler/branches{/branch}","tags_url":"https://api.github.com/repos/edubs5/scheduler/tags","blobs_url":"https://api.github.com/repos/edubs5/scheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edubs5/scheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edubs5/scheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/edubs5/scheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edubs5/scheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/edubs5/scheduler/languages","stargazers_url":"https://api.github.com/repos/edubs5/scheduler/stargazers","contributors_url":"https://api.github.com/repos/edubs5/scheduler/contributors","subscribers_url":"https://api.github.com/repos/edubs5/scheduler/subscribers","subscription_url":"https://api.github.com/repos/edubs5/scheduler/subscription","commits_url":"https://api.github.com/repos/edubs5/scheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/edubs5/scheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/edubs5/scheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/edubs5/scheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/edubs5/scheduler/contents/{+path}","compare_url":"https://api.github.com/repos/edubs5/scheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edubs5/scheduler/merges","archive_url":"https://api.github.com/repos/edubs5/scheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edubs5/scheduler/downloads","issues_url":"https://api.github.com/repos/edubs5/scheduler/issues{/number}","pulls_url":"https://api.github.com/repos/edubs5/scheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/edubs5/scheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/edubs5/scheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edubs5/scheduler/labels{/name}","releases_url":"https://api.github.com/repos/edubs5/scheduler/releases{/id}","deployments_url":"https://api.github.com/repos/edubs5/scheduler/deployments","created_at":"2015-11-27T01:32:20Z","updated_at":"2016-02-21T22:11:52Z","pushed_at":"2016-04-16T21:35:10Z","git_url":"git://github.com/edubs5/scheduler.git","ssh_url":"git@github.com:edubs5/scheduler.git","clone_url":"https://github.com/edubs5/scheduler.git","svn_url":"https://github.com/edubs5/scheduler","homepage":null,"size":99,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edubs5/scheduler/pulls/15"},"html":{"href":"https://github.com/edubs5/scheduler/pull/15"},"issue":{"href":"https://api.github.com/repos/edubs5/scheduler/issues/15"},"comments":{"href":"https://api.github.com/repos/edubs5/scheduler/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/edubs5/scheduler/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/edubs5/scheduler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edubs5/scheduler/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/edubs5/scheduler/statuses/8275dc6fa40bb64b293fcc339a794554fd872e71"}}}}