rowx 0.1.6 → 0.2.0

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/lib/rowx.rb +7 -2
  4. data.tar.gz.sig +0 -0
  5. metadata +43 -29
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1faf6450bc1d691aa93c1e0142f79892360def2
4
- data.tar.gz: 3ed1d6842b40b0e395dc076b79c1e8880659781a
3
+ metadata.gz: f93adb314b0342845b4c07f7bb40bca6149fd2b0
4
+ data.tar.gz: a6f91f9b765d5e815cfa31e861dd4afc66fedc1f
5
5
  SHA512:
6
- metadata.gz: 5cd1a8b805f158cb61b8c959f44373db8780228e28a411361313c8c20e5ed46a4c51ad59c70648527c7df968b4bb96070de36dcbf9026e971a5e56e1ee65b827
7
- data.tar.gz: eda5154662b74f47249854519607e939d80b76ad0e4f531ceb66332ee7c9d0497a926d168d6857ca7705c00567072b17f8b6c1994c51aca80239dcc1d87bc2e7
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
- row.map {|x| scan_a x }
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.1.6
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
- MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTEzMDIwNjIxMDQxNFoXDTE0MDIwNjIxMDQxNFowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE0MTEwNTIwMDQxN1oXDTE1MTEwNTIwMDQxN1owSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAME7vfNNv8pmDW+OdyYxV9Wd1s/kqWJOehH/Rr2UUGaCeSxoR+wGIjh4K4cX
19
- RkN8ksko6C0iGlIHUjXxGaRciGhM9ZQyY/kCZaSHtztYFRzd1Mp+QoRH3CuXFvSf
20
- Hjsm0HF+xyjBxhslGQcjk1IowndPd5KcQkXibN3g5FdJ9VqgDQ9aFLMrBkqPs4MN
21
- R6TTOiXffbkYX/UDarxafr4nTc1LojOynJVzMwtlneP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hMwJgYDVR0RBB8w
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: 2013-08-07 00:00:00.000000000 Z
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: '0'
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: '0'
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: '0'
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.0.0.rc.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