libxml-ruby 1.0.0-x86-mswin32-60 → 1.1.0-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,10 @@
1
+ == 1.1.0 / 2009-03-09 Charlie Savage
2
+
3
+ * Fix bug caused by the mark function being called on partially initialized
4
+ attributes.
5
+
6
+ * Revert back to libxml2's internal memory manager.
7
+
1
8
  == 1.0.0 / 2009-03-05 Charlie Savage
2
9
 
3
10
  * OS X (Charlie Savage). Update bindings to support the default installed
@@ -10,13 +10,14 @@ VALUE mLibXML;
10
10
 
11
11
  static void rxml_init_memory(void)
12
12
  {
13
+ /* Disable for now - broke attributes.
13
14
  xmlGcMemSetup(
14
15
  (xmlFreeFunc)ruby_xfree,
15
16
  (xmlMallocFunc)ruby_xmalloc,
16
17
  (xmlMallocFunc)ruby_xmalloc,
17
18
  (xmlReallocFunc)ruby_xrealloc,
18
19
  (xmlStrdupFunc)ruby_strdup
19
- );
20
+ );*/
20
21
  }
21
22
 
22
23
  #if defined(_WIN32)
@@ -38,6 +38,11 @@ void rxml_attr_free(xmlAttrPtr xattr)
38
38
 
39
39
  void rxml_attr_mark(xmlAttrPtr xattr)
40
40
  {
41
+ /* This can happen if Ruby does a GC run after creating the
42
+ new attribute but before initializing it. */
43
+ if (xattr == NULL)
44
+ return;
45
+
41
46
  if (xattr->_private == NULL)
42
47
  {
43
48
  rb_warning("XmlAttr is not bound! (%s:%d)", __FILE__, __LINE__);
@@ -1,9 +1,9 @@
1
1
  /* Don't nuke this block! It is used for automatically updating the
2
2
  * versions below. VERSION = string formatting, VERNUM = numbered
3
3
  * version for inline testing: increment both or none at all.*/
4
- #define RUBY_LIBXML_VERSION "1.0.0"
5
- #define RUBY_LIBXML_VERNUM 100
4
+ #define RUBY_LIBXML_VERSION "1.1.0"
5
+ #define RUBY_LIBXML_VERNUM 110
6
6
  #define RUBY_LIBXML_VER_MAJ 1
7
- #define RUBY_LIBXML_VER_MIN 0
7
+ #define RUBY_LIBXML_VER_MIN 1
8
8
  #define RUBY_LIBXML_VER_MIC 0
9
9
  #define RUBY_LIBXML_VER_PATCH 0
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libxml-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - Charlie Savage
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-07 00:00:00 -07:00
12
+ date: 2009-03-09 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15