{"action":"created","comment":{"url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments/200841608","pull_request_review_id":135234158,"id":200841608,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDg0MTYwOA==","diff_hunk":"@@ -0,0 +1,82 @@\n+require File.expand_path(File.dirname(__FILE__) + '/neo')\n+# docs\n+class AboutScope < Neo::Koan\n+  # docs\n+  module Jims\n+    # docs\n+    class Dog\n+      def identify\n+        :jims_dog\n+      end\n+    end\n+  end\n+  # docs\n+  module Joes\n+    # docs\n+    class Dog\n+      def identify\n+        :joes_dog\n+      end\n+    end\n+  end\n+\n+  def test_dog_is_not_available_in_the_current_scope\n+    assert_raise(NameError) do\n+      Dog.new\n+    end\n+  end\n+\n+  def test_you_can_reference_nested_classes_using_the_scope_operator\n+    fido = Jims::Dog.new\n+    rover = Joes::Dog.new\n+    assert_equal :jims_dog, fido.identify\n+    assert_equal :joes_dog, rover.identify\n+\n+    assert_equal true, fido.class != rover.class\n+    assert_equal true, Jims::Dog != Joes::Dog\n+  end\n+\n+  # ------------------------------------------------------------------\n+  class String\n+  end\n+\n+  def test_bare_bones_class_names_assume_the_current_scope\n+    assert_equal true, AboutScope::String == String\n+  end\n+\n+  def test_nested_string_is_not_the_same_as_the_system_string\n+    assert_equal false, String == 'HI'.class\n+  end\n+\n+  def test_use_the_prefix_scope_operator_to_force_the_global_scope\n+    assert_equal true, ::String == 'HI'.class\n+  end\n+\n+  # ------------------------------------------------------------------\n+\n+  PI = 3.1416\n+\n+  def test_constants_are_defined_with_an_initial_uppercase_letter\n+    assert_equal 3.1416, PI\n+  end\n+\n+  # ------------------------------------------------------------------\n+\n+  MyString = ::String\n+\n+  def test_class_names_are_just_constants\n+    assert_equal true, MyString == ::String\n+    assert_equal true, MyString == 'HI'.class\n+  end\n+\n+  def test_constants_can_be_looked_up_explicitly\n+    assert_equal true, PI == AboutScope.const_get('PI')\n+    assert_equal true, MyString == AboutScope.const_get('MyString')\n+  end\n+\n+  def test_you_can_get_a_list_of_constants_for_any_class_or_module\n+    assert_equal [:Dog], Jims.constants\n+    assert Object.constants.size > 1\n+  end\n+end\n+# rubocop:enable Style/TrivialAccessors","path":"2226/1/koans/about_scope.rb","position":82,"original_position":82,"commit_id":"db64b0fa35f5ddfd70587022ac3aeb02499c4e05","original_commit_id":"db64b0fa35f5ddfd70587022ac3aeb02499c4e05","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":"Lint/UnneededCopEnableDirective: Unnecessary enabling of Style/TrivialAccessors.","created_at":"2018-07-08T14:01:36Z","updated_at":"2018-07-08T14:01:38Z","html_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/50#discussion_r200841608","pull_request_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/50","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/comments/200841608"},"html":{"href":"https://github.com/rubizza-survival-camp/summer-2018/pull/50#discussion_r200841608"},"pull_request":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/50","id":199756549,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NzU2NTQ5","html_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/50","diff_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/50.diff","patch_url":"https://github.com/rubizza-survival-camp/summer-2018/pull/50.patch","issue_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/50","number":50,"state":"open","locked":false,"title":"2226-1","user":{"login":"andreydro","id":12498356,"node_id":"MDQ6VXNlcjEyNDk4MzU2","avatar_url":"https://avatars0.githubusercontent.com/u/12498356?v=4","gravatar_id":"","url":"https://api.github.com/users/andreydro","html_url":"https://github.com/andreydro","followers_url":"https://api.github.com/users/andreydro/followers","following_url":"https://api.github.com/users/andreydro/following{/other_user}","gists_url":"https://api.github.com/users/andreydro/gists{/gist_id}","starred_url":"https://api.github.com/users/andreydro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreydro/subscriptions","organizations_url":"https://api.github.com/users/andreydro/orgs","repos_url":"https://api.github.com/users/andreydro/repos","events_url":"https://api.github.com/users/andreydro/events{/privacy}","received_events_url":"https://api.github.com/users/andreydro/received_events","type":"User","site_admin":false},"body":"## Номер\r\n2226\r\n\r\n## Номер задания\r\n1\r\n\r\n## Ссылка на видео с демо\r\nhttps://youtu.be/_-peFCnhKbo\r\n\r\n## Комментарии\r\n\r\n","created_at":"2018-07-06T14:01:30Z","updated_at":"2018-07-08T14:01:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00ddcd475093d11e2b4cf2dd91e96e5c2142b181","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/50/commits","review_comments_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/50/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/50/comments","statuses_url":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/statuses/db64b0fa35f5ddfd70587022ac3aeb02499c4e05","head":{"label":"andreydro:2226/1","ref":"2226/1","sha":"db64b0fa35f5ddfd70587022ac3aeb02499c4e05","user":{"login":"andreydro","id":12498356,"node_id":"MDQ6VXNlcjEyNDk4MzU2","avatar_url":"https://avatars0.githubusercontent.com/u/12498356?v=4","gravatar_id":"","url":"https://api.github.com/users/andreydro","html_url":"https://github.com/andreydro","followers_url":"https://api.github.com/users/andreydro/followers","following_url":"https://api.github.com/users/andreydro/following{/other_user}","gists_url":"https://api.github.com/users/andreydro/gists{/gist_id}","starred_url":"https://api.github.com/users/andreydro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreydro/subscriptions","organizations_url":"https://api.github.com/users/andreydro/orgs","repos_url":"https://api.github.com/users/andreydro/repos","events_url":"https://api.github.com/users/andreydro/events{/privacy}","received_events_url":"https://api.github.com/users/andreydro/received_events","type":"User","site_admin":false},"repo":{"id":139937162,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5MzcxNjI=","name":"summer-2018","full_name":"andreydro/summer-2018","owner":{"login":"andreydro","id":12498356,"node_id":"MDQ6VXNlcjEyNDk4MzU2","avatar_url":"https://avatars0.githubusercontent.com/u/12498356?v=4","gravatar_id":"","url":"https://api.github.com/users/andreydro","html_url":"https://github.com/andreydro","followers_url":"https://api.github.com/users/andreydro/followers","following_url":"https://api.github.com/users/andreydro/following{/other_user}","gists_url":"https://api.github.com/users/andreydro/gists{/gist_id}","starred_url":"https://api.github.com/users/andreydro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreydro/subscriptions","organizations_url":"https://api.github.com/users/andreydro/orgs","repos_url":"https://api.github.com/users/andreydro/repos","events_url":"https://api.github.com/users/andreydro/events{/privacy}","received_events_url":"https://api.github.com/users/andreydro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreydro/summer-2018","description":null,"fork":true,"url":"https://api.github.com/repos/andreydro/summer-2018","forks_url":"https://api.github.com/repos/andreydro/summer-2018/forks","keys_url":"https://api.github.com/repos/andreydro/summer-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreydro/summer-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreydro/summer-2018/teams","hooks_url":"https://api.github.com/repos/andreydro/summer-2018/hooks","issue_events_url":"https://api.github.com/repos/andreydro/summer-2018/issues/events{/number}","events_url":"https://api.github.com/repos/andreydro/summer-2018/events","assignees_url":"https://api.github.com/repos/andreydro/summer-2018/assignees{/user}","branches_url":"https://api.github.com/repos/andreydro/summer-2018/branches{/branch}","tags_url":"https://api.github.com/repos/andreydro/summer-2018/tags","blobs_url":"https://api.github.com/repos/andreydro/summer-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreydro/summer-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreydro/summer-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreydro/summer-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreydro/summer-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/andreydro/summer-2018/languages","stargazers_url":"https://api.github.com/repos/andreydro/summer-2018/stargazers","contributors_url":"https://api.github.com/repos/andreydro/summer-2018/contributors","subscribers_url":"https://api.github.com/repos/andreydro/summer-2018/subscribers","subscription_url":"https://api.github.com/repos/andreydro/summer-2018/subscription","commits_url":"https://api.github.com/repos/andreydro/summer-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreydro/summer-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreydro/summer-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreydro/summer-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreydro/summer-2018/contents/{+path}","compare_url":"https://api.github.com/repos/andreydro/summer-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreydro/summer-2018/merges","archive_url":"https://api.github.com/repos/andreydro/summer-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreydro/summer-2018/downloads","issues_url":"https://api.github.com/repos/andreydro/summer-2018/issues{/number}","pulls_url":"https://api.github.com/repos/andreydro/summer-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/andreydro/summer-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/andreydro/summer-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreydro/summer-2018/labels{/name}","releases_url":"https://api.github.com/repos/andreydro/summer-2018/releases{/id}","deployments_url":"https://api.github.com/repos/andreydro/summer-2018/deployments","created_at":"2018-07-06T05:27:32Z","updated_at":"2018-07-06T05:27:34Z","pushed_at":"2018-07-08T14:01:06Z","git_url":"git://github.com/andreydro/summer-2018.git","ssh_url":"git@github.com:andreydro/summer-2018.git","clone_url":"https://github.com/andreydro/summer-2018.git","svn_url":"https://github.com/andreydro/summer-2018","homepage":null,"size":14275,"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":"a29f25fb61c10c9183d995ea060697bc11bd8491","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-07T20:17:21Z","pushed_at":"2018-07-08T14:01:08Z","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":86207,"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":8,"license":null,"forks":54,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/50"},"html":{"href":"https://github.com/rubizza-survival-camp/summer-2018/pull/50"},"issue":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/50"},"comments":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/pulls/50/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/50/commits"},"statuses":{"href":"https://api.github.com/repos/rubizza-survival-camp/summer-2018/statuses/db64b0fa35f5ddfd70587022ac3aeb02499c4e05"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}