rx_sliml 0.1.0 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b117a18d8f29b9e79e4ada0749ad3c07e67f72eb
4
- data.tar.gz: 79072e1fb512dcf2ee86af6e105c5f6abacc3d82
3
+ metadata.gz: 73fb59caf83116bc3e90656b31aca31dbd9f2789
4
+ data.tar.gz: ac8bd04d3afa57ea97030318c85ad6d39a976357
5
5
  SHA512:
6
- metadata.gz: 446d73007e901a77692b70135a2056d194f627e206045951d3c02e0b62254c27bf0ccb9ed825e2f9aa69b60d6fea9881371862c68de237ed393516129ce1a7e6
7
- data.tar.gz: 54ee8e10b861f1392ca3c8725df837d8cb73a1cc609ed46eea78a487217316db960b11a3eb97878add57f54a616baa623f55dac355537b03de64767e10ee347b
6
+ metadata.gz: e77b3ab674a3a909acc315add7838112f01f4dadbf0006f9ed9ee8185391031cd487418ceceb0e833a2a2d80baa4a3e0d4aa8fd5e06e147dffa5757eaa489b35
7
+ data.tar.gz: 7b9a949202bd5a8533f8083d9c8d432dfb8e28c1bb625427b76f0ac384f4a4e023c75bb948224365cd6721bf33075d053b5f7b317b6fa94947dced457cc00602
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- h��4 �=-��k']��RF�jN cy��"A�\>@�8%O4�z��ar�$�px[�YU���=#�B�+�\���,���}P ���ݤ褈SR(���䑛& Pw�:3
1
+ �?�K���9IW5@�/���|ۊXC]��,��"��.��Q�/��S�|�<���[Gc�)F��3������$ԱJ������2�4
data/lib/rx_sliml.rb CHANGED
@@ -11,9 +11,9 @@ class RxSliml
11
11
 
12
12
  attr_reader :to_xslt, :to_html
13
13
 
14
- def initialize(sliml, rx)
14
+ def initialize(sliml, rx=nil)
15
15
 
16
- @rx = rx.is_a?(Kvx) ? rx : rx.to_kvx
16
+ @rx = (rx.is_a?(Kvx) ? rx : rx.to_kvx) if rx
17
17
 
18
18
  sliml.gsub!(/\{[^\}]+/) do |x|
19
19
  x.gsub(/["']?(\S*)\$(\w+)([^"']*)["']?/,'\'\1{\2}\3\'')
@@ -26,7 +26,7 @@ class RxSliml
26
26
  @to_xslt = build_xslt
27
27
 
28
28
  xslt = Nokogiri::XSLT(@to_xslt)
29
- @to_html = xslt.transform(Nokogiri::XML(@rx.to_xml))
29
+ @to_html = xslt.transform(Nokogiri::XML(@rx.to_xml)) if rx
30
30
 
31
31
  end
32
32
 
@@ -90,4 +90,4 @@ class RxSliml
90
90
  xml2.sub('<rec_template/>', @recxsl)
91
91
  end
92
92
 
93
- end
93
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rx_sliml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  FT2L1UuLQI0PFh+XOwI2lbfTOP+usTP80eftlpq5IjCCrKzeGiUzU5l5W929Z4F6
32
32
  yfw1WETOqB1VrQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-10-30 00:00:00.000000000 Z
34
+ date: 2015-10-31 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle-builder
metadata.gz.sig CHANGED
Binary file