nokogiri 1.14.3-java → 1.14.4-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: 3803714004a5e5365a19641aa32d13d470b10dfdc383e27bf2b76f9a43a5e58c
4
- data.tar.gz: 81ea89ae9e67aa0fc32cb9e4395e1c74822f5173a4ae7d067076834297b4a73c
3
+ metadata.gz: 2108d64c900885b6f155adcbf2a85a278b08ecc09f4b09a049c212012f33791e
4
+ data.tar.gz: 2396c851eaacb1cf581747503f7a268dc649c7492d159f2301cf1b527abc6d79
5
5
  SHA512:
6
- metadata.gz: 0004d2944cbcf3e824cd519f410fd1a303303ac00a8c6e36c69cd6b67d091314892fdf9420c3db3b5d24039fd2c25a91de313743a1d345da95699c7fe7ee3853
7
- data.tar.gz: 976be3b3fc6bead605cb6a9a87e712eadafa7b0ad6c511966a8fc4130f06addc9726ad85eb34828ae5b7f695a312702b0e1d96e6238192b57d0e3e82299cf577
6
+ metadata.gz: 0f4ab961c823a552598ae3e896fa1e5ab594f3ce0db84fceab9385e4c109be51cfdf452b402f9a9effe29fe67d42e347709c0c95bb6b1fcd72a9c308ad3364fa
7
+ data.tar.gz: 97b5a0a52060b35cd5e778a045063fd18dbcc1ae70a150281b700d40f3833a83fbc336b2a0aa3a4965e9ca98e86a636e30eaa038a745e2edf2c2e35ca5d745a8
@@ -13,6 +13,7 @@ import java.util.Map;
13
13
  import java.util.regex.Matcher;
14
14
  import java.util.regex.Pattern;
15
15
 
16
+ import javax.xml.transform.OutputKeys;
16
17
  import javax.xml.transform.Templates;
17
18
  import javax.xml.transform.Transformer;
18
19
  import javax.xml.transform.TransformerConfigurationException;
@@ -184,9 +185,15 @@ public class XsltStylesheet extends RubyObject
184
185
  XmlDocument xmlDoc = (XmlDocument) doc;
185
186
  ByteArrayOutputStream writer = new ByteArrayOutputStream();
186
187
 
187
- Serializer serializer = SerializerFactory.getSerializer(this.sheet.getOutputProperties());
188
+ java.util.Properties props = this.sheet.getOutputProperties();
189
+ if (props.getProperty(OutputKeys.METHOD) == null) {
190
+ props.setProperty(OutputKeys.METHOD, org.apache.xml.serializer.Method.UNKNOWN);
191
+ }
192
+
193
+ Serializer serializer = SerializerFactory.getSerializer(props);
188
194
  serializer.setOutputStream(writer);
189
195
  ((SerializationHandler) serializer).serialize(xmlDoc.getNode());
196
+
190
197
  return context.getRuntime().newString(writer.toString());
191
198
  }
192
199
 
@@ -2,26 +2,26 @@
2
2
  begin
3
3
  require 'jar_dependencies'
4
4
  rescue LoadError
5
- require 'xalan/xalan/2.7.2/xalan-2.7.2.jar'
5
+ require 'xalan/serializer/2.7.3/serializer-2.7.3.jar'
6
6
  require 'net/sourceforge/htmlunit/neko-htmlunit/2.63.0/neko-htmlunit-2.63.0.jar'
7
7
  require 'nu/validator/jing/20200702VNU/jing-20200702VNU.jar'
8
8
  require 'xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar'
9
9
  require 'org/nokogiri/nekodtd/0.1.11.noko1/nekodtd-0.1.11.noko1.jar'
10
10
  require 'net/sf/saxon/Saxon-HE/9.6.0-4/Saxon-HE-9.6.0-4.jar'
11
+ require 'xalan/xalan/2.7.3/xalan-2.7.3.jar'
11
12
  require 'xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar'
