jekyll-plantuml 1.3 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ce6b8dccc7db97c4702df3cca0c68e38019d67
4
- data.tar.gz: 82516e1b2c6a5c551b1b0e4da94f5fbd8ed4ec8f
3
+ metadata.gz: 1726e27c605cc355da0809bfe2b86bbcbac2ac49
4
+ data.tar.gz: 59192b4fc30262369771050d5f61261ef7c5eb8d
5
5
  SHA512:
6
- metadata.gz: 1f2674026f2486a7143d95485aa1d8adb54a2df87534fd132cf6e2da848555ca4a5f9c0490bb23d78e1a4ff22eb3f020b05e0837108ff9008900365e619e60d7
7
- data.tar.gz: 34b88203f7e8f3a6201ba52571e6905ed5f5d416090451e1f28dfd6c20bcb1996d7001fb856f5a8c7a3b483cee85f81ba588df0e583565d334b49ef22e06254b
6
+ metadata.gz: 1dabbd40b8486921e8487c39065542c8253eea538592bf9600a975a06906bdc3007bf7e2a06bdeb2b13252ad960a77e54c4fe7817fe0a3cb590f3d94933613d2
7
+ data.tar.gz: f70c708a02a27516119edb42c570f4ae1a0a6d72bd202268511754f83556442e63d0f436eb8af31032dc70d28e9c15cd2c539a32167e9628c45da0cbb61b6131
@@ -33,9 +33,9 @@ module Jekyll
33
33
  def render(context)
34
34
  site = context.registers[:site]
35
35
  name = Digest::MD5.hexdigest(super)
36
- file = File.join(site.dest, "uml/#{name}.svg")
37
- if !File.exists?(file)
36
+ if !File.exists?(File.join(site.dest, "uml/#{name}.svg"))
38
37
  uml = File.join(site.source, "uml/#{name}.uml")
38
+ svg = File.join(site.source, "uml/#{name}.svg")
39
39
  FileUtils.mkdir_p(File.dirname(uml))
40
40
  File.open(uml, 'w') { |f|
41
41
  f.write("@startuml\n")
@@ -46,7 +46,7 @@ module Jekyll
46
46
  site.static_files << Jekyll::StaticFile.new(
47
47
  site, site.source, 'uml', "#{name}.svg"
48
48
  )
49
- puts "File #{file} created (#{File.size(file)} bytes)"
49
+ puts "File #{svg} created (#{File.size(svg)} bytes)"
50
50
  end
51
51
  "<p><img src='/uml/#{name}.svg' #{@html}
52
52
  alt='PlantUML SVG diagram' class='plantuml'/></p>"
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module PlantUML
24
- VERSION = '1.3'
24
+ VERSION = '1.3.1'
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-plantuml
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko