{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/3728","labels_url":"https://api.github.com/repos/bundler/bundler/issues/3728/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3728/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/3728/events","html_url":"https://github.com/bundler/bundler/issues/3728","id":85771649,"number":3728,"title":"no implicit conversion of nil into String (fix patch)","user":{"login":"e2","id":150197,"avatar_url":"https://avatars.githubusercontent.com/u/150197?v=3","gravatar_id":"","url":"https://api.github.com/users/e2","html_url":"https://github.com/e2","followers_url":"https://api.github.com/users/e2/followers","following_url":"https://api.github.com/users/e2/following{/other_user}","gists_url":"https://api.github.com/users/e2/gists{/gist_id}","starred_url":"https://api.github.com/users/e2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2/subscriptions","organizations_url":"https://api.github.com/users/e2/orgs","repos_url":"https://api.github.com/users/e2/repos","events_url":"https://api.github.com/users/e2/events{/privacy}","received_events_url":"https://api.github.com/users/e2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-06T15:39:15Z","updated_at":"2015-06-20T18:01:10Z","closed_at":null,"body":"(NOTE: On Bundler 1.10.3, RubyGems 2.4.7, RVM, 'foobar' is nonexisting example)\r\n\r\n\r\nWhile running something like this:\r\n\r\n```\r\nRUBYOPT=-rbundler/setup gem install -V --backtrace pkg/foobar-0.0.3.gem\r\n```\r\n\r\n\r\nI started getting this:\r\n\r\n```\r\nHEAD https://api.rubygems.org/api/v1/dependencies\r\n200 OK\r\nGET https://api.rubygems.org/api/v1/dependencies?gems=foobar\r\n200 OK\r\nGET https://api.rubygems.org/api/v1/dependencies?gems=guard-compat,puppet\r\n200 OK\r\nGET https://api.rubygems.org/api/v1/dependencies?gems=facter,hiera,json_pure\r\n200 OK\r\nERROR:  While executing gem ... (TypeError)\r\n    no implicit conversion of nil into String\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/package/file_source.rb:21:in `exist?'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/package/file_source.rb:21:in `present?'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:136:in `new'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:130:in `initialize'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:162:in `new'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:162:in `block in install'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:150:in `each'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:150:in `install'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:249:in `install_gem'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:299:in `block in install_gems'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:295:in `each'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:295:in `install_gems'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:202:in `execute'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/command.rb:307:in `invoke_with_build_args'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/command_manager.rb:168:in `process_args'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/command_manager.rb:138:in `run'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:54:in `run'\r\n\t/home/me/.rvm/rubies/ruby-2.2.1/bin/gem:21:in `<main>'\r\n```\r\n\r\nIt's because RubyGems is trying to download an installed gem (`guard-compat`) that wasn't detected as installed.\r\n\r\n`guard-compat` is installed, but wasn't detected as installed (`#installed?`) ...\r\n\r\n... basically because the following fails:\r\n\r\n\r\n```ruby\r\nrequire 'bundler'\r\nBundler::StubSpecification.new(\"foobar\", \"0.0.3\", \"ruby\", nil) == Gem::Specification.new('foobar', '0.0.3')\r\n#=> false\r\n```\r\n\r\nI'm not sure I can help reproduce the overall use case (thus the debugging).\r\n"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/113795964","html_url":"https://github.com/bundler/bundler/issues/3728#issuecomment-113795964","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3728","id":113795964,"user":{"login":"comutt","id":130096,"avatar_url":"https://avatars.githubusercontent.com/u/130096?v=3","gravatar_id":"","url":"https://api.github.com/users/comutt","html_url":"https://github.com/comutt","followers_url":"https://api.github.com/users/comutt/followers","following_url":"https://api.github.com/users/comutt/following{/other_user}","gists_url":"https://api.github.com/users/comutt/gists{/gist_id}","starred_url":"https://api.github.com/users/comutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comutt/subscriptions","organizations_url":"https://api.github.com/users/comutt/orgs","repos_url":"https://api.github.com/users/comutt/repos","events_url":"https://api.github.com/users/comutt/events{/privacy}","received_events_url":"https://api.github.com/users/comutt/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T18:01:10Z","updated_at":"2015-06-20T18:01:10Z","body":"Oops sorry, I've just identified that I've been forgotten that I need add unicorn to Gemfile to run unicorn by `bundle exec`.\r\nMy previous comment is just a garbage, sorry..."}}