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 +4 -4
- checksums.yaml.gz.sig +2 -2
- data/lib/testdata_text.rb +1 -1
- data/lib/testdata_text.rb~ +28 -0
- data.tar.gz.sig +0 -0
- metadata +3 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bb20de69c06c33709bcd52c9d39ba4d0d863a61
|
4
|
+
data.tar.gz: 25adaf9349268aa28751da4267276ffd646626d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d8958906b09b05284a3a562c055c01a9683ba40316123a874c945c85e15a4794a2d0205ab1e5fc1c06f0dfdc3ac26df678b11f7d0f0f255453bb445d5926ac0
|
7
|
+
data.tar.gz: e5610f295ea2af50ee33fbf294143afcd0b56f29a77c619a133ec0974206b6e200ae089d2dbe71c4c65e43180797cce4b6537077e94483301f9d64bec606ec16
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
��
|
1
|
+
}ɏ�o'N�s'��ry��z���i�{�G�T��g�t-R�%"�?�HtQQ�K �O������Z�!����0��(���3,JM�g('�H�H9�|h��e�����q�:V�4(S�ic���
|
2
|
+
U?**���$�ث`��1�� ^#�U��-\�4��m�
|
data/lib/testdata_text.rb
CHANGED
@@ -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
|
+
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-
|
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
|