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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b85bc8e26ae0b275374f22650d81cf8a0db3ae8a
4
- data.tar.gz: cb21695040e6a69aed97d5899b1824aaa7aa34b3
3
+ metadata.gz: 13df0a92cd284579a9b0e8f09dd5aaa7778e81ef
4
+ data.tar.gz: 6112a297c02ba1cf4b9ab7e78a84745784daa9c9
5
5
  SHA512:
6
- metadata.gz: bab859a76eebb1c367a2346c4f32aa234d31fde9eb8e513f5f1980db2eed5f85b3b07d9ea506c80f311dbfd066cd3775355d576f369be0cf87d107666b45bb31
7
- data.tar.gz: 7fd25a3ce3d8f3fd76965edb81bb265b55fa966d21ec30926a96525f0ebaca4b2e222ad2a577ee45a488a041cd4186c0b678f6ec9806f21ab541ed8a640a3ce4
6
+ metadata.gz: c71a4a8b2683a0966ace18a57345dc31d3a9eb4f17c8f4446caa25b89e3bef0b2116236ca53bdfa1f047520ad73f5288f24d5c1d8aec58df5a06922a8278d7d5
7
+ data.tar.gz: 5cbc810dde7b8a3019b964ed8a7d2c0a7a5e379599b492b2f44abecd6818bab5a23f660ea0e25069c53854142f7ca50060b869f6f6be97c8c46996e990f9387c
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- Qƈ��c�0� �#��սI���s����K ꧧ�%6�h�c�T+7�-ѳ�9��J�7-j˧T
2
- ��ީ]a���u'JnV�p�3��
1
+ Ƭ%��1��%��'��~���R8eIU�������OO)�^��>���/أB}���]��/���nE�ͬ���2�����%�#48��Y��E"]��ۏc�?��Z
2
+ l���y�����0!��LCd�� (�׼yL��OP�O����*��}�_+���O<����ω |��a�x��s�<.끼�F�d��Ӱ�{XoQl�?n�13 9Pl5 �
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dx_sliml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file