nokogiri 1.11.4-java → 1.11.5-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e3a2cdc9b07cfdd30490d950efe48bc294958198379e3f130182bb61e1637a2
4
- data.tar.gz: 292ca4c1b1baa700d13b77c03f430797e789790f78e6a03710dcd8bdd8442121
3
+ metadata.gz: 359540eb42f3e46da5a14557c11873e1e4b6ddc82d472fe26f96f29ebe007be4
4
+ data.tar.gz: 2ca21fc10cc5e1063a0584e62359467c4875f133821b8377f92f23d183784033
5
5
  SHA512:
6
- metadata.gz: d5de2f3f28521c397b311670737631e7d2fc434734324f5f130e041c4a0f757856c3ef34ec2a6b1164886d775bd299e510ee1086907dd4a3cac9f26cbf2ce90e
7
- data.tar.gz: bf90019897092b1f8e1ffbb3a6f43e704da063614c88679c472cb958f48aad0e799b68237b7bb010e877d8e53bde67b8b179044a4a51bcbe1d9f711483786149
6
+ metadata.gz: 963b43a88afafb2d62023afed3269bf8b90ccfca08cb38b77b56bf9d6dc309de68c7310750817b0075690b44639535d0eafb4d480c463d1ecf58de22a62f4fcc
7
+ data.tar.gz: 170bcbdf0d6f12ad359e3aaf56fab9a06a5ef59a0ed165dc12b5d0faeee65f3df68f7ca640c264f698308172950182c894bb957fef0e548f8e2f713127e0a72b
@@ -191,7 +191,26 @@ Init_nokogiri()
191
191
  rb_const_set(mNokogiri, rb_intern("OTHER_LIBRARY_VERSIONS"), NOKOGIRI_STR_NEW2(NOKOGIRI_OTHER_LIBRARY_VERSIONS));
192
192
  #endif
193
193
 
194
+ #if defined(_WIN32) && !defined(NOKOGIRI_PACKAGED_LIBRARIES)
195
+ /*
196
+ * We choose *not* to do use Ruby's memory management functions with windows DLLs because of this
197
+ * issue in libxml 2.9.12:
198
+ *
199
+ * https://github.com/sparklemotion/nokogiri/issues/2241
200
+ *
201
+ * If the atexit() issue gets fixed in a future version of libxml2, then we may be able to skip
202
+ * this config only for the specific libxml2 versions 2.9.12.
203
+ *
204
+ * Alternatively, now that Ruby has a generational GC, it might be OK to let libxml2 use its
205
+ * default memory management functions (recall that this config was introduced to reduce memory
206
+ * bloat and allow Ruby to GC more often); but we should *really* test with production workloads
207
+ * before making that kind of a potentially-invasive change.
208
+ */
209
+ rb_const_set(mNokogiri, rb_intern("LIBXML_MEMORY_MANAGEMENT"), NOKOGIRI_STR_NEW2("default"));
210
+ #else
211
+ rb_const_set(mNokogiri, rb_intern("LIBXML_MEMORY_MANAGEMENT"), NOKOGIRI_STR_NEW2("ruby"));
194
212
  xmlMemSetup((xmlFreeFunc)ruby_xfree, (xmlMallocFunc)ruby_xmalloc, (xmlReallocFunc)ruby_xrealloc, ruby_strdup);
213
+ #endif
195
214
 
196
215
  xmlInitParser();
197
216
 
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Nokogiri
3
3
  # The version of Nokogiri you are using
4
- VERSION = "1.11.4"
4
+ VERSION = "1.11.5"
5
5
  end
@@ -137,6 +137,7 @@ module Nokogiri
137
137
  else
138
138
  libxml["source"] = "system"
139
139
  end
140
+ libxml["memory_management"] = Nokogiri::LIBXML_MEMORY_MANAGEMENT
140
141
  libxml["iconv_enabled"] = libxml2_has_iconv?
141
142
  libxml["compiled"] = compiled_libxml_version.to_s
142
143
  libxml["loaded"] = loaded_libxml_version.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.4
4
+ version: 1.11.5
5
5
  platform: java
6
6
  authors:
7
7
  - Mike Dalessio
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2021-05-14 00:00:00.000000000 Z
20
+ date: 2021-05-20 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  requirement: !ruby/object:Gem::Requirement