{"action":"created","comment":{"url":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/comments/306755228","pull_request_review_id":265944768,"id":306755228,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwNjc1NTIyOA==","diff_hunk":"@@ -0,0 +1,28 @@\n+class NumbersHandler\n+  attr_reader :number, :context\n+\n+  def initialize(number, context)\n+    @number = number\n+    @context = context\n+  end\n+\n+  def valid_number\n+    number_presence && number_is_not_in_use\n+  end\n+\n+  def number_presence\n+    File.open('./data/numbers.txt').each do |file_number|","path":"3581/2/numbers_handler.rb","position":14,"original_position":14,"commit_id":"aa52f07a01b64bcf2b74297ae9935f3fe42cbbbb","original_commit_id":"aa52f07a01b64bcf2b74297ae9935f3fe42cbbbb","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":"Assign `File.open` to variable and user `include?` to check number presence","created_at":"2019-07-24T11:11:58Z","updated_at":"2019-07-24T11:15:13Z","html_url":"https://github.com/rubizza-camp/summer-2019/pull/466#discussion_r306755228","pull_request_url":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/comments/306755228"},"html":{"href":"https://github.com/rubizza-camp/summer-2019/pull/466#discussion_r306755228"},"pull_request":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466"}}},"pull_request":{"url":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466","id":300494593,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAwNDk0NTkz","html_url":"https://github.com/rubizza-camp/summer-2019/pull/466","diff_url":"https://github.com/rubizza-camp/summer-2019/pull/466.diff","patch_url":"https://github.com/rubizza-camp/summer-2019/pull/466.patch","issue_url":"https://api.github.com/repos/rubizza-camp/summer-2019/issues/466","number":466,"state":"open","locked":false,"title":"3581-2","user":{"login":"elishved","id":33182370,"node_id":"MDQ6VXNlcjMzMTgyMzcw","avatar_url":"https://avatars3.githubusercontent.com/u/33182370?v=4","gravatar_id":"","url":"https://api.github.com/users/elishved","html_url":"https://github.com/elishved","followers_url":"https://api.github.com/users/elishved/followers","following_url":"https://api.github.com/users/elishved/following{/other_user}","gists_url":"https://api.github.com/users/elishved/gists{/gist_id}","starred_url":"https://api.github.com/users/elishved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elishved/subscriptions","organizations_url":"https://api.github.com/users/elishved/orgs","repos_url":"https://api.github.com/users/elishved/repos","events_url":"https://api.github.com/users/elishved/events{/privacy}","received_events_url":"https://api.github.com/users/elishved/received_events","type":"User","site_admin":false},"body":"## Номер\r\n3581\r\n\r\n## Номер задания\r\n2\r\n\r\n## Ссылка на видео с демо\r\nhttps://youtu.be/pnwFW5ZaXBE\r\n\r\n## Комментарии\r\n\r\n","created_at":"2019-07-23T22:28:33Z","updated_at":"2019-07-24T11:15:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9d2d5cc44bae58cdb72a15e6e6fc2bf08887ac0","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/rubizza-camp/summer-2019/milestones/3","html_url":"https://github.com/rubizza-camp/summer-2019/milestone/3","labels_url":"https://api.github.com/repos/rubizza-camp/summer-2019/milestones/3/labels","id":4495719,"node_id":"MDk6TWlsZXN0b25lNDQ5NTcxOQ==","number":3,"title":"HomeWork#2","description":"","creator":{"login":"anatoliliotych","id":2376239,"node_id":"MDQ6VXNlcjIzNzYyMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/2376239?v=4","gravatar_id":"","url":"https://api.github.com/users/anatoliliotych","html_url":"https://github.com/anatoliliotych","followers_url":"https://api.github.com/users/anatoliliotych/followers","following_url":"https://api.github.com/users/anatoliliotych/following{/other_user}","gists_url":"https://api.github.com/users/anatoliliotych/gists{/gist_id}","starred_url":"https://api.github.com/users/anatoliliotych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatoliliotych/subscriptions","organizations_url":"https://api.github.com/users/anatoliliotych/orgs","repos_url":"https://api.github.com/users/anatoliliotych/repos","events_url":"https://api.github.com/users/anatoliliotych/events{/privacy}","received_events_url":"https://api.github.com/users/anatoliliotych/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":9,"state":"open","created_at":"2019-07-16T11:17:47Z","updated_at":"2019-07-24T10:51:24Z","due_on":"2019-07-22T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466/commits","review_comments_url":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466/comments","review_comment_url":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubizza-camp/summer-2019/issues/466/comments","statuses_url":"https://api.github.com/repos/rubizza-camp/summer-2019/statuses/aa52f07a01b64bcf2b74297ae9935f3fe42cbbbb","head":{"label":"elishved:2","ref":"2","sha":"aa52f07a01b64bcf2b74297ae9935f3fe42cbbbb","user":{"login":"elishved","id":33182370,"node_id":"MDQ6VXNlcjMzMTgyMzcw","avatar_url":"https://avatars3.githubusercontent.com/u/33182370?v=4","gravatar_id":"","url":"https://api.github.com/users/elishved","html_url":"https://github.com/elishved","followers_url":"https://api.github.com/users/elishved/followers","following_url":"https://api.github.com/users/elishved/following{/other_user}","gists_url":"https://api.github.com/users/elishved/gists{/gist_id}","starred_url":"https://api.github.com/users/elishved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elishved/subscriptions","organizations_url":"https://api.github.com/users/elishved/orgs","repos_url":"https://api.github.com/users/elishved/repos","events_url":"https://api.github.com/users/elishved/events{/privacy}","received_events_url":"https://api.github.com/users/elishved/received_events","type":"User","site_admin":false},"repo":{"id":195400513,"node_id":"MDEwOlJlcG9zaXRvcnkxOTU0MDA1MTM=","name":"summer-2019","full_name":"elishved/summer-2019","private":false,"owner":{"login":"elishved","id":33182370,"node_id":"MDQ6VXNlcjMzMTgyMzcw","avatar_url":"https://avatars3.githubusercontent.com/u/33182370?v=4","gravatar_id":"","url":"https://api.github.com/users/elishved","html_url":"https://github.com/elishved","followers_url":"https://api.github.com/users/elishved/followers","following_url":"https://api.github.com/users/elishved/following{/other_user}","gists_url":"https://api.github.com/users/elishved/gists{/gist_id}","starred_url":"https://api.github.com/users/elishved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elishved/subscriptions","organizations_url":"https://api.github.com/users/elishved/orgs","repos_url":"https://api.github.com/users/elishved/repos","events_url":"https://api.github.com/users/elishved/events{/privacy}","received_events_url":"https://api.github.com/users/elishved/received_events","type":"User","site_admin":false},"html_url":"https://github.com/elishved/summer-2019","description":null,"fork":true,"url":"https://api.github.com/repos/elishved/summer-2019","forks_url":"https://api.github.com/repos/elishved/summer-2019/forks","keys_url":"https://api.github.com/repos/elishved/summer-2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elishved/summer-2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elishved/summer-2019/teams","hooks_url":"https://api.github.com/repos/elishved/summer-2019/hooks","issue_events_url":"https://api.github.com/repos/elishved/summer-2019/issues/events{/number}","events_url":"https://api.github.com/repos/elishved/summer-2019/events","assignees_url":"https://api.github.com/repos/elishved/summer-2019/assignees{/user}","branches_url":"https://api.github.com/repos/elishved/summer-2019/branches{/branch}","tags_url":"https://api.github.com/repos/elishved/summer-2019/tags","blobs_url":"https://api.github.com/repos/elishved/summer-2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elishved/summer-2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elishved/summer-2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/elishved/summer-2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elishved/summer-2019/statuses/{sha}","languages_url":"https://api.github.com/repos/elishved/summer-2019/languages","stargazers_url":"https://api.github.com/repos/elishved/summer-2019/stargazers","contributors_url":"https://api.github.com/repos/elishved/summer-2019/contributors","subscribers_url":"https://api.github.com/repos/elishved/summer-2019/subscribers","subscription_url":"https://api.github.com/repos/elishved/summer-2019/subscription","commits_url":"https://api.github.com/repos/elishved/summer-2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/elishved/summer-2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/elishved/summer-2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/elishved/summer-2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/elishved/summer-2019/contents/{+path}","compare_url":"https://api.github.com/repos/elishved/summer-2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elishved/summer-2019/merges","archive_url":"https://api.github.com/repos/elishved/summer-2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elishved/summer-2019/downloads","issues_url":"https://api.github.com/repos/elishved/summer-2019/issues{/number}","pulls_url":"https://api.github.com/repos/elishved/summer-2019/pulls{/number}","milestones_url":"https://api.github.com/repos/elishved/summer-2019/milestones{/number}","notifications_url":"https://api.github.com/repos/elishved/summer-2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elishved/summer-2019/labels{/name}","releases_url":"https://api.github.com/repos/elishved/summer-2019/releases{/id}","deployments_url":"https://api.github.com/repos/elishved/summer-2019/deployments","created_at":"2019-07-05T11:47:09Z","updated_at":"2019-07-05T11:47:11Z","pushed_at":"2019-07-24T09:16:18Z","git_url":"git://github.com/elishved/summer-2019.git","ssh_url":"git@github.com:elishved/summer-2019.git","clone_url":"https://github.com/elishved/summer-2019.git","svn_url":"https://github.com/elishved/summer-2019","homepage":null,"size":803,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubizza-camp:master","ref":"master","sha":"ee6252702824c0412490950c237d8ee0a0331609","user":{"login":"rubizza-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-camp","html_url":"https://github.com/rubizza-camp","followers_url":"https://api.github.com/users/rubizza-camp/followers","following_url":"https://api.github.com/users/rubizza-camp/following{/other_user}","gists_url":"https://api.github.com/users/rubizza-camp/gists{/gist_id}","starred_url":"https://api.github.com/users/rubizza-camp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubizza-camp/subscriptions","organizations_url":"https://api.github.com/users/rubizza-camp/orgs","repos_url":"https://api.github.com/users/rubizza-camp/repos","events_url":"https://api.github.com/users/rubizza-camp/events{/privacy}","received_events_url":"https://api.github.com/users/rubizza-camp/received_events","type":"Organization","site_admin":false},"repo":{"id":194091304,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQwOTEzMDQ=","name":"summer-2019","full_name":"rubizza-camp/summer-2019","private":false,"owner":{"login":"rubizza-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-camp","html_url":"https://github.com/rubizza-camp","followers_url":"https://api.github.com/users/rubizza-camp/followers","following_url":"https://api.github.com/users/rubizza-camp/following{/other_user}","gists_url":"https://api.github.com/users/rubizza-camp/gists{/gist_id}","starred_url":"https://api.github.com/users/rubizza-camp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubizza-camp/subscriptions","organizations_url":"https://api.github.com/users/rubizza-camp/orgs","repos_url":"https://api.github.com/users/rubizza-camp/repos","events_url":"https://api.github.com/users/rubizza-camp/events{/privacy}","received_events_url":"https://api.github.com/users/rubizza-camp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rubizza-camp/summer-2019","description":"Rubizza 2019 Summer homeworks storage","fork":false,"url":"https://api.github.com/repos/rubizza-camp/summer-2019","forks_url":"https://api.github.com/repos/rubizza-camp/summer-2019/forks","keys_url":"https://api.github.com/repos/rubizza-camp/summer-2019/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubizza-camp/summer-2019/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubizza-camp/summer-2019/teams","hooks_url":"https://api.github.com/repos/rubizza-camp/summer-2019/hooks","issue_events_url":"https://api.github.com/repos/rubizza-camp/summer-2019/issues/events{/number}","events_url":"https://api.github.com/repos/rubizza-camp/summer-2019/events","assignees_url":"https://api.github.com/repos/rubizza-camp/summer-2019/assignees{/user}","branches_url":"https://api.github.com/repos/rubizza-camp/summer-2019/branches{/branch}","tags_url":"https://api.github.com/repos/rubizza-camp/summer-2019/tags","blobs_url":"https://api.github.com/repos/rubizza-camp/summer-2019/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubizza-camp/summer-2019/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubizza-camp/summer-2019/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubizza-camp/summer-2019/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubizza-camp/summer-2019/statuses/{sha}","languages_url":"https://api.github.com/repos/rubizza-camp/summer-2019/languages","stargazers_url":"https://api.github.com/repos/rubizza-camp/summer-2019/stargazers","contributors_url":"https://api.github.com/repos/rubizza-camp/summer-2019/contributors","subscribers_url":"https://api.github.com/repos/rubizza-camp/summer-2019/subscribers","subscription_url":"https://api.github.com/repos/rubizza-camp/summer-2019/subscription","commits_url":"https://api.github.com/repos/rubizza-camp/summer-2019/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubizza-camp/summer-2019/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubizza-camp/summer-2019/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubizza-camp/summer-2019/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubizza-camp/summer-2019/contents/{+path}","compare_url":"https://api.github.com/repos/rubizza-camp/summer-2019/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubizza-camp/summer-2019/merges","archive_url":"https://api.github.com/repos/rubizza-camp/summer-2019/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubizza-camp/summer-2019/downloads","issues_url":"https://api.github.com/repos/rubizza-camp/summer-2019/issues{/number}","pulls_url":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls{/number}","milestones_url":"https://api.github.com/repos/rubizza-camp/summer-2019/milestones{/number}","notifications_url":"https://api.github.com/repos/rubizza-camp/summer-2019/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubizza-camp/summer-2019/labels{/name}","releases_url":"https://api.github.com/repos/rubizza-camp/summer-2019/releases{/id}","deployments_url":"https://api.github.com/repos/rubizza-camp/summer-2019/deployments","created_at":"2019-06-27T12:29:20Z","updated_at":"2019-07-24T10:51:33Z","pushed_at":"2019-07-24T11:05:03Z","git_url":"git://github.com/rubizza-camp/summer-2019.git","ssh_url":"git@github.com:rubizza-camp/summer-2019.git","clone_url":"https://github.com/rubizza-camp/summer-2019.git","svn_url":"https://github.com/rubizza-camp/summer-2019","homepage":"https://rubizza.com","size":2671,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":39,"license":null,"forks":82,"open_issues":39,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466"},"html":{"href":"https://github.com/rubizza-camp/summer-2019/pull/466"},"issue":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/issues/466"},"comments":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/issues/466/comments"},"review_comments":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466/comments"},"review_comment":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/pulls/466/commits"},"statuses":{"href":"https://api.github.com/repos/rubizza-camp/summer-2019/statuses/aa52f07a01b64bcf2b74297ae9935f3fe42cbbbb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"andreydro"}}