xsd 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +6 -0
- data/lib/xsd/generator.rb +4 -0
- 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: f913aa0733e739fe2c7bad6f4c3969f9ee3e5a14df34bb240f3b188b3fbc77e0
|
4
|
+
data.tar.gz: 5a3b4c6bdd94e8c7223b3d5b7d6c29d010689a36d5efd014129e7d1d8b23ff7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 898d2ccca42898cef0a4017e37e3b8f0f4da86a462552aa971c3268abbf675eeceb5e5022364d755f40f09714245eb7ac3057895a1abc45dcf4a4108f92c7b73
|
7
|
+
data.tar.gz: bfad6be19d68ef8b932cac391701f80174ea36b4883f8cad2e3be3b0e3d068755b8bbda328d1de76d5ef499876e8081384e0630e6931535e688e79958210f19c
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/xsd/generator.rb
CHANGED
@@ -79,6 +79,10 @@ module XSD
|
|
79
79
|
value = item["@#{attribute.name}"]
|
80
80
|
if value
|
81
81
|
attributes[attribute.name] = value
|
82
|
+
elsif attribute.required?
|
83
|
+
raise Error, "Attribute #{attribute.name} is required, but no data in provided for it" if attribute.fixed.nil?
|
84
|
+
|
85
|
+
attributes[attribute.name] = attribute.fixed
|
82
86
|
else
|
83
87
|
attributes.delete(attribute.name)
|
84
88
|
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.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- d.arkhipov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|