ddollar/heroku-accounts — Issue #22: undefine method for nil class error
Author: bradphelan
Created: 2012-03-06 07:31:58+00:00
State: open

I just upgrade heroku gem to the latest and now my heroku command line is broken with

➜ openkitchen git:(master) ✗ heroku accounts
/Users/bradphelan/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:16:in `extract_account': undefined method `[]' for nil:NilClass (NoMethodError)
from /Users/bradphelan/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:35:in `fetch_from_account'
from /Users/bradphelan/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:5:in `user'
from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/lib/heroku/plugin.rb:51:in `load!'
from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/lib/heroku/command.rb:17:in `load'
from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/lib/heroku/cli.rb:8:in `start'
from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/bin/heroku:21:in `'
from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/bin/heroku:19:in `load'
from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/bin/heroku:19:in `

'