xsd 2.6.2 → 2.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/xsd/base_object.rb +10 -1
- data/lib/xsd/shared/named.rb +1 -2
- 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: f1d2b1ea3cf4fb7f11e131e1a7cb9f446682b8be0bb1a38bb90817a9c0ef8717
|
4
|
+
data.tar.gz: edbb623f773bd0909284728b42e71e8a49d6663159e7382d12cb9229f4057b05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b474c9ac63f1dd09b4b1aef416eee487aeaa84135f12242ba7a9fde520094a42279a738b5ef99e4540b622c35b4dc0b581d1ec3b44fd6a98217022dba1ab66a
|
7
|
+
data.tar.gz: ea99e743a50f84952b78f2d43463482ab630175c7eafcc92567bb9a35044698a50b2b2d6e92d33f274b07a3b8f6b3d639358d6d4020b8db140350396c3e3e9c2
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/xsd/base_object.rb
CHANGED
@@ -189,7 +189,16 @@ module XSD
|
|
189
189
|
# Return element documentation
|
190
190
|
# @return Array<String>
|
191
191
|
def documentation
|
192
|
-
|
192
|
+
@documentation ||= begin
|
193
|
+
docs = documentation_for(node)
|
194
|
+
if docs.any?
|
195
|
+
docs
|
196
|
+
elsif is_a?(Referenced) && referenced?
|
197
|
+
documentation_for(reference.node)
|
198
|
+
else
|
199
|
+
[]
|
200
|
+
end
|
201
|
+
end
|
193
202
|
end
|
194
203
|
|
195
204
|
# Return documentation for specified node
|
data/lib/xsd/shared/named.rb
CHANGED
@@ -5,8 +5,7 @@ module XSD
|
|
5
5
|
# Get definition namespace
|
6
6
|
# @return String
|
7
7
|
def namespace
|
8
|
-
|
9
|
-
is_referenced && referenced? ? reference.schema.target_namespace : schema.target_namespace
|
8
|
+
@namespace ||= (is_a?(Referenced) && referenced? ? reference.schema : schema).target_namespace
|
10
9
|
end
|
11
10
|
|
12
11
|
# Get absolute definition name
|
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.6.
|
4
|
+
version: 2.6.3
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|