myoutline 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: 673d85955a44ce5b87bc00ace320cffe34309ac2
4
- data.tar.gz: 89674e1803c93ee86d38b3ef44c050d1f84962b7
3
+ metadata.gz: d4f6912ff035c2c2b5da229d95e583627c85ffed
4
+ data.tar.gz: f27adb970d02d91a352642d8b925d5966931fda6
5
5
  SHA512:
6
- metadata.gz: f9e8dd4d50e69575cee9717793b7e43172f4e27487902edd43a3462e102b5b317cb88f5ea8bc4288f3f877cd2be94e31aed6e4aba5d4e86a5f60d679442f6570
7
- data.tar.gz: 285c8343fb4a2ddae26a3fbf100c12f5121c43da0f3acfd223a15ab233f8658c0e8dc14204114b6aa79157de0ba48934ed5cad7dd436f4bb440d57e383ca4dd4
6
+ metadata.gz: e16a3e44cfe97a8b8099422fb96c49f1f0f07f0e13df766b96e9f33551600f5e4b6664f9f087a4757550657ac3daca623e09452e739a032328841515d8513b45
7
+ data.tar.gz: 9ebbe2e021337efaffcb229cb004e12b532ee60b72b54e7a79950b8fa7d72a9b7981e9d0cb473033d66eb83d0f968ca40538456da77c21ad2fe9bfeb304db0f4
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/myoutline.rb CHANGED
@@ -9,7 +9,6 @@ require 'polyrex-links'
9
9
  require 'md_edit'
10
10
 
11
11
 
12
-
13
12
  class MyOutline
14
13
 
15
14
  attr_reader :pxi, :links
@@ -48,6 +47,10 @@ class MyOutline
48
47
  @ftx.ls(path).map(&:to_s)
49
48
  end
50
49
 
50
+ def rebuild(s)
51
+ build_index(s)
52
+ end
53
+
51
54
  def update(section)
52
55
  @md.update section
53
56
  end
@@ -132,7 +135,7 @@ class MyOutline
132
135
  puts 'a3:' + a3.inspect if @debug
133
136
 
134
137
  # add the new entries to the main index
135
- s << a3.join("\n")
138
+ s << "\n" + a3.join("\n")
136
139
 
137
140
  s.prepend '<?ph schema="entries/section[heading]/entry[title, url]"?>
138
141
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myoutline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  DFhc5TDtqEkJYiaiznQFl34HUKeCAdeAHkmD8jP3fUC8O7zcLXq69EAXGMXw4efB
31
31
  3Co=
32
32
  -----END CERTIFICATE-----
33
- date: 2018-04-04 00:00:00.000000000 Z
33
+ date: 2018-04-10 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: pxindex
metadata.gz.sig CHANGED
Binary file