ox 1.5.6 → 1.5.7

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
@@ -30,9 +30,9 @@ A fast XML parser and Object marshaller as a Ruby gem.
30
30
 
31
31
  ## <a name="release">Release Notes</a>
32
32
 
33
- ### Release 1.5.6
33
+ ### Release 1.5.7
34
34
 
35
- - Made compatible with 2.0dev
35
+ - Made compatible with OS X 10.6.8 native Ruby 1.9.1.
36
36
 
37
37
  ## <a name="description">Description</a>
38
38
 
data/ext/ox/extconf.rb CHANGED
@@ -26,6 +26,17 @@ dflags = {
26
26
  'HAS_TOP_LEVEL_ST_H' => ('ree' == type || ('ruby' == type && '1' == version[0] && '8' == version[1])) ? 1 : 0,
27
27
  }
28
28
 
29
+ if 'i386-darwin10.0.0' == RUBY_PLATFORM
30
+ dflags['NEEDS_STPCPY'] = nil
31
+
32
+ dflags['HAS_IVAR_HELPERS'] = 0 if ('ruby' == type && '1.9.1' == RUBY_VERSION)
33
+ elsif 'x86_64-linux' == RUBY_PLATFORM && '1.9.3' == RUBY_VERSION && '2011-10-30' == RUBY_RELEASE_DATE
34
+ begin
35
+ dflags['NEEDS_STPCPY'] = nil if `more /etc/issue`.include?('CentOS release 5.4')
36
+ rescue Exception => e
37
+ end
38
+ end
39
+
29
40
  dflags.each do |k,v|
30
41
  if v.nil?
31
42
  $CPPFLAGS += " -D#{k}"
data/ext/ox/ox.c CHANGED
@@ -441,7 +441,7 @@ load_str(int argc, VALUE *argv, VALUE self) {
441
441
  return obj;
442
442
  }
443
443
 
444
- /* call-seq: load_file(file_path, xml, options) => Ox::Document or Ox::Element or Object
444
+ /* call-seq: load_file(file_path, options) => Ox::Document or Ox::Element or Object
445
445
  *
446
446
  * Parses and XML document from a file into an Ox::Document, or Ox::Element,
447
447
  * or Object depending on the options. Raises an exception if the XML is
data/ext/ox/sax.c CHANGED
@@ -104,6 +104,19 @@ static int read_from_str(SaxDrive dr);
104
104
 
105
105
  static VALUE sax_value_class;
106
106
 
107
+ // This is only for CentOS 5.4 with Ruby 1.9.3-p0 and for OS X 10.6.
108
+ #ifdef NEEDS_STPCPY
109
+ char *stpncpy(char *dest, const char *src, size_t n) {
110
+ size_t cnt = strlen(src) + 1;
111
+
112
+ if (n < cnt) {
113
+ cnt = n;
114
+ }
115
+ strncpy(dest, src, cnt);
116
+
117
+ return dest + cnt - 1;
118
+ }
119
+ #endif
107
120
 
108
121
  static inline char
109
122
  sax_drive_get(SaxDrive dr) {
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.5.6'
4
+ VERSION = '1.5.7'
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.5.6
4
+ version: 1.5.7
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-05-10 00:00:00.000000000 Z
12
+ date: 2012-05-13 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
@@ -80,3 +80,4 @@ signing_key:
80
80
  specification_version: 3
81
81
  summary: A fast XML parser and object serializer.
82
82
  test_files: []
83
+ has_rdoc: true