polyrex 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92b800f6e1cff0afc484a82b12a24623e57ccb1e
4
- data.tar.gz: 92fcb30752d54b40bcc794e6b2834eb0767a0fa5
3
+ metadata.gz: 3d55d2fdb54a891ab3bda4ac7a93ec819476506a
4
+ data.tar.gz: 7ccb2e848427cd6dff49789b43cf1224241aced9
5
5
  SHA512:
6
- metadata.gz: 7c7e9e58b9bd4daf6732c5cb184c07275b85411dababe4cb21e39f35dd934c2980b175c9518d8ed7ccfad86f20731dab7c90c320b937b442c80dd56537738eb1
7
- data.tar.gz: d2e91ae76733cb1016feb79071fa581e72a3d7b57980f6e0ea56cb45961475b1fe51889193ca7a9ed817a9302b391bca7c2a9a37df4c823f95f240bbd187890c
6
+ metadata.gz: 8a412c05e72a613a34a2f4f67617f6f4e5cc70754bf7469984e475aa93d90cadb2ac15fffc298dddbb52b3d10b4efd2a2d13bbf6e81b62fc8f2dcfc44b76218d
7
+ data.tar.gz: 51153cc0675d8fd2a1bf7fc1b4a1dfcf8a03531ef52b7f763f60de0229a9330736c1babaecc8cce566cedb2881310c3f7dd6a1520f1a4160b68f0789f8ce061f
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- ���O�R���)VT.T��v��x}�E N���sl�^�i�����!{?^F�x����]�o��r*����W��^s �ȮX��x�x�^]�ę��TT <N�5��1[x�1�z6��A��ȜVSK�Ҵ�nw0����lP�,�"f3� ��
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��b7j�0wO��� ���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 =<<EOF
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
- EOF
354
- #jr130316 xslt = Nokogiri::XSLT(xsl_buffer)
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.0
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-13 00:00:00.000000000 Z
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