giblish 0.3.0 → 0.3.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/data/testdocs/wellformed/docidtest/docid_1.adoc +1 -0
- data/lib/giblish/buildindex.rb +4 -1
- data/lib/giblish/docid.rb +1 -1
- data/lib/giblish/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: 963e7aeee8afe72afe253d10a5ef3f9fb8538af3668838d18ac6539d388f64a1
|
|
4
|
+
data.tar.gz: 32916267003809333978cb261e459795b14d36e29e4d2f199ab21b9a02ba791a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0c13cd9f84c9bba7a241eb156b843145026b9e199c13255a518e487fc62c1968417c7482445457750c1c825b4b671ee80076459442f24d561a1eb670f46843c
|
|
7
|
+
data.tar.gz: '084d83eb182a093f5b1dff2bbfd0074b6d3d9f4657b7661c7395dd4fdf1e7755d88d3342f3d1a40fc529e798543390d9e7ffefcc702a51cbbe5ecb00c7e6106c'
|
|
@@ -15,6 +15,7 @@ Other valid docid references::
|
|
|
15
15
|
* <<:docid:WF-013>> No title and no hash
|
|
16
16
|
* <<:docid:WF-022,docid_2 adoc>> Another document within the tree.
|
|
17
17
|
* <<:docid:WF-022#Purpose, Purpose in WF-022>> Reference a section in another document
|
|
18
|
+
* <<:docid:WF-022>> Two references on the same line <<:docid:WF-013>>.
|
|
18
19
|
|
|
19
20
|
Invalid docid references::
|
|
20
21
|
|
data/lib/giblish/buildindex.rb
CHANGED
|
@@ -71,7 +71,7 @@ module Giblish
|
|
|
71
71
|
docid_info_str = if ! @manage_docid
|
|
72
72
|
""
|
|
73
73
|
else
|
|
74
|
-
"The 'largest' document id found when resolving :docid: tags is *#{largest}*."
|
|
74
|
+
"The 'largest' document id found when resolving :docid: tags in all documents is *#{largest}*."
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
docid_warn_str = if duplicates.length.zero?
|
|
@@ -123,6 +123,9 @@ module Giblish
|
|
|
123
123
|
root.add_path(d.rel_path.to_s, d)
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
+
# sort the tree
|
|
127
|
+
root.sort_children
|
|
128
|
+
|
|
126
129
|
# generate each tree entry string
|
|
127
130
|
root.traverse_top_down do |level, node|
|
|
128
131
|
tree_string << tree_entry_string(level, node)
|
data/lib/giblish/docid.rb
CHANGED
|
@@ -86,7 +86,7 @@ module Giblish
|
|
|
86
86
|
|
|
87
87
|
# Convert all docid refs to valid relative refs
|
|
88
88
|
reader.lines.each do |line|
|
|
89
|
-
line.gsub!(/<<\s*:docid:\s*(
|
|
89
|
+
line.gsub!(/<<\s*:docid:\s*(.*?)>>/) do |_m|
|
|
90
90
|
# parse the ref
|
|
91
91
|
target_id, section, display_str =
|
|
92
92
|
parse_doc_id_ref Regexp.last_match(1)
|
data/lib/giblish/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: giblish
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anders Rillbert
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|