ox 1.3.0 → 1.3.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.

Files changed (3) hide show
  1. data/ext/ox/sax.c +4 -0
  2. data/lib/ox/version.rb +1 -1
  3. metadata +2 -2
data/ext/ox/sax.c CHANGED
@@ -63,7 +63,9 @@ typedef struct _SaxDrive {
63
63
  int has_start_element;
64
64
  int has_end_element;
65
65
  int has_error;
66
+ #ifdef HAVE_RUBY_ENCODING_H
66
67
  rb_encoding *encoding;
68
+ #endif
67
69
  } *SaxDrive;
68
70
 
69
71
  static void sax_drive_init(SaxDrive dr, VALUE handler, VALUE io);
@@ -204,7 +206,9 @@ sax_drive_init(SaxDrive dr, VALUE handler, VALUE io) {
204
206
  dr->has_start_element = rb_respond_to(handler, start_element_id);
205
207
  dr->has_end_element = rb_respond_to(handler, end_element_id);
206
208
  dr->has_error = rb_respond_to(handler, error_id);
209
+ #ifdef HAVE_RUBY_ENCODING_H
207
210
  dr->encoding = 0;
211
+ #endif
208
212
  }
209
213
 
210
214
  static void
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.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 0
9
- version: 1.3.0
8
+ - 1
9
+ version: 1.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Peter Ohler