myoutline 0.1.0 → 0.1.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: a7394a16eb83f29960b2ec4c950249cd179be991
4
- data.tar.gz: e184d6afa6f2175956d3290f6923c01276b58691
3
+ metadata.gz: 8258400ef4430aa04a5ec1fca4cc3580f4fba368
4
+ data.tar.gz: cd2343be059248a0295224b94e401c6135b7899b
5
5
  SHA512:
6
- metadata.gz: 9458579e68f654698729272ba8e453f176374a25ecea51461a029ed072af8e3ea5b8a853b9475b5c77f33e07245bf04523b030da1d220f2147e43d975bdf9f0d
7
- data.tar.gz: 5bc3e5646a49e7522cd05e8c28a9b4ac6bc9c32282d5bc56c6e4524757c42bb0773320677c7c852e10f880e2adfbe67e5a296a865dfbbfa7d75b1a8b5999ed02
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
- �"� S���IϿ�`��H@O;�Nd������c\�v�?Bzf���M��{A�rRy`��k�ӽ8ay�g�ɥGX��R�!�p�`�ktBnEҴhX�$�\��j�\�)A|�c
1
+ y^�S o=~n1���5&���}D=?|������;6�ΥC�6Q����(8�^�3�W��0��:�%TD>=;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: debug).to_doc(encapsulate: true)
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.0
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.3
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.3
54
+ version: 0.1.4
55
55
  description:
56
56
  email: james@jamesrobertson.eu
57
57
  executables: []
metadata.gz.sig CHANGED
Binary file