{"action":"created","comment":{"url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/comments/117408299","pull_request_review_id":39114590,"id":117408299,"diff_hunk":"@@ -52,15 +52,19 @@ def array2hash(ary)\n           new_v = [hash]\n         end\n       end\n-      new_v = new_v.sort_by{|a, b| a.to_s}.to_h\n+      new_v = new_v.sort_by{ |a, b| a.to_s }.to_h\n       new_v\n     end\n     \n     def encode_query(queries = {})\n       results = {}\n       queries.each do |k, v|\n         v = array2hash(v) if v.is_a? Array\n-        value = URI.encode(v.is_a?(Hash) ? v.to_json : v.to_s).gsub(\"[\", \"%5B\").gsub(\":\", \"%3A\").gsub(\"]\", \"%5D\")\n+        value = URI.encode(v.is_a?(Hash) ? v.to_json : v.to_s)\n+          .encode(\"UTF-8\")","path":"lib/ncmb/client.rb","position":15,"original_position":15,"commit_id":"faad4354a697506c66f9b927dd484fda76e81682","original_commit_id":"faad4354a697506c66f9b927dd484fda76e81682","user":{"login":"moongift","id":5709,"avatar_url":"https://avatars1.githubusercontent.com/u/5709?v=3","gravatar_id":"","url":"https://api.github.com/users/moongift","html_url":"https://github.com/moongift","followers_url":"https://api.github.com/users/moongift/followers","following_url":"https://api.github.com/users/moongift/following{/other_user}","gists_url":"https://api.github.com/users/moongift/gists{/gist_id}","starred_url":"https://api.github.com/users/moongift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moongift/subscriptions","organizations_url":"https://api.github.com/users/moongift/orgs","repos_url":"https://api.github.com/users/moongift/repos","events_url":"https://api.github.com/users/moongift/events{/privacy}","received_events_url":"https://api.github.com/users/moongift/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Align `.encode` with `.encode` on line 63.\n* Prefer single-quoted strings when you don't need string interpolation or special symbols. [:ref](https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2017-05-19T06:02:20Z","updated_at":"2017-05-19T06:02:20Z","html_url":"https://github.com/moongift/ncmb-ruby-client/pull/24#discussion_r117408299","pull_request_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/comments/117408299"},"html":{"href":"https://github.com/moongift/ncmb-ruby-client/pull/24#discussion_r117408299"},"pull_request":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24","id":121428971,"html_url":"https://github.com/moongift/ncmb-ruby-client/pull/24","diff_url":"https://github.com/moongift/ncmb-ruby-client/pull/24.diff","patch_url":"https://github.com/moongift/ncmb-ruby-client/pull/24.patch","issue_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/24","number":24,"state":"open","locked":false,"title":"Clean up client.rb","user":{"login":"moongift","id":5709,"avatar_url":"https://avatars1.githubusercontent.com/u/5709?v=3","gravatar_id":"","url":"https://api.github.com/users/moongift","html_url":"https://github.com/moongift","followers_url":"https://api.github.com/users/moongift/followers","following_url":"https://api.github.com/users/moongift/following{/other_user}","gists_url":"https://api.github.com/users/moongift/gists{/gist_id}","starred_url":"https://api.github.com/users/moongift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moongift/subscriptions","organizations_url":"https://api.github.com/users/moongift/orgs","repos_url":"https://api.github.com/users/moongift/repos","events_url":"https://api.github.com/users/moongift/events{/privacy}","received_events_url":"https://api.github.com/users/moongift/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-19T05:44:06Z","updated_at":"2017-05-19T06:02:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"440de195cf486c5d18e67cc92816d9bfdbaf976d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24/commits","review_comments_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24/comments","review_comment_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/24/comments","statuses_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/statuses/faad4354a697506c66f9b927dd484fda76e81682","head":{"label":"moongift:cleanup_lib_client.rb","ref":"cleanup_lib_client.rb","sha":"faad4354a697506c66f9b927dd484fda76e81682","user":{"login":"moongift","id":5709,"avatar_url":"https://avatars1.githubusercontent.com/u/5709?v=3","gravatar_id":"","url":"https://api.github.com/users/moongift","html_url":"https://github.com/moongift","followers_url":"https://api.github.com/users/moongift/followers","following_url":"https://api.github.com/users/moongift/following{/other_user}","gists_url":"https://api.github.com/users/moongift/gists{/gist_id}","starred_url":"https://api.github.com/users/moongift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moongift/subscriptions","organizations_url":"https://api.github.com/users/moongift/orgs","repos_url":"https://api.github.com/users/moongift/repos","events_url":"https://api.github.com/users/moongift/events{/privacy}","received_events_url":"https://api.github.com/users/moongift/received_events","type":"User","site_admin":false},"repo":{"id":19938356,"name":"ncmb-ruby-client","full_name":"moongift/ncmb-ruby-client","owner":{"login":"moongift","id":5709,"avatar_url":"https://avatars1.githubusercontent.com/u/5709?v=3","gravatar_id":"","url":"https://api.github.com/users/moongift","html_url":"https://github.com/moongift","followers_url":"https://api.github.com/users/moongift/followers","following_url":"https://api.github.com/users/moongift/following{/other_user}","gists_url":"https://api.github.com/users/moongift/gists{/gist_id}","starred_url":"https://api.github.com/users/moongift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moongift/subscriptions","organizations_url":"https://api.github.com/users/moongift/orgs","repos_url":"https://api.github.com/users/moongift/repos","events_url":"https://api.github.com/users/moongift/events{/privacy}","received_events_url":"https://api.github.com/users/moongift/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moongift/ncmb-ruby-client","description":"A simple Ruby client for the Nifty cloud mobile backend REST API","fork":false,"url":"https://api.github.com/repos/moongift/ncmb-ruby-client","forks_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/forks","keys_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/teams","hooks_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/hooks","issue_events_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/events{/number}","events_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/events","assignees_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/assignees{/user}","branches_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/branches{/branch}","tags_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/tags","blobs_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/statuses/{sha}","languages_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/languages","stargazers_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/stargazers","contributors_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/contributors","subscribers_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/subscribers","subscription_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/subscription","commits_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/contents/{+path}","compare_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/merges","archive_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/downloads","issues_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues{/number}","pulls_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls{/number}","milestones_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/milestones{/number}","notifications_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/labels{/name}","releases_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/releases{/id}","deployments_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/deployments","created_at":"2014-05-19T10:51:23Z","updated_at":"2017-04-28T08:00:43Z","pushed_at":"2017-05-19T06:01:32Z","git_url":"git://github.com/moongift/ncmb-ruby-client.git","ssh_url":"git@github.com:moongift/ncmb-ruby-client.git","clone_url":"https://github.com/moongift/ncmb-ruby-client.git","svn_url":"https://github.com/moongift/ncmb-ruby-client","homepage":null,"size":65,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":9,"default_branch":"master"}},"base":{"label":"moongift:master","ref":"master","sha":"af9e7136b810e4c8be077228dab9123228d930d5","user":{"login":"moongift","id":5709,"avatar_url":"https://avatars1.githubusercontent.com/u/5709?v=3","gravatar_id":"","url":"https://api.github.com/users/moongift","html_url":"https://github.com/moongift","followers_url":"https://api.github.com/users/moongift/followers","following_url":"https://api.github.com/users/moongift/following{/other_user}","gists_url":"https://api.github.com/users/moongift/gists{/gist_id}","starred_url":"https://api.github.com/users/moongift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moongift/subscriptions","organizations_url":"https://api.github.com/users/moongift/orgs","repos_url":"https://api.github.com/users/moongift/repos","events_url":"https://api.github.com/users/moongift/events{/privacy}","received_events_url":"https://api.github.com/users/moongift/received_events","type":"User","site_admin":false},"repo":{"id":19938356,"name":"ncmb-ruby-client","full_name":"moongift/ncmb-ruby-client","owner":{"login":"moongift","id":5709,"avatar_url":"https://avatars1.githubusercontent.com/u/5709?v=3","gravatar_id":"","url":"https://api.github.com/users/moongift","html_url":"https://github.com/moongift","followers_url":"https://api.github.com/users/moongift/followers","following_url":"https://api.github.com/users/moongift/following{/other_user}","gists_url":"https://api.github.com/users/moongift/gists{/gist_id}","starred_url":"https://api.github.com/users/moongift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moongift/subscriptions","organizations_url":"https://api.github.com/users/moongift/orgs","repos_url":"https://api.github.com/users/moongift/repos","events_url":"https://api.github.com/users/moongift/events{/privacy}","received_events_url":"https://api.github.com/users/moongift/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moongift/ncmb-ruby-client","description":"A simple Ruby client for the Nifty cloud mobile backend REST API","fork":false,"url":"https://api.github.com/repos/moongift/ncmb-ruby-client","forks_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/forks","keys_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/teams","hooks_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/hooks","issue_events_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/events{/number}","events_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/events","assignees_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/assignees{/user}","branches_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/branches{/branch}","tags_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/tags","blobs_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/statuses/{sha}","languages_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/languages","stargazers_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/stargazers","contributors_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/contributors","subscribers_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/subscribers","subscription_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/subscription","commits_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/contents/{+path}","compare_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/merges","archive_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/downloads","issues_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues{/number}","pulls_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls{/number}","milestones_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/milestones{/number}","notifications_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/labels{/name}","releases_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/releases{/id}","deployments_url":"https://api.github.com/repos/moongift/ncmb-ruby-client/deployments","created_at":"2014-05-19T10:51:23Z","updated_at":"2017-04-28T08:00:43Z","pushed_at":"2017-05-19T06:01:32Z","git_url":"git://github.com/moongift/ncmb-ruby-client.git","ssh_url":"git@github.com:moongift/ncmb-ruby-client.git","clone_url":"https://github.com/moongift/ncmb-ruby-client.git","svn_url":"https://github.com/moongift/ncmb-ruby-client","homepage":null,"size":65,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24"},"html":{"href":"https://github.com/moongift/ncmb-ruby-client/pull/24"},"issue":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/24"},"comments":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/moongift/ncmb-ruby-client/statuses/faad4354a697506c66f9b927dd484fda76e81682"}}}}
{"actor":{"display_login":"moongift"}}