rowx 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rowx.rb +6 -5
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4123de3c3df62628dd5b25697f73b757826147cbaad300d85c2dadcf3823056f
|
4
|
+
data.tar.gz: 642865c7f29b06f852a4c445e27b3fae87bd12f9873bf16896e31804a40f5915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a8c9707f5a7caf6e2dd003496726957b83c7ea0860b0b374807b263a048eba62e818f7bcd7a1a7a491ea1c7897f1c9e03a04160659cbf22132e2abc84d524c3
|
7
|
+
data.tar.gz: 2651a7e2e2c9b806212e14f71c9785b805eea9425fc13fa285d6a0d2e60e6cc96bda2f2c5153e77755f28a7e66c5b8aa378a238d9d5fd7973539649529e0cc2b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rowx.rb
CHANGED
@@ -31,13 +31,14 @@ end
|
|
31
31
|
class RowX
|
32
32
|
|
33
33
|
using ArrayCollate
|
34
|
+
using ColouredText
|
34
35
|
|
35
36
|
attr_reader :to_a, :to_xml, :to_lines
|
36
37
|
|
37
38
|
def initialize(txt, level: nil, ignore_blank_lines: false,
|
38
|
-
abort_1_row: false, debug:
|
39
|
-
|
40
|
-
@debug = debug
|
39
|
+
abort_1_row: false, debug: false, name: 'item')
|
40
|
+
|
41
|
+
@name, @debug = name, debug
|
41
42
|
|
42
43
|
# auto indent any multiline values
|
43
44
|
|
@@ -58,7 +59,7 @@ class RowX
|
|
58
59
|
|
59
60
|
a = LineTree.new(lines.join, level: level,
|
60
61
|
ignore_blank_lines: ignore_blank_lines, debug: debug).to_a
|
61
|
-
puts 'a: ' + a.inspect if @debug
|
62
|
+
puts ('a: ' + a.inspect).debug if @debug
|
62
63
|
|
63
64
|
keyfield = a[0][0][/\w+:/]; i = 0
|
64
65
|
|
@@ -124,7 +125,7 @@ class RowX
|
|
124
125
|
result
|
125
126
|
end
|
126
127
|
|
127
|
-
[
|
128
|
+
[@name, {}, '' ] + a
|
128
129
|
end
|
129
130
|
|
130
131
|
def scan_records(rows, 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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
NVzuRR3ZpJv0oB5erN7dQnmpAOXibr8YefToNKbiZyALjt0Xij7mUEEG0xypyYrY
|
31
31
|
hR8=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-
|
33
|
+
date: 2018-12-25 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: line-tree
|
@@ -38,20 +38,20 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
41
|
+
version: '0.7'
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 0.
|
44
|
+
version: 0.7.2
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - "~>"
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: '0.
|
51
|
+
version: '0.7'
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.7.2
|
55
55
|
description: Generates XML from rows of labelled text, nested text, and plain text
|
56
56
|
email: james@jamesrobertson.eu
|
57
57
|
executables: []
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.6
|
82
|
+
rubygems_version: 2.7.6
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: rowx
|
metadata.gz.sig
CHANGED
Binary file
|