ox 1.8.8 → 1.8.9

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.

data/README.md CHANGED
@@ -34,17 +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.8.8
37
+ ### Release 1.8.9
38
38
 
39
- - Fixed bug in check for open and close element names matching.
40
-
41
- ### Release 1.8.7
42
-
43
- - Added a correct check for element open and close names.
44
-
45
- - Changed raised Exceptions to customer classes that inherit from StandardError.
46
-
47
- - Fixed a few minor bugs.
39
+ - Fixed bug in element start and end name checking.
48
40
 
49
41
  ## <a name="description">Description</a>
50
42
 
data/ext/ox/cache.c CHANGED
@@ -104,7 +104,7 @@ ox_cache_get(Cache cache, const char *key, VALUE **slot, char **keyp) {
104
104
  ox_cache_new(cp);
105
105
  (*cp)->key = cache->key;
106
106
  (*cp)->value = cache->value;
107
- orig->key = 0;
107
+ orig->key = form_key(key);
108
108
  orig->value = Qundef;
109
109
  }
110
110
  } else { /* not exact match but on the path */
@@ -130,7 +130,13 @@ ox_cache_get(Cache cache, const char *key, VALUE **slot, char **keyp) {
130
130
  }
131
131
  *slot = &cache->value;
132
132
  if (0 != keyp) {
133
- *keyp = cache->key + 1;
133
+ if (0 == cache->key) {
134
+ // TBD bug somewhere
135
+ printf("*** Error: failed to set the key for %s\n", key);
136
+ *keyp = 0;
137
+ } else {
138
+ *keyp = cache->key + 1;
139
+ }
134
140
  }
135
141
  return cache->value;
136
142
  }
data/ext/ox/cache_test.c CHANGED
@@ -37,6 +37,7 @@ static const char *data[] = {
37
37
  "onex",
38
38
  "oney",
39
39
  "one",
40
+ "tw",
40
41
  0
41
42
  };
42
43
 
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 = '1.8.8'
4
+ VERSION = '1.8.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.8
4
+ version: 1.8.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-17 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! "A fast XML parser and object serializer that uses only standard C
15
15
  lib.\n \nOptimized XML (Ox), as the name implies was written to provide
@@ -82,4 +82,3 @@ signing_key:
82
82
  specification_version: 3
83
83
  summary: A fast XML parser and object serializer.
84
84
  test_files: []
85
- has_rdoc: true