12
- require 'xalan/serializer/2.7.2/serializer-2.7.2.jar'
13
13
  require 'isorelax/isorelax/20030108/isorelax-20030108.jar'
14
14
  end
15
15
 
16
16
  if defined? Jars
17
- require_jar 'xalan', 'xalan', '2.7.2'
17
+ require_jar 'xalan', 'serializer', '2.7.3'
18
18
  require_jar 'net.sourceforge.htmlunit', 'neko-htmlunit', '2.63.0'
19
19
  require_jar 'nu.validator', 'jing', '20200702VNU'
20
20
  require_jar 'xerces', 'xercesImpl', '2.12.2'
21
21
  require_jar 'org.nokogiri', 'nekodtd', '0.1.11.noko1'
22
22
  require_jar 'net.sf.saxon', 'Saxon-HE', '9.6.0-4'
23
+ require_jar 'xalan', 'xalan', '2.7.3'
23
24
  require_jar 'xml-apis', 'xml-apis', '1.4.01'
24
- require_jar 'xalan', 'serializer', '2.7.2'
25
25
  require_jar 'isorelax', 'isorelax', '20030108'
26
26
  end
27
27
 
@@ -33,8 +33,8 @@ module Nokogiri
33
33
  "net.sourceforge.htmlunit:neko-htmlunit" => "2.63.0",
34
34
  "nu.validator:jing" => "20200702VNU",
35
35
  "org.nokogiri:nekodtd" => "0.1.11.noko1",
36
- "xalan:serializer" => "2.7.2",
37
- "xalan:xalan" => "2.7.2",
36
+ "xalan:serializer" => "2.7.3",
37
+ "xalan:xalan" => "2.7.3",
38
38
  "xerces:xercesImpl" => "2.12.2",
39
39
  "xml-apis:xml-apis" => "1.4.01",
40
40
  }.freeze
Binary file
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.14.3"
5
+ VERSION = "1.14.4"
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.14.3
4
+ version: 1.14.4
5
5
  platform: java
6
6
  authors:
7
7
  - Mike Dalessio
@@ -20,7 +20,7 @@ authors:
20
20
  autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
- date: 2023-04-11 00:00:00.000000000 Z
23
+ date: 2023-05-11 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  requirement: !ruby/object:Gem::Requirement
@@ -267,8 +267,8 @@ files:
267
267
  - lib/nokogiri/jruby/nokogiri_jars.rb
268
268
  - lib/nokogiri/jruby/nu/validator/jing/20200702VNU/jing-20200702VNU.jar
269
269
  - lib/nokogiri/jruby/org/nokogiri/nekodtd/0.1.11.noko1/nekodtd-0.1.11.noko1.jar
270
- - lib/nokogiri/jruby/xalan/serializer/2.7.2/serializer-2.7.2.jar
271
- - lib/nokogiri/jruby/xalan/xalan/2.7.2/xalan-2.7.2.jar
270
+ - lib/nokogiri/jruby/xalan/serializer/2.7.3/serializer-2.7.3.jar
271
+ - lib/nokogiri/jruby/xalan/xalan/2.7.3/xalan-2.7.3.jar
272
272
  - lib/nokogiri/jruby/xerces/xercesImpl/2.12.2/xercesImpl-2.12.2.jar
273
273
  - lib/nokogiri/jruby/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar
274
274
  - lib/nokogiri/nokogiri.jar
@@ -348,8 +348,8 @@ requirements:
348
348
  - jar org.nokogiri, nekodtd, 0.1.11.noko1
349
349
  - jar net.sourceforge.htmlunit, neko-htmlunit, 2.63.0
350
350
  - jar nu.validator, jing, 20200702VNU
351
- - jar xalan, serializer, 2.7.2
352
- - jar xalan, xalan, 2.7.2
351
+ - jar xalan, serializer, 2.7.3
352
+ - jar xalan, xalan, 2.7.3
353
353
  - jar xerces, xercesImpl, 2.12.2
354
354
  - jar xml-apis, xml-apis, 1.4.01
355
355
  rubygems_version: 3.3.25