rexle 1.3.17 → 1.3.18
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rexle.rb +4 -2
- metadata +1 -1
- 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: c388744861327a4e1b475a849e11a5e6d1278cd3
|
4
|
+
data.tar.gz: dddffd0e5e39078fbd72275b14bab7eb113e3c8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f77c7a0d2e17c552d00e181b46afb0521dd612bb848971b270846ed07d9f99bcea894829f311e55983cfe87d43428728b51bb600e2e0b66f6104c8c84b9d9ee
|
7
|
+
data.tar.gz: e687444d7df8d3add3631d671e0559dbd7d5ac2747a28e4998bd1c08d47df3d43983d646d0e6041df2f9b4526720cced614391f4d8681c46e306423a91d3e8de
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle.rb
CHANGED
@@ -14,6 +14,8 @@ require 'backtrack-xpath'
|
|
14
14
|
|
15
15
|
# 04-Apr-2016: bug fix: modified the bug fix from the 15-Mar-2016 to
|
16
16
|
# validate on a function name only within the variable attr_search
|
17
|
+
# minor improvement: Added a new line character between
|
18
|
+
# XML processing instructions
|
17
19
|
# 28-Mar-2016: minor feature: the name of an attribute can now be
|
18
20
|
# passed into Rexle::Element#text
|
19
21
|
# 15-Mar-2016: bug fix: Reapplied a select case statement (which had
|
@@ -107,7 +109,7 @@ module XMLhelper
|
|
107
109
|
' ' + a.join(' '), ind, body, "\n", self.root.name]
|
108
110
|
|
109
111
|
if self.instructions and declaration then
|
110
|
-
processing_instructions("
|
112
|
+
processing_instructions("") + xml
|
111
113
|
else
|
112
114
|
xml
|
113
115
|
end
|
@@ -119,7 +121,7 @@ module XMLhelper
|
|
119
121
|
|
120
122
|
def processing_instructions(s='')
|
121
123
|
self.instructions.map do |instruction|
|
122
|
-
"<?%s
|
124
|
+
"<?%s?>\n" % instruction.join(' ')
|
123
125
|
end.join s
|
124
126
|
end
|
125
127
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|