ddollar/heroku-sql-console — pull request #9 by joergviola (2011-12-13 08:56:05+00:00)
Title: Update to latest heroku CLI version

Hi!
After an, in fact accidental;-), heroku update, I recognized sql-console was no longer working:

$ heroku sql
/Users/viola/.heroku/client/lib/heroku/command/base.rb:209: warning: already initialized constant BaseWithApp
/Users/viola/.heroku/plugins/heroku-sql-console/lib/heroku/command/sql.rb:9:in `index': undefined local variable or method `extract_app' for # (NameError)
from /Users/viola/.heroku/client/lib/heroku/command.rb:111:in `send'
from /Users/viola/.heroku/client/lib/heroku/command.rb:111:in `run'
from /usr/bin/heroku:27

Seems like extract_app is no longer available and the app var is automatically created.
Thus I have deleted the call to extract_app, and sql-console is working fine again (despite the first warning above, which appears for all commands now).

PS: Thanks a lot for this plugin - it saved my live more than once! - I even built my own plugin after learning from it.

PPS: Wow, this is my first pull request on github, so if I did anything wrong, please let me know.