line-tree 0.4.5 → 0.4.6

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: 176cc7dca8380d6d8c186a9f54f59ce214f3afbd
4
- data.tar.gz: ba91cd9e7df690b03aab22bf69de31c16279dfa3
3
+ metadata.gz: 03045984648cbf4746e6ca3e5d1fd3d878e32b96
4
+ data.tar.gz: 41c467e61929553a4d542ab584eae95786fd8678
5
5
  SHA512:
6
- metadata.gz: 3407e7ef8d54f2a56e8c4557121315ae415919e947dc3bfd1ee82de1ea62e91079992ca8229aac2364afde02ab6e62dfee77d57c87419fd40d6f5960ea895a0b
7
- data.tar.gz: 5a05e73f5c5fa0389415bb99bec40c5d48eb7ff66aa1864709286ea512551a3e90bb4054865f2cad4669419e9d9e1949919a55a71a37008dd75fc8bad73e8768
6
+ metadata.gz: 4bcbb2122e139c764a0e9a8381fedf4e8755ec31af0bffcaa787912a84c46113077412fa618849001d2ff699e1d241e29eb9edf2f739f12c92371679b167718b
7
+ data.tar.gz: ea052aa7927fa46c806bb5d5db95360b6b9318b4e944fdabbdd43f8923b4e1c297e4613a87a422693a507135f60fa28afd5c6bedb40a2f87ef0e9e9c57329523
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- {���1�!�v*��цe��D_�^�aiA�
2
- ��Y���-W@�����A7g<����fA٧���B�������-~(7�3w����l[������ܴ������,�Z��Y
3
- ��c l�2��"��� �J��Ȟ�o�$�n��3��2�P;�QHSN����Yq2�;�~4=9g��Pܒ���qc�ԓ�t���avT��T�Y�1�u�
1
+ �Z�#����[SuuM�P� �z�}x̀ͳ�*�s�p&�w�v��dI�$Ř������#oY�
data/lib/line-tree.rb CHANGED
@@ -34,14 +34,16 @@ class LineTree
34
34
  unless x[/.*/][/^\s*\w+:\S+/] then
35
35
 
36
36
  rlines = @ignore_blank_lines ? (x).split(/\n/) : (x).split(/\n/,-1)
37
- rlines = [x] if level and level < 0
37
+
38
+ rlines = [x.gsub(/^\s{2}/,'')] if level and level < 0
38
39
  label = [rlines.shift]
39
40
  new_lines = rlines.map{|x| x[2..-1]}
40
41
 
41
42
  if new_lines.length > 1 then
42
43
  label + scan_shift(new_lines.join("\n"),level)
43
44
  else
44
- (new_lines.length > 0 and new_lines != [nil])? label + [new_lines] : label
45
+ (new_lines.length > 0 and \
46
+ new_lines != [nil])? label + [new_lines] : label
45
47
  end
46
48
 
47
49
  else
data.tar.gz.sig CHANGED
Binary file
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.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  ErtlSTAImlBCK8q5BS4jBBt8VAEpNdkWpWbtDtLPA639pW2QWIcPx13ObWJh7Ejk
32
32
  THoVqqsHTfeg3g==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-12-28 00:00:00.000000000 Z
34
+ date: 2014-12-30 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
metadata.gz.sig CHANGED
Binary file