{"action":"created","comment":{"url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments/201050668","pull_request_review_id":135476405,"id":201050668,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTA1MDY2OA==","diff_hunk":"@@ -0,0 +1,56 @@\n+# frozen_string_literal: true\n+\n+require File.expand_path(File.dirname(__FILE__) + '/neo')\n+# class AboutToStr\n+class AboutToStr < Neo::Koan\n+  # class CanNotBeTreatedAsString\n+  class CanNotBeTreatedAsString\n+    def to_s\n+      'non-string-like'\n+    end\n+  end\n+\n+  def test_to_s_returns_a_string_representation\n+    not_like_a_string = CanNotBeTreatedAsString.new\n+    assert_equal 'non-string-like', not_like_a_string.to_s\n+  end\n+\n+  def test_normally_objects_cannot_be_used_where_strings_are_expected\n+    assert_raise(TypeError) do\n+      File.exist?(CanNotBeTreatedAsString.new)\n+    end\n+  end\n+\n+  # ------------------------------------------------------------------\n+  # class CanBeTreatedAsString\n+  class CanBeTreatedAsString\n+    def to_s\n+      'string-like'\n+    end\n+\n+    def to_str\n+      to_s\n+    end\n+  end\n+\n+  def test_to_str_also_returns_a_string_representation\n+    like_a_string = CanBeTreatedAsString.new\n+    assert_equal 'string-like', like_a_string.to_str\n+  end\n+\n+  def test_to_str_allows_objects_to_be_treated_as_strings\n+    assert_equal false, File.exist?(CanBeTreatedAsString.new)\n+  end\n+\n+  # ------------------------------------------------------------------\n+\n+  def acts_like_a_string?(string)","path":"2217/1/koans/about_to_str.rb","position":47,"original_position":47,"commit_id":"9d86f7278d842573cb980c6467a122a7cefeaccf","original_commit_id":"9d86f7278d842573cb980c6467a122a7cefeaccf","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":"UtilityFunction: AboutToStr#acts_like_a_string? doesn't depend on instance state (maybe move it to another class?). [More info](https://github.com/troessner/reek/blob/master/docs/Utility-Function.md).","created_at":"2018-07-09T15:43:05Z","updated_at":"2018-07-09T15:43:05Z","html_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/116#discussion_r201050668","pull_request_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/116","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments/201050668"},"html":{"href":"https://github.com/rubizza-survival-camp/summer-2018/pull/116#discussion_r201050668"},"pull_request":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/116","id":200140489,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMTQwNDg5","html_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/116","diff_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/116.diff","patch_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/116.patch","issue_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/116","number":116,"state":"open","locked":false,"title":"2217-1","user":{"login":"SadTigger","id":1587872,"node_id":"MDQ6VXNlcjE1ODc4NzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1587872?v=4","gravatar_id":"","url":"https://api.github.com/users/SadTigger","html_url":"https://github.com/SadTigger","followers_url":"https://api.github.com/users/SadTigger/followers","following_url":"https://api.github.com/users/SadTigger/following{/other_user}","gists_url":"https://api.github.com/users/SadTigger/gists{/gist_id}","starred_url":"https://api.github.com/users/SadTigger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SadTigger/subscriptions","organizations_url":"https://api.github.com/users/SadTigger/orgs","repos_url":"https://api.github.com/users/SadTigger/repos","events_url":"https://api.github.com/users/SadTigger/events{/privacy}","received_events_url":"https://api.github.com/users/SadTigger/received_events","type":"User","site_admin":false},"body":"## Номер\r\n2217\r\n\r\n## Номер задания\r\n1\r\n\r\n## Ссылка на видео с демо\r\nhttps://youtu.be/WQfIj3fGP_w\r\n\r\n## Комментарии\r\nМедитация с koans на больничном помогает скрасить скуку.\r\n","created_at":"2018-07-09T15:39:33Z","updated_at":"2018-07-09T15:43:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c15c3559e40d814c3a3581c14498fa2da79a1d6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/116/commits","review_comments_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/116/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/116/comments","statuses_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/statuses/9d86f7278d842573cb980c6467a122a7cefeaccf","head":{"label":"SadTigger:2217-1","ref":"2217-1","sha":"9d86f7278d842573cb980c6467a122a7cefeaccf","user":{"login":"SadTigger","id":1587872,"node_id":"MDQ6VXNlcjE1ODc4NzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1587872?v=4","gravatar_id":"","url":"https://api.github.com/users/SadTigger","html_url":"https://github.com/SadTigger","followers_url":"https://api.github.com/users/SadTigger/followers","following_url":"https://api.github.com/users/SadTigger/following{/other_user}","gists_url":"https://api.github.com/users/SadTigger/gists{/gist_id}","starred_url":"https://api.github.com/users/SadTigger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SadTigger/subscriptions","organizations_url":"https://api.github.com/users/SadTigger/orgs","repos_url":"https://api.github.com/users/SadTigger/repos","events_url":"https://api.github.com/users/SadTigger/events{/privacy}","received_events_url":"https://api.github.com/users/SadTigger/received_events","type":"User","site_admin":false},"repo":{"id":140017460,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAwMTc0NjA=","name":"summer-2018","full_name":"SadTigger/summer-2018","owner":{"login":"SadTigger","id":1587872,"node_id":"MDQ6VXNlcjE1ODc4NzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1587872?v=4","gravatar_id":"","url":"https://api.github.com/users/SadTigger","html_url":"https://github.com/SadTigger","followers_url":"https://api.github.com/users/SadTigger/followers","following_url":"https://api.github.com/users/SadTigger/following{/other_user}","gists_url":"https://api.github.com/users/SadTigger/gists{/gist_id}","starred_url":"https://api.github.com/users/SadTigger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SadTigger/subscriptions","organizations_url":"https://api.github.com/users/SadTigger/orgs","repos_url":"https://api.github.com/users/SadTigger/repos","events_url":"https://api.github.com/users/SadTigger/events{/privacy}","received_events_url":"https://api.github.com/users/SadTigger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SadTigger/summer-2018","description":null,"fork":true,"url":"https://api.github.com/repos/SadTigger/summer-2018","forks_url":"https://api.github.com/repos/SadTigger/summer-2018/forks","keys_url":"https://api.github.com/repos/SadTigger/summer-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SadTigger/summer-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SadTigger/summer-2018/teams","hooks_url":"https://api.github.com/repos/SadTigger/summer-2018/hooks","issue_events_url":"https://api.github.com/repos/SadTigger/summer-2018/issues/events{/number}","events_url":"https://api.github.com/repos/SadTigger/summer-2018/events","assignees_url":"https://api.github.com/repos/SadTigger/summer-2018/assignees{/user}","branches_url":"https://api.github.com/repos/SadTigger/summer-2018/branches{/branch}","tags_url":"https://api.github.com/repos/SadTigger/summer-2018/tags","blobs_url":"https://api.github.com/repos/SadTigger/summer-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SadTigger/summer-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SadTigger/summer-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/SadTigger/summer-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SadTigger/summer-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/SadTigger/summer-2018/languages","stargazers_url":"https://api.github.com/repos/SadTigger/summer-2018/stargazers","contributors_url":"https://api.github.com/repos/SadTigger/summer-2018/contributors","subscribers_url":"https://api.github.com/repos/SadTigger/summer-2018/subscribers","subscription_url":"https://api.github.com/repos/SadTigger/summer-2018/subscription","commits_url":"https://api.github.com/repos/SadTigger/summer-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/SadTigger/summer-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/SadTigger/summer-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/SadTigger/summer-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/SadTigger/summer-2018/contents/{+path}","compare_url":"https://api.github.com/repos/SadTigger/summer-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SadTigger/summer-2018/merges","archive_url":"https://api.github.com/repos/SadTigger/summer-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SadTigger/summer-2018/downloads","issues_url":"https://api.github.com/repos/SadTigger/summer-2018/issues{/number}","pulls_url":"https://api.github.com/repos/SadTigger/summer-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/SadTigger/summer-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/SadTigger/summer-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SadTigger/summer-2018/labels{/name}","releases_url":"https://api.github.com/repos/SadTigger/summer-2018/releases{/id}","deployments_url":"https://api.github.com/repos/SadTigger/summer-2018/deployments","created_at":"2018-07-06T18:19:04Z","updated_at":"2018-07-06T18:29:30Z","pushed_at":"2018-07-09T15:32:21Z","git_url":"git://github.com/SadTigger/summer-2018.git","ssh_url":"git@github.com:SadTigger/summer-2018.git","clone_url":"https://github.com/SadTigger/summer-2018.git","svn_url":"https://github.com/SadTigger/summer-2018","homepage":null,"size":14226,"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":"2e34bee9c50814d3b1149a970f83bbc1c85525a8","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-09T08:56:18Z","pushed_at":"2018-07-09T15:39:34Z","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":86243,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"archived":false,"open_issues_count":21,"license":null,"forks":54,"open_issues":21,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/116"},"html":{"href":"https://github.com/rubizza-survival-camp/summer-2018/pull/116"},"issue":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/116"},"comments":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/116/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/116/commits"},"statuses":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/statuses/9d86f7278d842573cb980c6467a122a7cefeaccf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}