polyrex 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/polyrex.rb +9 -6
- metadata +25 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba4f6a16445a6fbd95a21f6e5a5641a7d9f5003f22fb7ed2091e89e93668d6cb
|
4
|
+
data.tar.gz: a240d4e392b9b09556e26009bc72c59bd3a502f8a35292204df3ac201e8d5a7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 732161598ed4e13790d649ba5f531e82e91c6b1d9236b12f3b9acca5cdc4f62dec2538bd3eeee6c40258f677f5b491b01d37d3d20213cd9af47a319bb436a50a
|
7
|
+
data.tar.gz: '028715744fce1de173a07353cc193b0481a5b6be848fce8c9c39e7be09fe601044114ae0aea2fc97680c174c72ef9fac79bfa9d05ae053763fd55bf4ea2c4ca4'
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex.rb
CHANGED
@@ -305,11 +305,12 @@ class Polyrex
|
|
305
305
|
summary = item.element 'summary'
|
306
306
|
format_mask = summary.text('format_mask').to_s
|
307
307
|
line = format_mask.gsub(/\[![^\]]+\]/){|x| summary.text(x[2..-2]).to_s}
|
308
|
+
puts 'line: ' + line.inspect if @debug
|
308
309
|
|
309
|
-
|
310
|
+
recordsx = item.element('records').elements.to_a
|
310
311
|
|
311
|
-
if
|
312
|
-
line = line + "\n" + build(
|
312
|
+
if recordsx.length > 0 then
|
313
|
+
line = line + "\n" + build(recordsx, indent + 1).join("\n")
|
313
314
|
end
|
314
315
|
(' ' * indent) + line
|
315
316
|
end
|
@@ -342,7 +343,7 @@ class Polyrex
|
|
342
343
|
declaration = %Q(<?polyrex %s?>\n) % s
|
343
344
|
end
|
344
345
|
|
345
|
-
docheader = declaration + sumry
|
346
|
+
docheader = declaration + "\n" + sumry
|
346
347
|
out = build(self.records).join("\n")
|
347
348
|
header ? docheader + "\n" + out : out
|
348
349
|
|
@@ -534,7 +535,7 @@ xsl_buffer = '
|
|
534
535
|
|
535
536
|
end
|
536
537
|
|
537
|
-
raw_lines = buffer.
|
538
|
+
raw_lines = buffer.lstrip.lines.map(&:chomp)
|
538
539
|
|
539
540
|
raw_summary = schema[/^\w+\[([^\]]+)/,1]
|
540
541
|
|
@@ -555,7 +556,9 @@ xsl_buffer = '
|
|
555
556
|
@parent_node = records.parent
|
556
557
|
records.delete
|
557
558
|
|
558
|
-
|
559
|
+
puts 'raw_lines: ' + raw_lines.inspect if @debug
|
560
|
+
lines = LineTree.new(raw_lines.join("\n"), ignore_label: true).to_a
|
561
|
+
puts 'lines: ' + lines.inspect if @debug
|
559
562
|
@parent_node.root.add format_line!( lines)
|
560
563
|
|
561
564
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -11,31 +11,31 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjEwNTI0MTI1MjMzWhcN
|
15
|
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09JSrJOdlLTeiItH/Mfj6vcAuodI4Ys3PCh
|
29
|
+
UfQsIJUedcMysvo+6J0M+hEYL02w6ynWahcQbzvYPr+NwV/8FqMGGAyDpBSaLtrz
|
30
|
+
9J4cxy4p/mq2dF2lEsCUNoSBWvDpvQI4c2w79/gpWE+w0abHyX97r3N2wWv/OiwV
|
31
|
+
u06GMpESpRj4RAhhy88aDhGDUfMWd+nZ20gWcs2YR1yJf/JyaDfRcOFqLMgVw35Y
|
32
|
+
oQhEZldZrsYsF4FNEBmH2mx2iLq6VbCyZZ3M6jsIHUEDZdrDjbs8ejPvWfEdTW+1
|
33
|
+
x7007qRZCfLvIsqAf7GViMWXgbiv0ZFSKgV7qtK0IgVBg0NDor3xc9w/3VLqshTZ
|
34
|
+
jIqQb9u4Zkhtsp+Ly/HVroN0cylu1t/el2qILTDOkyKnAikvhKpX1wujv+VVqWwd
|
35
|
+
rivEdfkvT/8GV5Nip0lSS+cuk20UhOdJR9QIcCJp0QL4NUik9VYljGbQbQQS6Isc
|
36
|
+
iIwZ6uFJfcp9SWBRrSZmlI52
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: polyrex-objects
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.1.2
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A flavour of XML for storing and retrieveing records in a Polyrex hierarchy
|
metadata.gz.sig
CHANGED
Binary file
|