xsd 2.4.0 → 2.4.1

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: f913aa0733e739fe2c7bad6f4c3969f9ee3e5a14df34bb240f3b188b3fbc77e0
4
- data.tar.gz: 5a3b4c6bdd94e8c7223b3d5b7d6c29d010689a36d5efd014129e7d1d8b23ff7f
3
+ metadata.gz: 786af29254baeee14f0dbe25030ea93f11b13cbc65809a6b74eec7dac9c3e964
4
+ data.tar.gz: 8a57b93cbd03ffb4cc176dee9ef9acec5ee37da68bcba6c0dd29bfb9450cd71c
5
5
  SHA512:
6
- metadata.gz: 898d2ccca42898cef0a4017e37e3b8f0f4da86a462552aa971c3268abbf675eeceb5e5022364d755f40f09714245eb7ac3057895a1abc45dcf4a4108f92c7b73
7
- data.tar.gz: bfad6be19d68ef8b932cac391701f80174ea36b4883f8cad2e3be3b0e3d068755b8bbda328d1de76d5ef499876e8081384e0630e6931535e688e79958210f19c
6
+ metadata.gz: 96c8d9f3e1905cab35ab23446c7ab6b14b6d60a352fc603a520851f7669a5ae0fad5f61256cc95ee1077aade09a3fb8d12aeee28721f003d615d01233d0d190c
7
+ data.tar.gz: b5214a02de3b5b196d37eacddd6afb987fdd3ff23bb0a4660204fbac91875d61e266089e84f183a64fae5b8a2eba3a47e65cd0813babec74e8e45842243a2bd1
data/.rubocop.yml CHANGED
@@ -42,6 +42,7 @@ Metrics/AbcSize:
42
42
  Enabled: false
43
43
 
44
44
  Metrics/BlockLength:
45
+ Max: 40
45
46
  Exclude:
46
47
  - 'spec/**/*_spec.rb'
47
48
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.4.1] - 2023-11-13
4
+
5
+ - Fix attribute value existence check
6
+
3
7
  ## [2.4.0] - 2023-11-13
4
8
 
5
9
  - Fixed reading of SimpleType in List
data/lib/xsd/generator.rb CHANGED
@@ -77,7 +77,7 @@ module XSD
77
77
  # prepare attributes
78
78
  all_attributes.each do |attribute|
79
79
  value = item["@#{attribute.name}"]
80
- if value
80
+ if !value.nil?
81
81
  attributes[attribute.name] = value
82
82
  elsif attribute.required?
83
83
  raise Error, "Attribute #{attribute.name} is required, but no data in provided for it" if attribute.fixed.nil?
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.4.0'
4
+ VERSION = '2.4.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.arkhipov