{"action":"created","issue":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/335","labels_url":"https://api.github.com/repos/rubygems/rubygems/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/rubygems/rubygems/issues/335/comments","events_url":"https://api.github.com/repos/rubygems/rubygems/issues/335/events","html_url":"https://github.com/rubygems/rubygems/issues/335","id":4649453,"number":335,"title":"Specification.all isn't all","user":{"login":"zenspider","id":9832,"avatar_url":"https://avatars.githubusercontent.com/u/9832?v=3","gravatar_id":"","url":"https://api.github.com/users/zenspider","html_url":"https://github.com/zenspider","followers_url":"https://api.github.com/users/zenspider/followers","following_url":"https://api.github.com/users/zenspider/following{/other_user}","gists_url":"https://api.github.com/users/zenspider/gists{/gist_id}","starred_url":"https://api.github.com/users/zenspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenspider/subscriptions","organizations_url":"https://api.github.com/users/zenspider/orgs","repos_url":"https://api.github.com/users/zenspider/repos","events_url":"https://api.github.com/users/zenspider/events{/privacy}","received_events_url":"https://api.github.com/users/zenspider/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rubygems/rubygems/labels/bug%20report","name":"bug report","color":"e10c02"},{"url":"https://api.github.com/repos/rubygems/rubygems/labels/category%20-%20API","name":"category - API","color":"0b02e1"}],"state":"open","locked":false,"assignee":{"login":"evanphx","id":7,"avatar_url":"https://avatars.githubusercontent.com/u/7?v=3","gravatar_id":"","url":"https://api.github.com/users/evanphx","html_url":"https://github.com/evanphx","followers_url":"https://api.github.com/users/evanphx/followers","following_url":"https://api.github.com/users/evanphx/following{/other_user}","gists_url":"https://api.github.com/users/evanphx/gists{/gist_id}","starred_url":"https://api.github.com/users/evanphx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanphx/subscriptions","organizations_url":"https://api.github.com/users/evanphx/orgs","repos_url":"https://api.github.com/users/evanphx/repos","events_url":"https://api.github.com/users/evanphx/events{/privacy}","received_events_url":"https://api.github.com/users/evanphx/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rubygems/rubygems/milestones/1","html_url":"https://github.com/rubygems/rubygems/milestones/Future","labels_url":"https://api.github.com/repos/rubygems/rubygems/milestones/1/labels","id":220002,"number":1,"title":"Future","description":"","creator":{"login":"drbrain","id":9831,"avatar_url":"https://avatars.githubusercontent.com/u/9831?v=3","gravatar_id":"","url":"https://api.github.com/users/drbrain","html_url":"https://github.com/drbrain","followers_url":"https://api.github.com/users/drbrain/followers","following_url":"https://api.github.com/users/drbrain/following{/other_user}","gists_url":"https://api.github.com/users/drbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/drbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drbrain/subscriptions","organizations_url":"https://api.github.com/users/drbrain/orgs","repos_url":"https://api.github.com/users/drbrain/repos","events_url":"https://api.github.com/users/drbrain/events{/privacy}","received_events_url":"https://api.github.com/users/drbrain/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":25,"state":"open","created_at":"2012-11-28T00:26:52Z","updated_at":"2016-01-01T21:11:07Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2012-05-18T21:00:51Z","updated_at":"2016-01-01T21:12:25Z","closed_at":null,"body":"As discovered in jbarnette/isolate#47, 7d43f14 makes Specification._all respond with a list of specifications minus redundant specs instead of all specs. If it is called all, I think it should be all. If we want unique specs, then we should add api for that."},"comment":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/comments/168337404","html_url":"https://github.com/rubygems/rubygems/issues/335#issuecomment-168337404","issue_url":"https://api.github.com/repos/rubygems/rubygems/issues/335","id":168337404,"user":{"login":"duckinator","id":39698,"avatar_url":"https://avatars.githubusercontent.com/u/39698?v=3","gravatar_id":"","url":"https://api.github.com/users/duckinator","html_url":"https://github.com/duckinator","followers_url":"https://api.github.com/users/duckinator/followers","following_url":"https://api.github.com/users/duckinator/following{/other_user}","gists_url":"https://api.github.com/users/duckinator/gists{/gist_id}","starred_url":"https://api.github.com/users/duckinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckinator/subscriptions","organizations_url":"https://api.github.com/users/duckinator/orgs","repos_url":"https://api.github.com/users/duckinator/repos","events_url":"https://api.github.com/users/duckinator/events{/privacy}","received_events_url":"https://api.github.com/users/duckinator/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T21:12:25Z","updated_at":"2016-01-01T21:12:25Z","body":"@zenspider, is this still a valid issue when using current versions of rubygems?\r\n\r\nAs a note:\r\n\r\n`Gem::Specification.all` [issues a deprecation warning](https://github.com/rubygems/rubygems/blob/master/lib/rubygems/specification.rb#L926-L930), and [the current documentation for `.all`](http://ruby-doc.org/stdlib-2.2.3/libdoc/rubygems/rdoc/Gem/Specification.html#method-c-all) recommends using Enumerable methods.\r\n\r\nFrom that, my understanding is that the current equivalent of this which uses actually-documented methods would be `Gem::Specification.each.to_a` or similar. However: `.each` [ultimately winds up calling `._all`](https://github.com/rubygems/rubygems/blob/master/lib/rubygems/specification.rb#L995-L1005), which appears to be a direct descendant of the old `.all`, but I don't know enough about this codebase to tell if it is _functionally equivalent_ to the old `.all`."}}