schacon/showoff — Issue #147: Ruby 1.9.2 Error: ArgumentError - invalid byte sequence in US-ASCII:
Author: etagwerker
Created: 2011-10-31 14:55:43+00:00
State: open

I tried to run showoff on Heroku on bamboo-mri-1.9.2 and I found this issue:
https://github.com/schacon/showoff/issues/93

Upon further review, I found this error:

ArgumentError - invalid byte sequence in US-ASCII:
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:182:in `gsub'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:182:in `update_p_classes'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:175:in `block in process_markdown'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:146:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:146:in `process_markdown'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:283:in `block (2 levels) in get_slides_html'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:281:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:281:in `block in get_slides_html'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:272:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:272:in `get_slides_html'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:374:in `slides'
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/showoff-0.7.0/lib/showoff.rb:487:in `block in '
/usr/local/rvm/gems/ruby-1.9.2-p180@showoff/gems/sinatra-1.3.1/lib/sinatra/base.rb:1212:in `call'

I switched to stack bamboo-ree-1.8.7 and everything is alright.

Just wanted to post this to inform that Showoff is not Ruby 1.9.2 yet. The workaround is to use 1.8.7.