rexslt 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rexslt.rb +22 -14
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 692af4dea356de7239c406eb323d954dca996218
|
4
|
+
data.tar.gz: b549f3092fbfa174b2e25041afe3cb7d05210b3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a47773c8f5ebe185148a60f40cb10d359a13aa7c40fb3a9d9015e80a0fd8ddcc548e721cbfec97ca7d156373dd13f88bc72c05294dcb95f918a9e95d5ff86e76
|
7
|
+
data.tar.gz: 7d2ca768f79b923bc80788984225086e80ff3b7442a3706ea0608001cfb84ea41dc412a5d269b81551349ccd2110f0d32fc1f0b220d0d59a710ffda248bdd83b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexslt.rb
CHANGED
@@ -162,10 +162,12 @@ class Rexslt
|
|
162
162
|
end
|
163
163
|
|
164
164
|
def xsl_attribute(element, x, doc_element, indent, i)
|
165
|
-
|
165
|
+
|
166
166
|
name = x.attributes[:name]
|
167
167
|
value = x.value
|
168
|
-
|
168
|
+
|
169
|
+
value = value_of(x.element('xsl:value-of'), element) unless value
|
170
|
+
doc_element.add_attribute(name, value)
|
169
171
|
end
|
170
172
|
|
171
173
|
def xsl_choose(element, x, doc_element, indent, i)
|
@@ -437,6 +439,22 @@ class Rexslt
|
|
437
439
|
|
438
440
|
end
|
439
441
|
|
442
|
+
def value_of(x, element)
|
443
|
+
|
444
|
+
field = x.attributes[:select]
|
445
|
+
|
446
|
+
o = case field
|
447
|
+
when '.'
|
448
|
+
element.value
|
449
|
+
when /^\$/
|
450
|
+
@param[field[/^\$(.*)/,1]]
|
451
|
+
else
|
452
|
+
ee = element.text(field)
|
453
|
+
ee
|
454
|
+
end
|
455
|
+
|
456
|
+
end
|
457
|
+
|
440
458
|
def xsl_output()
|
441
459
|
|
442
460
|
end
|
@@ -457,21 +475,11 @@ class Rexslt
|
|
457
475
|
|
458
476
|
def xsl_value_of(element, x, doc_element, indent, i)
|
459
477
|
|
460
|
-
|
461
|
-
|
462
|
-
o = case field
|
463
|
-
when '.'
|
464
|
-
element.value
|
465
|
-
when /^\$/
|
466
|
-
@param[field[/^\$(.*)/,1]]
|
467
|
-
else
|
468
|
-
ee = element.text(field)
|
469
|
-
ee
|
470
|
-
end
|
478
|
+
s = value_of(x, element)
|
471
479
|
|
472
480
|
#jr030316 doc_element.add_element o.to_s #unless o.to_s.empty?
|
473
481
|
|
474
|
-
doc_element.add_text
|
482
|
+
doc_element.add_text s
|
475
483
|
|
476
484
|
doc_element
|
477
485
|
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.
|
4
|
+
version: 0.5.12
|
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-04-
|
34
|
+
date: 2016-04-03 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rxfhelper
|
@@ -62,7 +62,7 @@ dependencies:
|
|
62
62
|
version: '1.3'
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 1.3.
|
65
|
+
version: 1.3.16
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -72,7 +72,7 @@ dependencies:
|
|
72
72
|
version: '1.3'
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.3.
|
75
|
+
version: 1.3.16
|
76
76
|
description:
|
77
77
|
email: james@r0bertson.co.uk
|
78
78
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|