{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/7073","repository_url":"https://api.github.com/repos/mitchellh/vagrant","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7073/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7073/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7073/events","html_url":"https://github.com/mitchellh/vagrant/issues/7073","id":136110506,"number":7073,"title":"specification.rb:945:in `all=': undefined method `group_by' for nil:NilClass (NoMethodError)","user":{"login":"tpenguin","id":60992,"avatar_url":"https://avatars.githubusercontent.com/u/60992?v=3","gravatar_id":"","url":"https://api.github.com/users/tpenguin","html_url":"https://github.com/tpenguin","followers_url":"https://api.github.com/users/tpenguin/followers","following_url":"https://api.github.com/users/tpenguin/following{/other_user}","gists_url":"https://api.github.com/users/tpenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/tpenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpenguin/subscriptions","organizations_url":"https://api.github.com/users/tpenguin/orgs","repos_url":"https://api.github.com/users/tpenguin/repos","events_url":"https://api.github.com/users/tpenguin/events{/privacy}","received_events_url":"https://api.github.com/users/tpenguin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/vagrant/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/mitchellh/vagrant/labels/core","name":"core","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-24T16:24:43Z","updated_at":"2016-02-24T20:36:52Z","closed_at":null,"body":"### Vagrant version\r\n\r\n1.8.1\r\n\r\n### Expected behavior\r\n\r\n`lib/vagrant/bundler.rb` line 268 should not have performed what it has. The call to method `#all=` causes `nil` to be passed into *rubygems* which clearly shows in their source code that this is **not** actually the way to use the method.\r\n\r\n### Actual behavior\r\n\r\n```\r\n/usr/local/lib/ruby/site_ruby/2.1/rubygems/specification.rb:945:in `all=': undefined method `group_by' for nil:NilClass (NoMethodError)\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/bundler.rb:268:in `with_isolated_gem'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/bundler.rb:225:in `internal_install'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/bundler.rb:97:in `install'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/plugin/manager.rb:62:in `block in install_plugin'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/plugin/manager.rb:72:in `call'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/plugin/manager.rb:72:in `install_plugin'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/plugins/commands/plugin/action/install_gem.rb:37:in `call'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/action/warden.rb:34:in `call'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/action/builder.rb:116:in `call'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `block in run'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/util/busy.rb:19:in `busy'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:66:in `run'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/plugins/commands/plugin/command/base.rb:14:in `action'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/plugins/commands/plugin/command/install.rb:32:in `block in execute'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/plugins/commands/plugin/command/install.rb:31:in `each'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/plugins/commands/plugin/command/install.rb:31:in `execute'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/plugins/commands/plugin/command/root.rb:56:in `execute'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/cli.rb:42:in `execute'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/lib/vagrant/environment.rb:302:in `cli'\r\n\tfrom /usr/local/lib/ruby/gems/2.1/gems/vagrant-1.8.1/bin/vagrant:177:in `<top (required)>'\r\n\tfrom /usr/local/bin/vagrant:23:in `load'\r\n\tfrom /usr/local/bin/vagrant:23:in `<main>'\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nSimple bug, not needed to reproduce by way of user.\r\n\r\n### References\r\n\r\n* [rubygems: specification.rb line 946](https://github.com/rubygems/rubygems/blob/master/lib/rubygems/specification.rb#L946).\r\n * The previous line shows how `nil` is dereferenced and has no available method `#group_by`.\r\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/188445270","html_url":"https://github.com/mitchellh/vagrant/issues/7073#issuecomment-188445270","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/7073","id":188445270,"user":{"login":"mnd999","id":1756429,"avatar_url":"https://avatars.githubusercontent.com/u/1756429?v=3","gravatar_id":"","url":"https://api.github.com/users/mnd999","html_url":"https://github.com/mnd999","followers_url":"https://api.github.com/users/mnd999/followers","following_url":"https://api.github.com/users/mnd999/following{/other_user}","gists_url":"https://api.github.com/users/mnd999/gists{/gist_id}","starred_url":"https://api.github.com/users/mnd999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnd999/subscriptions","organizations_url":"https://api.github.com/users/mnd999/orgs","repos_url":"https://api.github.com/users/mnd999/repos","events_url":"https://api.github.com/users/mnd999/events{/privacy}","received_events_url":"https://api.github.com/users/mnd999/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T20:36:52Z","updated_at":"2016-02-24T20:36:52Z","body":"I get this too."}}