ox 2.1.0 → 2.1.1
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.
Potentially problematic release.
This version of ox might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/ext/ox/ox.c +13 -0
- data/lib/ox/sax.rb +2 -2
- data/lib/ox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dfc6cdcfabac2cccd4fee65e58d77bd341d0dad
|
4
|
+
data.tar.gz: 6550189e77b12edc3fa82dc70484f629c0d33961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ea6d87ceb49d76762801b680f4b75f5715ed5fe1ad3c65aa39023cc4e64ac05b5928ed0c06770ddc32b754d797032979fc5df8ddeca2f6274d77f5d79a04ce2
|
7
|
+
data.tar.gz: ff66b7c9f54457f89b5287dfe78fa2cfdf4d1c12bff7c67f3932e30323f6066f3bc98d1a2ce15338186e24258a4eb981b6b8d1a14fffbaedb10d467378f9e7a6
|
data/README.md
CHANGED
@@ -34,6 +34,10 @@ A fast XML parser and Object marshaller as a Ruby gem.
|
|
34
34
|
|
35
35
|
## Release Notes
|
36
36
|
|
37
|
+
### Release 2.1.1
|
38
|
+
|
39
|
+
- Worked around a module reset and clear that occurs on some Rubies.
|
40
|
+
|
37
41
|
### Release 2.1.0
|
38
42
|
|
39
43
|
- Thanks to jfontan Ox now includes support for XMLRPC.
|
data/ext/ox/ox.c
CHANGED
@@ -919,6 +919,19 @@ void Init_ox() {
|
|
919
919
|
ox_tv_usec_id = rb_intern("tv_usec");
|
920
920
|
ox_value_id = rb_intern("value");
|
921
921
|
|
922
|
+
rb_require("ox/version");
|
923
|
+
rb_require("ox/error");
|
924
|
+
rb_require("ox/hasattrs");
|
925
|
+
rb_require("ox/node");
|
926
|
+
rb_require("ox/comment");
|
927
|
+
rb_require("ox/instruct");
|
928
|
+
rb_require("ox/cdata");
|
929
|
+
rb_require("ox/doctype");
|
930
|
+
rb_require("ox/element");
|
931
|
+
rb_require("ox/document");
|
932
|
+
rb_require("ox/bag");
|
933
|
+
rb_require("ox/sax");
|
934
|
+
|
922
935
|
ox_time_class = rb_const_get(rb_cObject, rb_intern("Time"));
|
923
936
|
ox_date_class = rb_const_get(rb_cObject, rb_intern("Date"));
|
924
937
|
ox_parse_error_class = rb_const_get_at(Ox, rb_intern("ParseError"));
|
data/lib/ox/sax.rb
CHANGED
@@ -12,14 +12,14 @@ module Ox
|
|
12
12
|
# @element_name = []
|
13
13
|
# end
|
14
14
|
#
|
15
|
-
# def start_element(name
|
15
|
+
# def start_element(name)
|
16
16
|
# @element_names << name
|
17
17
|
# end
|
18
18
|
# end
|
19
19
|
#
|
20
20
|
# any = MySax.new()
|
21
21
|
# File.open('any.xml', 'r') do |f|
|
22
|
-
#
|
22
|
+
# Ox.sax_parse(any, f)
|
23
23
|
# end
|
24
24
|
#
|
25
25
|
# To make the desired methods active while parsing the desired method should
|
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.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-12 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
|