myoutline 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/lib/myoutline.rb +4 -5
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8258400ef4430aa04a5ec1fca4cc3580f4fba368
|
4
|
+
data.tar.gz: cd2343be059248a0295224b94e401c6135b7899b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46f86265c6d89cd9c40a6ab6018c65fea6955f74d67ae3541b8d394e7d7c01d9f1876e16f2d9d37260915544df392100e9373ac8dc4608e446eecf2817850766
|
7
|
+
data.tar.gz: bc7c29638ef35efbaab31724ab2ad1560c6900235930561a3f3cbb4c5ef613bdfae4a913ce8eff36789eafe122b491780a619380d86c6d102fd584c2ec535f43
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
y^�So=~n1���5&���}�D=?|������;6�ΥC�6Q����(�8�^�3�W��0��:�%T�D>=;i`�MT⪝q`zu�$�Re�2eXy�܂���k�
|
2
|
+
MU��n�DO6�앒?ף����~���_�� ���Ҡ���q2��5�)!�'Q��:́iD{Z�c
|
data/lib/myoutline.rb
CHANGED
@@ -5,14 +5,13 @@
|
|
5
5
|
require 'pxindex'
|
6
6
|
|
7
7
|
|
8
|
-
|
9
8
|
class MyOutline
|
10
9
|
|
11
|
-
def initialize(raw_s, debug: false)
|
10
|
+
def initialize(raw_s, debug: false, allsorted: true)
|
12
11
|
|
13
12
|
# find the entries which aren't on the main index
|
14
13
|
s = raw_s.sub(/<[^>]+>\n/,'')
|
15
|
-
doc = LineTree.new(s, debug:
|
14
|
+
doc = LineTree.new(s, debug: true).to_doc(encapsulate: true)
|
16
15
|
a = doc.root.xpath('entry/text()')
|
17
16
|
a2 = doc.root.xpath('entry//entry/text()')
|
18
17
|
a3 = a2 - a
|
@@ -24,7 +23,8 @@ class MyOutline
|
|
24
23
|
|
25
24
|
'
|
26
25
|
|
27
|
-
@pxi = PxIndex.new(s, debug: debug
|
26
|
+
@pxi = PxIndex.new(s, debug: debug, indexsorted: true,
|
27
|
+
allsorted: allsorted)
|
28
28
|
@px = @pxi.to_px
|
29
29
|
|
30
30
|
end
|
@@ -38,4 +38,3 @@ class MyOutline
|
|
38
38
|
end
|
39
39
|
|
40
40
|
end
|
41
|
-
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version: '0.1'
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 0.1.
|
44
|
+
version: 0.1.4
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
version: '0.1'
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.
|
54
|
+
version: 0.1.4
|
55
55
|
description:
|
56
56
|
email: james@jamesrobertson.eu
|
57
57
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|