yard-sd 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ module SequenceDiagramMixin
8
8
  end
9
9
 
10
10
  def html_syntax_highlight_sd(source)
11
+ orig_source = source
11
12
  lines = source.split("\n")
12
13
  metadata = lines.take_while {|l| l.start_with?("%")}
13
14
  source = lines[metadata.size..-1].join("\n")
@@ -28,7 +29,7 @@ module SequenceDiagramMixin
28
29
  diagram = SequenceDiagram::Diagram.new.parse(source)
29
30
  img = diagram.to_png(metadata_h)
30
31
 
31
- hash = Digest::SHA1.hexdigest(source)
32
+ hash = Digest::SHA1.hexdigest(orig_source)
32
33
  name = "images/diagrams/#{hash}.png"
33
34
  options[:serializer].serialize(name, img)
34
35
 
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-02 00:00:00.000000000 Z
12
+ date: 2013-03-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: