libxml-ruby 5.0.3-x64-mingw-ucrt → 5.0.4-x64-mingw-ucrt
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/HISTORY +9 -2
- data/ext/libxml/ruby_xml_version.h +3 -3
- data/ext/libxml/ruby_xml_writer.c +1124 -1138
- data/lib/3.4/libxml_ruby.so +0 -0
- data/libxml-ruby.gemspec +1 -0
- data/test/test_sax_parser.rb +25 -6
- metadata +18 -7
Binary file
|
data/libxml-ruby.gemspec
CHANGED
@@ -42,6 +42,7 @@ Gem::Specification.new do |spec|
|
|
42
42
|
spec.test_files = Dir.glob('test/test_*.rb')
|
43
43
|
spec.required_ruby_version = '>= 2.5'
|
44
44
|
spec.date = DateTime.now
|
45
|
+
spec.add_development_dependency('logger')
|
45
46
|
spec.add_development_dependency('rake-compiler')
|
46
47
|
spec.add_development_dependency('minitest')
|
47
48
|
spec.license = 'MIT'
|
data/test/test_sax_parser.rb
CHANGED
@@ -79,24 +79,43 @@ class TestSaxParser < Minitest::Test
|
|
79
79
|
assert_equal("startdoc", result[i+=1])
|
80
80
|
assert_equal("pi: xml-stylesheet type=\"text/xsl\" href=\"my_stylesheet.xsl\"", result[i+=1])
|
81
81
|
assert_equal("start_element: feed, attr: {}", result[i+=1])
|
82
|
-
|
82
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.4')
|
83
|
+
assert_equal("start_element_ns: feed, attr: {}, prefix: , uri: http://www.w3.org/2005/Atom, ns: {nil=>\"http://www.w3.org/2005/Atom\"}", result[i+=1])
|
84
|
+
else
|
85
|
+
assert_equal("start_element_ns: feed, attr: {}, prefix: , uri: http://www.w3.org/2005/Atom, ns: {nil => \"http://www.w3.org/2005/Atom\"}", result[i+=1])
|
86
|
+
end
|
83
87
|
assert_equal("characters: \n ", result[i+=1])
|
84
88
|
assert_equal("comment: Not a valid atom entry ", result[i+=1])
|
85
89
|
assert_equal("characters: \n ", result[i+=1])
|
86
90
|
assert_equal("start_element: entry, attr: {}", result[i+=1])
|
87
91
|
assert_equal("start_element_ns: entry, attr: {}, prefix: , uri: http://www.w3.org/2005/Atom, ns: {}", result[i+=1])
|
88
92
|
assert_equal("characters: \n ", result[i+=1])
|
89
|
-
|
90
|
-
|
93
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.4')
|
94
|
+
assert_equal("start_element: title, attr: {\"type\"=>\"html\"}", result[i+=1])
|
95
|
+
assert_equal("start_element_ns: title, attr: {\"type\"=>\"html\"}, prefix: , uri: http://www.w3.org/2005/Atom, ns: {}", result[i+=1])
|
96
|
+
else
|
97
|
+
assert_equal("start_element: title, attr: {\"type\" => \"html\"}", result[i+=1])
|
98
|
+
assert_equal("start_element_ns: title, attr: {\"type\" => \"html\"}, prefix: , uri: http://www.w3.org/2005/Atom, ns: {}", result[i+=1])
|
99
|
+
end
|
100
|
+
|
91
101
|
assert_equal("cdata: <<strong>>", result[i+=1])
|
92
102
|
assert_equal("end_element: title", result[i+=1])
|
93
103
|
assert_equal("end_element_ns title, prefix: , uri: http://www.w3.org/2005/Atom", result[i+=1])
|
94
104
|
assert_equal("characters: \n ", result[i+=1])
|
95
|
-
|
96
|
-
|
105
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.4')
|
106
|
+
assert_equal("start_element: content, attr: {\"type\"=>\"xhtml\"}", result[i+=1])
|
107
|
+
assert_equal("start_element_ns: content, attr: {\"type\"=>\"xhtml\"}, prefix: , uri: http://www.w3.org/2005/Atom, ns: {}", result[i+=1])
|
108
|
+
else
|
109
|
+
assert_equal("start_element: content, attr: {\"type\" => \"xhtml\"}", result[i+=1])
|
110
|
+
assert_equal("start_element_ns: content, attr: {\"type\" => \"xhtml\"}, prefix: , uri: http://www.w3.org/2005/Atom, ns: {}", result[i+=1])
|
111
|
+
end
|
97
112
|
assert_equal("characters: \n ", result[i+=1])
|
98
113
|
assert_equal("start_element: xhtml:div, attr: {}", result[i+=1])
|
99
|
-
|
114
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.4')
|
115
|
+
assert_equal("start_element_ns: div, attr: {}, prefix: xhtml, uri: http://www.w3.org/1999/xhtml, ns: {\"xhtml\"=>\"http://www.w3.org/1999/xhtml\"}", result[i+=1])
|
116
|
+
else
|
117
|
+
assert_equal("start_element_ns: div, attr: {}, prefix: xhtml, uri: http://www.w3.org/1999/xhtml, ns: {\"xhtml\" => \"http://www.w3.org/1999/xhtml\"}", result[i+=1])
|
118
|
+
end
|
100
119
|
assert_equal("characters: \n ", result[i+=1])
|
101
120
|
assert_equal("start_element: xhtml:p, attr: {}", result[i+=1])
|
102
121
|
assert_equal("start_element_ns: p, attr: {}, prefix: xhtml, uri: http://www.w3.org/1999/xhtml, ns: {}", result[i+=1])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libxml-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.4
|
5
5
|
platform: x64-mingw-ucrt
|
6
6
|
authors:
|
7
7
|
- Ross Bamform
|
@@ -11,11 +11,24 @@ authors:
|
|
11
11
|
- Anurag Priyam
|
12
12
|
- Charlie Savage
|
13
13
|
- Ryan Johnson
|
14
|
-
autorequire:
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
|
-
date:
|
16
|
+
date: 2025-05-11 00:00:00.000000000 Z
|
18
17
|
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
19
|
+
name: logger
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '0'
|
25
|
+
type: :development
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
19
32
|
- !ruby/object:Gem::Dependency
|
20
33
|
name: rake-compiler
|
21
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +63,6 @@ description: |2
|
|
50
63
|
Libxml-ruby's primary advantage over REXML is performance - if speed
|
51
64
|
is your need, these are good libraries to consider, as demonstrated
|
52
65
|
by the informal benchmark below.
|
53
|
-
email:
|
54
66
|
executables: []
|
55
67
|
extensions: []
|
56
68
|
extra_rdoc_files: []
|
@@ -137,6 +149,7 @@ files:
|
|
137
149
|
- ext/vc/libxml_ruby.sln
|
138
150
|
- lib/3.2/libxml_ruby.so
|
139
151
|
- lib/3.3/libxml_ruby.so
|
152
|
+
- lib/3.4/libxml_ruby.so
|
140
153
|
- lib/libxml-ruby.rb
|
141
154
|
- lib/libxml.rb
|
142
155
|
- lib/libxml/attr.rb
|
@@ -261,7 +274,6 @@ homepage: https://xml4r.github.io/libxml-ruby/
|
|
261
274
|
licenses:
|
262
275
|
- MIT
|
263
276
|
metadata: {}
|
264
|
-
post_install_message:
|
265
277
|
rdoc_options: []
|
266
278
|
require_paths:
|
267
279
|
- lib
|
@@ -276,8 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
288
|
- !ruby/object:Gem::Version
|
277
289
|
version: '0'
|
278
290
|
requirements: []
|
279
|
-
rubygems_version: 3.
|
280
|
-
signing_key:
|
291
|
+
rubygems_version: 3.6.8
|
281
292
|
specification_version: 4
|
282
293
|
summary: Ruby Bindings for LibXML2
|
283
294
|
test_files:
|