nokogiri 1.11.5-x86-mingw32 → 1.11.6-x86-mingw32

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: 2bc20245d3bbab39ba2fdc74dfca3d60f18752f1928adf999d51e136dddee33a
4
- data.tar.gz: e03d4a39b11f58e2be22e38133f7fd82b76a4d68a70db88817f4a976f1c97b84
3
+ metadata.gz: a682e58a262fcd1a2f28a1150d90bbe09c2467a5c4a70d75a4c4b4c562f531bc
4
+ data.tar.gz: 712c24c47ec15b722f25b3a63f2a38a194edb047bc6fa33175fbb3d9a02996c4
5
5
  SHA512:
6
- metadata.gz: bd3f9eb0a13d6efd9f207a8e1cf3ffc5e95d67ebd9f2dac81822e8db35cab36197bbb42733e15995f803181abc7a6c1c8dfc9c964588c2aec2c10970ce72c9ea
7
- data.tar.gz: e2e8e3ca1e8cedfeb222d0f4c4f408c1f39c1b4dba1e41db3a4fdf65e1fccaac9ab2926ae57e01c93e641b058af9824fa5701e955215fadbd64a2eafc706f3fc
6
+ metadata.gz: b86f6eca20a27365f8b5fe14d2e8542f733875259d7ff6e0fb1a0a832ecef1384fa5ccbaad6bd984598a9301ab774ec5bec9aea91a13551ddf80905687f926db
7
+ data.tar.gz: 463fa75b12e71223f661de4d6f6bafb41aae9b19a08f342d006f9e195af151e4cc077bd0519c649e22a1b5d563922a48e3892854305f6390af74caef71710a2f
@@ -133,7 +133,7 @@ extern "C" {
133
133
  #ifndef WITH_MODULES
134
134
  #define WITH_MODULES
135
135
  #endif
136
- #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/home/flavorjones/code/oss/nokogiri/ports/x86_64-w64-mingw32/libxslt/1.1.34/lib/libxslt-plugins"
136
+ #define LIBXSLT_DEFAULT_PLUGINS_PATH() "/home/flavorjones/code/oss/nokogiri/ports/i686-w64-mingw32/libxslt/1.1.34/lib/libxslt-plugins"
137
137
  #endif
138
138
 
139
139
  /**
@@ -1292,17 +1292,25 @@ get_name(VALUE self)
1292
1292
  * Returns the path associated with this Node
1293
1293
  */
1294
1294
  static VALUE
1295
- path(VALUE self)
1295
+ noko_xml_node_path(VALUE rb_node)
1296
1296
  {
1297
- xmlNodePtr node;
1298
- xmlChar *path ;
1297
+ xmlNodePtr c_node;
1298
+ xmlChar *c_path ;
1299
1299
  VALUE rval;
1300
1300
 
1301
- Data_Get_Struct(self, xmlNode, node);
1301
+ Data_Get_Struct(rb_node, xmlNode, c_node);
1302
+
1303
+ c_path = xmlGetNodePath(c_node);
1304
+ if (c_path == NULL) {
1305
+ // see https://github.com/sparklemotion/nokogiri/issues/2250
1306
+ // this behavior is clearly undesirable, but is what libxml <= 2.9.10 returned, and so we
1307
+ // do this for now to preserve the behavior across libxml2 versions.
1308
+ rval = NOKOGIRI_STR_NEW2("?");
1309
+ } else {
1310
+ rval = NOKOGIRI_STR_NEW2(c_path);
1311
+ xmlFree(c_path);
1312
+ }
1302
1313
 
1303
- path = xmlGetNodePath(node);
1304
- rval = NOKOGIRI_STR_NEW2(path);
1305
- xmlFree(path);
1306
1314
  return rval ;
1307
1315
  }
1308
1316
 
@@ -1779,7 +1787,7 @@ noko_init_xml_node()
1779
1787
  rb_define_method(cNokogiriXmlNode, "next_element", next_element, 0);
1780
1788
  rb_define_method(cNokogiriXmlNode, "previous_element", previous_element, 0);
1781
1789
  rb_define_method(cNokogiriXmlNode, "node_type", node_type, 0);
1782
- rb_define_method(cNokogiriXmlNode, "path", path, 0);
1790
+ rb_define_method(cNokogiriXmlNode, "path", noko_xml_node_path, 0);
1783
1791
  rb_define_method(cNokogiriXmlNode, "key?", key_eh, 1);
1784
1792
  rb_define_method(cNokogiriXmlNode, "namespaced_key?", namespaced_key_eh, 2);
1785
1793
  rb_define_method(cNokogiriXmlNode, "blank?", blank_eh, 0);
Binary file
Binary file
Binary file
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.5"
4
+ VERSION = "1.11.6"
5
5
  end
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.5
4
+ version: 1.11.6
5
5
  platform: x86-mingw32
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-20 00:00:00.000000000 Z
20
+ date: 2021-05-26 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: racc