md2key 0.9.5 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/md2key/diagram.rb +5 -4
- data/lib/md2key/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad6034c87205238cf1b4d7ebfca1d9f29656107335dbe2aedd23aa46a5bf3425
|
4
|
+
data.tar.gz: b12405ef5a7e773d4f53d760d44cdc96717f2d89de04675ee8f13ce9d70549b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d16d940f67df5e99d0aac0094a5257060d75c0f8b90ddd3eeb8fc4bb8734db649732473cc57c3d2f2ab1ae30d3d6e3b976dec7c1062e79837418c3617cd2da3
|
7
|
+
data.tar.gz: 0a48ae9002f1ef4520d8b1156fc2c16d97ab12a76e236909e7701a0bb676e07839ae0d4b735b65b7226bada981eba75d823f17bc780665046bc6da380a1b0967
|
data/CHANGELOG.md
CHANGED
data/lib/md2key/diagram.rb
CHANGED
@@ -14,8 +14,9 @@ module Md2key
|
|
14
14
|
|
15
15
|
output_dir = File.dirname(file.path)
|
16
16
|
image_path = ""
|
17
|
-
IO.popen("
|
18
|
-
|
17
|
+
IO.popen("mmdc -i #{file.path} --output #{file.path}.png", 'r') do |info|
|
18
|
+
info.read
|
19
|
+
image_path = "#{file.path}.png"
|
19
20
|
file.unlink
|
20
21
|
end
|
21
22
|
|
@@ -25,9 +26,9 @@ module Md2key
|
|
25
26
|
private
|
26
27
|
|
27
28
|
def ensure_mermaid_availability
|
28
|
-
return if system('which -s
|
29
|
+
return if system('which -s mmdc')
|
29
30
|
|
30
|
-
abort "`
|
31
|
+
abort "`mmdc` is not available. Try `npm install -g mermaid.cli`."
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
data/lib/md2key/version.rb
CHANGED