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 +4 -4
- data/Gemfile +1 -2
- data/ext/nokogiri/xml_sax_parser_context.c +8 -2
- data/lib/nokogiri/css/xpath_visitor.rb +2 -1
- data/lib/nokogiri/version/constant.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bbee9784742cb2617c72fcac266207de753c34123b393810ea5e11f01b20cbd
|
4
|
+
data.tar.gz: 16e3b5e1d520f3bd482a3390dd20d86ea716e8bd459c8951c2978dfc1d4bc98a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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")
|
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
|
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.
|
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:
|
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.
|
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: []
|