burtlo/parade — pull request #1 by trptcolin (2012-12-21 03:49:22+00:00)
Title: Avoid segfault on missing image with RMagick

First off, this is looking good - I'd been hoping someone would resume development on Showoff. The GH markdown is cool stuff. I ran into this segfault with the latest rmagick gem installed on OSX 10.7.5, ruby 1.9.3 (2012-04-20) [x86_64-darwin11.4.2] (a bit of trace info below). Seems to just need a check to make sure the file exists before calling Magick.ping.

```
/Users/colin/.rvm/gems/ruby-1.9.3-p194@parade/gems/parade-0.8.1/lib/parade/renderers/update_image_paths.rb:52: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.2]

-- Control frame information -----------------------------------------------
c:0073 p:---- s:0345 b:0345 l:000344 d:000344 CFUNC :ping
c:0072 p:0040 s:0341 b:0341 l:000340 d:000340 METHOD /Users/colin/.rvm/gems/ruby-1.9.3-p194@parade/gems/parade-0.8.1/lib/parade/renderers/update_image_paths.rb:52
c:0071 p:0096 s:0336 b:0336 l:000320 d:000335 BLOCK /Users/colin/.rvm/gems/ruby-1.9.3-p194@parade/gems/parade-0.8.1/lib/parade/renderers/update_image_paths.rb:38
c:0070 p:---- s:0327 b:0327 l:000326 d:000326 FINISH
c:0069 p:---- s:0325 b:0325 l:000324 d:000324 CFUNC :gsub
c:0068 p:0045 s:0321 b:0321 l:000320 d:000320 METHOD /Users/colin/.rvm/gems/ruby-1.9.3-p194@parade/gems/parade-0.8.1/lib/parade/renderers/update_image_paths.rb:31
c:0067 p:0014 s:0315 b:0315 l:000292 d:000314 BLOCK /Users/colin/.rvm/gems/ruby-1.9.3-p194@parade/gems/parade-0.8.1/lib/parade/section.rb:185
c:0066 p:---- s:0311 b:0311 l:000310 d:000310 FINISH
c:0065 p:---- s:0309 b:0309 l:000304 d:000308 IFUNC

```

Aside from that, I've run into a few other small annoyances so far, and would be happy to log any issues I come across if there was a way to do that without a PR. Among them: `bundle install` didn't work for me, hence the lack of a test associated with this patch (well, plus the trickiness around class loading and the `Magick` constant's availability).