dynarex 1.5.38 → 1.5.40

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: 392e16b3efb5a4bc4bde9631710eb7acc5df5066
4
- data.tar.gz: 240c948bdbead311e1b948611f8d7335e2304e61
3
+ metadata.gz: 0d9af8bd5c9163adf6ce97059457669022f5e620
4
+ data.tar.gz: 9b785fbeeff140221fc55060f9eceb347d1f6ecf
5
5
  SHA512:
6
- metadata.gz: 16c3938100082cae187df772033c893e8f89a6bd30b06682c2e3cd49ef8902d4b3e7ab5d7ca6bcd081469d09defe5effd09e7b34ce909c26be3cd1827ec7802d
7
- data.tar.gz: 39a0831d3de85ed540f7493c001436635f24dbc2d1c7c1a68f957fd6cdc4d537ab540125f080c2d95bdc9831f8e35da8545dbb1626342dd438a4ed711e63b03a
6
+ metadata.gz: 56ea68d4f45b8b1bb618da0fb40f71106cde6d4d8f093865040a9e13f2f50944556731434a59b7ac0a41f9fde7ba29c4d4cefe94223f0791e2301e2fd4042795
7
+ data.tar.gz: 102d1ef6db87b485e00f1a682041bb8eefdaa10d942fd622f43cae0d7af23c64711d3c83c0c376c1ca4f16a6820ac90ba05cb0beefc54ebdd187834d3cbf34a5
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ��句)7I�_ %ϔ���Q��{�#:_/��,T"aIl�(�7�oB�֩e�������$5z a��뤼���6f)}�M*J��
1
+ HVS2u��2iB���ȴS��c*�F1�P1����@ĺ q�}��.��6��[�n=�V@�G*��7X�<h��a�i�c�`�����Iy�t:W���d�)�Nqv2�tt-�}D$V8X����|�%��RRBQp�=��xȋ�Nni�Җ��!��#=mf�����n���-��d�~T��Ǻ�PvQA!�u�)�S��+�.C��֢t=�̈%�T��S�b;%�;�ҙ���-�=�B�s��i�:,~��
data/lib/dynarex.rb CHANGED
@@ -217,6 +217,12 @@ class Dynarex
217
217
  @doc
218
218
  end
219
219
 
220
+ def to_html(domain: '')
221
+ xsl_buffer = RXFHelper.read(domain + @xslt).first
222
+ xslt = Nokogiri::XSLT(xsl_buffer)
223
+ xslt.transform(Nokogiri::XML(@doc.to_s)).to_s
224
+ end
225
+
220
226
  def to_s
221
227
 
222
228
  xsl_buffer =<<EOF
@@ -622,7 +628,9 @@ EOF
622
628
 
623
629
  #Rexle.new("<rss version='2.0'>%s</rss>" % xml).xml(pretty: true)
624
630
 
625
- xml = Rexle.new("<rss version='2.0'>%s</rss>" % out.to_s).xml(pretty: true)
631
+ doc = Rexle.new("<rss version='2.0'>%s</rss>" % out.to_s)
632
+ yield( doc ) if block_given?
633
+ xml = doc.xml(pretty: true)
626
634
  xml
627
635
  end
628
636
 
@@ -1244,4 +1252,4 @@ XSL
1244
1252
  end
1245
1253
  end
1246
1254
 
1247
- end
1255
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.38
4
+ version: 1.5.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  zafTuKRozNy5wCw7Z32VaDGcJ+yTPq73CrcPrNyaoxqGfU0qNsh6oGvwrq4Q1k4j
32
32
  Pz2GWE7KigXTBg==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-10-24 00:00:00.000000000 Z
34
+ date: 2015-10-26 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex-import
metadata.gz.sig CHANGED
Binary file