yard-sd 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,11 +28,11 @@ module SequenceDiagramMixin
28
28
  name = "images/diagrams/diagram_#{diagram.uid}.png"
29
29
  options[:serializer].serialize(name, img)
30
30
 
31
- return "<img src='%s' alt='Sequence diagram' />" % url_for(name)
31
+ return "<img src='%s' alt='Sequence diagram' />" % url_for(options[:serializer].serialized_path(name))
32
32
  rescue SequenceDiagram::ParseError => e
33
33
  return "Error: Parsing error: #{h(e.inspect)}"
34
34
  rescue => e
35
- return "Error: #{h(e.backtrace.inspect)}"
35
+ return "Error: #{h([e.message, e.backtrace].inspect)}"
36
36
  end
37
37
  end
38
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-sd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: