xsd 2.7.2 → 2.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/xsd/objects/complex_type.rb +7 -1
- data/lib/xsd/objects/restriction.rb +1 -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: d9095472b3d2f3c563c0418c8b9bc1effdd8a94d7e35e36196f750b37be868e5
|
4
|
+
data.tar.gz: a404b786ce073a8e3f24603fccaf16a22e8cbf7dd478973a58d20c4fc0fc6547
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f8d71e7ca6571d89f19232b729fb2dacddb78f31ef6900bbf47eede632cc9c2f3f195b015c601c524bb30a3dd6b8ec1dc0d6a944260d2fafd953e27a69646a4
|
7
|
+
data.tar.gz: '08231dcf39f93087cf3c151345cba2f2c4d7f60db6074f1eaf452c8ffb2b316fef4cecc8fdf253943d48c8d9226537ec194fdbc0711653aebcad5b392f01d6d9'
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -73,7 +73,7 @@ module XSD
|
|
73
73
|
def collect_attributes(include_base = true)
|
74
74
|
result = super(include_base)
|
75
75
|
# Filter restricted attributes to avoid duplicates from restricting and restricted type
|
76
|
-
result.inject({}) { |hash, item| hash[item.name] = item; hash }.values
|
76
|
+
include_base ? result.inject({}) { |hash, item| hash[item.name] = item; hash }.values : result
|
77
77
|
end
|
78
78
|
end
|
79
79
|
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.4
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|