ox 1.9.1 → 1.9.2
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 +7 -0
- data/README.md +2 -13
- data/ext/ox/cache.c +1 -1
- data/ext/ox/cache_test.c +9 -0
- data/ext/ox/extconf.rb +1 -1
- data/ext/ox/sax.c +2 -2
- data/lib/ox/version.rb +1 -1
- metadata +12 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: be07680b4d502d3d808f0a3b7ad63e3a66685211
|
4
|
+
data.tar.gz: d83f1a8a18ab5f30c9aceb1d46aea0e51dc30298
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 63813c9d94cb42e86b47c57b66f6d0fc5b0d6150717b85cc43b1021b4cfa1729602f2d0f7b085767ddf28a609bd8ec182a5edd3a5090819cf85da3e46d518a7b
|
7
|
+
data.tar.gz: 82374d21d291afbc5222b6458f7ef1fce2f5e661c28a89a0b1633c9ea93e4659fc7100809722aa3c4bacc0a58387a5edc4481bd8fde6cddac21d31281ab0a625
|
data/README.md
CHANGED
@@ -34,20 +34,9 @@ A fast XML parser and Object marshaller as a Ruby gem.
|
|
34
34
|
|
35
35
|
## <a name="release">Release Notes</a>
|
36
36
|
|
37
|
-
### Release 1.9.
|
37
|
+
### Release 1.9.2
|
38
38
|
|
39
|
-
- Fixed
|
40
|
-
|
41
|
-
### Release 1.9.0
|
42
|
-
|
43
|
-
- Added a new feature to Ox::Element.locate() that allows filtering by node Class.
|
44
|
-
|
45
|
-
- Added feature to the Sax parser. If @line is defined in the handler it is set to the line number of the xml file
|
46
|
-
before making callbacks. The same goes for @column but it is updated with the column.
|
47
|
-
|
48
|
-
### Release 1.8.9
|
49
|
-
|
50
|
-
- Fixed bug in element start and end name checking.
|
39
|
+
- Fixed bug in the sax element name check that cause a memory write error.
|
51
40
|
|
52
41
|
## <a name="description">Description</a>
|
53
42
|
|
data/ext/ox/cache.c
CHANGED
@@ -50,7 +50,7 @@ static void slot_print(Cache cache, unsigned int depth);
|
|
50
50
|
|
51
51
|
static char* form_key(const char *s) {
|
52
52
|
size_t len = strlen(s);
|
53
|
-
char *d = ALLOC_N(char, len);
|
53
|
+
char *d = ALLOC_N(char, len + 2);
|
54
54
|
|
55
55
|
*d = (255 <= len) ? 255 : len;
|
56
56
|
memcpy(d + 1, s, len + 1);
|
data/ext/ox/cache_test.c
CHANGED
@@ -31,6 +31,7 @@
|
|
31
31
|
#include "cache.h"
|
32
32
|
|
33
33
|
static const char *data[] = {
|
34
|
+
#if 1
|
34
35
|
"one",
|
35
36
|
"two",
|
36
37
|
"one",
|
@@ -38,6 +39,14 @@ static const char *data[] = {
|
|
38
39
|
"oney",
|
39
40
|
"one",
|
40
41
|
"tw",
|
42
|
+
"onexyzabcdefgh",
|
43
|
+
#else
|
44
|
+
"abc",
|
45
|
+
"abcd",
|
46
|
+
"ab",
|
47
|
+
"a",
|
48
|
+
"abcdefghijklmnop",
|
49
|
+
#endif
|
41
50
|
0
|
42
51
|
};
|
43
52
|
|
data/ext/ox/extconf.rb
CHANGED
@@ -42,7 +42,7 @@ if ['i386-darwin10.0.0', 'x86_64-darwin10.8.0'].include? RUBY_PLATFORM
|
|
42
42
|
elsif 'x86_64-linux' == RUBY_PLATFORM && '1.9.3' == RUBY_VERSION && '2011-10-30' == RUBY_RELEASE_DATE
|
43
43
|
begin
|
44
44
|
dflags['NEEDS_STPCPY'] = nil if `more /etc/issue`.include?('CentOS release 5.4')
|
45
|
-
rescue Exception
|
45
|
+
rescue Exception
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
data/ext/ox/sax.c
CHANGED
@@ -892,8 +892,8 @@ read_element(SaxDrive dr) {
|
|
892
892
|
}
|
893
893
|
line = dr->line;
|
894
894
|
col = dr->col;
|
895
|
-
// read_children reads up to the end of the terminating element
|
896
|
-
dr->col += dr->cur - dr->str;
|
895
|
+
// read_children reads up to the end of the terminating element name
|
896
|
+
dr->col += (uint32_t)(dr->cur - dr->str);
|
897
897
|
if (0 != ename && 0 != strcmp(ename, dr->str)) {
|
898
898
|
if (dr->has_line) {
|
899
899
|
rb_ivar_set(dr->handler, ox_at_line_id, INT2FIX(line));
|
data/lib/ox/version.rb
CHANGED
metadata
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
5
|
-
prerelease:
|
4
|
+
version: 1.9.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Peter Ohler
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-03-09 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
for Object\nserialization. "
|
13
|
+
description: "A fast XML parser and object serializer that uses only standard C lib.\n
|
14
|
+
\ \nOptimized XML (Ox), as the name implies was written to provide speed
|
15
|
+
optimized\nXML handling. It was designed to be an alternative to Nokogiri and other
|
16
|
+
Ruby\nXML parsers for generic XML parsing and as an alternative to Marshal for Object\nserialization. "
|
19
17
|
email: peter@ohler.com
|
20
18
|
executables: []
|
21
19
|
extensions:
|
@@ -56,6 +54,7 @@ files:
|
|
56
54
|
- README.md
|
57
55
|
homepage: http://www.ohler.com/ox
|
58
56
|
licenses: []
|
57
|
+
metadata: {}
|
59
58
|
post_install_message:
|
60
59
|
rdoc_options:
|
61
60
|
- --main
|
@@ -64,21 +63,20 @@ require_paths:
|
|
64
63
|
- lib
|
65
64
|
- ext
|
66
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
66
|
requirements:
|
69
|
-
- -
|
67
|
+
- - '>='
|
70
68
|
- !ruby/object:Gem::Version
|
71
69
|
version: '0'
|
72
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
71
|
requirements:
|
75
|
-
- -
|
72
|
+
- - '>='
|
76
73
|
- !ruby/object:Gem::Version
|
77
74
|
version: '0'
|
78
75
|
requirements: []
|
79
76
|
rubyforge_project: ox
|
80
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.0.0
|
81
78
|
signing_key:
|
82
|
-
specification_version:
|
79
|
+
specification_version: 4
|
83
80
|
summary: A fast XML parser and object serializer.
|
84
81
|
test_files: []
|
82
|
+
has_rdoc: true
|