{"action":"created","comment":{"url":"https://api.github.com/repos/axsh/openvnet/pulls/comments/29824915","id":29824915,"diff_hunk":"@@ -2,7 +2,44 @@\n \n module Vnctl\n   class WebApi\n-    include HTTParty\n-    base_uri \"#{Vnctl.conf.webapi_uri}:#{Vnctl.conf.webapi_port}\"\n+    def initialize\n+      @webapi_uri = Vnctl.conf.webapi_uri\n+      @webapi_port = Vnctl.conf.webapi_port.to_i\n+      @webapi_version = Vnctl.conf.webapi_version\n+      @webapi_protocol = Vnctl.conf.webapi_protocol\n+      @output_format = Vnctl.conf.output_format\n+\n+      @webapi_full_uri = \"%s://%s:%s/api/%s\" %\n+        [@webapi_protocol, @webapi_uri, @webapi_port, @webapi_version]\n+    end\n+\n+    def send_request(verb, suffix, params = nil)","path":"vnctl/lib/vnctl/webapi.rb","position":17,"original_position":17,"commit_id":"4ea42f29974d23ecb49a242e9025e16b74edb0d6","original_commit_id":"4ea42f29974d23ecb49a242e9025e16b74edb0d6","user":{"login":"hansode","id":76867,"avatar_url":"https://avatars.githubusercontent.com/u/76867?v=3","gravatar_id":"","url":"https://api.github.com/users/hansode","html_url":"https://github.com/hansode","followers_url":"https://api.github.com/users/hansode/followers","following_url":"https://api.github.com/users/hansode/following{/other_user}","gists_url":"https://api.github.com/users/hansode/gists{/gist_id}","starred_url":"https://api.github.com/users/hansode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansode/subscriptions","organizations_url":"https://api.github.com/users/hansode/orgs","repos_url":"https://api.github.com/users/hansode/repos","events_url":"https://api.github.com/users/hansode/events{/privacy}","received_events_url":"https://api.github.com/users/hansode/received_events","type":"User","site_admin":false},"body":"[reek] [TooManyStatements] has approx 6 statements","created_at":"2015-05-07T05:10:30Z","updated_at":"2015-05-07T05:10:30Z","html_url":"https://github.com/axsh/openvnet/pull/306#discussion_r29824915","pull_request_url":"https://api.github.com/repos/axsh/openvnet/pulls/306","_links":{"self":{"href":"https://api.github.com/repos/axsh/openvnet/pulls/comments/29824915"},"html":{"href":"https://github.com/axsh/openvnet/pull/306#discussion_r29824915"},"pull_request":{"href":"https://api.github.com/repos/axsh/openvnet/pulls/306"}}},"pull_request":{"url":"https://api.github.com/repos/axsh/openvnet/pulls/306","id":34883702,"html_url":"https://github.com/axsh/openvnet/pull/306","diff_url":"https://github.com/axsh/openvnet/pull/306.diff","patch_url":"https://github.com/axsh/openvnet/pull/306.patch","issue_url":"https://api.github.com/repos/axsh/openvnet/issues/306","number":306,"state":"open","locked":false,"title":"Vnctl remove httparty","user":{"login":"Metallion","id":629110,"avatar_url":"https://avatars.githubusercontent.com/u/629110?v=3","gravatar_id":"","url":"https://api.github.com/users/Metallion","html_url":"https://github.com/Metallion","followers_url":"https://api.github.com/users/Metallion/followers","following_url":"https://api.github.com/users/Metallion/following{/other_user}","gists_url":"https://api.github.com/users/Metallion/gists{/gist_id}","starred_url":"https://api.github.com/users/Metallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metallion/subscriptions","organizations_url":"https://api.github.com/users/Metallion/orgs","repos_url":"https://api.github.com/users/Metallion/repos","events_url":"https://api.github.com/users/Metallion/events{/privacy}","received_events_url":"https://api.github.com/users/Metallion/received_events","type":"User","site_admin":false},"body":"I miss programming a bit so I decided to quickly remove the httparty library from vnctl. Ruby has a perfectly usable HTTP class in the standard library and less dependencies is better.","created_at":"2015-05-07T05:09:47Z","updated_at":"2015-05-07T05:10:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ec90c843557d50f72976d3d13f1389fcecfd152","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/axsh/openvnet/pulls/306/commits","review_comments_url":"https://api.github.com/repos/axsh/openvnet/pulls/306/comments","review_comment_url":"https://api.github.com/repos/axsh/openvnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/axsh/openvnet/issues/306/comments","statuses_url":"https://api.github.com/repos/axsh/openvnet/statuses/4ea42f29974d23ecb49a242e9025e16b74edb0d6","head":{"label":"axsh:vnctl-remove-httparty","ref":"vnctl-remove-httparty","sha":"4ea42f29974d23ecb49a242e9025e16b74edb0d6","user":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"repo":{"id":9443209,"name":"openvnet","full_name":"axsh/openvnet","owner":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/axsh/openvnet","description":"Data Center Level Virtual Network Toolkit based on Edge Overlaid Network using OpenFlow 1.3.","fork":false,"url":"https://api.github.com/repos/axsh/openvnet","forks_url":"https://api.github.com/repos/axsh/openvnet/forks","keys_url":"https://api.github.com/repos/axsh/openvnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/axsh/openvnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/axsh/openvnet/teams","hooks_url":"https://api.github.com/repos/axsh/openvnet/hooks","issue_events_url":"https://api.github.com/repos/axsh/openvnet/issues/events{/number}","events_url":"https://api.github.com/repos/axsh/openvnet/events","assignees_url":"https://api.github.com/repos/axsh/openvnet/assignees{/user}","branches_url":"https://api.github.com/repos/axsh/openvnet/branches{/branch}","tags_url":"https://api.github.com/repos/axsh/openvnet/tags","blobs_url":"https://api.github.com/repos/axsh/openvnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/axsh/openvnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/axsh/openvnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/axsh/openvnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/axsh/openvnet/statuses/{sha}","languages_url":"https://api.github.com/repos/axsh/openvnet/languages","stargazers_url":"https://api.github.com/repos/axsh/openvnet/stargazers","contributors_url":"https://api.github.com/repos/axsh/openvnet/contributors","subscribers_url":"https://api.github.com/repos/axsh/openvnet/subscribers","subscription_url":"https://api.github.com/repos/axsh/openvnet/subscription","commits_url":"https://api.github.com/repos/axsh/openvnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/axsh/openvnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/axsh/openvnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/axsh/openvnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/axsh/openvnet/contents/{+path}","compare_url":"https://api.github.com/repos/axsh/openvnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/axsh/openvnet/merges","archive_url":"https://api.github.com/repos/axsh/openvnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/axsh/openvnet/downloads","issues_url":"https://api.github.com/repos/axsh/openvnet/issues{/number}","pulls_url":"https://api.github.com/repos/axsh/openvnet/pulls{/number}","milestones_url":"https://api.github.com/repos/axsh/openvnet/milestones{/number}","notifications_url":"https://api.github.com/repos/axsh/openvnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/axsh/openvnet/labels{/name}","releases_url":"https://api.github.com/repos/axsh/openvnet/releases{/id}","created_at":"2013-04-15T07:36:18Z","updated_at":"2015-04-03T09:07:55Z","pushed_at":"2015-05-07T05:09:47Z","git_url":"git://github.com/axsh/openvnet.git","ssh_url":"git@github.com:axsh/openvnet.git","clone_url":"https://github.com/axsh/openvnet.git","svn_url":"https://github.com/axsh/openvnet","homepage":"http://openvnet.org","size":8934,"stargazers_count":39,"watchers_count":39,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":33,"forks":4,"open_issues":33,"watchers":39,"default_branch":"master"}},"base":{"label":"axsh:develop","ref":"develop","sha":"dbf7a9be0eef12dc08c432a36391d4c6b5cdb61b","user":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"repo":{"id":9443209,"name":"openvnet","full_name":"axsh/openvnet","owner":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/axsh/openvnet","description":"Data Center Level Virtual Network Toolkit based on Edge Overlaid Network using OpenFlow 1.3.","fork":false,"url":"https://api.github.com/repos/axsh/openvnet","forks_url":"https://api.github.com/repos/axsh/openvnet/forks","keys_url":"https://api.github.com/repos/axsh/openvnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/axsh/openvnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/axsh/openvnet/teams","hooks_url":"https://api.github.com/repos/axsh/openvnet/hooks","issue_events_url":"https://api.github.com/repos/axsh/openvnet/issues/events{/number}","events_url":"https://api.github.com/repos/axsh/openvnet/events","assignees_url":"https://api.github.com/repos/axsh/openvnet/assignees{/user}","branches_url":"https://api.github.com/repos/axsh/openvnet/branches{/branch}","tags_url":"https://api.github.com/repos/axsh/openvnet/tags","blobs_url":"https://api.github.com/repos/axsh/openvnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/axsh/openvnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/axsh/openvnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/axsh/openvnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/axsh/openvnet/statuses/{sha}","languages_url":"https://api.github.com/repos/axsh/openvnet/languages","stargazers_url":"https://api.github.com/repos/axsh/openvnet/stargazers","contributors_url":"https://api.github.com/repos/axsh/openvnet/contributors","subscribers_url":"https://api.github.com/repos/axsh/openvnet/subscribers","subscription_url":"https://api.github.com/repos/axsh/openvnet/subscription","commits_url":"https://api.github.com/repos/axsh/openvnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/axsh/openvnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/axsh/openvnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/axsh/openvnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/axsh/openvnet/contents/{+path}","compare_url":"https://api.github.com/repos/axsh/openvnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/axsh/openvnet/merges","archive_url":"https://api.github.com/repos/axsh/openvnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/axsh/openvnet/downloads","issues_url":"https://api.github.com/repos/axsh/openvnet/issues{/number}","pulls_url":"https://api.github.com/repos/axsh/openvnet/pulls{/number}","milestones_url":"https://api.github.com/repos/axsh/openvnet/milestones{/number}","notifications_url":"https://api.github.com/repos/axsh/openvnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/axsh/openvnet/labels{/name}","releases_url":"https://api.github.com/repos/axsh/openvnet/releases{/id}","created_at":"2013-04-15T07:36:18Z","updated_at":"2015-04-03T09:07:55Z","pushed_at":"2015-05-07T05:09:47Z","git_url":"git://github.com/axsh/openvnet.git","ssh_url":"git@github.com:axsh/openvnet.git","clone_url":"https://github.com/axsh/openvnet.git","svn_url":"https://github.com/axsh/openvnet","homepage":"http://openvnet.org","size":8934,"stargazers_count":39,"watchers_count":39,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":33,"forks":4,"open_issues":33,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/axsh/openvnet/pulls/306"},"html":{"href":"https://github.com/axsh/openvnet/pull/306"},"issue":{"href":"https://api.github.com/repos/axsh/openvnet/issues/306"},"comments":{"href":"https://api.github.com/repos/axsh/openvnet/issues/306/comments"},"review_comments":{"href":"https://api.github.com/repos/axsh/openvnet/pulls/306/comments"},"review_comment":{"href":"https://api.github.com/repos/axsh/openvnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/axsh/openvnet/pulls/306/commits"},"statuses":{"href":"https://api.github.com/repos/axsh/openvnet/statuses/4ea42f29974d23ecb49a242e9025e16b74edb0d6"}}}}