rowx 0.1.6 → 0.2.0
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 +0 -0
- data/lib/rowx.rb +7 -2
- data.tar.gz.sig +0 -0
- metadata +43 -29
- 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: f93adb314b0342845b4c07f7bb40bca6149fd2b0
|
4
|
+
data.tar.gz: a6f91f9b765d5e815cfa31e861dd4afc66fedc1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 034941df6ec751a12e7e3a62e28190f978628acb84ad76392085444e4d081f2f3d6f5d9d39868661c1e7162eff39ab3f7e6ec71b1c88d0b74f808da67e0316a7
|
7
|
+
data.tar.gz: 95d004a9f2f71966a985c417f6d91f8980b5821a22afcef348d85b204a7a2a3a21cdc930e993876778166cc8a2efaa2d0ec33d53a4a80b25283d761998129bd9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rowx.rb
CHANGED
@@ -40,7 +40,7 @@ class RowX
|
|
40
40
|
summary = scan_a a.slice!(0,i)
|
41
41
|
|
42
42
|
summary[0] = 'summary'
|
43
|
-
@to_a = ['root', '', {}] + [summary] + scan_records(records)
|
43
|
+
@to_a = ['root', '', {}] + [summary] + scan_records(records)
|
44
44
|
@to_xml = Rexle.new(@to_a).xml pretty: true
|
45
45
|
|
46
46
|
end
|
@@ -68,7 +68,12 @@ class RowX
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def scan_records(row)
|
71
|
-
|
71
|
+
|
72
|
+
row.map do |x|
|
73
|
+
|
74
|
+
x.map! {|y| y.length <= 1 ? y : y.join("\n")}
|
75
|
+
scan_a x
|
76
|
+
end
|
72
77
|
end
|
73
78
|
|
74
79
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rowx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,55 +10,69 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE0MTEwNTIwMDQxN1oXDTE1MTEwNTIwMDQxN1owSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
18
|
+
ggEBALwZDIVN+ekwn9PXFu3zb6smmRyhYasu4n5lWBekFYTS5kDA856Uv53q54ir
|
19
|
+
kGbh3ttl7ikJEUaJa6b3JZpiNzRIUo6gULxGzv5yPIidXEwLiPtGG8CUjRscBxty
|
20
|
+
tHNWX4Oe42eqjXe52B2le+zWk4Ru//YdD665n6bjtEFhudkOqvDRpXpndfDp1vBS
|
21
|
+
TBWnrgQpULEjhKGq319Fx0fiYnDkLRSEZsVVZ/V4sp5IQwzBIaCJ8u51ikW4aLCo
|
22
|
+
WSQMc0x06zB11D8aTCr7wAy6R+q7MYFbT0uU0bplTvp6d5iAJ96GnfO0kY/hDqLc
|
23
|
+
qP9Derc1jkMYk1w5rEfum0dtXx0CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUwd6wvKEFDCZGPWUxuK9QugwPJhMwJgYDVR0RBB8w
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEALhGlf847
|
27
|
+
ikyxBIwdnk3IlcLp2Omed8I2bNo+ilYEhIY3medfHs0z8OTJEJGYU5/2/YzFWSki
|
28
|
+
aQmCM2umB8G9UqpC+Xj5JEWm6a/y4DpDmFKjEr1huU+5/xn3wG96SNzQsTyZLPxy
|
29
|
+
ZBhfvYonuLCL4h9KzX8msUdQqllj33VPtMf+D6QlF9YRQGhHFDVKduVMcs8MDIM9
|
30
|
+
ZYvHMzXuZ2Sq9EbLA0EuU1V3bJZsLxhOTWso64XpE1GdkWFzk9TIflMjyUywrC1u
|
31
|
+
yaP43m5g1gqUfr6ys6w86uiM1Khmw6RXdAZBrQU+jmXYRU0OejB3+MdhPte5gP6n
|
32
|
+
k3UhzyiVjlkLhQ==
|
31
33
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
34
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
33
35
|
dependencies:
|
34
36
|
- !ruby/object:Gem::Dependency
|
35
37
|
name: line-tree
|
36
38
|
requirement: !ruby/object:Gem::Requirement
|
37
39
|
requirements:
|
38
|
-
- -
|
40
|
+
- - "~>"
|
39
41
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
42
|
+
version: '0.3'
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.3.22
|
41
46
|
type: :runtime
|
42
47
|
prerelease: false
|
43
48
|
version_requirements: !ruby/object:Gem::Requirement
|
44
49
|
requirements:
|
45
|
-
- -
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.3'
|
53
|
+
- - ">="
|
46
54
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
55
|
+
version: 0.3.22
|
48
56
|
- !ruby/object:Gem::Dependency
|
49
57
|
name: rexle
|
50
58
|
requirement: !ruby/object:Gem::Requirement
|
51
59
|
requirements:
|
52
|
-
- -
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.0'
|
63
|
+
- - ">="
|
53
64
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
65
|
+
version: 1.0.33
|
55
66
|
type: :runtime
|
56
67
|
prerelease: false
|
57
68
|
version_requirements: !ruby/object:Gem::Requirement
|
58
69
|
requirements:
|
59
|
-
- -
|
70
|
+
- - "~>"
|
60
71
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
72
|
+
version: '1.0'
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.33
|
62
76
|
description: Generates XML from rows of labelled, nested, and plain text
|
63
77
|
email: james@r0bertson.co.uk
|
64
78
|
executables: []
|
@@ -76,17 +90,17 @@ require_paths:
|
|
76
90
|
- lib
|
77
91
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
|
-
- -
|
93
|
+
- - ">="
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
95
|
+
version: 2.1.2
|
82
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
97
|
requirements:
|
84
|
-
- -
|
98
|
+
- - ">="
|
85
99
|
- !ruby/object:Gem::Version
|
86
100
|
version: '0'
|
87
101
|
requirements: []
|
88
102
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.2.2
|
90
104
|
signing_key:
|
91
105
|
specification_version: 4
|
92
106
|
summary: rowx
|
metadata.gz.sig
CHANGED
Binary file
|