nokogiri 1.18.0 → 1.18.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2679f31fc93dd9d3024cd46179269b006164ee0f54bc0f65cbc63c8db2d5139c
4
- data.tar.gz: 6a55139a96f9394360945cc889d55c98c114f0f7007654bb058165eb3973cf34
3
+ metadata.gz: 8bbee9784742cb2617c72fcac266207de753c34123b393810ea5e11f01b20cbd
4
+ data.tar.gz: 16e3b5e1d520f3bd482a3390dd20d86ea716e8bd459c8951c2978dfc1d4bc98a
5
5
  SHA512:
6
- metadata.gz: 390eeaf3c32f09f2a60efca24c37056911d82f91193eac0fba6ae243e55183999479b42e383781412ec46169cc0fa3ee132b8de696072a06cce82c6283475bef
7
- data.tar.gz: 7aaf5fa7d8228438de89c8efaf4ab68a5dd42c58ad81b21c9ae85c3c5b5beead377e6ab31bc182ede92a0523d3d20de3feb1473c3f5289b16c34e56057c7d629
6
+ metadata.gz: 271b974bc04fe33f7b630fc9796baa7f0dce6eee5d1f6359d7890b935d3fe9783cd9595501eec1c6042f963b60346be19b350196f9af0ffb226d88bd84da3a19
7
+ data.tar.gz: 98696a12245d97c2187e2490dd52ba368cff6353a9647d8aea062be41f0a4e6f557ef77ca307ba99dee7a4b3f63b8d197e40896f107624bc87a8d6f952d0ad40
data/Gemfile CHANGED
@@ -34,6 +34,5 @@ end
34
34
  # `bundle config set --local without rdoc`
35
35
  # Then re-run `bundle install`.
36
36
  group :rdoc do
37
- gem "rdoc", "6.10.0"
38
- gem "jar-dependencies", "0.4.1" if RUBY_PLATFORM == "java" # https://github.com/jruby/jruby/issues/7262
37
+ gem "rdoc", "6.10.0" unless RUBY_PLATFORM == "java" || ENV["CI"]
39
38
  end
@@ -102,7 +102,10 @@ noko_xml_sax_parser_context_s_native_io(VALUE rb_class, VALUE rb_io, VALUE rb_en
102
102
  c_context->sax = NULL;
103
103
  }
104
104
 
105
- return noko_xml_sax_parser_context_wrap(rb_class, c_context);
105
+ VALUE rb_context = noko_xml_sax_parser_context_wrap(rb_class, c_context);
106
+ rb_iv_set(rb_context, "@input", rb_io);
107
+
108
+ return rb_context;
106
109
  }
107
110
 
108
111
  /* :nodoc: */
@@ -154,7 +157,10 @@ noko_xml_sax_parser_context_s_native_memory(VALUE rb_class, VALUE rb_input, VALU
154
157
  c_context->sax = NULL;
155
158
  }
156
159
 
157
- return noko_xml_sax_parser_context_wrap(rb_class, c_context);
160
+ VALUE rb_context = noko_xml_sax_parser_context_wrap(rb_class, c_context);
161
+ rb_iv_set(rb_context, "@input", rb_input);
162
+
163
+ return rb_context;
158
164
  }
159
165
 
160
166
  /*
@@ -283,7 +283,8 @@ module Nokogiri
283
283
  else
284
284
  node.value.join(":")
285
285
  end
286
- elsif @namespaces&.key?("xmlns") # apply the default namespace if it's declared
286
+ elsif node.value.first != "*" && @namespaces&.key?("xmlns")
287
+ # apply the default namespace (if one is present) to a non-wildcard selector
287
288
  "xmlns:#{node.value.first}"
288
289
  else
289
290
  node.value.first
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.18.0"
5
+ VERSION = "1.18.2"
6
6
  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.18.0
4
+ version: 1.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -17,10 +17,9 @@ authors:
17
17
  - Sergio Arbeo
18
18
  - Timothy Elliott
19
19
  - Nobuyoshi Nakada
20
- autorequire:
21
20
  bindir: bin
22
21
  cert_chain: []
23
- date: 2024-12-25 00:00:00.000000000 Z
22
+ date: 2025-01-19 00:00:00.000000000 Z
24
23
  dependencies:
25
24
  - !ruby/object:Gem::Dependency
26
25
  name: mini_portile2
@@ -286,7 +285,6 @@ metadata:
286
285
  changelog_uri: https://nokogiri.org/CHANGELOG.html
287
286
  source_code_uri: https://github.com/sparklemotion/nokogiri
288
287
  rubygems_mfa_required: 'true'
289
- post_install_message:
290
288
  rdoc_options:
291
289
  - "--main"
292
290
  - README.md
@@ -303,8 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
301
  - !ruby/object:Gem::Version
304
302
  version: '0'
305
303
  requirements: []
306
- rubygems_version: 3.5.11
307
- signing_key:
304
+ rubygems_version: 3.6.2
308
305
  specification_version: 4
309
306
  summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
310
307
  test_files: []