jekyll-semtree 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: ec2c16946b942b0e6466e9fff5d94e1109fdd7eb6c7b2330ee760cd8e9cb1c5f
4
- data.tar.gz: 2831eeca5e0722a33ac0d17eff83952245da02a9153173f9d6a8080f8ef27b3a
3
+ metadata.gz: 45680543ef4121289d217b25451ff65a73c14399018f98275b9d8c08dcf91b22
4
+ data.tar.gz: 1d99a3e6062a15c75414770ac22e4ca88ff9b9c566b57ca2e2871f1358200495
5
5
  SHA512:
6
- metadata.gz: 6e34ef808a05bab7f70619b733bc96e5885b25ac1c223ec9290835cdca48e46b704586b6c18d57db77c10032babfbce459b60c45c8675b6ed0959fe3e72d6ce3
7
- data.tar.gz: ef22fa79b8e9e3bb6d0af9e63f48abdcd4c1e6b20628d452cb75d765e56dba90f3e0e999accaa9359df69e5feff942558f123537832666e54386663e8f0dbf7b
6
+ metadata.gz: e34f0d3b31cc635c6163bca4a7fdfbde0e23c6e98a458cd8310bc4a8d78a07877e26bf6206806d8d63a2a2530fb945350b746e4d0a88e9101f7e4c52dd8c3588
7
+ data.tar.gz: 646df65358f1ea451c8e597bc74a956e943e32d3bbf5601d229ecabe58d7e4b4d423f47f61477f8729bd3d6baede280fedee93c9144dca5fd54f0b4561edf372
@@ -3,7 +3,7 @@
3
3
  module Jekyll
4
4
  module SemTree
5
5
 
6
- VERSION = "0.0.2"
6
+ VERSION = "0.0.3"
7
7
 
8
8
  end
9
9
  end
@@ -70,6 +70,10 @@ module Jekyll
70
70
  if tree_hash.empty?
71
71
  Jekyll.logger.error("Jekyll-SemTree: No trunk (index docs) detected.")
72
72
  end
73
+ if root_doc.nil? || index_docs.empty? || tree_hash.empty?
74
+ Jekyll.logger.error("Jekyll-SemTree: Unable to build semantic tree.")
75
+ return
76
+ end
73
77
  # build tree
74
78
  @site.tree = Tree.new(tree_hash, root_doc, option_virtual_trunk)
75
79
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-semtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - manunamz