ox 2.4.11 → 2.4.12
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ox might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/ox/builder.c +6 -3
- data/lib/ox/sax.rb +1 -0
- data/lib/ox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3e52f21c5d0c93066ee3ef6df56da85ea9a292c
|
4
|
+
data.tar.gz: 4f1172ee0271140ac82efe30b725d59c127f2d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0041f24b54d71b7b3b27b1586268c01e244edc869ba9ada9ab86b16e663b989bc6748c8072e657b40afec4978e26b491774c18d0de5027ec54dd0c7f0ea64fe7
|
7
|
+
data.tar.gz: cf6950e3f7c792ca02e08dbd5d627eb47b9d46fe43c68cc8ceb9c71de761c9d273fd545dea858be17083007a3ee315af0f492bad50dc648f999cc5047a6b94a1
|
data/ext/ox/builder.c
CHANGED
@@ -39,6 +39,7 @@ static const char indent_spaces[] = "\n
|
|
39
39
|
|
40
40
|
// The : character is equivalent to 10. Used for replacement characters up to 10
|
41
41
|
// characters long such as ''.
|
42
|
+
#if 0
|
42
43
|
static const char xml_friendly_chars[257] = "\
|
43
44
|
:::::::::11::1::::::::::::::::::\
|
44
45
|
11611156111111111111111111114141\
|
@@ -58,6 +59,7 @@ static const char xml_quote_chars[257] = "\
|
|
58
59
|
11111111111111111111111111111111\
|
59
60
|
11111111111111111111111111111111\
|
60
61
|
11111111111111111111111111111111";
|
62
|
+
#endif
|
61
63
|
|
62
64
|
static const char xml_element_chars[257] = "\
|
63
65
|
:::::::::11::1::::::::::::::::::\
|
@@ -136,8 +138,8 @@ append_string(Builder b, const char *str, size_t size, const char *table) {
|
|
136
138
|
b->pos++;
|
137
139
|
*bp++ = *str;
|
138
140
|
} else {
|
139
|
-
b->pos += fcnt;
|
140
|
-
b->col += fcnt;
|
141
|
+
b->pos += fcnt - '0';
|
142
|
+
b->col += fcnt - '0';
|
141
143
|
if (buf < bp) {
|
142
144
|
buf_append_string(&b->buf, buf, bp - buf);
|
143
145
|
bp = buf;
|
@@ -220,7 +222,8 @@ append_attr(VALUE key, VALUE value, Builder b) {
|
|
220
222
|
b->col += 2;
|
221
223
|
b->pos += 2;
|
222
224
|
Check_Type(value, T_STRING);
|
223
|
-
append_string(b, StringValuePtr(value), (int)RSTRING_LEN(value), xml_quote_chars);
|
225
|
+
//append_string(b, StringValuePtr(value), (int)RSTRING_LEN(value), xml_quote_chars);
|
226
|
+
append_string(b, StringValuePtr(value), (int)RSTRING_LEN(value), xml_element_chars);
|
224
227
|
buf_append(&b->buf, '"');
|
225
228
|
b->col++;
|
226
229
|
b->pos++;
|
data/lib/ox/sax.rb
CHANGED
data/lib/ox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "A fast XML parser and object serializer that uses only standard C lib.\n
|
14
14
|
\ \nOptimized XML (Ox), as the name implies was written to provide speed
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project: ox
|
100
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.6.8
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: A fast XML parser and object serializer.
|