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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dce377d21632c6a26b8cf654ec519d7fa7664a6518b136280433a1411580159c
4
- data.tar.gz: 57ff6cd7eb787f93d1ab51b8ebcc170da4f9726105a584a3a9d69f24711fdd0d
3
+ metadata.gz: f913aa0733e739fe2c7bad6f4c3969f9ee3e5a14df34bb240f3b188b3fbc77e0
4
+ data.tar.gz: 5a3b4c6bdd94e8c7223b3d5b7d6c29d010689a36d5efd014129e7d1d8b23ff7f
5
5
  SHA512:
6
- metadata.gz: 95c494a1699eee86c90989c1de42ef8f1532ea805273e1f35b2b7f2f6d68cc74f4a056ba1c71b5b3f3e9b7b80d9500b206fc684d4bddf4cb3563dda59d21fc48
7
- data.tar.gz: d58a3a37ebd8104cbcd58eb416f127bd862f2c9e510bafafc83ffbefb257ce5ef1093d56db8a6ad0682137fbe9de04d67fa8d0e5d2b32f38a56e1b1a3fe0e0cc
6
+ metadata.gz: 898d2ccca42898cef0a4017e37e3b8f0f4da86a462552aa971c3268abbf675eeceb5e5022364d755f40f09714245eb7ac3057895a1abc45dcf4a4108f92c7b73
7
+ data.tar.gz: bfad6be19d68ef8b932cac391701f80174ea36b4883f8cad2e3be3b0e3d068755b8bbda328d1de76d5ef499876e8081384e0630e6931535e688e79958210f19c
data/.rubocop.yml CHANGED
@@ -87,6 +87,9 @@ RSpec/NoExpectationExample:
87
87
  RSpec/RepeatedExample:
88
88
  Enabled: false
89
89
 
90
+ Style/ArgumentsForwarding:
91
+ Enabled: false
92
+
90
93
  Style/ConditionalAssignment:
91
94
  Enabled: false
92
95
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.4.0] - 2023-11-13
4
+
5
+ - Fixed reading of SimpleType in List
6
+ - Add support for Restriction without base
7
+ - Support Any generation in simple scenarios
8
+
3
9
  ## [2.3.0] - 2023-09-06
4
10
 
5
11
  - Fixed reading of SimpleType in List
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XSD
4
- VERSION = '2.3.0'
4
+ VERSION = '2.4.0'
5
5
  end
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.3.0
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-09-06 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder