mikaa123/umlify — pull request #14 by tylergreen (2012-07-03 20:52:36+00:00)
Title: Fixed crash by changing diagram to @diagram

Hello, I was getting the following error:

....../umlify-1.2.9/lib/umlify/runner.rb:68:in `download_image': undefined method `get_dsl' for
nil:NilClass (NoMethodError)

I looked through the code briefly, changed the 'diagram' variable that the get_dsl was complaining about to @diagram. I rebuilt the gem and it worked, all the tests still pass.

(Full Trace)

~/cs/ruby/umlify $ umlify lib/*/*
umlify lib/*/*
processing lib/umlify/diagram.rb...
processing lib/umlify/extension.rb...
processing lib/umlify/parser_sexp.rb...
processing lib/umlify/runner.rb...
processing lib/umlify/uml_class.rb...
processing lib/umlify/version.rb...
/Users/jorge/.rvm/gems/ruby-1.9.3-p125/gems/umlify-1.2.9/lib/umlify/runner.rb:68:in `download_image': undefined method `get_dsl' for
nil:NilClass (NoMethodError)
from /Users/jorge/.rvm/gems/ruby-1.9.3-p125/gems/umlify-1.2.9/lib/umlify/runner.rb:38:in `run'
from /Users/jorge/.rvm/gems/ruby-1.9.3-p125/gems/umlify-1.2.9/bin/umlify:6:in `'
from /Users/jorge/.rvm/gems/ruby-1.9.3-p125/bin/umlify:19:in `load'
from /Users/jorge/.rvm/gems/ruby-1.9.3-p125/bin/umlify:19:in `

'