{"action":"created","comment":{"url":"https://api.github.com/repos/bundler/gemstash/pulls/comments/43702787","id":43702787,"diff_hunk":"@@ -67,7 +67,15 @@ def serve_info(name)\n       end\n \n       def serve_marshal(id)\n-        halt 403, \"Not yet supported\"\n+        gem_full_name = id.sub(/\\.gemspec\\.rz\\z/, \"\")\n+        gem = storage.resource(gem_full_name)\n+        halt 404 unless gem.exist?\n+        gem.load\n+        halt 403, \"That gem has been yanked\" unless gem.properties[:indexed]\n+        spec = spec_storage.resource(gem_full_name)\n+        halt 404 unless spec.exist?\n+        content_type \"application/octet-stream\"\n+        spec.load.content\n       end","path":"lib/gemstash/gem_source/private_source.rb","position":14,"original_position":14,"commit_id":"20f8d360d2ea33f3c063b99f0a15ff5e231e0305","original_commit_id":"20f8d360d2ea33f3c063b99f0a15ff5e231e0305","user":{"login":"smellsblue","id":150632,"avatar_url":"https://avatars.githubusercontent.com/u/150632?v=3","gravatar_id":"","url":"https://api.github.com/users/smellsblue","html_url":"https://github.com/smellsblue","followers_url":"https://api.github.com/users/smellsblue/followers","following_url":"https://api.github.com/users/smellsblue/following{/other_user}","gists_url":"https://api.github.com/users/smellsblue/gists{/gist_id}","starred_url":"https://api.github.com/users/smellsblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smellsblue/subscriptions","organizations_url":"https://api.github.com/users/smellsblue/orgs","repos_url":"https://api.github.com/users/smellsblue/repos","events_url":"https://api.github.com/users/smellsblue/events{/privacy}","received_events_url":"https://api.github.com/users/smellsblue/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-11-03T00:15:18Z","updated_at":"2015-11-03T00:15:18Z","html_url":"https://github.com/bundler/gemstash/pull/45#discussion_r43702787","pull_request_url":"https://api.github.com/repos/bundler/gemstash/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/bundler/gemstash/pulls/comments/43702787"},"html":{"href":"https://github.com/bundler/gemstash/pull/45#discussion_r43702787"},"pull_request":{"href":"https://api.github.com/repos/bundler/gemstash/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/bundler/gemstash/pulls/45","id":49392548,"html_url":"https://github.com/bundler/gemstash/pull/45","diff_url":"https://github.com/bundler/gemstash/pull/45.diff","patch_url":"https://github.com/bundler/gemstash/pull/45.patch","issue_url":"https://api.github.com/repos/bundler/gemstash/issues/45","number":45,"state":"open","locked":false,"title":"Full index bundling","user":{"login":"smellsblue","id":150632,"avatar_url":"https://avatars.githubusercontent.com/u/150632?v=3","gravatar_id":"","url":"https://api.github.com/users/smellsblue","html_url":"https://github.com/smellsblue","followers_url":"https://api.github.com/users/smellsblue/followers","following_url":"https://api.github.com/users/smellsblue/following{/other_user}","gists_url":"https://api.github.com/users/smellsblue/gists{/gist_id}","starred_url":"https://api.github.com/users/smellsblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smellsblue/subscriptions","organizations_url":"https://api.github.com/users/smellsblue/orgs","repos_url":"https://api.github.com/users/smellsblue/repos","events_url":"https://api.github.com/users/smellsblue/events{/privacy}","received_events_url":"https://api.github.com/users/smellsblue/received_events","type":"User","site_admin":false},"body":"This fixes #15 and fixes #16.\r\n\r\nBundling with `--full-index` involves implementing `/private/specs.4.8.gz` and `/private/quick/Marshal.4.8/<gem>-<version>.gemspec.rz`. Upstreams already work, though perhaps we want to cache some results? Maybe that's unnecessary though.","created_at":"2015-11-02T03:46:31Z","updated_at":"2015-11-03T00:15:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7dbd5a24b2658a9930fbeabd9846cca31d3eea25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bundler/gemstash/pulls/45/commits","review_comments_url":"https://api.github.com/repos/bundler/gemstash/pulls/45/comments","review_comment_url":"https://api.github.com/repos/bundler/gemstash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bundler/gemstash/issues/45/comments","statuses_url":"https://api.github.com/repos/bundler/gemstash/statuses/20f8d360d2ea33f3c063b99f0a15ff5e231e0305","head":{"label":"bundler:full-index-bundling","ref":"full-index-bundling","sha":"20f8d360d2ea33f3c063b99f0a15ff5e231e0305","user":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"repo":{"id":42746109,"name":"gemstash","full_name":"bundler/gemstash","owner":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bundler/gemstash","description":null,"fork":false,"url":"https://api.github.com/repos/bundler/gemstash","forks_url":"https://api.github.com/repos/bundler/gemstash/forks","keys_url":"https://api.github.com/repos/bundler/gemstash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bundler/gemstash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bundler/gemstash/teams","hooks_url":"https://api.github.com/repos/bundler/gemstash/hooks","issue_events_url":"https://api.github.com/repos/bundler/gemstash/issues/events{/number}","events_url":"https://api.github.com/repos/bundler/gemstash/events","assignees_url":"https://api.github.com/repos/bundler/gemstash/assignees{/user}","branches_url":"https://api.github.com/repos/bundler/gemstash/branches{/branch}","tags_url":"https://api.github.com/repos/bundler/gemstash/tags","blobs_url":"https://api.github.com/repos/bundler/gemstash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bundler/gemstash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bundler/gemstash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bundler/gemstash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bundler/gemstash/statuses/{sha}","languages_url":"https://api.github.com/repos/bundler/gemstash/languages","stargazers_url":"https://api.github.com/repos/bundler/gemstash/stargazers","contributors_url":"https://api.github.com/repos/bundler/gemstash/contributors","subscribers_url":"https://api.github.com/repos/bundler/gemstash/subscribers","subscription_url":"https://api.github.com/repos/bundler/gemstash/subscription","commits_url":"https://api.github.com/repos/bundler/gemstash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bundler/gemstash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bundler/gemstash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bundler/gemstash/issues/comments{/number}","contents_url":"https://api.github.com/repos/bundler/gemstash/contents/{+path}","compare_url":"https://api.github.com/repos/bundler/gemstash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bundler/gemstash/merges","archive_url":"https://api.github.com/repos/bundler/gemstash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bundler/gemstash/downloads","issues_url":"https://api.github.com/repos/bundler/gemstash/issues{/number}","pulls_url":"https://api.github.com/repos/bundler/gemstash/pulls{/number}","milestones_url":"https://api.github.com/repos/bundler/gemstash/milestones{/number}","notifications_url":"https://api.github.com/repos/bundler/gemstash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bundler/gemstash/labels{/name}","releases_url":"https://api.github.com/repos/bundler/gemstash/releases{/id}","created_at":"2015-09-18T20:41:41Z","updated_at":"2015-11-02T11:57:17Z","pushed_at":"2015-11-03T00:03:22Z","git_url":"git://github.com/bundler/gemstash.git","ssh_url":"git@github.com:bundler/gemstash.git","clone_url":"https://github.com/bundler/gemstash.git","svn_url":"https://github.com/bundler/gemstash","homepage":null,"size":926,"stargazers_count":32,"watchers_count":32,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":32,"default_branch":"master"}},"base":{"label":"bundler:master","ref":"master","sha":"4c7911e59509706a3e7a90cae1f331a76bafc290","user":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"repo":{"id":42746109,"name":"gemstash","full_name":"bundler/gemstash","owner":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bundler/gemstash","description":null,"fork":false,"url":"https://api.github.com/repos/bundler/gemstash","forks_url":"https://api.github.com/repos/bundler/gemstash/forks","keys_url":"https://api.github.com/repos/bundler/gemstash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bundler/gemstash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bundler/gemstash/teams","hooks_url":"https://api.github.com/repos/bundler/gemstash/hooks","issue_events_url":"https://api.github.com/repos/bundler/gemstash/issues/events{/number}","events_url":"https://api.github.com/repos/bundler/gemstash/events","assignees_url":"https://api.github.com/repos/bundler/gemstash/assignees{/user}","branches_url":"https://api.github.com/repos/bundler/gemstash/branches{/branch}","tags_url":"https://api.github.com/repos/bundler/gemstash/tags","blobs_url":"https://api.github.com/repos/bundler/gemstash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bundler/gemstash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bundler/gemstash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bundler/gemstash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bundler/gemstash/statuses/{sha}","languages_url":"https://api.github.com/repos/bundler/gemstash/languages","stargazers_url":"https://api.github.com/repos/bundler/gemstash/stargazers","contributors_url":"https://api.github.com/repos/bundler/gemstash/contributors","subscribers_url":"https://api.github.com/repos/bundler/gemstash/subscribers","subscription_url":"https://api.github.com/repos/bundler/gemstash/subscription","commits_url":"https://api.github.com/repos/bundler/gemstash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bundler/gemstash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bundler/gemstash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bundler/gemstash/issues/comments{/number}","contents_url":"https://api.github.com/repos/bundler/gemstash/contents/{+path}","compare_url":"https://api.github.com/repos/bundler/gemstash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bundler/gemstash/merges","archive_url":"https://api.github.com/repos/bundler/gemstash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bundler/gemstash/downloads","issues_url":"https://api.github.com/repos/bundler/gemstash/issues{/number}","pulls_url":"https://api.github.com/repos/bundler/gemstash/pulls{/number}","milestones_url":"https://api.github.com/repos/bundler/gemstash/milestones{/number}","notifications_url":"https://api.github.com/repos/bundler/gemstash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bundler/gemstash/labels{/name}","releases_url":"https://api.github.com/repos/bundler/gemstash/releases{/id}","created_at":"2015-09-18T20:41:41Z","updated_at":"2015-11-02T11:57:17Z","pushed_at":"2015-11-03T00:03:22Z","git_url":"git://github.com/bundler/gemstash.git","ssh_url":"git@github.com:bundler/gemstash.git","clone_url":"https://github.com/bundler/gemstash.git","svn_url":"https://github.com/bundler/gemstash","homepage":null,"size":926,"stargazers_count":32,"watchers_count":32,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bundler/gemstash/pulls/45"},"html":{"href":"https://github.com/bundler/gemstash/pull/45"},"issue":{"href":"https://api.github.com/repos/bundler/gemstash/issues/45"},"comments":{"href":"https://api.github.com/repos/bundler/gemstash/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/bundler/gemstash/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/bundler/gemstash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bundler/gemstash/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/bundler/gemstash/statuses/20f8d360d2ea33f3c063b99f0a15ff5e231e0305"}}}}