rowx 0.6.0 → 0.6.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 +7 -3
  5. metadata +27 -28
  6. metadata.gz.sig +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c98d55480e2c1881ea9bbba3a02a8d3955ea923c
4
- data.tar.gz: cf37cbdd69dc054aca697d0ee8a7439f9ffc6fc6
3
+ metadata.gz: d6559de84d94fde4feb2822a5a105dec56fadb50
4
+ data.tar.gz: f2cb9d31779c117cd31531b87cc14155b04152cf
5
5
  SHA512:
6
- metadata.gz: f023f8b760eea3396f9fd0ecdf9a3347fecd8139842d109f4be8ea3456ab81db76483144284d671b9554ec04e30f61ac633468d21c5362958f197c5f96aa64dd
7
- data.tar.gz: cdc5d79e8041f3763c878c00ba84f229732287fb07d5576ef0566834478fb1d9912d089f1805f4f4479ce957bf90dd0b8716f785aabb6198397c7ad137dca922
6
+ metadata.gz: e5ae79e85b8563c27029fd29db84fde20eb93dda5c1afa3cd287e9a3605a4f90413beb1f64e8c19885a0dd800d3eb8d9999fc2a94b7f5a0fa190d570174a764b
7
+ data.tar.gz: 37203ff377d20ecfa77eab61b4e86585d2a2f1cf063f2cf258bd430400086df63a4f406d4196cdea9fc444ff0b4ea9ab35a7b718c9b9362290107c9b5a3f5832
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -35,7 +35,9 @@ class RowX
35
35
  attr_reader :to_a, :to_xml, :to_lines
36
36
 
37
37
  def initialize(txt, level: nil, ignore_blank_lines: false,
38
- abort_1_row: false)
38
+ abort_1_row: false, debug: true)
39
+
40
+ @debug = debug
39
41
 
40
42
  # auto indent any multiline values
41
43
 
@@ -51,10 +53,12 @@ class RowX
51
53
  end
52
54
 
53
55
  end
56
+
57
+ puts 'lines: ' + lines.inspect if @debug
54
58
 
55
59
  a = LineTree.new(lines.join, level: level,
56
- ignore_blank_lines: ignore_blank_lines).to_a
57
-
60
+ ignore_blank_lines: ignore_blank_lines, debug: debug).to_a
61
+ puts 'a: ' + a.inspect if @debug
58
62
 
59
63
  keyfield = a[0][0][/\w+:/]; i = 0
60
64
 
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -10,28 +10,27 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE3MDEwODE3MTM0MloXDTE4MDEwODE3MTM0MlowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAOVxinGj0hGcz+aRrzfEAWWVV94OJrhxzgqNoaqLkmdMp7O4oS/taHFNF4h3
19
- m8cyuKxdXQvksf/1VcR5oyWAnNKzB6LPrSyAB9nr/b6+6iOCaJ/PlyDZnxHZioTl
20
- Ea+43PE1FR28l+Z0q9YOW85xN4XnC+QwhwG/F9g47IFU5lXb0AtJekMKfyfT5ykP
21
- Zs1gVSOm8hHuUpXnBQRh8mCATOzAZshqUKGDDi3CuS9kJaCbszKxvU72RWeh+3sL
22
- FDFsP0fBIndSWvu/2xoiY8PjqtKWxcLZYsnhZ5S1XTPB0vXwaZdUnWQHOakQwEhC
23
- yMskyxOo5eS0qwfquKnfv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K7OcVc3wDJCIw4Hx1TSU5AiFg5jaVcLdN5fo
20
+ OG/eS+c4qelHDJJ9YnHVNTtUNmRkdepoDfyaSbpdG8Lm4WIf5s7ifnA3KXRhppeg
21
+ Z4WTad5AFx/u2A5e8/gCuXuNItqM6K6XCAcsMDVdKWkEAIv8Ywl+hmBe5cH2vfBI
22
+ psJBpE9DeIlzhLxpAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
23
+ HQYDVR0OBBYEFANcDiEA6+Q+A4X6HmY2LIdpcjxQMCYGA1UdEQQfMB2BG2dlbW1h
24
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYXN0ZXJAamFt
25
+ ZXNyb2JlcnRzb24uZXUwDQYJKoZIhvcNAQEFBQADggEBAMQxDkQ6jxIqRtxwxdHH
26
+ /YYlw3idGHDtCYKWtHXa7rcQum878vbzLSYOX30n8XQnXWhR0z0gos09D9s5YqzH
27
+ hsPTHAwupPDaC9rv+M+5b2M1oqswuJtDRVF4wCi6OzJ9jvjnrUYzS9/oUD28HYrq
28
+ b+Qt8NAeuKThCfC0MprgdeahK2/FUBmTlGBv5i+kiFTn/iqtK+tfvWZ0ewwKDTPp
29
+ HJxqAvTNo5/ZGfOw9reqPsH0WWgbOJBXW5nNTgvRAGGq7qFNdUOpEzOGqp/lSquN
30
+ NVzuRR3ZpJv0oB5erN7dQnmpAOXibr8YefToNKbiZyALjt0Xij7mUEEG0xypyYrY
31
+ hR8=
33
32
  -----END CERTIFICATE-----
34
- date: 2017-09-07 00:00:00.000000000 Z
33
+ date: 2018-08-01 00:00:00.000000000 Z
35
34
  dependencies:
36
35
  - !ruby/object:Gem::Dependency
37
36
  name: line-tree
@@ -39,21 +38,21 @@ dependencies:
39
38
  requirements:
40
39
  - - "~>"
41
40
  - !ruby/object:Gem::Version
42
- version: '0.5'
41
+ version: '0.6'
43
42
  - - ">="
44
43
  - !ruby/object:Gem::Version
45
- version: 0.5.8
44
+ version: 0.6.10
46
45
  type: :runtime
47
46
  prerelease: false
48
47
  version_requirements: !ruby/object:Gem::Requirement
49
48
  requirements:
50
49
  - - "~>"
51
50
  - !ruby/object:Gem::Version
52
- version: '0.5'
51
+ version: '0.6'
53
52
  - - ">="
54
53
  - !ruby/object:Gem::Version
55
- version: 0.5.8
56
- description: Generates XML from rows of labelled text, nested text, and plain text
54
+ version: 0.6.10
55
+ description: Generates XML from rows of labelled text, nested text, and plain text
57
56
  email: james@jamesrobertson.eu
58
57
  executables: []
59
58
  extensions: []
@@ -80,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
79
  version: '0'
81
80
  requirements: []
82
81
  rubyforge_project:
83
- rubygems_version: 2.6.8
82
+ rubygems_version: 2.6.13
84
83
  signing_key:
85
84
  specification_version: 4
86
85
  summary: rowx
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- J�m����8���d}Hdl���&�;m€F��Ec��N[_�`���bu��f�~������iU���y��7Pך���=?����M���Wa/^{A���X�+w2f[Q���nyJ^8�>K�e9����`8]�:��)\=����~O��
2
- X����YFVL\�~QU7��18Y��Sɠ���)1傹PHۿ� ����C��9��-����1��ܿ�i��̨�>^|V�����RUr�����I-��������
1
+ RѨ��qN�k8�����@�@�O�3�g��Fd���s]L��wI$4)?� -Iɓ� 6N4��Q|:�a9G���5|6�x���o�Ż��&����٫c��1Lc��c>����v����sV�Ȩ�(
2
+ h80�诐�>�<,�J��%�U�������h?�[*&��;(��2�9:�Սt�<�vb3{�kj,hMۘV�\&�'�����x� BS���Ǩ�Æ���5�D��ɐ�~�+���<X��#