dx_sliml 0.1.2 → 0.1.5
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 +2 -2
- data/lib/dx_sliml.rb +5 -2
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 13df0a92cd284579a9b0e8f09dd5aaa7778e81ef
|
4
|
+
data.tar.gz: 6112a297c02ba1cf4b9ab7e78a84745784daa9c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c71a4a8b2683a0966ace18a57345dc31d3a9eb4f17c8f4446caa25b89e3bef0b2116236ca53bdfa1f047520ad73f5288f24d5c1d8aec58df5a06922a8278d7d5
|
7
|
+
data.tar.gz: 5cbc810dde7b8a3019b964ed8a7d2c0a7a5e379599b492b2f44abecd6818bab5a23f660ea0e25069c53854142f7ca50060b869f6f6be97c8c46996e990f9387c
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
�
|
2
|
-
|
1
|
+
Ƭ%��1��%��'��~���R8eIU�������OO)�^��>���/أB}���]��/���nE�ͬ���2�����%�#48��Y��E"�]��ۏc�?��Z
|
2
|
+
l���y�����0!��L�Cd���(�yL��OP�O����*��}�_+���O<����ω|��a�x��s�<.끼�F�d��Ӱ�{XoQl�?n�139Pl5 �
|
data/lib/dx_sliml.rb
CHANGED
@@ -12,8 +12,11 @@ class DxSliml
|
|
12
12
|
def initialize(sliml, dx)
|
13
13
|
|
14
14
|
@dx = dx.is_a?(Dynarex) ? dx : Dynarex.new(dx)
|
15
|
+
|
16
|
+
sliml.gsub!(/\{[^\}]+/) do |x|
|
17
|
+
x.gsub(/["']?(\S*)\$(\w+)([^"']*)["']?/,'\'\1{\2}\3\'')
|
18
|
+
end
|
15
19
|
|
16
|
-
sliml.gsub!(/\{[^\}]+\}/) { |x| x.gsub(/(\S*)\$(\w+)/,'\'\1{\2}\'')}
|
17
20
|
xml = LineTree.new(sliml).to_xml declaration: false, pretty: true
|
18
21
|
|
19
22
|
@recxsl = xml.gsub(/\$(\w+)/, '<xsl:value-of select="\1"/>')
|
@@ -86,4 +89,4 @@ class DxSliml
|
|
86
89
|
xml2.sub('<rec_template/>', @recxsl)
|
87
90
|
end
|
88
91
|
|
89
|
-
end
|
92
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|