{"action":"created","comment":{"url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/comments/58726045","id":58726045,"diff_hunk":"@@ -15,7 +18,13 @@ def self.mixpanel(resource, params)\n     end\n \n     def self.encode(params)\n-      params.map { |key, val| \"#{key}=#{CGI.escape(val.to_s)}\" }.sort.join('&')\n+      params.map do |key, val|\n+        if val.is_a?(Hash) || val.is_a?(Array)","path":"lib/mixpanel/uri.rb","position":16,"original_position":16,"commit_id":"0539c1d060106f38ac3159031a207a2176105b60","original_commit_id":"0539c1d060106f38ac3159031a207a2176105b60","user":{"login":"keolo","id":4814,"avatar_url":"https://avatars.githubusercontent.com/u/4814?v=3","gravatar_id":"","url":"https://api.github.com/users/keolo","html_url":"https://github.com/keolo","followers_url":"https://api.github.com/users/keolo/followers","following_url":"https://api.github.com/users/keolo/following{/other_user}","gists_url":"https://api.github.com/users/keolo/gists{/gist_id}","starred_url":"https://api.github.com/users/keolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keolo/subscriptions","organizations_url":"https://api.github.com/users/keolo/orgs","repos_url":"https://api.github.com/users/keolo/repos","events_url":"https://api.github.com/users/keolo/events{/privacy}","received_events_url":"https://api.github.com/users/keolo/received_events","type":"User","site_admin":false},"body":"This could be DRY'd up with the similar implementation in `utils.rb`.","created_at":"2016-04-06T15:27:53Z","updated_at":"2016-04-06T15:27:53Z","html_url":"https://github.com/pedrogimenez/mixpanel_client/pull/1#discussion_r58726045","pull_request_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/comments/58726045"},"html":{"href":"https://github.com/pedrogimenez/mixpanel_client/pull/1#discussion_r58726045"},"pull_request":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1","id":64243070,"html_url":"https://github.com/pedrogimenez/mixpanel_client/pull/1","diff_url":"https://github.com/pedrogimenez/mixpanel_client/pull/1.diff","patch_url":"https://github.com/pedrogimenez/mixpanel_client/pull/1.patch","issue_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/1","number":1,"state":"closed","locked":false,"title":"Adds support for formulas.","user":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-03-26T17:02:53Z","updated_at":"2016-04-06T15:27:53Z","closed_at":"2016-03-26T17:03:38Z","merged_at":"2016-03-26T17:03:38Z","merge_commit_sha":"ff1c2b47001601b324384c71832ae245a510561b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/1/comments","statuses_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/statuses/0539c1d060106f38ac3159031a207a2176105b60","head":{"label":"pedrogimenez:add-support-for-formulas","ref":"add-support-for-formulas","sha":"0539c1d060106f38ac3159031a207a2176105b60","user":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"repo":{"id":54789627,"name":"mixpanel_client","full_name":"pedrogimenez/mixpanel_client","owner":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pedrogimenez/mixpanel_client","description":"Official ruby client interface to the Mixpanel Data API","fork":true,"url":"https://api.github.com/repos/pedrogimenez/mixpanel_client","forks_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/forks","keys_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/teams","hooks_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/hooks","issue_events_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/events{/number}","events_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/events","assignees_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/assignees{/user}","branches_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/branches{/branch}","tags_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/tags","blobs_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/statuses/{sha}","languages_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/languages","stargazers_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/stargazers","contributors_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/contributors","subscribers_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/subscribers","subscription_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/subscription","commits_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/contents/{+path}","compare_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/merges","archive_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/downloads","issues_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues{/number}","pulls_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls{/number}","milestones_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/milestones{/number}","notifications_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/labels{/name}","releases_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/releases{/id}","deployments_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/deployments","created_at":"2016-03-26T17:02:02Z","updated_at":"2016-03-26T17:02:02Z","pushed_at":"2016-03-26T17:03:39Z","git_url":"git://github.com/pedrogimenez/mixpanel_client.git","ssh_url":"git@github.com:pedrogimenez/mixpanel_client.git","clone_url":"https://github.com/pedrogimenez/mixpanel_client.git","svn_url":"https://github.com/pedrogimenez/mixpanel_client","homepage":"","size":192,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pedrogimenez:master","ref":"master","sha":"52cb38f6deaff6a61e7c1b6d6b7ce0eec71dc00c","user":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"repo":{"id":54789627,"name":"mixpanel_client","full_name":"pedrogimenez/mixpanel_client","owner":{"login":"pedrogimenez","id":2186324,"avatar_url":"https://avatars.githubusercontent.com/u/2186324?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogimenez","html_url":"https://github.com/pedrogimenez","followers_url":"https://api.github.com/users/pedrogimenez/followers","following_url":"https://api.github.com/users/pedrogimenez/following{/other_user}","gists_url":"https://api.github.com/users/pedrogimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogimenez/subscriptions","organizations_url":"https://api.github.com/users/pedrogimenez/orgs","repos_url":"https://api.github.com/users/pedrogimenez/repos","events_url":"https://api.github.com/users/pedrogimenez/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogimenez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pedrogimenez/mixpanel_client","description":"Official ruby client interface to the Mixpanel Data API","fork":true,"url":"https://api.github.com/repos/pedrogimenez/mixpanel_client","forks_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/forks","keys_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/teams","hooks_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/hooks","issue_events_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/events{/number}","events_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/events","assignees_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/assignees{/user}","branches_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/branches{/branch}","tags_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/tags","blobs_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/refs{/sha}","trees_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/statuses/{sha}","languages_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/languages","stargazers_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/stargazers","contributors_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/contributors","subscribers_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/subscribers","subscription_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/subscription","commits_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/commits{/sha}","git_commits_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/git/commits{/sha}","comments_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/comments{/number}","issue_comment_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/comments{/number}","contents_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/contents/{+path}","compare_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/merges","archive_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/downloads","issues_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues{/number}","pulls_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls{/number}","milestones_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/milestones{/number}","notifications_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/labels{/name}","releases_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/releases{/id}","deployments_url":"https://api.github.com/repos/pedrogimenez/mixpanel_client/deployments","created_at":"2016-03-26T17:02:02Z","updated_at":"2016-03-26T17:02:02Z","pushed_at":"2016-03-26T17:03:39Z","git_url":"git://github.com/pedrogimenez/mixpanel_client.git","ssh_url":"git@github.com:pedrogimenez/mixpanel_client.git","clone_url":"https://github.com/pedrogimenez/mixpanel_client.git","svn_url":"https://github.com/pedrogimenez/mixpanel_client","homepage":"","size":192,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1"},"html":{"href":"https://github.com/pedrogimenez/mixpanel_client/pull/1"},"issue":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/1"},"comments":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pedrogimenez/mixpanel_client/statuses/0539c1d060106f38ac3159031a207a2176105b60"}}}}