Closed Emily closed 11 years ago
Are you running it with bundle exec
? You may have a different version of the json
gem that does not have this method.
Yes to bundle exec
. The bundled version of json
is 1.7.5
.
What version of ruby are you using?
1.9.3-p194
Ok, I'm running out of ideas.
Looks like #pretty_generate
is part of the Ruby 1.9.3 standard library, what about removing JSON from the bundle and using the system version?
Seems to work just fine if I add a require 'json' in html_presenter which suggests to me that, at least in my environment, whatever mechanism is loading json for you isn't for me. Are you running a different ruby version than 1.9.3?
I'm on 1.9.3-p0. But it sounds just like a missing require problem. Can you go ahead and make a pul request with that fix?
Please update rubygems with this fix. Currente version 0.2.6 still don't have the require 'json' that fix this issue.
@mariozaizar thanks for the reminder! Just pushed 0.2.7
When running
this happens: