{"action":"created","comment":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/42769719","id":42769719,"diff_hunk":"@@ -0,0 +1,114 @@\n+require \"gems\"\n+require \"optparse\"\n+require \"json\"\n+require \"colored\"\n+\n+\n+class VersionGetter\n+\n+  def initialize(name)\n+    @name = name\n+  end\n+  def get\n+    getgem = `curl https://rubygems.org/api/v1/versions/#{@name}.json`\n+    if getgem == nil\n+      raise NameError\n+    end\n+    json = JSON.parse(getgem)\n+    json.map {\n+    |s|\n+    s[\"number\"] \n+    }\n+  end\n+\n+end\n+class Comparator\n+\n+  def initialize(checkingcondition)\n+    @sign = checkingcondition.match(\"[!=><~]{1,2}\").to_s\n+    @version = ","path":"2015/ZhauniarovichUladzislau/2/3.rb","position":29,"original_position":29,"commit_id":"ed14cfc040098c35c87dc5db57febad5227abfac","original_commit_id":"ed14cfc040098c35c87dc5db57febad5227abfac","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":"Trailing whitespace detected.","created_at":"2015-10-22T16:15:45Z","updated_at":"2015-10-22T16:15:45Z","html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/317#discussion_r42769719","pull_request_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317","_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/42769719"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/317#discussion_r42769719"},"pull_request":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317"}}},"pull_request":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317","id":48479112,"html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/317","diff_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/317.diff","patch_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/317.patch","issue_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/317","number":317,"state":"open","locked":false,"title":"hometask 2","user":{"login":"punkofnewsociety","id":6445282,"avatar_url":"https://avatars.githubusercontent.com/u/6445282?v=3","gravatar_id":"","url":"https://api.github.com/users/punkofnewsociety","html_url":"https://github.com/punkofnewsociety","followers_url":"https://api.github.com/users/punkofnewsociety/followers","following_url":"https://api.github.com/users/punkofnewsociety/following{/other_user}","gists_url":"https://api.github.com/users/punkofnewsociety/gists{/gist_id}","starred_url":"https://api.github.com/users/punkofnewsociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punkofnewsociety/subscriptions","organizations_url":"https://api.github.com/users/punkofnewsociety/orgs","repos_url":"https://api.github.com/users/punkofnewsociety/repos","events_url":"https://api.github.com/users/punkofnewsociety/events{/privacy}","received_events_url":"https://api.github.com/users/punkofnewsociety/received_events","type":"User","site_admin":false},"body":"я пробовал разбить на несколько файлов но у меня пока что не получилось. сделаю позже","created_at":"2015-10-22T16:15:42Z","updated_at":"2015-10-22T16:15:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fac52694d8c448aa498ad2a02f95cd3e2470209c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317/commits","review_comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317/comments","review_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/317/comments","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/ed14cfc040098c35c87dc5db57febad5227abfac","head":{"label":"punkofnewsociety:master","ref":"master","sha":"ed14cfc040098c35c87dc5db57febad5227abfac","user":{"login":"punkofnewsociety","id":6445282,"avatar_url":"https://avatars.githubusercontent.com/u/6445282?v=3","gravatar_id":"","url":"https://api.github.com/users/punkofnewsociety","html_url":"https://github.com/punkofnewsociety","followers_url":"https://api.github.com/users/punkofnewsociety/followers","following_url":"https://api.github.com/users/punkofnewsociety/following{/other_user}","gists_url":"https://api.github.com/users/punkofnewsociety/gists{/gist_id}","starred_url":"https://api.github.com/users/punkofnewsociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punkofnewsociety/subscriptions","organizations_url":"https://api.github.com/users/punkofnewsociety/orgs","repos_url":"https://api.github.com/users/punkofnewsociety/repos","events_url":"https://api.github.com/users/punkofnewsociety/events{/privacy}","received_events_url":"https://api.github.com/users/punkofnewsociety/received_events","type":"User","site_admin":false},"repo":{"id":44272737,"name":"bsuir-courses","full_name":"punkofnewsociety/bsuir-courses","owner":{"login":"punkofnewsociety","id":6445282,"avatar_url":"https://avatars.githubusercontent.com/u/6445282?v=3","gravatar_id":"","url":"https://api.github.com/users/punkofnewsociety","html_url":"https://github.com/punkofnewsociety","followers_url":"https://api.github.com/users/punkofnewsociety/followers","following_url":"https://api.github.com/users/punkofnewsociety/following{/other_user}","gists_url":"https://api.github.com/users/punkofnewsociety/gists{/gist_id}","starred_url":"https://api.github.com/users/punkofnewsociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/punkofnewsociety/subscriptions","organizations_url":"https://api.github.com/users/punkofnewsociety/orgs","repos_url":"https://api.github.com/users/punkofnewsociety/repos","events_url":"https://api.github.com/users/punkofnewsociety/events{/privacy}","received_events_url":"https://api.github.com/users/punkofnewsociety/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/punkofnewsociety/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":true,"url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses","forks_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/forks","keys_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/events","assignees_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/merges","archive_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/punkofnewsociety/bsuir-courses/releases{/id}","created_at":"2015-10-14T19:56:30Z","updated_at":"2015-10-14T19:56:31Z","pushed_at":"2015-10-22T16:14:21Z","git_url":"git://github.com/punkofnewsociety/bsuir-courses.git","ssh_url":"git@github.com:punkofnewsociety/bsuir-courses.git","clone_url":"https://github.com/punkofnewsociety/bsuir-courses.git","svn_url":"https://github.com/punkofnewsociety/bsuir-courses","homepage":null,"size":610,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubyroidlabs:master","ref":"master","sha":"abf24b9edbb63d1a72d52898ea88c26d262d9e13","user":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":14405320,"name":"bsuir-courses","full_name":"rubyroidlabs/bsuir-courses","owner":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyroidlabs/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":false,"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses","forks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/forks","keys_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/events","assignees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/merges","archive_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/releases{/id}","created_at":"2013-11-14T19:55:12Z","updated_at":"2015-10-19T23:20:07Z","pushed_at":"2015-10-22T16:15:42Z","git_url":"git://github.com/rubyroidlabs/bsuir-courses.git","ssh_url":"git@github.com:rubyroidlabs/bsuir-courses.git","clone_url":"https://github.com/rubyroidlabs/bsuir-courses.git","svn_url":"https://github.com/rubyroidlabs/bsuir-courses","homepage":null,"size":6015,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":138,"mirror_url":null,"open_issues_count":27,"forks":138,"open_issues":27,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/317"},"issue":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/317"},"comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/317/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/317/commits"},"statuses":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/ed14cfc040098c35c87dc5db57febad5227abfac"}}}}