{"action":"created","comment":{"url":"https://api.github.com/repos/bundler/bundler-api/pulls/comments/32080477","id":32080477,"diff_hunk":"@@ -62,7 +62,9 @@ def find_or_insert_version(spec, rubygem_id, platform = 'ruby', indexed = nil)\n     version    = @db[:versions].filter(\n       rubygem_id: rubygem_id,\n       number:     spec.version.version,\n-      platform:   platform\n+      platform:   platform,\n+      rubygems_version: spec.required_rubygems_version.none? ? nil : spec.required_rubygems_version.to_s,\n+      required_ruby_version: spec.required_ruby_version.none? ? nil : spec.required_ruby_version.to_s","path":"lib/bundler_api/update/gem_db_helper.rb","position":7,"original_position":7,"commit_id":"6c1e55e406be26879c013cfa7739ffed98ee4dfa","original_commit_id":"6c1e55e406be26879c013cfa7739ffed98ee4dfa","user":{"login":"indirect","id":78,"avatar_url":"https://avatars.githubusercontent.com/u/78?v=3","gravatar_id":"","url":"https://api.github.com/users/indirect","html_url":"https://github.com/indirect","followers_url":"https://api.github.com/users/indirect/followers","following_url":"https://api.github.com/users/indirect/following{/other_user}","gists_url":"https://api.github.com/users/indirect/gists{/gist_id}","starred_url":"https://api.github.com/users/indirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirect/subscriptions","organizations_url":"https://api.github.com/users/indirect/orgs","repos_url":"https://api.github.com/users/indirect/repos","events_url":"https://api.github.com/users/indirect/events{/privacy}","received_events_url":"https://api.github.com/users/indirect/received_events","type":"User","site_admin":false},"body":"I think we also want to get the checksum from RubyGems.org, but we might have to make an API call for it. :/","created_at":"2015-06-10T00:55:29Z","updated_at":"2015-06-10T00:55:29Z","html_url":"https://github.com/bundler/bundler-api/pull/80#discussion_r32080477","pull_request_url":"https://api.github.com/repos/bundler/bundler-api/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/comments/32080477"},"html":{"href":"https://github.com/bundler/bundler-api/pull/80#discussion_r32080477"},"pull_request":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/bundler/bundler-api/pulls/80","id":37212381,"html_url":"https://github.com/bundler/bundler-api/pull/80","diff_url":"https://github.com/bundler/bundler-api/pull/80.diff","patch_url":"https://github.com/bundler/bundler-api/pull/80.patch","issue_url":"https://api.github.com/repos/bundler/bundler-api/issues/80","number":80,"state":"open","locked":false,"title":"Add required ruby and rubygems versions to /info/gemname","user":{"login":"fotanus","id":215018,"avatar_url":"https://avatars.githubusercontent.com/u/215018?v=3","gravatar_id":"","url":"https://api.github.com/users/fotanus","html_url":"https://github.com/fotanus","followers_url":"https://api.github.com/users/fotanus/followers","following_url":"https://api.github.com/users/fotanus/following{/other_user}","gists_url":"https://api.github.com/users/fotanus/gists{/gist_id}","starred_url":"https://api.github.com/users/fotanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fotanus/subscriptions","organizations_url":"https://api.github.com/users/fotanus/orgs","repos_url":"https://api.github.com/users/fotanus/repos","events_url":"https://api.github.com/users/fotanus/events{/privacy}","received_events_url":"https://api.github.com/users/fotanus/received_events","type":"User","site_admin":false},"body":"This is a draft for adding the required ruby and rubygems to the info response. Check comments inline","created_at":"2015-06-09T01:34:50Z","updated_at":"2015-06-10T00:55:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5045790d6e7d013f23b4cfc27c550b5e31780eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bundler/bundler-api/pulls/80/commits","review_comments_url":"https://api.github.com/repos/bundler/bundler-api/pulls/80/comments","review_comment_url":"https://api.github.com/repos/bundler/bundler-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bundler/bundler-api/issues/80/comments","statuses_url":"https://api.github.com/repos/bundler/bundler-api/statuses/6c1e55e406be26879c013cfa7739ffed98ee4dfa","head":{"label":"fotanus:info-gemname","ref":"info-gemname","sha":"6c1e55e406be26879c013cfa7739ffed98ee4dfa","user":{"login":"fotanus","id":215018,"avatar_url":"https://avatars.githubusercontent.com/u/215018?v=3","gravatar_id":"","url":"https://api.github.com/users/fotanus","html_url":"https://github.com/fotanus","followers_url":"https://api.github.com/users/fotanus/followers","following_url":"https://api.github.com/users/fotanus/following{/other_user}","gists_url":"https://api.github.com/users/fotanus/gists{/gist_id}","starred_url":"https://api.github.com/users/fotanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fotanus/subscriptions","organizations_url":"https://api.github.com/users/fotanus/orgs","repos_url":"https://api.github.com/users/fotanus/repos","events_url":"https://api.github.com/users/fotanus/events{/privacy}","received_events_url":"https://api.github.com/users/fotanus/received_events","type":"User","site_admin":false},"repo":{"id":35182414,"name":"bundler-api","full_name":"fotanus/bundler-api","owner":{"login":"fotanus","id":215018,"avatar_url":"https://avatars.githubusercontent.com/u/215018?v=3","gravatar_id":"","url":"https://api.github.com/users/fotanus","html_url":"https://github.com/fotanus","followers_url":"https://api.github.com/users/fotanus/followers","following_url":"https://api.github.com/users/fotanus/following{/other_user}","gists_url":"https://api.github.com/users/fotanus/gists{/gist_id}","starred_url":"https://api.github.com/users/fotanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fotanus/subscriptions","organizations_url":"https://api.github.com/users/fotanus/orgs","repos_url":"https://api.github.com/users/fotanus/repos","events_url":"https://api.github.com/users/fotanus/events{/privacy}","received_events_url":"https://api.github.com/users/fotanus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fotanus/bundler-api","description":"Bundler 1.1+ API","fork":true,"url":"https://api.github.com/repos/fotanus/bundler-api","forks_url":"https://api.github.com/repos/fotanus/bundler-api/forks","keys_url":"https://api.github.com/repos/fotanus/bundler-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fotanus/bundler-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fotanus/bundler-api/teams","hooks_url":"https://api.github.com/repos/fotanus/bundler-api/hooks","issue_events_url":"https://api.github.com/repos/fotanus/bundler-api/issues/events{/number}","events_url":"https://api.github.com/repos/fotanus/bundler-api/events","assignees_url":"https://api.github.com/repos/fotanus/bundler-api/assignees{/user}","branches_url":"https://api.github.com/repos/fotanus/bundler-api/branches{/branch}","tags_url":"https://api.github.com/repos/fotanus/bundler-api/tags","blobs_url":"https://api.github.com/repos/fotanus/bundler-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fotanus/bundler-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fotanus/bundler-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/fotanus/bundler-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fotanus/bundler-api/statuses/{sha}","languages_url":"https://api.github.com/repos/fotanus/bundler-api/languages","stargazers_url":"https://api.github.com/repos/fotanus/bundler-api/stargazers","contributors_url":"https://api.github.com/repos/fotanus/bundler-api/contributors","subscribers_url":"https://api.github.com/repos/fotanus/bundler-api/subscribers","subscription_url":"https://api.github.com/repos/fotanus/bundler-api/subscription","commits_url":"https://api.github.com/repos/fotanus/bundler-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/fotanus/bundler-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/fotanus/bundler-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/fotanus/bundler-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/fotanus/bundler-api/contents/{+path}","compare_url":"https://api.github.com/repos/fotanus/bundler-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fotanus/bundler-api/merges","archive_url":"https://api.github.com/repos/fotanus/bundler-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fotanus/bundler-api/downloads","issues_url":"https://api.github.com/repos/fotanus/bundler-api/issues{/number}","pulls_url":"https://api.github.com/repos/fotanus/bundler-api/pulls{/number}","milestones_url":"https://api.github.com/repos/fotanus/bundler-api/milestones{/number}","notifications_url":"https://api.github.com/repos/fotanus/bundler-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fotanus/bundler-api/labels{/name}","releases_url":"https://api.github.com/repos/fotanus/bundler-api/releases{/id}","created_at":"2015-05-06T20:54:31Z","updated_at":"2015-05-06T21:30:36Z","pushed_at":"2015-06-09T19:39:25Z","git_url":"git://github.com/fotanus/bundler-api.git","ssh_url":"git@github.com:fotanus/bundler-api.git","clone_url":"https://github.com/fotanus/bundler-api.git","svn_url":"https://github.com/fotanus/bundler-api","homepage":null,"size":1733,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bundler:new_index_format","ref":"new_index_format","sha":"50fb551d8c3b751941e6b42639fa744c2b02ef16","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":6304323,"name":"bundler-api","full_name":"bundler/bundler-api","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/bundler-api","description":"Bundler 1.1+ API","fork":false,"url":"https://api.github.com/repos/bundler/bundler-api","forks_url":"https://api.github.com/repos/bundler/bundler-api/forks","keys_url":"https://api.github.com/repos/bundler/bundler-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bundler/bundler-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bundler/bundler-api/teams","hooks_url":"https://api.github.com/repos/bundler/bundler-api/hooks","issue_events_url":"https://api.github.com/repos/bundler/bundler-api/issues/events{/number}","events_url":"https://api.github.com/repos/bundler/bundler-api/events","assignees_url":"https://api.github.com/repos/bundler/bundler-api/assignees{/user}","branches_url":"https://api.github.com/repos/bundler/bundler-api/branches{/branch}","tags_url":"https://api.github.com/repos/bundler/bundler-api/tags","blobs_url":"https://api.github.com/repos/bundler/bundler-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bundler/bundler-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bundler/bundler-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/bundler/bundler-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bundler/bundler-api/statuses/{sha}","languages_url":"https://api.github.com/repos/bundler/bundler-api/languages","stargazers_url":"https://api.github.com/repos/bundler/bundler-api/stargazers","contributors_url":"https://api.github.com/repos/bundler/bundler-api/contributors","subscribers_url":"https://api.github.com/repos/bundler/bundler-api/subscribers","subscription_url":"https://api.github.com/repos/bundler/bundler-api/subscription","commits_url":"https://api.github.com/repos/bundler/bundler-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/bundler/bundler-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/bundler/bundler-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/bundler/bundler-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/bundler/bundler-api/contents/{+path}","compare_url":"https://api.github.com/repos/bundler/bundler-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bundler/bundler-api/merges","archive_url":"https://api.github.com/repos/bundler/bundler-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bundler/bundler-api/downloads","issues_url":"https://api.github.com/repos/bundler/bundler-api/issues{/number}","pulls_url":"https://api.github.com/repos/bundler/bundler-api/pulls{/number}","milestones_url":"https://api.github.com/repos/bundler/bundler-api/milestones{/number}","notifications_url":"https://api.github.com/repos/bundler/bundler-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bundler/bundler-api/labels{/name}","releases_url":"https://api.github.com/repos/bundler/bundler-api/releases{/id}","created_at":"2012-10-20T01:55:07Z","updated_at":"2015-05-07T10:07:53Z","pushed_at":"2015-06-10T00:22:09Z","git_url":"git://github.com/bundler/bundler-api.git","ssh_url":"git@github.com:bundler/bundler-api.git","clone_url":"https://github.com/bundler/bundler-api.git","svn_url":"https://github.com/bundler/bundler-api","homepage":null,"size":1711,"stargazers_count":40,"watchers_count":40,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":11,"forks":22,"open_issues":11,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/80"},"html":{"href":"https://github.com/bundler/bundler-api/pull/80"},"issue":{"href":"https://api.github.com/repos/bundler/bundler-api/issues/80"},"comments":{"href":"https://api.github.com/repos/bundler/bundler-api/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bundler/bundler-api/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/bundler/bundler-api/statuses/6c1e55e406be26879c013cfa7739ffed98ee4dfa"}}}}