jekyll-plantuml-base64 0.1.4.36 → 0.1.4.36.1
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/jekyll-remote-plantuml.rb +2 -1
- data/lib/plantuml-loader.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: a5832dd099c0a084e6857901452d659a5f50baed187eb0e65afaca2baaca1ac7
|
4
|
+
data.tar.gz: c11ac6bf19d708ce970e2e5bc230e7cb857019b1d07f6f38de7aff28ce31396e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a4e9e4f6ed6e4084491e487560ab067e3f5d8d638a3c9859e78a66214be839f679a810551e7d4aa9f294c51f1d999bf73c76b6fb499d94b67a65cb11ec1d2aa
|
7
|
+
data.tar.gz: ee3264682c59cea75e1a60377beaf52a2d3e666e6a9f5748a2e4e6e629628e8688ce661c42a866df696b4dead95d9dd1905a34877f5559f5dffed54d965a5f3b
|
data/README.md
CHANGED
@@ -17,10 +17,10 @@ Option 1:
|
|
17
17
|
To install this plugin on Jekyll, you just have to follow the guideline of Jekyll [documentation](http://jekyllrb.com/docs/plugins/)
|
18
18
|
|
19
19
|
Option 2:
|
20
|
-
Use rubygems, by adding `gem 'jekyll-plantuml-base64', '~> 0.1.4.
|
20
|
+
Use rubygems, by adding `gem 'jekyll-plantuml-base64', '~> 0.1.4.36'` on your gemfile then `bundle install`
|
21
21
|
|
22
22
|
Option 3:
|
23
|
-
Pull the gems directly from git by adding `gem 'jekyll-remote-plantuml', '0.1.4.
|
23
|
+
Pull the gems directly from git by adding `gem 'jekyll-remote-plantuml', '0.1.4.36', git: 'https://github.com/RobbiNespu/jekyll-remote-plantuml'` on your gemfile and then `bundle install`
|
24
24
|
## Usage
|
25
25
|
|
26
26
|
To use the jekyll-plantuml-base64 plugin, you just have to wrap you text between `{% plantuml %}` and `{% endplantuml %}` tags.
|
@@ -43,10 +43,11 @@ module Jekyll
|
|
43
43
|
# Render
|
44
44
|
def render(context)
|
45
45
|
output = super(context);
|
46
|
+
#Jekyll.logger.info "ZZZZZ we got > #{output}"
|
46
47
|
code, pconf, baseurl = PlantUmlEncode64.new(output).encode(), PlantUmlConfig::DEFAULT, Jekyll.configuration({})['baseurl'];
|
47
48
|
host,port = Jekyll.configuration({})['host'], Jekyll.configuration({})['port']
|
48
49
|
p = {:url => pconf[:url], :type => pconf[:type], :code => code }
|
49
|
-
Jekyll.logger.
|
50
|
+
#Jekyll.logger.info "Generate html with input params :", p;
|
50
51
|
#d = RemoteLoader.instance.savedRemoteBinary(p);
|
51
52
|
d = RemoteLoader.instance.savedRemoteBinaryBase64(p);
|
52
53
|
#puts d
|
data/lib/plantuml-loader.rb
CHANGED
@@ -122,7 +122,7 @@ class RemoteLoader
|
|
122
122
|
base64 = `#{echo} | base64`
|
123
123
|
#Jekyll.logger.info "ZZZZZ we got > #{base64}"
|
124
124
|
#return base64
|
125
|
-
return "<img src=\"data:image/png;base64, #{base64}\">"
|
125
|
+
return "<img src=\"data:image/png;base64, #{base64}#center\">"
|
126
126
|
end
|
127
127
|
|
128
128
|
# Public : get and saved the remote uri from a parameters hash
|