booklab-sml 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booklab/sml/rules/plantuml.rb +7 -2
- data/lib/booklab/sml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a29e8fb23fa84105ae92ce79ebb41e9b5f6093a96b9753df6e4e86a0240d7018
|
4
|
+
data.tar.gz: 2e374bba32a962c3fea73af545930bd4537fe4219b4d145d500c789229c248cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a63bdb80125013ec3cfb85987f63d200c239f09aef363ab1a6e2091094677753d65982fe2fb9aef35abdff52907b8d046660a15e28d03145598f6e5b8447dc67
|
7
|
+
data.tar.gz: 337b5b5def18137040cda6191e50ad2e6150ea9326c30b10d1fb78ebb34815086fc2c1fed564bb1b89d66dcc3269bdbe561505192c51179d3e264539971d26de
|
@@ -13,8 +13,13 @@ module BookLab::SML::Rules
|
|
13
13
|
code = (attrs[:code] || "").strip
|
14
14
|
return "" if code.blank?
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
src = attrs[:src]
|
17
|
+
if src
|
18
|
+
%(<img src="#{src}" class="plantuml-image" />)
|
19
|
+
else
|
20
|
+
svg_code = URI::encode(code)
|
21
|
+
%(<img src="#{renderer.config.plantuml_service_host}/svg/#{svg_code}" class="plantuml-image" />)
|
22
|
+
end
|
18
23
|
end
|
19
24
|
end
|
20
25
|
end
|
data/lib/booklab/sml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: booklab-sml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|