{"action":"created","comment":{"url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments/201682796","pull_request_review_id":136230952,"id":201682796,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTY4Mjc5Ng==","diff_hunk":"@@ -0,0 +1,66 @@\n+require File.expand_path(File.dirname(__FILE__) + '/neo')\n+# Class\n+class AboutModules < Neo::Koan\n+  # Module\n+  module Nameable\n+    # rubocop:disable Naming/AccessorMethodName\n+    def set_name(new_name)\n+      @name = new_name\n+    end\n+    # rubocop:enable Naming/AccessorMethodName\n+\n+    def here\n+      :in_module\n+    end\n+  end\n+\n+  def test_cant_instantiate_modules\n+    assert_raise(NoMethodError) do\n+      Nameable.new\n+    end\n+  end\n+\n+  # ------------------------------------------------------------------\n+  # Dog is class\n+  class Dog\n+    include Nameable\n+\n+    attr_reader :name\n+\n+    def initialize\n+      @name = 'Fido'\n+    end\n+\n+    def bark\n+      'WOOF'\n+    end\n+\n+    def here\n+      :in_object\n+    end\n+  end\n+\n+  def test_normal_methods_are_available_in_the_object\n+    fido = Dog.new\n+    assert_equal 'WOOF', fido.bark\n+  end\n+\n+  def test_module_methods_are_also_available_in_the_object\n+    fido = Dog.new\n+    assert_nothing_raised do\n+      fido.set_name('Rover')\n+    end\n+  end\n+\n+  def test_module_methods_can_affect_instance_variables_in_the_object\n+    fido = Dog.new\n+    assert_equal 'Fido', fido.name","path":"2370/1/koans/about_modules.rb","position":57,"original_position":57,"commit_id":"ab4b6e72ee020f4b64c7eee3d8fc3e174bafa3b5","original_commit_id":"ab4b6e72ee020f4b64c7eee3d8fc3e174bafa3b5","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"FeatureEnvy: AboutModules#test_module_methods_can_affect_instance_variables_in_the_object refers to 'fido' more than self (maybe move it to another class?). [More info](https://github.com/troessner/reek/blob/master/docs/Feature-Envy.md).","created_at":"2018-07-11T13:11:52Z","updated_at":"2018-07-11T13:11:55Z","html_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/177#discussion_r201682796","pull_request_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments/201682796"},"html":{"href":"https://github.com/rubizza-survival-camp/summer-2018/pull/177#discussion_r201682796"},"pull_request":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177","id":200692128,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNjkyMTI4","html_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/177","diff_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/177.diff","patch_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/177.patch","issue_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/177","number":177,"state":"open","locked":false,"title":"2370-1","user":{"login":"AntonNaumchik","id":40821074,"node_id":"MDQ6VXNlcjQwODIxMDc0","avatar_url":"https://avatars3.githubusercontent.com/u/40821074?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonNaumchik","html_url":"https://github.com/AntonNaumchik","followers_url":"https://api.github.com/users/AntonNaumchik/followers","following_url":"https://api.github.com/users/AntonNaumchik/following{/other_user}","gists_url":"https://api.github.com/users/AntonNaumchik/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonNaumchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonNaumchik/subscriptions","organizations_url":"https://api.github.com/users/AntonNaumchik/orgs","repos_url":"https://api.github.com/users/AntonNaumchik/repos","events_url":"https://api.github.com/users/AntonNaumchik/events{/privacy}","received_events_url":"https://api.github.com/users/AntonNaumchik/received_events","type":"User","site_admin":false},"body":"## Номер\r\n2370\r\n\r\n## Номер задания\r\n1\r\n\r\n## Ссылка на видео с демо\r\nhttps://www.youtube.com/watch?v=5bSxhKikYf0 rake\r\nhttps://www.youtube.com/watch?v=fzdkpzHWpfM reek + rubocop\r\n","created_at":"2018-07-11T13:01:10Z","updated_at":"2018-07-11T13:11:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bed57490fa677350837f75545d6aaf55f3af1917","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177/commits","review_comments_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177/comments","review_comment_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/177/comments","statuses_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/statuses/ab4b6e72ee020f4b64c7eee3d8fc3e174bafa3b5","head":{"label":"AntonNaumchik:2370-1","ref":"2370-1","sha":"ab4b6e72ee020f4b64c7eee3d8fc3e174bafa3b5","user":{"login":"AntonNaumchik","id":40821074,"node_id":"MDQ6VXNlcjQwODIxMDc0","avatar_url":"https://avatars3.githubusercontent.com/u/40821074?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonNaumchik","html_url":"https://github.com/AntonNaumchik","followers_url":"https://api.github.com/users/AntonNaumchik/followers","following_url":"https://api.github.com/users/AntonNaumchik/following{/other_user}","gists_url":"https://api.github.com/users/AntonNaumchik/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonNaumchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonNaumchik/subscriptions","organizations_url":"https://api.github.com/users/AntonNaumchik/orgs","repos_url":"https://api.github.com/users/AntonNaumchik/repos","events_url":"https://api.github.com/users/AntonNaumchik/events{/privacy}","received_events_url":"https://api.github.com/users/AntonNaumchik/received_events","type":"User","site_admin":false},"repo":{"id":140569073,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA1NjkwNzM=","name":"summer-2018","full_name":"AntonNaumchik/summer-2018","owner":{"login":"AntonNaumchik","id":40821074,"node_id":"MDQ6VXNlcjQwODIxMDc0","avatar_url":"https://avatars3.githubusercontent.com/u/40821074?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonNaumchik","html_url":"https://github.com/AntonNaumchik","followers_url":"https://api.github.com/users/AntonNaumchik/followers","following_url":"https://api.github.com/users/AntonNaumchik/following{/other_user}","gists_url":"https://api.github.com/users/AntonNaumchik/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonNaumchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonNaumchik/subscriptions","organizations_url":"https://api.github.com/users/AntonNaumchik/orgs","repos_url":"https://api.github.com/users/AntonNaumchik/repos","events_url":"https://api.github.com/users/AntonNaumchik/events{/privacy}","received_events_url":"https://api.github.com/users/AntonNaumchik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AntonNaumchik/summer-2018","description":null,"fork":true,"url":"https://api.github.com/repos/AntonNaumchik/summer-2018","forks_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/forks","keys_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/teams","hooks_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/hooks","issue_events_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/issues/events{/number}","events_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/events","assignees_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/assignees{/user}","branches_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/branches{/branch}","tags_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/tags","blobs_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/languages","stargazers_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/stargazers","contributors_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/contributors","subscribers_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/subscribers","subscription_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/subscription","commits_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/contents/{+path}","compare_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/merges","archive_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/downloads","issues_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/issues{/number}","pulls_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/labels{/name}","releases_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/releases{/id}","deployments_url":"https://api.github.com/repos/AntonNaumchik/summer-2018/deployments","created_at":"2018-07-11T12:00:57Z","updated_at":"2018-07-11T12:01:00Z","pushed_at":"2018-07-11T13:10:36Z","git_url":"git://github.com/AntonNaumchik/summer-2018.git","ssh_url":"git@github.com:AntonNaumchik/summer-2018.git","clone_url":"https://github.com/AntonNaumchik/summer-2018.git","svn_url":"https://github.com/AntonNaumchik/summer-2018","homepage":null,"size":86347,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubizza-survival-camp:master","ref":"master","sha":"e308b0b7bbd573cfd7f061c71ba045638813da41","user":{"login":"rubizza-survival-camp","id":40864986,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODY0OTg2","avatar_url":"https://avatars1.githubusercontent.com/u/40864986?v=4","gravatar_id":"","url":"https://api.github.com/users/rubizza-survival-camp","html_url":"https://github.com/rubizza-survival-camp","followers_url":"https://api.github.com/users/rubizza-survival-camp/followers","following_url":"https://api.github.com/users/rubizza-survival-camp/following{/other_user}","gists_url":"https://api.github.com/users/rubizza-survival-camp/gists{/gist_id}","starred_url":"https://api.github.com/users/rubizza-survival-camp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubizza-survival-camp/subscriptions","organizations_url":"https://api.github.com/users/rubizza-survival-camp/orgs","repos_url":"https://api.github.com/users/rubizza-survival-camp/repos","events_url":"https://api.github.com/users/rubizza-survival-camp/events{/privacy}","received_events_url":"https://api.github.com/users/rubizza-survival-camp/received_events","type":"Organization","site_admin":false},"repo":{"id":139868408,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk4Njg0MDg=","name":"summer-2018","full_name":"rubizza-survival-camp/summer-2018","owner":{"login":"rubizza-survival-camp","id":40864986,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwODY0OTg2","avatar_url":"https://avatars1.githubusercontent.com/u/40864986?v=4","gravatar_id":"","url":"https://api.github.com/users/rubizza-survival-camp","html_url":"https://github.com/rubizza-survival-camp","followers_url":"https://api.github.com/users/rubizza-survival-camp/followers","following_url":"https://api.github.com/users/rubizza-survival-camp/following{/other_user}","gists_url":"https://api.github.com/users/rubizza-survival-camp/gists{/gist_id}","starred_url":"https://api.github.com/users/rubizza-survival-camp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubizza-survival-camp/subscriptions","organizations_url":"https://api.github.com/users/rubizza-survival-camp/orgs","repos_url":"https://api.github.com/users/rubizza-survival-camp/repos","events_url":"https://api.github.com/users/rubizza-survival-camp/events{/privacy}","received_events_url":"https://api.github.com/users/rubizza-survival-camp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubizza-survival-camp/summer-2018","description":null,"fork":false,"url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018","forks_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/forks","keys_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/teams","hooks_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/hooks","issue_events_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/events{/number}","events_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/events","assignees_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/assignees{/user}","branches_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/branches{/branch}","tags_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/tags","blobs_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/languages","stargazers_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/stargazers","contributors_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/contributors","subscribers_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/subscribers","subscription_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/subscription","commits_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/contents/{+path}","compare_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/merges","archive_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/downloads","issues_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues{/number}","pulls_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/labels{/name}","releases_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/releases{/id}","deployments_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/deployments","created_at":"2018-07-05T15:28:12Z","updated_at":"2018-07-11T12:33:20Z","pushed_at":"2018-07-11T13:11:06Z","git_url":"git://github.com/rubizza-survival-camp/summer-2018.git","ssh_url":"git@github.com:rubizza-survival-camp/summer-2018.git","clone_url":"https://github.com/rubizza-survival-camp/summer-2018.git","svn_url":"https://github.com/rubizza-survival-camp/summer-2018","homepage":null,"size":86347,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":34,"license":null,"forks":56,"open_issues":34,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177"},"html":{"href":"https://github.com/rubizza-survival-camp/summer-2018/pull/177"},"issue":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/177"},"comments":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/statuses/ab4b6e72ee020f4b64c7eee3d8fc3e174bafa3b5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}