{"action":"created","comment":{"url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/comments/42907260","id":42907260,"diff_hunk":"@@ -0,0 +1,115 @@\n+package org.exschool.pocketworld.config;\n+\n+import org.springframework.context.annotation.Bean;\n+import org.springframework.context.annotation.ComponentScan;\n+import org.springframework.context.annotation.Configuration;\n+import org.springframework.web.servlet.config.annotation.EnableWebMvc;\n+import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;\n+import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;\n+import org.springframework.web.servlet.view.velocity.VelocityConfig;\n+import org.springframework.web.servlet.view.velocity.VelocityConfigurer;\n+import org.springframework.web.servlet.view.velocity.VelocityToolboxView;\n+import org.springframework.web.servlet.view.velocity.VelocityViewResolver;\n+\n+@EnableWebMvc\n+@Configuration\n+@ComponentScan({ \"org.exschool.pocketworld.controllers\" })\n+public class SpringWebConfig extends WebMvcConfigurerAdapter{\n+\t\n+\t@Override\n+\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n+\t\tregistry.addResourceHandler(\"/resources/**\")\n+                        .addResourceLocations(\"/resources/\");\n+\t}\n+\t\n+\t@Bean\n+\tpublic VelocityConfig velocityConfig() {\n+\t    VelocityConfigurer cfg = new VelocityConfigurer();\n+\t    cfg.setResourceLoaderPath(\"/WEB-INF/views/\");\n+\t    //cfg.setConfigLocation(context.getResource(\"/WEB-INF/velocity.properties\"));\n+\t    return cfg;\n+\t}\n+\t\n+\t@Bean\n+\tpublic VelocityViewResolver viewResolver() {\n+\t\tVelocityViewResolver viewResolver = new VelocityViewResolver();\n+\t\tviewResolver.setViewClass(VelocityToolboxView.class);\n+\t\tviewResolver.setSuffix(\".vm\");\n+\t\treturn viewResolver;\n+\t}\n+\t\n+\t\n+\t\n+\t/**","path":"src/main/java/org/exschool/pocketworld/config/SpringWebConfig.java","position":42,"original_position":43,"commit_id":"56827e2b12fc4776ed19240fe287d5000c1cf11f","original_commit_id":"168dfd48970e73762a2aa2d12516bfd74d6af288","user":{"login":"grechman","id":3459186,"avatar_url":"https://avatars.githubusercontent.com/u/3459186?v=3","gravatar_id":"","url":"https://api.github.com/users/grechman","html_url":"https://github.com/grechman","followers_url":"https://api.github.com/users/grechman/followers","following_url":"https://api.github.com/users/grechman/following{/other_user}","gists_url":"https://api.github.com/users/grechman/gists{/gist_id}","starred_url":"https://api.github.com/users/grechman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechman/subscriptions","organizations_url":"https://api.github.com/users/grechman/orgs","repos_url":"https://api.github.com/users/grechman/repos","events_url":"https://api.github.com/users/grechman/events{/privacy}","received_events_url":"https://api.github.com/users/grechman/received_events","type":"User","site_admin":false},"body":"sorry,done","created_at":"2015-10-23T19:52:42Z","updated_at":"2015-10-23T19:52:42Z","html_url":"https://github.com/ExSchoole/pocket_world/pull/2#discussion_r42907260","pull_request_url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/comments/42907260"},"html":{"href":"https://github.com/ExSchoole/pocket_world/pull/2#discussion_r42907260"},"pull_request":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2","id":48438905,"html_url":"https://github.com/ExSchoole/pocket_world/pull/2","diff_url":"https://github.com/ExSchoole/pocket_world/pull/2.diff","patch_url":"https://github.com/ExSchoole/pocket_world/pull/2.patch","issue_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues/2","number":2,"state":"open","locked":false,"title":"Sprint 1 develop","user":{"login":"grechman","id":3459186,"avatar_url":"https://avatars.githubusercontent.com/u/3459186?v=3","gravatar_id":"","url":"https://api.github.com/users/grechman","html_url":"https://github.com/grechman","followers_url":"https://api.github.com/users/grechman/followers","following_url":"https://api.github.com/users/grechman/following{/other_user}","gists_url":"https://api.github.com/users/grechman/gists{/gist_id}","starred_url":"https://api.github.com/users/grechman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechman/subscriptions","organizations_url":"https://api.github.com/users/grechman/orgs","repos_url":"https://api.github.com/users/grechman/repos","events_url":"https://api.github.com/users/grechman/events{/privacy}","received_events_url":"https://api.github.com/users/grechman/received_events","type":"User","site_admin":false},"body":"Skeleton is ready, please review","created_at":"2015-10-22T10:07:14Z","updated_at":"2015-10-23T19:52:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45c40ed5cf0950291a7cde6201c692e30a268a2e","assignee":{"login":"cat-eat-dog","id":4817018,"avatar_url":"https://avatars.githubusercontent.com/u/4817018?v=3","gravatar_id":"","url":"https://api.github.com/users/cat-eat-dog","html_url":"https://github.com/cat-eat-dog","followers_url":"https://api.github.com/users/cat-eat-dog/followers","following_url":"https://api.github.com/users/cat-eat-dog/following{/other_user}","gists_url":"https://api.github.com/users/cat-eat-dog/gists{/gist_id}","starred_url":"https://api.github.com/users/cat-eat-dog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cat-eat-dog/subscriptions","organizations_url":"https://api.github.com/users/cat-eat-dog/orgs","repos_url":"https://api.github.com/users/cat-eat-dog/repos","events_url":"https://api.github.com/users/cat-eat-dog/events{/privacy}","received_events_url":"https://api.github.com/users/cat-eat-dog/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues/2/comments","statuses_url":"https://api.github.com/repos/ExSchoole/pocket_world/statuses/56827e2b12fc4776ed19240fe287d5000c1cf11f","head":{"label":"ExSchoole:sprint_1_develop","ref":"sprint_1_develop","sha":"56827e2b12fc4776ed19240fe287d5000c1cf11f","user":{"login":"ExSchoole","id":15068517,"avatar_url":"https://avatars.githubusercontent.com/u/15068517?v=3","gravatar_id":"","url":"https://api.github.com/users/ExSchoole","html_url":"https://github.com/ExSchoole","followers_url":"https://api.github.com/users/ExSchoole/followers","following_url":"https://api.github.com/users/ExSchoole/following{/other_user}","gists_url":"https://api.github.com/users/ExSchoole/gists{/gist_id}","starred_url":"https://api.github.com/users/ExSchoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExSchoole/subscriptions","organizations_url":"https://api.github.com/users/ExSchoole/orgs","repos_url":"https://api.github.com/users/ExSchoole/repos","events_url":"https://api.github.com/users/ExSchoole/events{/privacy}","received_events_url":"https://api.github.com/users/ExSchoole/received_events","type":"Organization","site_admin":false},"repo":{"id":44027468,"name":"pocket_world","full_name":"ExSchoole/pocket_world","owner":{"login":"ExSchoole","id":15068517,"avatar_url":"https://avatars.githubusercontent.com/u/15068517?v=3","gravatar_id":"","url":"https://api.github.com/users/ExSchoole","html_url":"https://github.com/ExSchoole","followers_url":"https://api.github.com/users/ExSchoole/followers","following_url":"https://api.github.com/users/ExSchoole/following{/other_user}","gists_url":"https://api.github.com/users/ExSchoole/gists{/gist_id}","starred_url":"https://api.github.com/users/ExSchoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExSchoole/subscriptions","organizations_url":"https://api.github.com/users/ExSchoole/orgs","repos_url":"https://api.github.com/users/ExSchoole/repos","events_url":"https://api.github.com/users/ExSchoole/events{/privacy}","received_events_url":"https://api.github.com/users/ExSchoole/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ExSchoole/pocket_world","description":"","fork":false,"url":"https://api.github.com/repos/ExSchoole/pocket_world","forks_url":"https://api.github.com/repos/ExSchoole/pocket_world/forks","keys_url":"https://api.github.com/repos/ExSchoole/pocket_world/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExSchoole/pocket_world/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExSchoole/pocket_world/teams","hooks_url":"https://api.github.com/repos/ExSchoole/pocket_world/hooks","issue_events_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues/events{/number}","events_url":"https://api.github.com/repos/ExSchoole/pocket_world/events","assignees_url":"https://api.github.com/repos/ExSchoole/pocket_world/assignees{/user}","branches_url":"https://api.github.com/repos/ExSchoole/pocket_world/branches{/branch}","tags_url":"https://api.github.com/repos/ExSchoole/pocket_world/tags","blobs_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExSchoole/pocket_world/statuses/{sha}","languages_url":"https://api.github.com/repos/ExSchoole/pocket_world/languages","stargazers_url":"https://api.github.com/repos/ExSchoole/pocket_world/stargazers","contributors_url":"https://api.github.com/repos/ExSchoole/pocket_world/contributors","subscribers_url":"https://api.github.com/repos/ExSchoole/pocket_world/subscribers","subscription_url":"https://api.github.com/repos/ExSchoole/pocket_world/subscription","commits_url":"https://api.github.com/repos/ExSchoole/pocket_world/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExSchoole/pocket_world/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExSchoole/pocket_world/contents/{+path}","compare_url":"https://api.github.com/repos/ExSchoole/pocket_world/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExSchoole/pocket_world/merges","archive_url":"https://api.github.com/repos/ExSchoole/pocket_world/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExSchoole/pocket_world/downloads","issues_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues{/number}","pulls_url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls{/number}","milestones_url":"https://api.github.com/repos/ExSchoole/pocket_world/milestones{/number}","notifications_url":"https://api.github.com/repos/ExSchoole/pocket_world/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExSchoole/pocket_world/labels{/name}","releases_url":"https://api.github.com/repos/ExSchoole/pocket_world/releases{/id}","created_at":"2015-10-10T20:38:56Z","updated_at":"2015-10-10T20:38:56Z","pushed_at":"2015-10-23T09:29:37Z","git_url":"git://github.com/ExSchoole/pocket_world.git","ssh_url":"git@github.com:ExSchoole/pocket_world.git","clone_url":"https://github.com/ExSchoole/pocket_world.git","svn_url":"https://github.com/ExSchoole/pocket_world","homepage":null,"size":129,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ExSchoole:master","ref":"master","sha":"b90295bcee5c3db78064476016012bdc5222fcc1","user":{"login":"ExSchoole","id":15068517,"avatar_url":"https://avatars.githubusercontent.com/u/15068517?v=3","gravatar_id":"","url":"https://api.github.com/users/ExSchoole","html_url":"https://github.com/ExSchoole","followers_url":"https://api.github.com/users/ExSchoole/followers","following_url":"https://api.github.com/users/ExSchoole/following{/other_user}","gists_url":"https://api.github.com/users/ExSchoole/gists{/gist_id}","starred_url":"https://api.github.com/users/ExSchoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExSchoole/subscriptions","organizations_url":"https://api.github.com/users/ExSchoole/orgs","repos_url":"https://api.github.com/users/ExSchoole/repos","events_url":"https://api.github.com/users/ExSchoole/events{/privacy}","received_events_url":"https://api.github.com/users/ExSchoole/received_events","type":"Organization","site_admin":false},"repo":{"id":44027468,"name":"pocket_world","full_name":"ExSchoole/pocket_world","owner":{"login":"ExSchoole","id":15068517,"avatar_url":"https://avatars.githubusercontent.com/u/15068517?v=3","gravatar_id":"","url":"https://api.github.com/users/ExSchoole","html_url":"https://github.com/ExSchoole","followers_url":"https://api.github.com/users/ExSchoole/followers","following_url":"https://api.github.com/users/ExSchoole/following{/other_user}","gists_url":"https://api.github.com/users/ExSchoole/gists{/gist_id}","starred_url":"https://api.github.com/users/ExSchoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExSchoole/subscriptions","organizations_url":"https://api.github.com/users/ExSchoole/orgs","repos_url":"https://api.github.com/users/ExSchoole/repos","events_url":"https://api.github.com/users/ExSchoole/events{/privacy}","received_events_url":"https://api.github.com/users/ExSchoole/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ExSchoole/pocket_world","description":"","fork":false,"url":"https://api.github.com/repos/ExSchoole/pocket_world","forks_url":"https://api.github.com/repos/ExSchoole/pocket_world/forks","keys_url":"https://api.github.com/repos/ExSchoole/pocket_world/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExSchoole/pocket_world/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExSchoole/pocket_world/teams","hooks_url":"https://api.github.com/repos/ExSchoole/pocket_world/hooks","issue_events_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues/events{/number}","events_url":"https://api.github.com/repos/ExSchoole/pocket_world/events","assignees_url":"https://api.github.com/repos/ExSchoole/pocket_world/assignees{/user}","branches_url":"https://api.github.com/repos/ExSchoole/pocket_world/branches{/branch}","tags_url":"https://api.github.com/repos/ExSchoole/pocket_world/tags","blobs_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExSchoole/pocket_world/statuses/{sha}","languages_url":"https://api.github.com/repos/ExSchoole/pocket_world/languages","stargazers_url":"https://api.github.com/repos/ExSchoole/pocket_world/stargazers","contributors_url":"https://api.github.com/repos/ExSchoole/pocket_world/contributors","subscribers_url":"https://api.github.com/repos/ExSchoole/pocket_world/subscribers","subscription_url":"https://api.github.com/repos/ExSchoole/pocket_world/subscription","commits_url":"https://api.github.com/repos/ExSchoole/pocket_world/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExSchoole/pocket_world/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExSchoole/pocket_world/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExSchoole/pocket_world/contents/{+path}","compare_url":"https://api.github.com/repos/ExSchoole/pocket_world/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExSchoole/pocket_world/merges","archive_url":"https://api.github.com/repos/ExSchoole/pocket_world/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExSchoole/pocket_world/downloads","issues_url":"https://api.github.com/repos/ExSchoole/pocket_world/issues{/number}","pulls_url":"https://api.github.com/repos/ExSchoole/pocket_world/pulls{/number}","milestones_url":"https://api.github.com/repos/ExSchoole/pocket_world/milestones{/number}","notifications_url":"https://api.github.com/repos/ExSchoole/pocket_world/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExSchoole/pocket_world/labels{/name}","releases_url":"https://api.github.com/repos/ExSchoole/pocket_world/releases{/id}","created_at":"2015-10-10T20:38:56Z","updated_at":"2015-10-10T20:38:56Z","pushed_at":"2015-10-23T09:29:37Z","git_url":"git://github.com/ExSchoole/pocket_world.git","ssh_url":"git@github.com:ExSchoole/pocket_world.git","clone_url":"https://github.com/ExSchoole/pocket_world.git","svn_url":"https://github.com/ExSchoole/pocket_world","homepage":null,"size":129,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2"},"html":{"href":"https://github.com/ExSchoole/pocket_world/pull/2"},"issue":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/issues/2"},"comments":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ExSchoole/pocket_world/statuses/56827e2b12fc4776ed19240fe287d5000c1cf11f"}}}}