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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ef3dbf669a441dbf51b4ada1d623d7ec1415635
4
- data.tar.gz: 3506603ae57a7f269f0768ce73fd9ce85d3f05d9
3
+ metadata.gz: e3e52f21c5d0c93066ee3ef6df56da85ea9a292c
4
+ data.tar.gz: 4f1172ee0271140ac82efe30b725d59c127f2d51
5
5
  SHA512:
6
- metadata.gz: a94260a278ae05c25fadb1c1d8e318caf54775eb475e58b7377b939f48870156936a0ed18c81d2e9d46f81df7aaeeaa387f06156b31b4a4b5f4cf5fab38d8e07
7
- data.tar.gz: 2b674e07e92d615313da5a46a319c8d905447795e3d623b3286a6bff0cccf8997bfdd56b02bd82e42fc0209032d1d6854436f07da6954a0dee3e1218f71c5db8
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
@@ -46,6 +46,7 @@ module Ox
46
46
  # def value(value); end
47
47
  # def start_element(name); end
48
48
  # def end_element(name); end
49
+ # def error(message, line, column); end
49
50
  # def abort(name); end
50
51
  #
51
52
  # Initializing _line_ attribute in the initializer will cause that variable to
data/lib/ox/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Ox
3
3
  # Current version of the module.
4
- VERSION = '2.4.11'
4
+ VERSION = '2.4.12'
5
5
  end
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.11
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-03-19 00:00:00.000000000 Z
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.5.1
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.