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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d04c6a9d0315888bcaa68dbcdcf1a8a8a234c1dd
4
- data.tar.gz: 3a535266cf22ab3b1de72531a4961c80e0f791fd
3
+ metadata.gz: 8ff44fe3eda8a3aa66b437eee34cd7a610c74f6e
4
+ data.tar.gz: 0a8b83778e3782063b8efa8f31994cd9996fa173
5
5
  SHA512:
6
- metadata.gz: 44ed029b50f28e86586a92fc0123925d2c52f6b05bcb3aa52545801e8fc29940256105963e99b44a089ab83a8e430f4dde4e8e67b1a89593daca615430783b66
7
- data.tar.gz: 7e5d4eb3b82ae9e42abfd8d196bdb13f6685c5a85bcc693c7185005e186aa3c29643a39945d8be22714450e46b8d9a6fdbdfbeab7164edbac0013a9f6b6310ed
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+/]; i = 0
31
+ keyfield = a[0][0][/\w+:/]; i = 0
32
32
 
33
- while a.select {|x| x[0][/#{keyfield}/]}.length <= 1 and i < a.length
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
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-11-22 00:00:00.000000000 Z
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