{"action":"created","comment":{"url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/comments/27368649","id":27368649,"diff_hunk":"@@ -5,7 +5,7 @@ module Search\n       # Search for a track\n       #\n       # @see http://api.siilar.com/1.0/doc/search-and-analyze#search\n-      def search(query = {})\n+      def similar(query = {})\n         options = { query: query }\n         response = client.get('1.0/search', options)","path":"lib/siilar/client/search.rb","position":7,"original_position":7,"commit_id":"d6e5bd83c72405ebe2af4695d9446eda825a36fa","original_commit_id":"d6e5bd83c72405ebe2af4695d9446eda825a36fa","user":{"login":"kevcha","id":472453,"avatar_url":"https://avatars.githubusercontent.com/u/472453?v=3","gravatar_id":"","url":"https://api.github.com/users/kevcha","html_url":"https://github.com/kevcha","followers_url":"https://api.github.com/users/kevcha/followers","following_url":"https://api.github.com/users/kevcha/following{/other_user}","gists_url":"https://api.github.com/users/kevcha/gists{/gist_id}","starred_url":"https://api.github.com/users/kevcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevcha/subscriptions","organizations_url":"https://api.github.com/users/kevcha/orgs","repos_url":"https://api.github.com/users/kevcha/repos","events_url":"https://api.github.com/users/kevcha/events{/privacy}","received_events_url":"https://api.github.com/users/kevcha/received_events","type":"User","site_admin":false},"body":"Why not hardcoding `similar` option ?\r\nThis would give us smth like : \r\n```ruby\r\ndef similar(ids)\r\n  response = client.get('1.0/search', { similar_tracks: ids })\r\nend\r\n```","created_at":"2015-03-30T06:23:07Z","updated_at":"2015-03-30T06:23:07Z","html_url":"https://github.com/craftsmen/niland-siilar-ruby/pull/5#discussion_r27368649","pull_request_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/comments/27368649"},"html":{"href":"https://github.com/craftsmen/niland-siilar-ruby/pull/5#discussion_r27368649"},"pull_request":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5","id":32158855,"html_url":"https://github.com/craftsmen/niland-siilar-ruby/pull/5","diff_url":"https://github.com/craftsmen/niland-siilar-ruby/pull/5.diff","patch_url":"https://github.com/craftsmen/niland-siilar-ruby/pull/5.patch","issue_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/5","number":5,"state":"open","locked":false,"title":"Rename `search.search` ~> `search.similar`","user":{"login":"mehlah","id":224928,"avatar_url":"https://avatars.githubusercontent.com/u/224928?v=3","gravatar_id":"","url":"https://api.github.com/users/mehlah","html_url":"https://github.com/mehlah","followers_url":"https://api.github.com/users/mehlah/followers","following_url":"https://api.github.com/users/mehlah/following{/other_user}","gists_url":"https://api.github.com/users/mehlah/gists{/gist_id}","starred_url":"https://api.github.com/users/mehlah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehlah/subscriptions","organizations_url":"https://api.github.com/users/mehlah/orgs","repos_url":"https://api.github.com/users/mehlah/repos","events_url":"https://api.github.com/users/mehlah/events{/privacy}","received_events_url":"https://api.github.com/users/mehlah/received_events","type":"User","site_admin":false},"body":"Follow up to https://github.com/craftsmen/niland-siilar-ruby/pull/3#issue-64803606","created_at":"2015-03-28T04:05:26Z","updated_at":"2015-03-30T06:23:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9752bf89186e3a9b41fa005bae384730b1b91e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5/commits","review_comments_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5/comments","review_comment_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/5/comments","statuses_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/statuses/d6e5bd83c72405ebe2af4695d9446eda825a36fa","head":{"label":"craftsmen:better-methods-names","ref":"better-methods-names","sha":"d6e5bd83c72405ebe2af4695d9446eda825a36fa","user":{"login":"craftsmen","id":1043324,"avatar_url":"https://avatars.githubusercontent.com/u/1043324?v=3","gravatar_id":"","url":"https://api.github.com/users/craftsmen","html_url":"https://github.com/craftsmen","followers_url":"https://api.github.com/users/craftsmen/followers","following_url":"https://api.github.com/users/craftsmen/following{/other_user}","gists_url":"https://api.github.com/users/craftsmen/gists{/gist_id}","starred_url":"https://api.github.com/users/craftsmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craftsmen/subscriptions","organizations_url":"https://api.github.com/users/craftsmen/orgs","repos_url":"https://api.github.com/users/craftsmen/repos","events_url":"https://api.github.com/users/craftsmen/events{/privacy}","received_events_url":"https://api.github.com/users/craftsmen/received_events","type":"Organization","site_admin":false},"repo":{"id":32790643,"name":"niland-siilar-ruby","full_name":"craftsmen/niland-siilar-ruby","owner":{"login":"craftsmen","id":1043324,"avatar_url":"https://avatars.githubusercontent.com/u/1043324?v=3","gravatar_id":"","url":"https://api.github.com/users/craftsmen","html_url":"https://github.com/craftsmen","followers_url":"https://api.github.com/users/craftsmen/followers","following_url":"https://api.github.com/users/craftsmen/following{/other_user}","gists_url":"https://api.github.com/users/craftsmen/gists{/gist_id}","starred_url":"https://api.github.com/users/craftsmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craftsmen/subscriptions","organizations_url":"https://api.github.com/users/craftsmen/orgs","repos_url":"https://api.github.com/users/craftsmen/repos","events_url":"https://api.github.com/users/craftsmen/events{/privacy}","received_events_url":"https://api.github.com/users/craftsmen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/craftsmen/niland-siilar-ruby","description":"Ruby client for the Siilar API","fork":false,"url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby","forks_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/forks","keys_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/teams","hooks_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/hooks","issue_events_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/events","assignees_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/tags","blobs_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/languages","stargazers_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/stargazers","contributors_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/contributors","subscribers_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/subscribers","subscription_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/subscription","commits_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/merges","archive_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/downloads","issues_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/labels{/name}","releases_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/releases{/id}","created_at":"2015-03-24T10:06:22Z","updated_at":"2015-03-28T04:10:20Z","pushed_at":"2015-03-28T04:10:19Z","git_url":"git://github.com/craftsmen/niland-siilar-ruby.git","ssh_url":"git@github.com:craftsmen/niland-siilar-ruby.git","clone_url":"https://github.com/craftsmen/niland-siilar-ruby.git","svn_url":"https://github.com/craftsmen/niland-siilar-ruby","homepage":"http://api.siilar.com/1.0/doc/","size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"craftsmen:master","ref":"master","sha":"4b61e1d5ea9db967b2452bb3b7bee297f2a5a891","user":{"login":"craftsmen","id":1043324,"avatar_url":"https://avatars.githubusercontent.com/u/1043324?v=3","gravatar_id":"","url":"https://api.github.com/users/craftsmen","html_url":"https://github.com/craftsmen","followers_url":"https://api.github.com/users/craftsmen/followers","following_url":"https://api.github.com/users/craftsmen/following{/other_user}","gists_url":"https://api.github.com/users/craftsmen/gists{/gist_id}","starred_url":"https://api.github.com/users/craftsmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craftsmen/subscriptions","organizations_url":"https://api.github.com/users/craftsmen/orgs","repos_url":"https://api.github.com/users/craftsmen/repos","events_url":"https://api.github.com/users/craftsmen/events{/privacy}","received_events_url":"https://api.github.com/users/craftsmen/received_events","type":"Organization","site_admin":false},"repo":{"id":32790643,"name":"niland-siilar-ruby","full_name":"craftsmen/niland-siilar-ruby","owner":{"login":"craftsmen","id":1043324,"avatar_url":"https://avatars.githubusercontent.com/u/1043324?v=3","gravatar_id":"","url":"https://api.github.com/users/craftsmen","html_url":"https://github.com/craftsmen","followers_url":"https://api.github.com/users/craftsmen/followers","following_url":"https://api.github.com/users/craftsmen/following{/other_user}","gists_url":"https://api.github.com/users/craftsmen/gists{/gist_id}","starred_url":"https://api.github.com/users/craftsmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craftsmen/subscriptions","organizations_url":"https://api.github.com/users/craftsmen/orgs","repos_url":"https://api.github.com/users/craftsmen/repos","events_url":"https://api.github.com/users/craftsmen/events{/privacy}","received_events_url":"https://api.github.com/users/craftsmen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/craftsmen/niland-siilar-ruby","description":"Ruby client for the Siilar API","fork":false,"url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby","forks_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/forks","keys_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/teams","hooks_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/hooks","issue_events_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/events","assignees_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/tags","blobs_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/languages","stargazers_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/stargazers","contributors_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/contributors","subscribers_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/subscribers","subscription_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/subscription","commits_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/merges","archive_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/downloads","issues_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/labels{/name}","releases_url":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/releases{/id}","created_at":"2015-03-24T10:06:22Z","updated_at":"2015-03-28T04:10:20Z","pushed_at":"2015-03-28T04:10:19Z","git_url":"git://github.com/craftsmen/niland-siilar-ruby.git","ssh_url":"git@github.com:craftsmen/niland-siilar-ruby.git","clone_url":"https://github.com/craftsmen/niland-siilar-ruby.git","svn_url":"https://github.com/craftsmen/niland-siilar-ruby","homepage":"http://api.siilar.com/1.0/doc/","size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5"},"html":{"href":"https://github.com/craftsmen/niland-siilar-ruby/pull/5"},"issue":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/5"},"comments":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/craftsmen/niland-siilar-ruby/statuses/d6e5bd83c72405ebe2af4695d9446eda825a36fa"}}}}