testdata_text 0.1.4 → 0.1.5

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: 6896f9acee4803dde05185e61b2f7614a2d7f3a0
4
- data.tar.gz: b9d7a037d57dfd85b1c0ecdf12fabde625eb48b3
3
+ metadata.gz: 5bb20de69c06c33709bcd52c9d39ba4d0d863a61
4
+ data.tar.gz: 25adaf9349268aa28751da4267276ffd646626d1
5
5
  SHA512:
6
- metadata.gz: 826381bd4db68e4280470eccd93dd232c0945b3164ebd5b3456c11eeca331e749f269fc8eadc377c4181b9fb5b57f531f5cf699bf996f9caa260f10feb6517a7
7
- data.tar.gz: 6b20912003f2f28c910112cc51cb27e3cedc37db807b13414087f092d24882b42b6f04b32648ad1a17cbfcf6dab1234c85771cef5113b0005704e2d821d63c92
6
+ metadata.gz: 6d8958906b09b05284a3a562c055c01a9683ba40316123a874c945c85e15a4794a2d0205ab1e5fc1c06f0dfdc3ac26df678b11f7d0f0f255453bb445d5926ac0
7
+ data.tar.gz: e5610f295ea2af50ee33fbf294143afcd0b56f29a77c619a133ec0974206b6e200ae089d2dbe71c4c65e43180797cce4b6537077e94483301f9d64bec606ec16
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- 60/y���B��9mX��4o�@��Ljmj¼�\�0p0�GHmUz`D��`�bo[��e)cw�/UP�*��0==͏���Y
2
- ��r��Ž�d�a���K�ߪ��l��KpJ3?s�Xгt3�t�
1
+ }ɏ�o'N�s'��ry��z���i�{�G�T��gt-R�%"�?�HtQQK  �O������Z�!����0��(���3,JM�g('�H�H9�|h��e�����q�:V4(S�ic���
2
+ U?**���$�ث`��1�� ^#�U��-\�4��m
data/lib/testdata_text.rb CHANGED
@@ -14,7 +14,7 @@ class TestdataText
14
14
 
15
15
  def self.parse(txt)
16
16
 
17
- rowx = RowX.new(txt)
17
+ rowx = RowX.new(txt, level: 1)
18
18
  xml = rowx.to_xml
19
19
 
20
20
  lib = File.dirname(__FILE__)
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+ # file: testdata_text.rb
3
+
4
+ require 'rowx'
5
+ require 'nokogiri'
6
+
7
+ class String
8
+ def /(str_to_join)
9
+ File.join(self, str_to_join)
10
+ end
11
+ end
12
+
13
+ class TestdataText
14
+
15
+ def self.parse(txt)
16
+
17
+ rowx = RowX.new(txt)
18
+ xml = rowx.to_xml
19
+
20
+ lib = File.dirname(__FILE__)
21
+ xsl = File.open(lib/'testdata.xsl','r').read
22
+
23
+ doc = Nokogiri::XML(xml)
24
+ xslt = Nokogiri::XSLT(xsl)
25
+ xslt.transform(doc).to_s
26
+
27
+ end
28
+ end
data.tar.gz.sig CHANGED
Binary 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.4
4
+ version: 0.1.5
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-09-08 00:00:00.000000000 Z
34
+ date: 2014-11-06 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rowx
@@ -82,6 +82,7 @@ files:
82
82
  - lib/testdata.xsl
83
83
  - lib/testdata.xsl~
84
84
  - lib/testdata_text.rb
85
+ - lib/testdata_text.rb~
85
86
  homepage: https://github.com/jrobertson/testdata_text
86
87
  licenses:
87
88
  - MIT
metadata.gz.sig CHANGED
Binary file