xsd 2.7.3 → 2.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -1
- data/lib/xsd/base_object.rb +1 -1
- data/lib/xsd/objects/complex_type.rb +7 -1
- data/lib/xsd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 153a03f87abecaab17a642bd1d822e102609c44f30a45bfdbd0ca4a52c6dc567
|
4
|
+
data.tar.gz: 7b7e50fb7e6915c7eb13a03d9d512b73e15e1d0abbbab5400e1f40703343ae2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30c85bd21b725a01724e0c6b3239593d50a270a8f98c1c66af52a883a08d3f0fa91876c2f6ca4edf159ab4d6ee4eba4fbaec903cc967f3fefda757234379c6cb
|
7
|
+
data.tar.gz: e567f9b119ac0528ef8b91f4b0ef5619e0b5c008e3f6652a589e37ba85181ddd596271597819059181ec36f8adaee91b04c5aa2f6998a67e38c228da8ea41859
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
## [2.7.
|
1
|
+
## [2.7.5] - 2024-04-22
|
2
2
|
|
3
3
|
- Return <xs:any> and <xs:anyAttribute> from collect_elements/collect_attributes
|
4
4
|
- Make multiple_allowed? available on all definitions with max occurs
|
5
5
|
- Don't return duplicated attributes from complex restriction
|
6
|
+
- Fix base_complex_type on restriction without base
|
6
7
|
|
7
8
|
## [2.6.3] - 2024-04-13
|
8
9
|
|
data/lib/xsd/base_object.rb
CHANGED
@@ -343,7 +343,7 @@ module XSD
|
|
343
343
|
name = link[:property] ? send(link[:property]) : nil
|
344
344
|
if name
|
345
345
|
return @cache[method] = object_by_name(link[:type], name)
|
346
|
-
elsif is_a?(Restriction) && method
|
346
|
+
elsif is_a?(Restriction) && %i[base_simple_type base_complex_type].include?(method)
|
347
347
|
# handle restriction without base
|
348
348
|
return nil
|
349
349
|
end
|
@@ -120,7 +120,13 @@ module XSD
|
|
120
120
|
restriction = simple_content.restriction
|
121
121
|
if restriction
|
122
122
|
if restriction.base
|
123
|
-
restriction.base_simple_type
|
123
|
+
if restriction.base_simple_type
|
124
|
+
restriction.base_simple_type.data_type
|
125
|
+
elsif restriction.base_complex_type
|
126
|
+
restriction.base_complex_type.data_type
|
127
|
+
else
|
128
|
+
strip_prefix(restriction.base)
|
129
|
+
end
|
124
130
|
else
|
125
131
|
restriction.simple_type&.data_type
|
126
132
|
end
|
data/lib/xsd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- d.arkhipov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|