{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/14","id":27968784,"html_url":"https://github.com/groupbuddies/bitreserve/pull/14","diff_url":"https://github.com/groupbuddies/bitreserve/pull/14.diff","patch_url":"https://github.com/groupbuddies/bitreserve/pull/14.patch","issue_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues/14","number":14,"state":"closed","locked":false,"title":"Completely changes the structure of the lib","user":{"login":"zamith","id":166304,"avatar_url":"https://avatars.githubusercontent.com/u/166304?v=3","gravatar_id":"","url":"https://api.github.com/users/zamith","html_url":"https://github.com/zamith","followers_url":"https://api.github.com/users/zamith/followers","following_url":"https://api.github.com/users/zamith/following{/other_user}","gists_url":"https://api.github.com/users/zamith/gists{/gist_id}","starred_url":"https://api.github.com/users/zamith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamith/subscriptions","organizations_url":"https://api.github.com/users/zamith/orgs","repos_url":"https://api.github.com/users/zamith/repos","events_url":"https://api.github.com/users/zamith/events{/privacy}","received_events_url":"https://api.github.com/users/zamith/received_events","type":"User","site_admin":false},"body":"Due to my misunderstanding of the API, I was going with a solution which\nrealied greatly in class methods. Turns out that we're going to need the\nuser's token for each request, and it is probably going to be different\nat each request.\n\nThis means that we need a Bitreserve::Client class that we instantiate\nwith that token and go on from there.\n\nMy approach was to make the client have a huge public API with all of\nthe methods available (provided their are being mixed in).\n\nI also moved those mixins into a directory called api and moved the\nactual classes into a directory called entities.","created_at":"2015-01-24T01:28:51Z","updated_at":"2015-01-26T11:20:09Z","closed_at":"2015-01-26T11:20:08Z","merged_at":"2015-01-26T11:20:08Z","merge_commit_sha":"a94c4df184609d6cad15e7af98606247de609843","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/14/commits","review_comments_url":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/14/comments","review_comment_url":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/comments/{number}","comments_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues/14/comments","statuses_url":"https://api.github.com/repos/groupbuddies/bitreserve/statuses/110d377d3b7dbadec88b43d85dbc54daea6e5a68","head":{"label":"groupbuddies:new-structure","ref":"new-structure","sha":"110d377d3b7dbadec88b43d85dbc54daea6e5a68","user":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"repo":{"id":29684387,"name":"bitreserve","full_name":"groupbuddies/bitreserve","owner":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupbuddies/bitreserve","description":"A wrapper for the Bitreserve API","fork":false,"url":"https://api.github.com/repos/groupbuddies/bitreserve","forks_url":"https://api.github.com/repos/groupbuddies/bitreserve/forks","keys_url":"https://api.github.com/repos/groupbuddies/bitreserve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupbuddies/bitreserve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupbuddies/bitreserve/teams","hooks_url":"https://api.github.com/repos/groupbuddies/bitreserve/hooks","issue_events_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues/events{/number}","events_url":"https://api.github.com/repos/groupbuddies/bitreserve/events","assignees_url":"https://api.github.com/repos/groupbuddies/bitreserve/assignees{/user}","branches_url":"https://api.github.com/repos/groupbuddies/bitreserve/branches{/branch}","tags_url":"https://api.github.com/repos/groupbuddies/bitreserve/tags","blobs_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupbuddies/bitreserve/statuses/{sha}","languages_url":"https://api.github.com/repos/groupbuddies/bitreserve/languages","stargazers_url":"https://api.github.com/repos/groupbuddies/bitreserve/stargazers","contributors_url":"https://api.github.com/repos/groupbuddies/bitreserve/contributors","subscribers_url":"https://api.github.com/repos/groupbuddies/bitreserve/subscribers","subscription_url":"https://api.github.com/repos/groupbuddies/bitreserve/subscription","commits_url":"https://api.github.com/repos/groupbuddies/bitreserve/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupbuddies/bitreserve/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues/comments/{number}","contents_url":"https://api.github.com/repos/groupbuddies/bitreserve/contents/{+path}","compare_url":"https://api.github.com/repos/groupbuddies/bitreserve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupbuddies/bitreserve/merges","archive_url":"https://api.github.com/repos/groupbuddies/bitreserve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupbuddies/bitreserve/downloads","issues_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues{/number}","pulls_url":"https://api.github.com/repos/groupbuddies/bitreserve/pulls{/number}","milestones_url":"https://api.github.com/repos/groupbuddies/bitreserve/milestones{/number}","notifications_url":"https://api.github.com/repos/groupbuddies/bitreserve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupbuddies/bitreserve/labels{/name}","releases_url":"https://api.github.com/repos/groupbuddies/bitreserve/releases{/id}","created_at":"2015-01-22T15:09:41Z","updated_at":"2015-01-24T11:34:51Z","pushed_at":"2015-01-26T11:20:08Z","git_url":"git://github.com/groupbuddies/bitreserve.git","ssh_url":"git@github.com:groupbuddies/bitreserve.git","clone_url":"https://github.com/groupbuddies/bitreserve.git","svn_url":"https://github.com/groupbuddies/bitreserve","homepage":null,"size":0,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"groupbuddies:master","ref":"master","sha":"2dea9354e50ee33df932a30d0256247335312ead","user":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"repo":{"id":29684387,"name":"bitreserve","full_name":"groupbuddies/bitreserve","owner":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupbuddies/bitreserve","description":"A wrapper for the Bitreserve API","fork":false,"url":"https://api.github.com/repos/groupbuddies/bitreserve","forks_url":"https://api.github.com/repos/groupbuddies/bitreserve/forks","keys_url":"https://api.github.com/repos/groupbuddies/bitreserve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupbuddies/bitreserve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupbuddies/bitreserve/teams","hooks_url":"https://api.github.com/repos/groupbuddies/bitreserve/hooks","issue_events_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues/events{/number}","events_url":"https://api.github.com/repos/groupbuddies/bitreserve/events","assignees_url":"https://api.github.com/repos/groupbuddies/bitreserve/assignees{/user}","branches_url":"https://api.github.com/repos/groupbuddies/bitreserve/branches{/branch}","tags_url":"https://api.github.com/repos/groupbuddies/bitreserve/tags","blobs_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupbuddies/bitreserve/statuses/{sha}","languages_url":"https://api.github.com/repos/groupbuddies/bitreserve/languages","stargazers_url":"https://api.github.com/repos/groupbuddies/bitreserve/stargazers","contributors_url":"https://api.github.com/repos/groupbuddies/bitreserve/contributors","subscribers_url":"https://api.github.com/repos/groupbuddies/bitreserve/subscribers","subscription_url":"https://api.github.com/repos/groupbuddies/bitreserve/subscription","commits_url":"https://api.github.com/repos/groupbuddies/bitreserve/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupbuddies/bitreserve/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupbuddies/bitreserve/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues/comments/{number}","contents_url":"https://api.github.com/repos/groupbuddies/bitreserve/contents/{+path}","compare_url":"https://api.github.com/repos/groupbuddies/bitreserve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupbuddies/bitreserve/merges","archive_url":"https://api.github.com/repos/groupbuddies/bitreserve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupbuddies/bitreserve/downloads","issues_url":"https://api.github.com/repos/groupbuddies/bitreserve/issues{/number}","pulls_url":"https://api.github.com/repos/groupbuddies/bitreserve/pulls{/number}","milestones_url":"https://api.github.com/repos/groupbuddies/bitreserve/milestones{/number}","notifications_url":"https://api.github.com/repos/groupbuddies/bitreserve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupbuddies/bitreserve/labels{/name}","releases_url":"https://api.github.com/repos/groupbuddies/bitreserve/releases{/id}","created_at":"2015-01-22T15:09:41Z","updated_at":"2015-01-24T11:34:51Z","pushed_at":"2015-01-26T11:20:08Z","git_url":"git://github.com/groupbuddies/bitreserve.git","ssh_url":"git@github.com:groupbuddies/bitreserve.git","clone_url":"https://github.com/groupbuddies/bitreserve.git","svn_url":"https://github.com/groupbuddies/bitreserve","homepage":null,"size":0,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/14"},"html":{"href":"https://github.com/groupbuddies/bitreserve/pull/14"},"issue":{"href":"https://api.github.com/repos/groupbuddies/bitreserve/issues/14"},"comments":{"href":"https://api.github.com/repos/groupbuddies/bitreserve/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/groupbuddies/bitreserve/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/groupbuddies/bitreserve/statuses/110d377d3b7dbadec88b43d85dbc54daea6e5a68"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"zamith","id":166304,"avatar_url":"https://avatars.githubusercontent.com/u/166304?v=3","gravatar_id":"","url":"https://api.github.com/users/zamith","html_url":"https://github.com/zamith","followers_url":"https://api.github.com/users/zamith/followers","following_url":"https://api.github.com/users/zamith/following{/other_user}","gists_url":"https://api.github.com/users/zamith/gists{/gist_id}","starred_url":"https://api.github.com/users/zamith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamith/subscriptions","organizations_url":"https://api.github.com/users/zamith/orgs","repos_url":"https://api.github.com/users/zamith/repos","events_url":"https://api.github.com/users/zamith/events{/privacy}","received_events_url":"https://api.github.com/users/zamith/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":2,"additions":222,"deletions":141,"changed_files":24}}