dynarex 1.2.26 → 1.2.27

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: b573cdd1290583d427cec4101c8f0e1ec2985eb5
4
- data.tar.gz: 79f8dd40f460468685a95ed9331b35a32e9101a1
3
+ metadata.gz: af8958c780bbbef841f04e8965372dc34d0c29af
4
+ data.tar.gz: bc48951dadb1b96090a60bb2655f6d1ebc7f57df
5
5
  SHA512:
6
- metadata.gz: 70a2ddcbf9eebc56a825328fd75122f3183283c21270d8eda8bb5f4c5aca5df3148c3c4ac8b2442f6a4969d506ebb60cdd74f129520c8b81b394483b1ce84669
7
- data.tar.gz: 0a272a23a7a3a8f4141e261b84414527eadffae578d4a9bd1e89e306b8b5ba740ac7845d64c0eca1fb26b9705762356f572acda2f6544b6d13cb6d5986bcc502
6
+ metadata.gz: 3e7389b1af0c11bcde4e55b526caa3b95e0d95ac0ad3b80a14a73d18a1c1361527286fa8d8d666b63291d8d1e657fbd9a16e6c0c38c09ca506f459c44dd95c5d
7
+ data.tar.gz: 3a7bb836d926972d3b909276f90166a8b7183fbc29391e9a6bdbb3ded42627b165001cadb866b27767c0283a4e48fbb7fdd01397ec1dcf2f6afa4ce3ec9a38ee
@@ -1 +1,3 @@
1
- R�ݓMs��B.����\�͙��������}��b(����AXZ���|���?�Y�8�����>�?qkt �&(--��f��[��2$��]J�����8*�F_SF�A��s�,�JZ�HPj��`���3��R�..�D����&agG��1����}��`�6lJ�SSߖ�vsEP�h ��\|�'���z5�h"%�/�B���
1
+ kpG�-���`Y�S䛯h;��w�ٟGJ����;*����j0FO��/��oR4703���:��
2
+ �k>`��p�?ig'�*��]Q�)������?�N�h%
3
+ ��s��
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- TG��3 P;���T��82Om<���,����1���a� �(F��*���{�@0
2
- ��qT���!������x[D/�����HP�ԥ�F�Ў���}�����l#��@�H�� w+2�ek����s��!����M`��\j����`T�z�kǨ�γs2�0���1A�e�c""��@]�P�[�0��� Ly/�dZ���휢i�k>���Ns��"��:Y���iL��M޻��vSz�[v�k�52
1
+ w���I2#i1v������2!����WR��C}Q�?�D���:���B����y���l]%F�bpИ"p�I��8�)Iw̯g�U^b:��E� ks���҉9�l�'S)u_z���iPg�1LUp��w��%)���� /����w,X53y}0X����%-]
@@ -13,6 +13,7 @@ require 'recordx'
13
13
  require 'rxraw-lineparser'
14
14
  require 'yaml'
15
15
  require 'rowx'
16
+ require 'nokogiri'
16
17
 
17
18
  class Dynarex
18
19
 
@@ -142,16 +143,19 @@ EOF
142
143
 
143
144
 
144
145
  #format_mask = XPath.first(@doc.root, 'summary/format_mask/text()').to_s
145
- format_mask = @doc.root.element('summary/format_mask/text()')
146
- xslt_format = format_mask.to_s.gsub(/\s(?=\[!\w+\])/,'<xsl:text> </xsl:text>').gsub(/\[!(\w+)\]/, '<xsl:value-of select="\1"/>')
146
+ #format_mask = @doc.root.element('summary/format_mask/text()')
147
+ format_mask = self.format_mask
148
+ format_mask.gsub!(/\[[^!\]]+\]/) {|x| x[1] }
149
+ xslt_format = format_mask.gsub(/\s(?=\[!\w+\])/,'<xsl:text> </xsl:text>')
150
+ .gsub(/\[!(\w+)\]/, '<xsl:value-of select="\1"/>')
147
151
 
148
152
  xsl_buffer.sub!(/\[!regex_values\]/, xslt_format)
149
153
 
150
- #jr250711 xslt = Nokogiri::XSLT(xsl_buffer)
151
- #jr250711 out = xslt.transform(Nokogiri::XML(@doc.to_s))
154
+ xslt = Nokogiri::XSLT(xsl_buffer)
155
+ out = xslt.transform(Nokogiri::XML(@doc.to_s))
152
156
  #jr250811 puts 'xsl_buffer: ' + xsl_buffer
153
157
  #jr250811 puts 'doc_to_s: ' + @doc.to_s
154
- #jr260711 out.text
158
+ out.text
155
159
  #jr231211 Rexslt.new(xsl_buffer, @doc.to_s).to_s
156
160
 
157
161
  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.2.26
4
+ version: 1.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  kUea9jZD+xTq1Js9t2BHCz3Ev/sgS7CaijrbQetbNwzasFGHRd30xBEwd4zANQOp
30
30
  i0OBH0e4iIMkv+Q+PYlNRnlpQogsAdTs
31
31
  -----END CERTIFICATE-----
32
- date: 2013-08-01 00:00:00.000000000 Z
32
+ date: 2013-08-02 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rexle
@@ -157,6 +157,20 @@ dependencies:
157
157
  - - '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
+ - !ruby/object:Gem::Dependency
161
+ name: nokogiri
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
160
174
  description:
161
175
  email: james@r0bertson.co.uk
162
176
  executables: []
metadata.gz.sig CHANGED
Binary file