line-tree 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9eea653b96b08caee17505735b6c35b6b68e7917
4
- data.tar.gz: e5720fe0881c519f10c5a30790887bcdcb8d88af
3
+ metadata.gz: 69a9e3b50c682ca9e9621e6814e09d65c862c96d
4
+ data.tar.gz: d2b88b70095d2926cee08f7649d0c9c74ed9fa88
5
5
  SHA512:
6
- metadata.gz: 3864cf71c4bea5d7ca00efc69bde2f6b72de5766ef4aec818c3d9d066183e9eb029a66e1bf7da83df42b3613d4664dfbb42045e8c7da7e3c3465575775cef91e
7
- data.tar.gz: 528e32387580e163d02c57a3d0e75dff37c4cf65c034be0357c8e304dfdf8e091c4c8480fc71d13c0d5c7c4a651388567f101c68379df9121d9405140c0cff6d
6
+ metadata.gz: 213e0e75ba1c9cb9ee43596445ae3317d55e35acb8382efb22743704dde4d0db78305a6db04bb9b81e1293a1cc6bc3c46b5c5ce8b4aa8a671966d3cedd497278
7
+ data.tar.gz: '08d709198d5fb1fd539de8c27ea340ff51d6e817c454a9870fb5230e676276cf1194946d2c10af01f96d9b9a8b36ebfb088c17d50c20a8f0d24ae73c677dc63d'
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/line-tree.rb CHANGED
@@ -21,10 +21,13 @@ class LineTree
21
21
 
22
22
  @to_a = scan_shift(lines.strip, level)
23
23
  end
24
+
25
+ def to_doc()
26
+ Rexle.new(scan_a(*@to_a).first)
27
+ end
24
28
 
25
29
  def to_xml(options={})
26
- a = scan_a(*@to_a).first
27
- Rexle.new(a).xml(options)
30
+ to_doc.xml(options)
28
31
  end
29
32
 
30
33
  private
@@ -145,4 +148,4 @@ class LineTree
145
148
  end
146
149
 
147
150
 
148
- end
151
+ end
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- '�C�xՇN���,:�-��nLLI;��L��\����=i��
2
- �����$C
3
- ��wlK���
1
+ C�J���s9)}mO��_��,�$zjU�c3�X�Bf� ���ye���;F�͓%qq�S2Z�
2
+ ���L�ycך��a}"��1@EҎ�T��Ӓh����Y �TFz(V-iX3�6mX��Y���I��I��F���v���f� ��ݘ� �<ޤ�_q`��h���R���m����6�,�1�^xSO�[�7�&T��DƤQO�V���me؋��52�S���|������5b@�3h���$�Y{j���ky�А
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  m6UjuCKOiPqABbG2jvwjzF2RT9/yszKHPuB+qsEDC9HhonU7t7xizbYXXFCa7Ocj
32
32
  UE2/ecWxKMEncA==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-12-23 00:00:00.000000000 Z
34
+ date: 2018-01-23 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
@@ -42,7 +42,7 @@ dependencies:
42
42
  version: '1.4'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 1.4.10
45
+ version: 1.4.12
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  version: '1.4'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 1.4.10
55
+ version: 1.4.12
56
56
  description: Line-tree parses indented lines of text and returns an array representing
57
57
  a tree structure.
58
58
  email: james@r0bertson.co.uk
metadata.gz.sig CHANGED
Binary file