rexslt 0.5.6 → 0.5.7

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: 8be29888510a0ff64775f8f0fd548fc7315aef5e
4
- data.tar.gz: 92cf22e38e42cb3459e929d69f3898d46de837c0
3
+ metadata.gz: 8ca99a0049f03a0bf76ba1bc87348498c01cb69d
4
+ data.tar.gz: 153e06d4ce746fc56efc35a2f20c3277619f7338
5
5
  SHA512:
6
- metadata.gz: bab9db0e8126b174fa2c1ec551e62a62b68af36dbc738bde46d9838149a09907b7b57da17e4b270a0e4c92b41953f349b491630754824ec2172b80b1429ca613
7
- data.tar.gz: 13271f23faf47d88fae650ff7606240e881982f8da0e3d6e00f189e0b1178e8c11827f12e0d92c94dd4d66b5227955abc6b4686389198142747f851a2e6270b0
6
+ metadata.gz: 67e2c9afadbc3b943cf80bfbe207e3e9b6a3f85ea456fa069fd8e9b94ab0bb46da06a901f357912bf85e6e10227de909b12614f153ed46f0db74aad58d3f722f
7
+ data.tar.gz: ae950ac82c2fb673578165d04e1d3496c10e72a71d268f6a4b49032dfa0dc3c2818694c4c0119d5198180b05bcac2f85cb73e46ed6a974366d46e11156e51006
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexslt.rb CHANGED
@@ -350,9 +350,7 @@ class Rexslt
350
350
  }
351
351
 
352
352
  template_node.children.each_with_index do |x,j|
353
-
354
353
  method(procs[x.class.to_s]).call(element, x, doc_element, indent, i)
355
-
356
354
  end
357
355
 
358
356
  end
@@ -395,12 +393,14 @@ class Rexslt
395
393
 
396
394
  new_element = x.clone
397
395
 
398
- new_element.attributes.each do |k,v|
396
+ new_element.attributes.each do |k,raw_v|
399
397
 
398
+ v = raw_v.is_a?(Array) ? raw_v.join(' ') : raw_v
399
+
400
400
  if v[/{/] then
401
401
 
402
402
  v.gsub!(/(\{[^\}]+\})/) do |x2|
403
-
403
+
404
404
  xpath = x2[/\{([^\}]+)\}/,1]
405
405
  text = element.text(xpath)
406
406
  text ? text.clone : ''
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.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  38j2+6ULVWalsVein3whb7qB6IOvxoSqjz6n7jAKFGHovoXPUqpv5y5Yor23rTrn
32
32
  0YwisIc3UkL30g==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-03-28 00:00:00.000000000 Z
34
+ date: 2016-03-29 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rxfhelper
metadata.gz.sig CHANGED
Binary file