Closed wuputah closed 12 years ago
! Unable to load plugin heroku-repo. ! Search for help at: https://help.heroku.com ! Or report a bug at: https://github.com/heroku/heroku/issues/new Error: undefined method `write' for "json gem is required for the Repo plugin":String (NoMethodError) Backtrace: /Users/jd/.heroku/plugins/heroku-repo/lib/heroku/command/repo.rb:4:in `display' /Users/jd/.heroku/plugins/heroku-repo/lib/heroku/command/repo.rb:4 /Users/jd/.heroku/plugins/heroku-repo/init.rb:1:in `require' /Users/jd/.heroku/plugins/heroku-repo/init.rb:1 /usr/local/heroku/lib/heroku/plugin.rb:64:in `load' /usr/local/heroku/lib/heroku/plugin.rb:64:in `load_plugin' /usr/local/heroku/lib/heroku/plugin.rb:42:in `load!' /usr/local/heroku/lib/heroku/plugin.rb:39:in `each' /usr/local/heroku/lib/heroku/plugin.rb:39:in `load!' /usr/local/heroku/lib/heroku/command.rb:17:in `load' /usr/local/heroku/lib/heroku/cli.rb:18:in `start' /usr/bin/heroku:25 Version: heroku-toolbelt/2.28.7 (universal-darwin11.0) ruby/1.8.7
Oh, you're trying to emit an error... by calling .write on a string?
.write
Use okjson instead. It's included in the heroku toolbelt.
/usr/local/heroku % find . | grep -i json ./lib/vendor/heroku/okjson.rb