{"action":"created","comment":{"url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/comments/54339806","id":54339806,"diff_hunk":"@@ -0,0 +1,22 @@\n+use strict;\n+use warnings;\n+\n+use SCP::WebApp;\n+use Test::More;\n+use Plack::Test;\n+use HTTP::Request::Common;\n+\n+my $app = SCP::WebApp->to_app;\n+is( ref $app, 'CODE', 'Got app' );\n+my $test = Plack::Test->create($app);\n+my $res;\n+\n+# Test the GET index route\n+$res  = $test->request( GET '/' );\n+ok( $res->is_success, '[GET /] successful' );\n+\n+# Test the GET puzzle route","path":"SCP-WebApp/t/002_index_route.t","position":18,"original_position":18,"commit_id":"086d55a6fa8515fae9ad0187c02246a1b3e00626","original_commit_id":"086d55a6fa8515fae9ad0187c02246a1b3e00626","user":{"login":"kcurtis25","id":16712783,"avatar_url":"https://avatars.githubusercontent.com/u/16712783?v=3","gravatar_id":"","url":"https://api.github.com/users/kcurtis25","html_url":"https://github.com/kcurtis25","followers_url":"https://api.github.com/users/kcurtis25/followers","following_url":"https://api.github.com/users/kcurtis25/following{/other_user}","gists_url":"https://api.github.com/users/kcurtis25/gists{/gist_id}","starred_url":"https://api.github.com/users/kcurtis25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcurtis25/subscriptions","organizations_url":"https://api.github.com/users/kcurtis25/orgs","repos_url":"https://api.github.com/users/kcurtis25/repos","events_url":"https://api.github.com/users/kcurtis25/events{/privacy}","received_events_url":"https://api.github.com/users/kcurtis25/received_events","type":"User","site_admin":false},"body":"I have added the puzzle `GET` route. I can't get the `POST` one to work. Something I will be looking at more seriously in the next week or two.","created_at":"2016-02-27T21:28:16Z","updated_at":"2016-02-27T21:28:16Z","html_url":"https://github.com/kcurtis25/number-puzzles/pull/9#discussion_r54339806","pull_request_url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/comments/54339806"},"html":{"href":"https://github.com/kcurtis25/number-puzzles/pull/9#discussion_r54339806"},"pull_request":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9","id":60965593,"html_url":"https://github.com/kcurtis25/number-puzzles/pull/9","diff_url":"https://github.com/kcurtis25/number-puzzles/pull/9.diff","patch_url":"https://github.com/kcurtis25/number-puzzles/pull/9.patch","issue_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/9","number":9,"state":"open","locked":false,"title":"Initial Dancer Application","user":{"login":"kcurtis25","id":16712783,"avatar_url":"https://avatars.githubusercontent.com/u/16712783?v=3","gravatar_id":"","url":"https://api.github.com/users/kcurtis25","html_url":"https://github.com/kcurtis25","followers_url":"https://api.github.com/users/kcurtis25/followers","following_url":"https://api.github.com/users/kcurtis25/following{/other_user}","gists_url":"https://api.github.com/users/kcurtis25/gists{/gist_id}","starred_url":"https://api.github.com/users/kcurtis25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcurtis25/subscriptions","organizations_url":"https://api.github.com/users/kcurtis25/orgs","repos_url":"https://api.github.com/users/kcurtis25/repos","events_url":"https://api.github.com/users/kcurtis25/events{/privacy}","received_events_url":"https://api.github.com/users/kcurtis25/received_events","type":"User","site_admin":false},"body":"This CR refactors (re-write the code but maintain functionality) `lib/SCP/PuzzleGenerator.pm` and `bin/generate_number_puzzle.pl` so that more work is done within the perl module. \r\n\r\nIt then adds a Dancer app in the SCP-WebApp directory (SCP = Self Correcting Puzzle). The reason for the refactor is that we want to reduce the amount of duplicated code. Both `generate_number_puzzle.pl` and this Dancer app use the same perl modules to generate the puzzle. \r\n\r\nThe Dancer App is pretty basic, but it presents a web form, fill it out correctly and you can download from the web page a pdf file. \r\n\r\nThe problems with it is there is no error detection or correction. Any typo in a key field results in a stack trace page, which is very unhelpful for a use (as opposed to a developer)","created_at":"2016-02-27T21:22:32Z","updated_at":"2016-02-27T21:28:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"686044deef6b79619e6f0ebb45fb82e3d3aeed8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9/commits","review_comments_url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9/comments","review_comment_url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/9/comments","statuses_url":"https://api.github.com/repos/kcurtis25/number-puzzles/statuses/086d55a6fa8515fae9ad0187c02246a1b3e00626","head":{"label":"kcurtis25:dancer","ref":"dancer","sha":"086d55a6fa8515fae9ad0187c02246a1b3e00626","user":{"login":"kcurtis25","id":16712783,"avatar_url":"https://avatars.githubusercontent.com/u/16712783?v=3","gravatar_id":"","url":"https://api.github.com/users/kcurtis25","html_url":"https://github.com/kcurtis25","followers_url":"https://api.github.com/users/kcurtis25/followers","following_url":"https://api.github.com/users/kcurtis25/following{/other_user}","gists_url":"https://api.github.com/users/kcurtis25/gists{/gist_id}","starred_url":"https://api.github.com/users/kcurtis25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcurtis25/subscriptions","organizations_url":"https://api.github.com/users/kcurtis25/orgs","repos_url":"https://api.github.com/users/kcurtis25/repos","events_url":"https://api.github.com/users/kcurtis25/events{/privacy}","received_events_url":"https://api.github.com/users/kcurtis25/received_events","type":"User","site_admin":false},"repo":{"id":49690221,"name":"number-puzzles","full_name":"kcurtis25/number-puzzles","owner":{"login":"kcurtis25","id":16712783,"avatar_url":"https://avatars.githubusercontent.com/u/16712783?v=3","gravatar_id":"","url":"https://api.github.com/users/kcurtis25","html_url":"https://github.com/kcurtis25","followers_url":"https://api.github.com/users/kcurtis25/followers","following_url":"https://api.github.com/users/kcurtis25/following{/other_user}","gists_url":"https://api.github.com/users/kcurtis25/gists{/gist_id}","starred_url":"https://api.github.com/users/kcurtis25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcurtis25/subscriptions","organizations_url":"https://api.github.com/users/kcurtis25/orgs","repos_url":"https://api.github.com/users/kcurtis25/repos","events_url":"https://api.github.com/users/kcurtis25/events{/privacy}","received_events_url":"https://api.github.com/users/kcurtis25/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kcurtis25/number-puzzles","description":"Create fun self correcting number puzzles for Primary School Aged children","fork":false,"url":"https://api.github.com/repos/kcurtis25/number-puzzles","forks_url":"https://api.github.com/repos/kcurtis25/number-puzzles/forks","keys_url":"https://api.github.com/repos/kcurtis25/number-puzzles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kcurtis25/number-puzzles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kcurtis25/number-puzzles/teams","hooks_url":"https://api.github.com/repos/kcurtis25/number-puzzles/hooks","issue_events_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/events{/number}","events_url":"https://api.github.com/repos/kcurtis25/number-puzzles/events","assignees_url":"https://api.github.com/repos/kcurtis25/number-puzzles/assignees{/user}","branches_url":"https://api.github.com/repos/kcurtis25/number-puzzles/branches{/branch}","tags_url":"https://api.github.com/repos/kcurtis25/number-puzzles/tags","blobs_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/refs{/sha}","trees_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kcurtis25/number-puzzles/statuses/{sha}","languages_url":"https://api.github.com/repos/kcurtis25/number-puzzles/languages","stargazers_url":"https://api.github.com/repos/kcurtis25/number-puzzles/stargazers","contributors_url":"https://api.github.com/repos/kcurtis25/number-puzzles/contributors","subscribers_url":"https://api.github.com/repos/kcurtis25/number-puzzles/subscribers","subscription_url":"https://api.github.com/repos/kcurtis25/number-puzzles/subscription","commits_url":"https://api.github.com/repos/kcurtis25/number-puzzles/commits{/sha}","git_commits_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/commits{/sha}","comments_url":"https://api.github.com/repos/kcurtis25/number-puzzles/comments{/number}","issue_comment_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/comments{/number}","contents_url":"https://api.github.com/repos/kcurtis25/number-puzzles/contents/{+path}","compare_url":"https://api.github.com/repos/kcurtis25/number-puzzles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kcurtis25/number-puzzles/merges","archive_url":"https://api.github.com/repos/kcurtis25/number-puzzles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kcurtis25/number-puzzles/downloads","issues_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues{/number}","pulls_url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls{/number}","milestones_url":"https://api.github.com/repos/kcurtis25/number-puzzles/milestones{/number}","notifications_url":"https://api.github.com/repos/kcurtis25/number-puzzles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kcurtis25/number-puzzles/labels{/name}","releases_url":"https://api.github.com/repos/kcurtis25/number-puzzles/releases{/id}","deployments_url":"https://api.github.com/repos/kcurtis25/number-puzzles/deployments","created_at":"2016-01-15T02:17:11Z","updated_at":"2016-02-23T06:21:36Z","pushed_at":"2016-02-27T21:22:32Z","git_url":"git://github.com/kcurtis25/number-puzzles.git","ssh_url":"git@github.com:kcurtis25/number-puzzles.git","clone_url":"https://github.com/kcurtis25/number-puzzles.git","svn_url":"https://github.com/kcurtis25/number-puzzles","homepage":null,"size":148,"stargazers_count":2,"watchers_count":2,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"kcurtis25:master","ref":"master","sha":"2e0c6d526eed4be9c315da955617c7b6e4d906d8","user":{"login":"kcurtis25","id":16712783,"avatar_url":"https://avatars.githubusercontent.com/u/16712783?v=3","gravatar_id":"","url":"https://api.github.com/users/kcurtis25","html_url":"https://github.com/kcurtis25","followers_url":"https://api.github.com/users/kcurtis25/followers","following_url":"https://api.github.com/users/kcurtis25/following{/other_user}","gists_url":"https://api.github.com/users/kcurtis25/gists{/gist_id}","starred_url":"https://api.github.com/users/kcurtis25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcurtis25/subscriptions","organizations_url":"https://api.github.com/users/kcurtis25/orgs","repos_url":"https://api.github.com/users/kcurtis25/repos","events_url":"https://api.github.com/users/kcurtis25/events{/privacy}","received_events_url":"https://api.github.com/users/kcurtis25/received_events","type":"User","site_admin":false},"repo":{"id":49690221,"name":"number-puzzles","full_name":"kcurtis25/number-puzzles","owner":{"login":"kcurtis25","id":16712783,"avatar_url":"https://avatars.githubusercontent.com/u/16712783?v=3","gravatar_id":"","url":"https://api.github.com/users/kcurtis25","html_url":"https://github.com/kcurtis25","followers_url":"https://api.github.com/users/kcurtis25/followers","following_url":"https://api.github.com/users/kcurtis25/following{/other_user}","gists_url":"https://api.github.com/users/kcurtis25/gists{/gist_id}","starred_url":"https://api.github.com/users/kcurtis25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcurtis25/subscriptions","organizations_url":"https://api.github.com/users/kcurtis25/orgs","repos_url":"https://api.github.com/users/kcurtis25/repos","events_url":"https://api.github.com/users/kcurtis25/events{/privacy}","received_events_url":"https://api.github.com/users/kcurtis25/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kcurtis25/number-puzzles","description":"Create fun self correcting number puzzles for Primary School Aged children","fork":false,"url":"https://api.github.com/repos/kcurtis25/number-puzzles","forks_url":"https://api.github.com/repos/kcurtis25/number-puzzles/forks","keys_url":"https://api.github.com/repos/kcurtis25/number-puzzles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kcurtis25/number-puzzles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kcurtis25/number-puzzles/teams","hooks_url":"https://api.github.com/repos/kcurtis25/number-puzzles/hooks","issue_events_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/events{/number}","events_url":"https://api.github.com/repos/kcurtis25/number-puzzles/events","assignees_url":"https://api.github.com/repos/kcurtis25/number-puzzles/assignees{/user}","branches_url":"https://api.github.com/repos/kcurtis25/number-puzzles/branches{/branch}","tags_url":"https://api.github.com/repos/kcurtis25/number-puzzles/tags","blobs_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/refs{/sha}","trees_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kcurtis25/number-puzzles/statuses/{sha}","languages_url":"https://api.github.com/repos/kcurtis25/number-puzzles/languages","stargazers_url":"https://api.github.com/repos/kcurtis25/number-puzzles/stargazers","contributors_url":"https://api.github.com/repos/kcurtis25/number-puzzles/contributors","subscribers_url":"https://api.github.com/repos/kcurtis25/number-puzzles/subscribers","subscription_url":"https://api.github.com/repos/kcurtis25/number-puzzles/subscription","commits_url":"https://api.github.com/repos/kcurtis25/number-puzzles/commits{/sha}","git_commits_url":"https://api.github.com/repos/kcurtis25/number-puzzles/git/commits{/sha}","comments_url":"https://api.github.com/repos/kcurtis25/number-puzzles/comments{/number}","issue_comment_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/comments{/number}","contents_url":"https://api.github.com/repos/kcurtis25/number-puzzles/contents/{+path}","compare_url":"https://api.github.com/repos/kcurtis25/number-puzzles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kcurtis25/number-puzzles/merges","archive_url":"https://api.github.com/repos/kcurtis25/number-puzzles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kcurtis25/number-puzzles/downloads","issues_url":"https://api.github.com/repos/kcurtis25/number-puzzles/issues{/number}","pulls_url":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls{/number}","milestones_url":"https://api.github.com/repos/kcurtis25/number-puzzles/milestones{/number}","notifications_url":"https://api.github.com/repos/kcurtis25/number-puzzles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kcurtis25/number-puzzles/labels{/name}","releases_url":"https://api.github.com/repos/kcurtis25/number-puzzles/releases{/id}","deployments_url":"https://api.github.com/repos/kcurtis25/number-puzzles/deployments","created_at":"2016-01-15T02:17:11Z","updated_at":"2016-02-23T06:21:36Z","pushed_at":"2016-02-27T21:22:32Z","git_url":"git://github.com/kcurtis25/number-puzzles.git","ssh_url":"git@github.com:kcurtis25/number-puzzles.git","clone_url":"https://github.com/kcurtis25/number-puzzles.git","svn_url":"https://github.com/kcurtis25/number-puzzles","homepage":null,"size":148,"stargazers_count":2,"watchers_count":2,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9"},"html":{"href":"https://github.com/kcurtis25/number-puzzles/pull/9"},"issue":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/9"},"comments":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/kcurtis25/number-puzzles/statuses/086d55a6fa8515fae9ad0187c02246a1b3e00626"}}}}