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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9db70ccddaf7473a9da59c81a9a592635a027faa4ffbec31a7d30a976c9fa7c6
4
- data.tar.gz: a2c1034a4ef601d1f37ec1402d07de6258d1273a8524e4b6347418f0fb42cd2e
3
+ metadata.gz: 963e7aeee8afe72afe253d10a5ef3f9fb8538af3668838d18ac6539d388f64a1
4
+ data.tar.gz: 32916267003809333978cb261e459795b14d36e29e4d2f199ab21b9a02ba791a
5
5
  SHA512:
6
- metadata.gz: 05d9414c48c69d13eec80cbedc5d5a6049d711e53af054a7d26af9192e7845ec114667459ab090af3c0fab610f1c3f6b50629b15a51024fc5f15b01dc546d87d
7
- data.tar.gz: da0330a4f1fe0fd9b009fa2689dda4b2f6f9e95e76acd9ba6755055d252e8b1b62d0ed974cbb7ca5ddbf0dd408781d9915dff68f843c9b8cec472115d7287d1d
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
 
@@ -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*(.*)>>/) do |_m|
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)
@@ -1,3 +1,3 @@
1
1
  module Giblish
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
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.0
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: 2018-12-09 00:00:00.000000000 Z
11
+ date: 2019-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler