ox 1.6.5 → 1.6.6

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.

Files changed (4) hide show
  1. data/README.md +2 -2
  2. data/ext/ox/sax.c +3 -2
  3. data/lib/ox/version.rb +1 -1
  4. metadata +2 -2
data/README.md CHANGED
@@ -34,9 +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.6.5
37
+ ### Release 1.6.6
38
38
 
39
- - Special character handling now supports UCS-2 and UCS-4 Unicode characters as well as UTF-8 characters.
39
+ - A SAX parser encoding bug discovered by bughit was fixed.
40
40
 
41
41
  ## <a name="description">Description</a>
42
42
 
data/ext/ox/sax.c CHANGED
@@ -756,11 +756,12 @@ read_attrs(SaxDrive dr, char c, char termc, char term2, int is_xml) {
756
756
  if (0 != read_quoted_value(dr)) {
757
757
  return -1;
758
758
  }
759
- #if HAS_ENCODING_SUPPORT
760
759
  if (is_encoding) {
760
+ #if HAS_ENCODING_SUPPORT
761
761
  dr->encoding = rb_enc_find(dr->str);
762
- }
763
762
  #endif
763
+ is_encoding = 0;
764
+ }
764
765
  if (dr->has_attr_value) {
765
766
  VALUE args[2];
766
767
 
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.6.5'
4
+ VERSION = '1.6.6'
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.6.5
4
+ version: 1.6.6
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: 2012-10-25 00:00:00.000000000 Z
12
+ date: 2012-11-02 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