{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/giantfishy/osc/pulls/1","id":108931,"html_url":"https://github.com/giantfishy/osc/pull/1","diff_url":"https://github.com/giantfishy/osc/pull/1.diff","patch_url":"https://github.com/giantfishy/osc/pull/1.patch","issue_url":"https://api.github.com/repos/giantfishy/osc/issues/1","number":1,"state":"closed","locked":false,"title":"Permit whitespace in level files","user":{"login":"tonyg","id":17710,"avatar_url":"https://avatars.githubusercontent.com/u/17710?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyg","html_url":"https://github.com/tonyg","followers_url":"https://api.github.com/users/tonyg/followers","following_url":"https://api.github.com/users/tonyg/following{/other_user}","gists_url":"https://api.github.com/users/tonyg/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyg/subscriptions","organizations_url":"https://api.github.com/users/tonyg/orgs","repos_url":"https://api.github.com/users/tonyg/repos","events_url":"https://api.github.com/users/tonyg/events{/privacy}","received_events_url":"https://api.github.com/users/tonyg/received_events","type":"User","site_admin":false},"body":"I've pulled out the file I/O used to load the level files, and used the gsub method with a regular expression to remove all whitespace from the loaded text before processing. I've also put cosmetic newlines into level1.txt so you can see the effect. If you like this patch, maybe the other level files could be changed too.","created_at":"2011-04-04T15:19:08Z","updated_at":"2015-04-07T23:16:53Z","closed_at":"2015-04-07T23:16:53Z","merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/giantfishy/osc/pulls/1/commits","review_comments_url":"https://api.github.com/repos/giantfishy/osc/pulls/1/comments","review_comment_url":"https://api.github.com/repos/giantfishy/osc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/giantfishy/osc/issues/1/comments","statuses_url":"https://api.github.com/repos/giantfishy/osc/statuses/f514274dc27a1ce6a7ffa05b9ef3a8bc3617246e","head":{"label":"tonyg:master","ref":"master","sha":"f514274dc27a1ce6a7ffa05b9ef3a8bc3617246e","user":{"login":"tonyg","id":17710,"avatar_url":"https://avatars.githubusercontent.com/u/17710?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyg","html_url":"https://github.com/tonyg","followers_url":"https://api.github.com/users/tonyg/followers","following_url":"https://api.github.com/users/tonyg/following{/other_user}","gists_url":"https://api.github.com/users/tonyg/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyg/subscriptions","organizations_url":"https://api.github.com/users/tonyg/orgs","repos_url":"https://api.github.com/users/tonyg/repos","events_url":"https://api.github.com/users/tonyg/events{/privacy}","received_events_url":"https://api.github.com/users/tonyg/received_events","type":"User","site_admin":false},"repo":{"id":1567514,"name":"osc","full_name":"tonyg/osc","owner":{"login":"tonyg","id":17710,"avatar_url":"https://avatars.githubusercontent.com/u/17710?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyg","html_url":"https://github.com/tonyg","followers_url":"https://api.github.com/users/tonyg/followers","following_url":"https://api.github.com/users/tonyg/following{/other_user}","gists_url":"https://api.github.com/users/tonyg/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyg/subscriptions","organizations_url":"https://api.github.com/users/tonyg/orgs","repos_url":"https://api.github.com/users/tonyg/repos","events_url":"https://api.github.com/users/tonyg/events{/privacy}","received_events_url":"https://api.github.com/users/tonyg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tonyg/osc","description":"A platforming-story game about a scarf-wearing cat called osc.","fork":true,"url":"https://api.github.com/repos/tonyg/osc","forks_url":"https://api.github.com/repos/tonyg/osc/forks","keys_url":"https://api.github.com/repos/tonyg/osc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tonyg/osc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tonyg/osc/teams","hooks_url":"https://api.github.com/repos/tonyg/osc/hooks","issue_events_url":"https://api.github.com/repos/tonyg/osc/issues/events{/number}","events_url":"https://api.github.com/repos/tonyg/osc/events","assignees_url":"https://api.github.com/repos/tonyg/osc/assignees{/user}","branches_url":"https://api.github.com/repos/tonyg/osc/branches{/branch}","tags_url":"https://api.github.com/repos/tonyg/osc/tags","blobs_url":"https://api.github.com/repos/tonyg/osc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tonyg/osc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tonyg/osc/git/refs{/sha}","trees_url":"https://api.github.com/repos/tonyg/osc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tonyg/osc/statuses/{sha}","languages_url":"https://api.github.com/repos/tonyg/osc/languages","stargazers_url":"https://api.github.com/repos/tonyg/osc/stargazers","contributors_url":"https://api.github.com/repos/tonyg/osc/contributors","subscribers_url":"https://api.github.com/repos/tonyg/osc/subscribers","subscription_url":"https://api.github.com/repos/tonyg/osc/subscription","commits_url":"https://api.github.com/repos/tonyg/osc/commits{/sha}","git_commits_url":"https://api.github.com/repos/tonyg/osc/git/commits{/sha}","comments_url":"https://api.github.com/repos/tonyg/osc/comments{/number}","issue_comment_url":"https://api.github.com/repos/tonyg/osc/issues/comments{/number}","contents_url":"https://api.github.com/repos/tonyg/osc/contents/{+path}","compare_url":"https://api.github.com/repos/tonyg/osc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tonyg/osc/merges","archive_url":"https://api.github.com/repos/tonyg/osc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tonyg/osc/downloads","issues_url":"https://api.github.com/repos/tonyg/osc/issues{/number}","pulls_url":"https://api.github.com/repos/tonyg/osc/pulls{/number}","milestones_url":"https://api.github.com/repos/tonyg/osc/milestones{/number}","notifications_url":"https://api.github.com/repos/tonyg/osc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tonyg/osc/labels{/name}","releases_url":"https://api.github.com/repos/tonyg/osc/releases{/id}","created_at":"2011-04-04T15:15:42Z","updated_at":"2015-04-07T23:16:53Z","pushed_at":"2015-04-07T23:16:53Z","git_url":"git://github.com/tonyg/osc.git","ssh_url":"git@github.com:tonyg/osc.git","clone_url":"https://github.com/tonyg/osc.git","svn_url":"https://github.com/tonyg/osc","homepage":"","size":19458,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"giantfishy:master","ref":"master","sha":"f514274dc27a1ce6a7ffa05b9ef3a8bc3617246e","user":{"login":"giantfishy","id":286433,"avatar_url":"https://avatars.githubusercontent.com/u/286433?v=3","gravatar_id":"","url":"https://api.github.com/users/giantfishy","html_url":"https://github.com/giantfishy","followers_url":"https://api.github.com/users/giantfishy/followers","following_url":"https://api.github.com/users/giantfishy/following{/other_user}","gists_url":"https://api.github.com/users/giantfishy/gists{/gist_id}","starred_url":"https://api.github.com/users/giantfishy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantfishy/subscriptions","organizations_url":"https://api.github.com/users/giantfishy/orgs","repos_url":"https://api.github.com/users/giantfishy/repos","events_url":"https://api.github.com/users/giantfishy/events{/privacy}","received_events_url":"https://api.github.com/users/giantfishy/received_events","type":"User","site_admin":false},"repo":{"id":1332198,"name":"osc","full_name":"giantfishy/osc","owner":{"login":"giantfishy","id":286433,"avatar_url":"https://avatars.githubusercontent.com/u/286433?v=3","gravatar_id":"","url":"https://api.github.com/users/giantfishy","html_url":"https://github.com/giantfishy","followers_url":"https://api.github.com/users/giantfishy/followers","following_url":"https://api.github.com/users/giantfishy/following{/other_user}","gists_url":"https://api.github.com/users/giantfishy/gists{/gist_id}","starred_url":"https://api.github.com/users/giantfishy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantfishy/subscriptions","organizations_url":"https://api.github.com/users/giantfishy/orgs","repos_url":"https://api.github.com/users/giantfishy/repos","events_url":"https://api.github.com/users/giantfishy/events{/privacy}","received_events_url":"https://api.github.com/users/giantfishy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giantfishy/osc","description":"A platforming-story game about a scarf-wearing cat called osc.","fork":false,"url":"https://api.github.com/repos/giantfishy/osc","forks_url":"https://api.github.com/repos/giantfishy/osc/forks","keys_url":"https://api.github.com/repos/giantfishy/osc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giantfishy/osc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giantfishy/osc/teams","hooks_url":"https://api.github.com/repos/giantfishy/osc/hooks","issue_events_url":"https://api.github.com/repos/giantfishy/osc/issues/events{/number}","events_url":"https://api.github.com/repos/giantfishy/osc/events","assignees_url":"https://api.github.com/repos/giantfishy/osc/assignees{/user}","branches_url":"https://api.github.com/repos/giantfishy/osc/branches{/branch}","tags_url":"https://api.github.com/repos/giantfishy/osc/tags","blobs_url":"https://api.github.com/repos/giantfishy/osc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giantfishy/osc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giantfishy/osc/git/refs{/sha}","trees_url":"https://api.github.com/repos/giantfishy/osc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giantfishy/osc/statuses/{sha}","languages_url":"https://api.github.com/repos/giantfishy/osc/languages","stargazers_url":"https://api.github.com/repos/giantfishy/osc/stargazers","contributors_url":"https://api.github.com/repos/giantfishy/osc/contributors","subscribers_url":"https://api.github.com/repos/giantfishy/osc/subscribers","subscription_url":"https://api.github.com/repos/giantfishy/osc/subscription","commits_url":"https://api.github.com/repos/giantfishy/osc/commits{/sha}","git_commits_url":"https://api.github.com/repos/giantfishy/osc/git/commits{/sha}","comments_url":"https://api.github.com/repos/giantfishy/osc/comments{/number}","issue_comment_url":"https://api.github.com/repos/giantfishy/osc/issues/comments{/number}","contents_url":"https://api.github.com/repos/giantfishy/osc/contents/{+path}","compare_url":"https://api.github.com/repos/giantfishy/osc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giantfishy/osc/merges","archive_url":"https://api.github.com/repos/giantfishy/osc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giantfishy/osc/downloads","issues_url":"https://api.github.com/repos/giantfishy/osc/issues{/number}","pulls_url":"https://api.github.com/repos/giantfishy/osc/pulls{/number}","milestones_url":"https://api.github.com/repos/giantfishy/osc/milestones{/number}","notifications_url":"https://api.github.com/repos/giantfishy/osc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giantfishy/osc/labels{/name}","releases_url":"https://api.github.com/repos/giantfishy/osc/releases{/id}","created_at":"2011-02-05T18:35:34Z","updated_at":"2014-07-29T01:48:16Z","pushed_at":"2015-04-07T23:16:54Z","git_url":"git://github.com/giantfishy/osc.git","ssh_url":"git@github.com:giantfishy/osc.git","clone_url":"https://github.com/giantfishy/osc.git","svn_url":"https://github.com/giantfishy/osc","homepage":"","size":22234,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/giantfishy/osc/pulls/1"},"html":{"href":"https://github.com/giantfishy/osc/pull/1"},"issue":{"href":"https://api.github.com/repos/giantfishy/osc/issues/1"},"comments":{"href":"https://api.github.com/repos/giantfishy/osc/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/giantfishy/osc/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/giantfishy/osc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/giantfishy/osc/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/giantfishy/osc/statuses/f514274dc27a1ce6a7ffa05b9ef3a8bc3617246e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":0,"commits":0,"additions":0,"deletions":0,"changed_files":0}}