polyrex 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -1
- data.tar.gz.sig +0 -0
- data/lib/polyrex.rb +12 -6
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d55d2fdb54a891ab3bda4ac7a93ec819476506a
|
|
4
|
+
data.tar.gz: 7ccb2e848427cd6dff49789b43cf1224241aced9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a412c05e72a613a34a2f4f67617f6f4e5cc70754bf7469984e475aa93d90cadb2ac15fffc298dddbb52b3d10b4efd2a2d13bbf6e81b62fc8f2dcfc44b76218d
|
|
7
|
+
data.tar.gz: 51153cc0675d8fd2a1bf7fc1b4a1dfcf8a03531ef52b7f763f60de0229a9330736c1babaecc8cce566cedb2881310c3f7dd6a1520f1a4160b68f0789f8ce061f
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
��j�(_�</b��*�͇q�0����R1��]�$�R�GndLX�{�&��E��ۣ���,XZ������Q�c�%��*�Sc�ܹΜ�ոE�F�莞�]�Uξ�ܮ�C���ߑ��|�>@e��ы��/���1K����[�n���MGV��a��+dI�4B��ąTݙ�o=��ɄE���"6j�E��@��덐6�,!1��b�7j�0�w�O��� ���n��Ǹh�s wg��~ң������
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/polyrex.rb
CHANGED
|
@@ -225,11 +225,12 @@ class Polyrex
|
|
|
225
225
|
end
|
|
226
226
|
|
|
227
227
|
def to_dynarex()
|
|
228
|
+
|
|
228
229
|
root = @doc.root.deep_clone
|
|
229
230
|
|
|
230
231
|
summary = root.element('summary')
|
|
231
|
-
summary.delete('format_mask')
|
|
232
|
-
summary.element('recordx_type').text = 'dynarex'
|
|
232
|
+
#summary.delete('format_mask')
|
|
233
|
+
#summary.element('recordx_type').text = 'dynarex'
|
|
233
234
|
|
|
234
235
|
summary.add root.element('records/*/summary/format_mask').clone
|
|
235
236
|
e = summary.element('schema')
|
|
@@ -325,9 +326,13 @@ class Polyrex
|
|
|
325
326
|
def make_dynarex(root)
|
|
326
327
|
|
|
327
328
|
|
|
329
|
+
root.delete('summary/recordx_type')
|
|
330
|
+
root.delete('summary/format_mask')
|
|
328
331
|
root.xpath('records/*/summary/format_mask').each(&:delete)
|
|
332
|
+
root.xpath('records/*/records').each(&:delete)
|
|
333
|
+
|
|
329
334
|
|
|
330
|
-
xsl_buffer
|
|
335
|
+
xsl_buffer = '
|
|
331
336
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
332
337
|
<xsl:output encoding="UTF-8"
|
|
333
338
|
indent="yes"
|
|
@@ -350,11 +355,11 @@ xsl_buffer =<<EOF
|
|
|
350
355
|
</xsl:element>
|
|
351
356
|
</xsl:template>
|
|
352
357
|
</xsl:stylesheet>
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
#jr130316 buffer = xslt.transform(Nokogiri::XML(root.xml)).to_s
|
|
358
|
+
'
|
|
359
|
+
|
|
356
360
|
buffer = Rexslt.new(xsl_buffer, root.xml).to_s
|
|
357
361
|
Dynarex.new buffer
|
|
362
|
+
|
|
358
363
|
end
|
|
359
364
|
|
|
360
365
|
def refresh_records(records, fields, level)
|
|
@@ -647,6 +652,7 @@ EOF
|
|
|
647
652
|
|
|
648
653
|
unless @format_masks
|
|
649
654
|
schema_rpath = schema.gsub(/\[[^\]]+\]/,'')
|
|
655
|
+
|
|
650
656
|
@recordx = schema_rpath.split('/')
|
|
651
657
|
@recordx.shift
|
|
652
658
|
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.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
EUI+ncIuEEQSxIVKGeaQ49Dk10P2t0cX3DGyMlv7sreJohHxJfNKsjG/SAk0cks0
|
|
32
32
|
9+gffejS1ORTgQ==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-03-
|
|
34
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: polyrex-schema
|
metadata.gz.sig
CHANGED
|
Binary file
|