xsd 2.7.7 → 2.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/xsd/base_object.rb +1 -1
- data/lib/xsd/objects/all.rb +1 -10
- 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: d4f4f32336e7d94bc62c19b0c3ae62b5b8c68262e68e40771d476360ad63fa74
|
4
|
+
data.tar.gz: ac4e47a867138ce243c610212b19dd43c570f80bed3a1354268bd5449736ad26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700d49a67bb6f794c2a9b9f8f82f646870e54818a65e3092c306c40d57fecd206ab3460355d7435568a9c600da58b4484cd90968b078b8a76edb8c0a5b31d256
|
7
|
+
data.tar.gz: 321f75892bc25458b500044eeedaa9109bc3e79407ffb7528c8b67b020b15f898406523d4fa98b0f62cfa7573f2c3bba8a482d34019000eae84c1c46356d2205
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
## [2.7.
|
1
|
+
## [2.7.9] - 2024-04-25
|
2
|
+
|
3
|
+
- Fix resolving schemas with unprefixed namespace
|
4
|
+
|
5
|
+
## [2.7.8] - 2024-04-22
|
2
6
|
|
3
7
|
- Return <xs:any> and <xs:anyAttribute> from collect_elements/collect_attributes
|
4
8
|
- Make multiple_allowed? available on all definitions with max occurs
|
data/lib/xsd/base_object.rb
CHANGED
@@ -77,7 +77,7 @@ module XSD
|
|
77
77
|
# @return Array<Schema>
|
78
78
|
def schemas_for_namespace(ns_or_prefix)
|
79
79
|
# resolve namespace for current node if prefix was provided
|
80
|
-
prefix = node.namespaces[
|
80
|
+
prefix = node.namespaces[['xmlns', (ns_or_prefix == '' ? nil : ns_or_prefix)].compact.join(':')]
|
81
81
|
ns = prefix || ns_or_prefix
|
82
82
|
|
83
83
|
if schema.targets_namespace?(ns)
|
data/lib/xsd/objects/all.rb
CHANGED
@@ -7,16 +7,7 @@ module XSD
|
|
7
7
|
# extension (both simpleContent and complexContent)
|
8
8
|
# https://www.w3schools.com/xml/el_all.asp
|
9
9
|
class All < BaseObject
|
10
|
+
include MinMaxOccurs
|
10
11
|
include ElementContainer
|
11
|
-
|
12
|
-
# Optional. Specifies the minimum number of times the element can occur. The value can be 0 or 1. Default value is 1
|
13
|
-
# @!attribute min_occurs
|
14
|
-
# @return Integer
|
15
|
-
property :minOccurs, :integer, default: 1
|
16
|
-
|
17
|
-
# Optional. Specifies the maximum number of times the element can occur. The value must be 1.
|
18
|
-
# @!attribute max_occurs
|
19
|
-
# @return Integer
|
20
|
-
property :maxOccurs, :integer, default: 1
|
21
12
|
end
|
22
13
|
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.9
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|