jekyll-remote-plantuml 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jekyll-remote-plantuml.rb +3 -1
- data/lib/plantuml-config.rb +1 -1
- data/lib/plantuml-loader.rb +2 -1
- data/test/test_plantuml-loader.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e83d9693f71456783cd9aacb5ea2bd089afe3ad5
|
4
|
+
data.tar.gz: 0bf0c47152212f576054e7b8133295339cd993a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6a934bc9761c43d0771902d7b0cb6537b459bebeb2c7e0838c6f76ce53f5b3064efd0b3b1131df2c0108bc0920e0bf13476a75ef831ecebda701f0ac216cf98
|
7
|
+
data.tar.gz: 00a7ae035924cc2e3f8b12b15b591b8046bca5d989a747621cdaa20dc429451e631b72d74f2f3d8f3ad0ed973ecc88b318681444b24ce841e1a1f202c9f9ea16
|
data/README.md
CHANGED
data/lib/plantuml-config.rb
CHANGED
@@ -34,7 +34,7 @@ class PlantUmlConfig
|
|
34
34
|
# If a definition cannot be found in the jekyll configuration, this configuration
|
35
35
|
# will be use
|
36
36
|
DEFAULT = {
|
37
|
-
:assets => '
|
37
|
+
:assets => '_images/plantuml/',
|
38
38
|
:type => 'png',
|
39
39
|
:encode => 'encode64',
|
40
40
|
:url => 'http://www.plantuml.com/plantuml/{type}/{code}'
|
data/lib/plantuml-loader.rb
CHANGED
@@ -50,7 +50,8 @@ class RemoteLoader
|
|
50
50
|
# and the directory where all file will be saved
|
51
51
|
def initialize()
|
52
52
|
conf = Jekyll.configuration({});
|
53
|
-
|
53
|
+
initConf = conf['plantuml'] || {};
|
54
|
+
pconf = PlantUmlConfig::DEFAULT.merge(initConf);
|
54
55
|
dirname = conf['source'] + File::SEPARATOR + pconf[:assets].gsub(/\//, File::SEPARATOR).sub(/\/*$/, '').sub(/^\/*/, '');
|
55
56
|
Jekyll.logger.info "Directory for storage remote data : %s" % [dirname],
|
56
57
|
unless File.directory?(dirname) then
|
@@ -9,7 +9,7 @@ class RemoteLoaderTest < Minitest::Test
|
|
9
9
|
|
10
10
|
ROOT_FOLDER = GENERATION_FOLDER.sub(/^([^\/]+).*$/, '\1');
|
11
11
|
|
12
|
-
GENERATED = "
|
12
|
+
GENERATED = "_images/plantuml/1fc2071adfcf94c83cb527ea98c29cae1656a085ff72acb12db7518fe93f1869.png";
|
13
13
|
|
14
14
|
def setup
|
15
15
|
Jekyll.logger.log_level = :debug
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-remote-plantuml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patouche
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|