xsd 2.7.9 → 2.7.10

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: d4f4f32336e7d94bc62c19b0c3ae62b5b8c68262e68e40771d476360ad63fa74
4
- data.tar.gz: ac4e47a867138ce243c610212b19dd43c570f80bed3a1354268bd5449736ad26
3
+ metadata.gz: a878430d5f353e97e8051c23a339f05c87949d9f385fb538a555a68f43658698
4
+ data.tar.gz: 1f46317798a47375938d185acb9a908f517e0078f5669d39c28c8120c09d4cd5
5
5
  SHA512:
6
- metadata.gz: 700d49a67bb6f794c2a9b9f8f82f646870e54818a65e3092c306c40d57fecd206ab3460355d7435568a9c600da58b4484cd90968b078b8a76edb8c0a5b31d256
7
- data.tar.gz: 321f75892bc25458b500044eeedaa9109bc3e79407ffb7528c8b67b020b15f898406523d4fa98b0f62cfa7573f2c3bba8a482d34019000eae84c1c46356d2205
6
+ metadata.gz: 56465f9472a9373a2c87a38125bb9426a27ed7bcec3757bc98b5ed9dc93cf44b88753f628769e800838c6ef527ea131a2f4b3deaab3c898a59db46ea5cd7a3df
7
+ data.tar.gz: e6cd2ade397762b2ff9661de36bf7d5c8e0a7e488b49e408019e9e4dca6c6bb0416b459e16890e1d1980aadef02a590ae0d0cf530a869e8ed4b8c9b4c223579f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [2.7.10] - 2024-04-26
2
+
3
+ - Fix data_type detection in complex_type simple_content extension
4
+
1
5
  ## [2.7.9] - 2024-04-25
2
6
 
3
7
  - Fix resolving schemas with unprefixed namespace
@@ -132,7 +132,13 @@ module XSD
132
132
  end
133
133
  else
134
134
  extension = simple_content.extension
135
- extension.base_simple_type&.data_type || strip_prefix(extension.base)
135
+ if extension.base_simple_type
136
+ extension.base_simple_type.data_type
137
+ elsif extension.base_complex_type
138
+ extension.base_complex_type.data_type
139
+ else
140
+ strip_prefix(extension.base)
141
+ end
136
142
  end
137
143
  end
138
144
  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.7.9'
4
+ VERSION = '2.7.10'
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.7.9
4
+ version: 2.7.10
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-25 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder