testdata_text 0.1.7 → 0.1.8

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: 130a9a6b8966721f78f3bd7a9fdfcfdab3896860
4
- data.tar.gz: fa31dbb86befd184adf376ca1b49723ce24ea3c5
3
+ metadata.gz: 4d1547fc839a47bd5c0a3982381a934335d89007
4
+ data.tar.gz: 329f8b487ff2e18cf08085d4a8c3e5fffa666016
5
5
  SHA512:
6
- metadata.gz: d867b49c89a0e0e3c205a99731ba1d5dc7d4e1112c0fa59d0b76083cf2894a382f07aa440aeec7bee0b7ae816362ee7c30e41937dede84639cbe6379dad47db9
7
- data.tar.gz: 82074ecdd26e0f11036301204a52d4f1c4e86af839bf4f660222f65d349b21e13eb38756cbecaaef115891ad98e115adca4d8bebc9d634354bdee27fd070e8e4
6
+ metadata.gz: c175e397baa445ab08cc90913be361772c0566d73a3ba55457bd89c9539ffae783ba47a122a30da199dd038a577b43cea2e99069c88a24fdb3a48ef22bcdc610
7
+ data.tar.gz: 584135565cf6619e2dc716f7575cf61746a343e699468b640e50815679308aca12ca5e5274b3abc154454c035fe363e873e4d22ca80e63dbfb572bcc3d6294b4
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ����rϠ�w�����}�}�t��1v��{�v[����V9e�D��Y$ k�6�����ڭ��њ)Q����yZ��q����![�zY�a`�x��f+?��c{$2�l�9v����ւގd�1nVf��,���)Q)ՅP0}��|��獡��)J��`�o�Li{�nçl_T���?����h���R� ��y-Z��kQ�=�K�<�I����a��g�J ��Js��V%;I��-�v6e�!X_
2
- q�E
1
+ ����o&p���}�!�R����kD٬R2�!<%�d��KG釄Dzĸ�N-Q�L?`����+�⬘!�8 Ǵ�#�(VR
2
+ �-�&�$>.�"B�·�ȅF~���֐5]��)"*1POd(�[���`%0r
3
+ Fh���T��!��m��ߘ�.Ṿ��՝x��mz��2 at��4�GlU�;Z pU���`Md�ؾt)����4��5��������<V%l�����[F��[[�����]yֶ�[���n��
data/lib/testdata_text.rb CHANGED
@@ -12,8 +12,10 @@ end
12
12
 
13
13
  class TestdataText
14
14
 
15
- def self.parse(txt)
15
+ def self.parse(raw_txt)
16
16
 
17
+ txt = raw_txt.split(/(?=\n=begin)/m)\
18
+ .map {|x| x.sub(/\n=begin.*=end/m,'')}.join
17
19
  rowx = RowX.new(txt, level: 1)
18
20
  xml = rowx.to_xml
19
21
 
@@ -14,7 +14,7 @@ class TestdataText
14
14
 
15
15
  def self.parse(txt)
16
16
 
17
- rowx = RowX.new(txt, level: 2)
17
+ rowx = RowX.new(txt, level: 1)
18
18
  xml = rowx.to_xml
19
19
 
20
20
  lib = File.dirname(__FILE__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testdata_text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  FBR5EYf7KwvXqqdvheRANz9R7jILkep/8OhZyeZ24ooB8m614VibBd1mLL5MnhOG
32
32
  BsYV7iSsJtgaaw==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-12-30 00:00:00.000000000 Z
34
+ date: 2015-01-16 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rowx
metadata.gz.sig CHANGED
Binary file