rexslt 0.5.3 → 0.5.5

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: cd815219f497f3d3f80343f8aae45da3cc9fc9d7
4
- data.tar.gz: 2334c3b2c6278f2d07030c8ccd15201f2ccf0c75
3
+ metadata.gz: f6d9715ed9e1468bcd70ac6fcc1ea1c749259f72
4
+ data.tar.gz: 456544e887192cd991fde59554f33def48bd838d
5
5
  SHA512:
6
- metadata.gz: bcb7449c9021bca9389e1992c82d7cc95fb188c92b3eb583fe72fd0949789409cfc1a7f5b9eb219b93b84accfcb59c3414ca9d0be7cab0c0472c0dc623cf9b9a
7
- data.tar.gz: 46be2a500aa184f343c275bc69f4148cb25d5b9627014a0779e8f4241738d3b9b7fd795f41047a5db3dcc1a5a63920e5223af804b72fb4c383c0910b0489c35c
6
+ metadata.gz: 26eae986bf010a3f91ce24dbf9b6464d800b1484d5bb24d8bd0b47d51494d037ce0499f7d2aeff2889115d4798382d46241ac1dbdd92f3e22598fb6cec7c47ef
7
+ data.tar.gz: 21aff110c8b62b9a993bf5d235989138a725e1689cdb981f5bdcf2338b59ebd1a765f95794fe7e37d0ec65d5dd0ba6fefdf05f98dbd98c604d0c717844dee920
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexslt.rb CHANGED
@@ -391,7 +391,11 @@ class Rexslt
391
391
  if v[/{/] then
392
392
 
393
393
  v.gsub!(/(\{[^\}]+\})/) do |x2|
394
- element.element(x2[/\{([^\}]+)\}/,1]).clone
394
+
395
+ xpath = x2[/\{([^\}]+)\}/,1]
396
+ text = element.text(xpath)
397
+ text ? text.clone : ''
398
+
395
399
  end
396
400
 
397
401
  end
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.3
4
+ version: 0.5.5
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-27 00:00:00.000000000 Z
34
+ date: 2016-03-28 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rxfhelper
metadata.gz.sig CHANGED
Binary file