{"action":"created","issue":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/1236","labels_url":"https://api.github.com/repos/rubygems/rubygems/issues/1236/labels{/name}","comments_url":"https://api.github.com/repos/rubygems/rubygems/issues/1236/comments","events_url":"https://api.github.com/repos/rubygems/rubygems/issues/1236/events","html_url":"https://github.com/rubygems/rubygems/issues/1236","id":71756125,"number":1236,"title":"Master raises exception when calling `gem` method","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-29T01:54:34Z","updated_at":"2015-04-29T16:09:39Z","closed_at":null,"body":"The Bundler specs call the `gem` method in [spec_helper.rb](https://github.com/bundler/bundler/blob/master/spec/spec_helper.rb#L12), and apparently just calling that method is enough to cause an exception. This is the backtrace:\r\n\r\n```\r\n/home/travis/build/bundler/bundler/tmp/rubygems/lib/rubygems/specification.rb:804:in `stubs_for': undefined method `sort_by!' for #<Array:0x7fe7d7eeae28> (NoMethodError)\r\n\tfrom /home/travis/build/bundler/bundler/tmp/rubygems/lib/rubygems/specification.rb:804:in `each_value'\r\n\tfrom /home/travis/build/bundler/bundler/tmp/rubygems/lib/rubygems/specification.rb:804:in `stubs_for'\r\n\tfrom /home/travis/build/bundler/bundler/tmp/rubygems/lib/rubygems/dependency.rb:277:in `matching_specs'\r\n\tfrom /home/travis/build/bundler/bundler/tmp/rubygems/lib/rubygems/dependency.rb:298:in `to_specs'\r\n\tfrom /home/travis/build/bundler/bundler/tmp/rubygems/lib/rubygems/dependency.rb:327:in `to_spec'\r\n\tfrom /home/travis/build/bundler/bundler/tmp/rubygems/lib/rubygems/core_ext/kernel_gem.rb:64:in `gem'\r\n\tfrom /home/travis/build/bundler/bundler/spec/spec_helper.rb:12\r\n\tfrom /home/travis/build/bundler/bundler/spec/bundler/bundler_spec.rb:2:in `require'\r\n\tfrom /home/travis/build/bundler/bundler/spec/bundler/bundler_spec.rb:2\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1226:in `load'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1226:in `load_spec_files'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1224:in `each'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1224:in `load_spec_files'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:97:in `setup'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:85:in `run'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:70:in `run'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:38:in `invoke'\r\n\tfrom /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/rspec-core-3.2.3/exe/rspec:4\r\n```"},"comment":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/comments/97483202","html_url":"https://github.com/rubygems/rubygems/issues/1236#issuecomment-97483202","issue_url":"https://api.github.com/repos/rubygems/rubygems/issues/1236","id":97483202,"user":{"login":"tenderlove","id":3124,"avatar_url":"https://avatars.githubusercontent.com/u/3124?v=3","gravatar_id":"","url":"https://api.github.com/users/tenderlove","html_url":"https://github.com/tenderlove","followers_url":"https://api.github.com/users/tenderlove/followers","following_url":"https://api.github.com/users/tenderlove/following{/other_user}","gists_url":"https://api.github.com/users/tenderlove/gists{/gist_id}","starred_url":"https://api.github.com/users/tenderlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenderlove/subscriptions","organizations_url":"https://api.github.com/users/tenderlove/orgs","repos_url":"https://api.github.com/users/tenderlove/repos","events_url":"https://api.github.com/users/tenderlove/events{/privacy}","received_events_url":"https://api.github.com/users/tenderlove/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T16:09:39Z","updated_at":"2015-04-29T16:09:39Z","body":"@indirect looks like the exception is different between the different versions.  b39d3da3bd3170b64ae95a4954f30b9e9a5be687 should fix the 1.8 support.  I'm running the bundler tests to find the other issues, but it will take a while to fix. :frowning: "}}