rowx 0.2.4 → 0.2.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 +0 -0
- data/lib/rowx.rb +3 -2
- data.tar.gz.sig +0 -0
- metadata +2 -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: 8ff44fe3eda8a3aa66b437eee34cd7a610c74f6e
|
4
|
+
data.tar.gz: 0a8b83778e3782063b8efa8f31994cd9996fa173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f84c7c4f0be4a3e5a938af0686c986e8150294fab2a40e79e20b20a721448fa52eef30d7c7cc2d4a6b49c7ebd13ecb672cf4500d1dfee320e0b861dc6f38a3
|
7
|
+
data.tar.gz: 3e41389a2ecd1537a8a59763312433a0ed45114a4695448fd0ecb8d0843c678a3b23f9191179921472e5a7342e20c5213a09b2599e65654e194f5ebbb4281c23
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rowx.rb
CHANGED
@@ -28,9 +28,9 @@ class RowX
|
|
28
28
|
|
29
29
|
a = LineTree.new(txt.gsub(/^-*$/m,''), level: level).to_a
|
30
30
|
|
31
|
-
keyfield = a[0][0][/\w
|
31
|
+
keyfield = a[0][0][/\w+:/]; i = 0
|
32
32
|
|
33
|
-
while a.select {|x| x[0][
|
33
|
+
while a.select {|x| x[0][/^#{keyfield}/]}.length <= 1 and i < a.length
|
34
34
|
i += 1
|
35
35
|
keyfield = a[i][0][/\w+/]
|
36
36
|
end
|
@@ -41,6 +41,7 @@ class RowX
|
|
41
41
|
|
42
42
|
summary[0] = 'summary'
|
43
43
|
@to_a = ['root', '', {}] + [summary] + scan_records(records, level)
|
44
|
+
|
44
45
|
@to_xml = Rexle.new(@to_a).xml pretty: true
|
45
46
|
|
46
47
|
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.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
yaP43m5g1gqUfr6ys6w86uiM1Khmw6RXdAZBrQU+jmXYRU0OejB3+MdhPte5gP6n
|
32
32
|
k3UhzyiVjlkLhQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-
|
34
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: line-tree
|
metadata.gz.sig
CHANGED
Binary file
|