kvx 0.6.3 → 0.6.4

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: 30d75c83bd6b28f91c48e5a0df97046d7e5464b5
4
- data.tar.gz: 007e584c4108ec6fb503127bf4e3e7eeabb3e61c
3
+ metadata.gz: 2df63d5a006445b29a5fa9fd63ad6182528fae09
4
+ data.tar.gz: 21db5cf3c6074ba715f4e4624224655eb06dca22
5
5
  SHA512:
6
- metadata.gz: 691f2244b5c9e21de874d03e7fb380b732c2ed90ea852662230a29c252ef36e165d332b627cd416279f3defed4f7e4fbb08373be7fa3578c5be311d5655a477e
7
- data.tar.gz: f9a9f7acfac438ca7fb575f2c10964fc1883137caf267e5e95e2fd13c5139897b0c8928a9de5eccb362f64d7590e7914249b59c53b09f1a4e87cecc7a3ec2906
6
+ metadata.gz: 29302c6486105715ea93b8338e85c2c96c422472b380182295564faf32528c3a96403b228fc1b8493b69aa0d010fe478fc18c665daa95f1e6f1d7ad158a0c045
7
+ data.tar.gz: da94df925b2734d9f85bbb2c7fbc21649d199edbf87db02c635e453fa510ad51ac07dca1b121d02418a7cad06f1e9685cef890cb5995b8b9769735a5f9a2aebd
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- 4L$��%��>FHݘ�q�6L�����fC�О��$=�v7�(�1�t���f�|}K]!��|���i��r6�@4 ���u�U���]\�ݩO���V 6 ^ȵ� G'���1��'��,�}Z'?�@�bPɼev M13c �/�X�-�͗�R���%/5(���^@8Lm�܃�3�
2
- f���@�kX�8����s&/뚳�`7֕/-�4B���9<D��爉�'w0aX뚸T�p%LR{h J-
1
+ Oo�+<��9"&�~����(R����[X���&?x�]�=�T���q�Kg1%,8|�Y�� �4M�*�(����гM8U���V�U�ltfq�0'vsq����ޣ���2GK+#Q���fF}YX�"�����ʈr/fs��o@����ح+���%�&B��B4 ����
2
+ �ryOz������8�'/�E݋v���*q�a��>�:�98:�ݙI_�Ac?uA�ٗ��v����a�T7��7
data/lib/kvx.rb CHANGED
@@ -225,12 +225,12 @@ class Kvx
225
225
 
226
226
  raw_a = LineTree.new(txt.gsub(/(^-*$)|(#.*)/,'').strip,
227
227
  ignore_blank_lines: false).to_a
228
- puts 'raw_a: ' + raw_a.inspect
228
+
229
229
  # if there are any orphan lines which aren't nested underneath a
230
230
  # label, they will be fixed using the following statement
231
231
 
232
- a = raw_a.chunk {|x| x[0][/^\w+:|.*/]}.inject([]) do |r,y|
233
- if r.last and !y.first[/\w+:/] then
232
+ a = raw_a.chunk {|x| x[0][/^[^:]+:|.*/]}.inject([]) do |r,y|
233
+ if r.last and !y.first[/[^:]+:/] then
234
234
  r.last << y.last[-1]
235
235
  else
236
236
  r << y.last[-1]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kvx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file