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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6e930414f1210fd0acb997f2f5c6b0a6de64104
4
- data.tar.gz: 4a5d12faeccfbd0c6a9dc40baf85f9771fd26314
3
+ metadata.gz: e83d9693f71456783cd9aacb5ea2bd089afe3ad5
4
+ data.tar.gz: 0bf0c47152212f576054e7b8133295339cd993a3
5
5
  SHA512:
6
- metadata.gz: 5d406c74e495242ea55581293a9659342aca4c646780cad8b78f9314245e6b23113398df99777eabb3f92b8918df2334c4b0750848851c5108cae60936fc63b3
7
- data.tar.gz: 1e7907f9f2174897048c693238cbb10218a65de9e457c03b660d2a74946ca87a56eeb02eea6a6ca89d86f1044cde8782b6287659368a8b2e81806be5bd1f257a
6
+ metadata.gz: e6a934bc9761c43d0771902d7b0cb6537b459bebeb2c7e0838c6f76ce53f5b3064efd0b3b1131df2c0108bc0920e0bf13476a75ef831ecebda701f0ac216cf98
7
+ data.tar.gz: 00a7ae035924cc2e3f8b12b15b591b8046bca5d989a747621cdaa20dc429451e631b72d74f2f3d8f3ad0ed973ecc88b318681444b24ce841e1a1f202c9f9ea16
data/README.md CHANGED
@@ -40,7 +40,7 @@ For now, the configuration is really poor. You can just change the remote provid
40
40
  ``` yaml
41
41
  plantuml:
42
42
  url: 'http://www.plantuml.com/plantuml/png/{code}'
43
- assets: 'assets/images/plantuml/'
43
+ assets: '_images/plantuml/'
44
44
  ```
45
45
 
46
46
  ### Notes
@@ -51,6 +51,8 @@ module Jekyll
51
51
  end
52
52
 
53
53
  end
54
+
54
55
  end
55
56
 
56
- Liquid::Template.register_tag('uml', Jekyll::PlantUmlBlock)
57
+ Liquid::Template.register_tag('uml', Jekyll::PlantUmlBlock);
58
+
@@ -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 => 'assets/images/plantuml/',
37
+ :assets => '_images/plantuml/',
38
38
  :type => 'png',
39
39
  :encode => 'encode64',
40
40
  :url => 'http://www.plantuml.com/plantuml/{type}/{code}'
@@ -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
- pconf = PlantUmlConfig::DEFAULT.merge(conf['plantuml'] || {});
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 = "assets/images/plantuml/1fc2071adfcf94c83cb527ea98c29cae1656a085ff72acb12db7518fe93f1869.png";
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.3
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-02-20 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll