rowx 0.2.5 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/rowx.rb +4 -4
  5. metadata +10 -10
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ff44fe3eda8a3aa66b437eee34cd7a610c74f6e
4
- data.tar.gz: 0a8b83778e3782063b8efa8f31994cd9996fa173
3
+ metadata.gz: e5192e7ed6e792d708cec04112252205c9b1bbd3
4
+ data.tar.gz: 6d1eb2fd146c22599436add0318d01332a22c5e9
5
5
  SHA512:
6
- metadata.gz: a9f84c7c4f0be4a3e5a938af0686c986e8150294fab2a40e79e20b20a721448fa52eef30d7c7cc2d4a6b49c7ebd13ecb672cf4500d1dfee320e0b861dc6f38a3
7
- data.tar.gz: 3e41389a2ecd1537a8a59763312433a0ed45114a4695448fd0ecb8d0843c678a3b23f9191179921472e5a7342e20c5213a09b2599e65654e194f5ebbb4281c23
6
+ metadata.gz: 87399315019fd8e5157299609220e6a069bcbc730151d168be39e6ba898adbb3e1ae0d73f0edea4a79f598274e2ff82f9b9de280b657fe0b35d1146a08156f65
7
+ data.tar.gz: 85ac2bea5fb02442ce5b870b7acabfa60af725eb481733352f85b99750baeb8ae69c7b17cf995d1f50e5d1c7e3c3965855b5df6784827006969ad10beefd2c48
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rowx.rb CHANGED
@@ -40,8 +40,8 @@ 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, level)
44
-
43
+ @to_a = ['root', {}] + [summary] + scan_records(records, level)
44
+
45
45
  @to_xml = Rexle.new(@to_a).xml pretty: true
46
46
 
47
47
  end
@@ -60,12 +60,12 @@ class RowX
60
60
  children = scan_a(field[1..-1]) if field[-1] .is_a?(Array)
61
61
  value = value.to_s.strip.gsub('<','&lt;').gsub('>','&gt;')
62
62
 
63
- result = [name, value, {}]
63
+ result = [name, {}, value]
64
64
  result << children if children
65
65
  result
66
66
  end
67
67
 
68
- ['item', '', {}] + a
68
+ ['item', {}, '' ] + a
69
69
  end
70
70
 
71
71
  def scan_records(row, level)
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.5
4
+ version: 0.3.1
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-12-24 00:00:00.000000000 Z
34
+ date: 2015-02-02 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: line-tree
@@ -39,40 +39,40 @@ dependencies:
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '0.3'
42
+ version: '0.5'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 0.3.22
45
+ version: 0.5.0
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '0.3'
52
+ version: '0.5'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 0.3.22
55
+ version: 0.5.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rexle
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '1.0'
62
+ version: '1.2'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 1.0.33
65
+ version: 1.2.0
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
- version: '1.0'
72
+ version: '1.2'
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.0.33
75
+ version: 1.2.0
76
76
  description: Generates XML from rows of labelled, nested, and plain text
77
77
  email: james@r0bertson.co.uk
78
78
  executables: []
metadata.gz.sig CHANGED
Binary file