line-tree 0.7.1 → 0.7.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
  SHA256:
3
- metadata.gz: 601c833fe53b9ba54b3d7540c858a047362ae6335d26365298d968de8f307722
4
- data.tar.gz: 6e31cf3ab298e8d84904506e64ab537a4a90dc180f46edc34621b7f3119348c1
3
+ metadata.gz: f61074cf688e2b8575f49e7b90ce4b01eaa999814427cb31814b9ce7349d790c
4
+ data.tar.gz: 243c42bb0f38ea3997d72060fa96da11b7bf00067d02cff35db1b44d1923de5c
5
5
  SHA512:
6
- metadata.gz: c350215508fb0b3aa17d064221bc5b87d4ff5e185dc282b3991e5c0fcbca6418b367ae4ae2ba76081f2676f4227349da1202781c899098e15efbb4c463cfc8d9
7
- data.tar.gz: 2e542ba98ff13a7d5a0eac052ffa7193b3f03d5a42e2461b4c4009a8ec7f33b691894c32cd42f634166cf8879817df7e7edb77aafde76b2c58234fdf39e32c01
6
+ metadata.gz: b4e91fb43f1b8b94cf6c4f352f1171cbe31bd75533a02abeefcfd6f75c8fd0ab5acb3bde9c12932ee56834abcf25443417104535b26096db97d318e85c639f11
7
+ data.tar.gz: '0688401ae1e49f4ccb8dfc04337b31a0cacfad3ba2f00231959ad95b85ee057e78b1e9dfc653554a78d537c71b8abdf38ff83e234de91c92ae6e767adf911628'
@@ -1,4 +1,3 @@
1
- (��ݾ҆C9 ��ː��WB�ד�I*|�A���_�:�2����S3�-� q[��dg#�˒��̯��{=ʖQyJ?�f�����
2
- M��|���Oy��]��*���s�ʂ� n2w6�;��o(F�]V��ƄD��.�D�ν��'��
3
- ���mz,$����D�嵐��Wp��z�$T(��: �1�=�0G�a�&#�2�mnג�
4
- B2͈��߳z5�I�&��G�c��[���o,`us�tf�"=
1
+ �"Z�&M�Vۚ�~n�[O}��uy��g�I��S>7Ju,�杖X���[
2
+ J�+4���H�<ө��[h�"��Ç8d���8D�A�7�6�w]9aHC�1ռ̊�������L/�D�W(Ua��N����m�����D��L�
3
+ �:Lu7\��Ֆ7y!����e1�" L���fjIը�P~��c������^�PS��i䇱��
data.tar.gz.sig CHANGED
Binary file
@@ -52,8 +52,8 @@ class LineTree
52
52
  @numbered = numbered
53
53
  s = "<ul>%s</ul>" % make_html_list(@to_a)
54
54
  puts ('s: ' + s.inspect).debug if @debug
55
- puts s
56
- Rexle.new(s).xml pretty: true, declaration: false
55
+ puts s if @debug
56
+ Rexle.new(s).xml declaration: false
57
57
 
58
58
  end
59
59
 
@@ -104,8 +104,7 @@ class LineTree
104
104
  [
105
105
  count.to_s + '.' + i.to_s,
106
106
  i == 1 ? "<ul>\n" : '',
107
- i == a.length - 1 ? "</li>\n</ul>" : \
108
- i == a.length - 1 ? '</ul></li>' : '</li>'
107
+ i == a.length - 1 ? "\n</ul>\n</li>" : ''
109
108
  ]
110
109
 
111
110
  else
@@ -123,7 +122,7 @@ class LineTree
123
122
  "%s<li>%s" % [' ' * indent, x]
124
123
  end
125
124
 
126
- i == 1 ? "<ul>" + r : r
125
+ i == 1 ? "<ul>" + r : i == a.length - 1 ? r + "</li>" : r + ""
127
126
 
128
127
  end
129
128
 
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file