{"action":"created","comment":{"url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/comments/27773396","id":27773396,"diff_hunk":"@@ -0,0 +1,75 @@\n+require 'rubygems'\n+require 'gosu'\n+require_relative \"warrior\"\n+require_relative \"rb\"\n+require_relative \"space\"\n+require_relative \"mob\"\n+require_relative \"main_mod\"\n+\n+class GameWindow < Gosu::Window\n+  include Main\n+  def initialize\n+    super(640, 480, false)\n+    self.caption = \"Heroes\"\n+    @background_image = Gosu::Image.new(self, \"images/menu1.jpg\", true)\n+    @font = Gosu::Font.new(self, Gosu::default_font_name, 20)\n+    take_params\n+    create_heroes\n+    create_spaces\n+  end\n+\n+  def update\n+    player_attack if @player && @space && @player.step\n+    mobs_attack if @player && @mobs && @player.step == false  ","path":"main.rb","position":23,"original_position":23,"commit_id":"32bb00916a75352795019d28365eca2ff083c786","original_commit_id":"32bb00916a75352795019d28365eca2ff083c786","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":"Unnecessary spacing detected.<br>Trailing whitespace detected.","created_at":"2015-04-05T00:07:56Z","updated_at":"2015-04-05T00:07:56Z","html_url":"https://github.com/KaterinaSav/ruby_first_game/pull/10#discussion_r27773396","pull_request_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/comments/27773396"},"html":{"href":"https://github.com/KaterinaSav/ruby_first_game/pull/10#discussion_r27773396"},"pull_request":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10","id":32641708,"html_url":"https://github.com/KaterinaSav/ruby_first_game/pull/10","diff_url":"https://github.com/KaterinaSav/ruby_first_game/pull/10.diff","patch_url":"https://github.com/KaterinaSav/ruby_first_game/pull/10.patch","issue_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/10","number":10,"state":"open","locked":false,"title":"Check style by hound","user":{"login":"KaterinaSav","id":7300813,"avatar_url":"https://avatars.githubusercontent.com/u/7300813?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterinaSav","html_url":"https://github.com/KaterinaSav","followers_url":"https://api.github.com/users/KaterinaSav/followers","following_url":"https://api.github.com/users/KaterinaSav/following{/other_user}","gists_url":"https://api.github.com/users/KaterinaSav/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterinaSav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterinaSav/subscriptions","organizations_url":"https://api.github.com/users/KaterinaSav/orgs","repos_url":"https://api.github.com/users/KaterinaSav/repos","events_url":"https://api.github.com/users/KaterinaSav/events{/privacy}","received_events_url":"https://api.github.com/users/KaterinaSav/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-05T00:07:48Z","updated_at":"2015-04-05T00:07:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84e68cbd54a622ea4a1606b68dd4147372fe25ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10/commits","review_comments_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10/comments","review_comment_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/10/comments","statuses_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/statuses/32bb00916a75352795019d28365eca2ff083c786","head":{"label":"KaterinaSav:master","ref":"master","sha":"32bb00916a75352795019d28365eca2ff083c786","user":{"login":"KaterinaSav","id":7300813,"avatar_url":"https://avatars.githubusercontent.com/u/7300813?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterinaSav","html_url":"https://github.com/KaterinaSav","followers_url":"https://api.github.com/users/KaterinaSav/followers","following_url":"https://api.github.com/users/KaterinaSav/following{/other_user}","gists_url":"https://api.github.com/users/KaterinaSav/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterinaSav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterinaSav/subscriptions","organizations_url":"https://api.github.com/users/KaterinaSav/orgs","repos_url":"https://api.github.com/users/KaterinaSav/repos","events_url":"https://api.github.com/users/KaterinaSav/events{/privacy}","received_events_url":"https://api.github.com/users/KaterinaSav/received_events","type":"User","site_admin":false},"repo":{"id":32810867,"name":"ruby_first_game","full_name":"KaterinaSav/ruby_first_game","owner":{"login":"KaterinaSav","id":7300813,"avatar_url":"https://avatars.githubusercontent.com/u/7300813?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterinaSav","html_url":"https://github.com/KaterinaSav","followers_url":"https://api.github.com/users/KaterinaSav/followers","following_url":"https://api.github.com/users/KaterinaSav/following{/other_user}","gists_url":"https://api.github.com/users/KaterinaSav/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterinaSav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterinaSav/subscriptions","organizations_url":"https://api.github.com/users/KaterinaSav/orgs","repos_url":"https://api.github.com/users/KaterinaSav/repos","events_url":"https://api.github.com/users/KaterinaSav/events{/privacy}","received_events_url":"https://api.github.com/users/KaterinaSav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaterinaSav/ruby_first_game","description":"","fork":false,"url":"https://api.github.com/repos/KaterinaSav/ruby_first_game","forks_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/forks","keys_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/teams","hooks_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/hooks","issue_events_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/events{/number}","events_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/events","assignees_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/assignees{/user}","branches_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/branches{/branch}","tags_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/tags","blobs_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/statuses/{sha}","languages_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/languages","stargazers_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/stargazers","contributors_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/contributors","subscribers_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/subscribers","subscription_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/subscription","commits_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/contents/{+path}","compare_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/merges","archive_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/downloads","issues_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues{/number}","pulls_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls{/number}","milestones_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/milestones{/number}","notifications_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/labels{/name}","releases_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/releases{/id}","created_at":"2015-03-24T16:29:41Z","updated_at":"2015-04-05T00:04:40Z","pushed_at":"2015-04-05T00:07:48Z","git_url":"git://github.com/KaterinaSav/ruby_first_game.git","ssh_url":"git@github.com:KaterinaSav/ruby_first_game.git","clone_url":"https://github.com/KaterinaSav/ruby_first_game.git","svn_url":"https://github.com/KaterinaSav/ruby_first_game","homepage":null,"size":1508,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"KaterinaSav:develop","ref":"develop","sha":"3b5e51d248b72a38255fbedabd9a23a05abadc80","user":{"login":"KaterinaSav","id":7300813,"avatar_url":"https://avatars.githubusercontent.com/u/7300813?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterinaSav","html_url":"https://github.com/KaterinaSav","followers_url":"https://api.github.com/users/KaterinaSav/followers","following_url":"https://api.github.com/users/KaterinaSav/following{/other_user}","gists_url":"https://api.github.com/users/KaterinaSav/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterinaSav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterinaSav/subscriptions","organizations_url":"https://api.github.com/users/KaterinaSav/orgs","repos_url":"https://api.github.com/users/KaterinaSav/repos","events_url":"https://api.github.com/users/KaterinaSav/events{/privacy}","received_events_url":"https://api.github.com/users/KaterinaSav/received_events","type":"User","site_admin":false},"repo":{"id":32810867,"name":"ruby_first_game","full_name":"KaterinaSav/ruby_first_game","owner":{"login":"KaterinaSav","id":7300813,"avatar_url":"https://avatars.githubusercontent.com/u/7300813?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterinaSav","html_url":"https://github.com/KaterinaSav","followers_url":"https://api.github.com/users/KaterinaSav/followers","following_url":"https://api.github.com/users/KaterinaSav/following{/other_user}","gists_url":"https://api.github.com/users/KaterinaSav/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterinaSav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterinaSav/subscriptions","organizations_url":"https://api.github.com/users/KaterinaSav/orgs","repos_url":"https://api.github.com/users/KaterinaSav/repos","events_url":"https://api.github.com/users/KaterinaSav/events{/privacy}","received_events_url":"https://api.github.com/users/KaterinaSav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaterinaSav/ruby_first_game","description":"","fork":false,"url":"https://api.github.com/repos/KaterinaSav/ruby_first_game","forks_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/forks","keys_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/teams","hooks_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/hooks","issue_events_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/events{/number}","events_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/events","assignees_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/assignees{/user}","branches_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/branches{/branch}","tags_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/tags","blobs_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/statuses/{sha}","languages_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/languages","stargazers_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/stargazers","contributors_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/contributors","subscribers_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/subscribers","subscription_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/subscription","commits_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/contents/{+path}","compare_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/merges","archive_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/downloads","issues_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues{/number}","pulls_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls{/number}","milestones_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/milestones{/number}","notifications_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/labels{/name}","releases_url":"https://api.github.com/repos/KaterinaSav/ruby_first_game/releases{/id}","created_at":"2015-03-24T16:29:41Z","updated_at":"2015-04-05T00:04:40Z","pushed_at":"2015-04-05T00:07:48Z","git_url":"git://github.com/KaterinaSav/ruby_first_game.git","ssh_url":"git@github.com:KaterinaSav/ruby_first_game.git","clone_url":"https://github.com/KaterinaSav/ruby_first_game.git","svn_url":"https://github.com/KaterinaSav/ruby_first_game","homepage":null,"size":1508,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10"},"html":{"href":"https://github.com/KaterinaSav/ruby_first_game/pull/10"},"issue":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/10"},"comments":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/KaterinaSav/ruby_first_game/statuses/32bb00916a75352795019d28365eca2ff083c786"}}}}