ox 2.8.3 → 2.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bf1d16f91469616bdbecb3d9b5a63cae12d2b92bf7abcafac9159f3525f464e
4
- data.tar.gz: 810e9202e1e726115b204145e00afe33f83870ddf6a72ec1f01cc0b62af7203d
3
+ metadata.gz: 2692a3ee9c693345cc57103c76621a299bfeab9cab5900f88c5b5f132b04fb1e
4
+ data.tar.gz: 17152570c95b478910eb791d85a68c70919a877a2ec84fc0c3a4d27ef02ada43
5
5
  SHA512:
6
- metadata.gz: 42526f5a26342762291351438ca9372f931b831aa99c304e963cce2fd81d4a5fe3d03a09277b7d1de2f479f719ebff456c105fd708391eddeea35969965ad060
7
- data.tar.gz: dfafe308bc9b25fa8005e56600ccdb630da0b008137baa2bc7efd0ada62a122a3acd386ac7587e95a624151ed933d19d508a59d8af1cfbb88e161357d5c9125f
6
+ metadata.gz: a52d48cf7884d97343ed5fb1a2be404b430b530dca159237acd410b58bd13bf55d5d7fe57032103d2dcd573a15d523874d57235002f6a26ebad0f68393c05e57
7
+ data.tar.gz: ae87c98eff8381aecd6dcf5d98a8c548b16495df184e38fef2d6683cd1f2d09fe09babce7f2806fea490670984c4c362796b7bd07dfeb311c2af791418b0416d
@@ -1,4 +1,8 @@
1
1
 
2
+ ## 2.8.4 - March 4, 2018
3
+
4
+ - Commented out debuf statement.
5
+
2
6
  ## 2.8.3 - March 3, 2018
3
7
 
4
8
  - Attribute values now escape < and > on dump.
@@ -0,0 +1,26 @@
1
+ /* encode.h
2
+ * Copyright (c) 2011, Peter Ohler
3
+ * All rights reserved.
4
+ */
5
+
6
+ #ifndef __OX_ENCODE_H__
7
+ #define __OX_ENCODE_H__
8
+
9
+ #include "ruby.h"
10
+ #if HAS_ENCODING_SUPPORT
11
+ #include "ruby/encoding.h"
12
+ #endif
13
+
14
+ static inline VALUE
15
+ ox_encode(VALUE rstr) {
16
+ #if HAS_ENCODING_SUPPORT
17
+ rb_enc_associate(rstr, ox_utf8_encoding);
18
+ #else
19
+ if (Qnil != ox_utf8_encoding) {
20
+ rstr = rb_funcall(ox_utf8_encoding, ox_iconv_id, 1, rstr);
21
+ }
22
+ #endif
23
+ return rstr;
24
+ }
25
+
26
+ #endif /* __OX_ENCODE_H__ */
@@ -44,7 +44,7 @@ extern int ox_sax_buf_read(Buf buf);
44
44
 
45
45
  static inline char
46
46
  buf_get(Buf buf) {
47
- printf("*** drive get from '%s' from start: %ld buf: %p from read_end: %ld\n", buf->tail, buf->tail - buf->head, buf->head, buf->read_end - buf->tail);
47
+ //printf("*** drive get from '%s' from start: %ld buf: %p from read_end: %ld\n", buf->tail, buf->tail - buf->head, buf->head, buf->read_end - buf->tail);
48
48
  if (buf->read_end <= buf->tail) {
49
49
  if (0 != ox_sax_buf_read(buf)) {
50
50
  return '\0';
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Ox
3
3
  # Current version of the module.
4
- VERSION = '2.8.3'
4
+ VERSION = '2.8.4'
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.8.3
4
+ version: 2.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ohler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-03 00:00:00.000000000 Z
11
+ date: 2018-03-04 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
@@ -35,6 +35,7 @@ files:
35
35
  - ext/ox/cache8.c
36
36
  - ext/ox/cache8.h
37
37
  - ext/ox/dump.c
38
+ - ext/ox/encode.h
38
39
  - ext/ox/err.c
39
40
  - ext/ox/err.h
40
41
  - ext/ox/extconf.rb