rexslt 0.5.10 → 0.5.11

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: a33893806342b2a7a9d034f08fed41b7c39d44e9
4
- data.tar.gz: 4eedf31ade9daef05b50e7cbe3ba870186ee5865
3
+ metadata.gz: 7b5a178a90b731f56d261d03532b4871580ea9ec
4
+ data.tar.gz: 1d880d68ab9dfaa3289ef679e9998309eb96b6c0
5
5
  SHA512:
6
- metadata.gz: 4c2776e2e4e9773fc000e8284303868e52e1114d7056664126a976e7af570ca2d6b5b859965f5951fb0c8ad86df678e9d3493cab9ae2f12dbf9a7005c5f9540b
7
- data.tar.gz: 266a5221da2e4fd4558acfc96b9a1e5d37ddd046e0d5844b494ee90bb1b4e2fb6f4749600179a111570329455f863dff406492d07a95bea130b835c6b8659671
6
+ metadata.gz: 8d7605ab12d04e030c3de3e7f4e1deb93107e1da38e6fe3dbce8eae03f7e7e478d31230f134b0c34fcb809f9f8449b1d7acebc0a0cde23c4e5fb4787736c1c76
7
+ data.tar.gz: 4406078c37739114adcad6b7072fb6a5bc6f3a2c1e2c4f3299b377b75b562a5a6036e134022794b12c83d08bad5aa2902d82206e77ed30cdcd108c96c5debdc3
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- E�[�(^�S�^�w���F�/c:<�y�A�FV��r8��9JyoԠI�>i
2
- {��T] =���,�*��r����0��n��ך�Q�s� GPn��6���f����u`�*x
3
- ��ƹS�� y��<OO�x�7�5��*����i��<5 03�Ǻ$(�����E�̪�n�"�}{*��J#A ���s%AKm�
1
+ 6�/ɰ�/,�� ��|�l
2
+ ���A��ގ�"De����sV0�s&�yVd����+�MQ<k�;u�|��fOg1��z��x�9x�5x9�q��xV ��\��6U~H�N�Ń��i�0
data.tar.gz.sig CHANGED
Binary file
data/lib/rexslt.rb CHANGED
@@ -371,7 +371,7 @@ class Rexslt
371
371
  end
372
372
 
373
373
  def read_raw_element(element, x, doc_element, indent, j)
374
-
374
+
375
375
  method_name = x.name.gsub(/[:-]/,'_').to_sym
376
376
 
377
377
  if @xsl_methods.include? method_name then
@@ -388,26 +388,28 @@ class Rexslt
388
388
  la = x.name
389
389
  new_indent = indent + 1 if @indent == true
390
390
 
391
- if x.children.length > 0 then
391
+ new_element = x.clone
392
392
 
393
- new_element = x.clone
393
+ new_element.attributes.each do |k,raw_v|
394
394
 
395
- new_element.attributes.each do |k,raw_v|
396
-
397
- v = raw_v.is_a?(Array) ? raw_v.join(' ') : raw_v
398
-
399
- if v[/{/] then
395
+ v = raw_v.is_a?(Array) ? raw_v.join(' ') : raw_v
396
+
397
+ if v[/{/] then
398
+
399
+ v.gsub!(/(\{[^\}]+\})/) do |x2|
400
+
401
+ xpath = x2[/\{([^\}]+)\}/,1]
402
+ text = element.text(xpath)
403
+ text ? text.clone : ''
404
+
405
+ end
400
406
 
401
- v.gsub!(/(\{[^\}]+\})/) do |x2|
407
+ end
408
+ end
409
+
410
+ if x.children.length > 0 then
402
411
 
403
- xpath = x2[/\{([^\}]+)\}/,1]
404
- text = element.text(xpath)
405
- text ? text.clone : ''
406
-
407
- end
408
412
 
409
- end
410
- end
411
413
 
412
414
  indent_before(element, x, doc_element, new_indent, j) if @indent == true
413
415
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexslt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file