xsd 2.6.3 → 2.7.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: f1d2b1ea3cf4fb7f11e131e1a7cb9f446682b8be0bb1a38bb90817a9c0ef8717
4
- data.tar.gz: edbb623f773bd0909284728b42e71e8a49d6663159e7382d12cb9229f4057b05
3
+ metadata.gz: 6ec3eb825c36a39f706cd6a684d294b443fa7c59a4e9494ef8b1a6e65f226e5e
4
+ data.tar.gz: 659b6e95914a0d3a4e04c7b5e17ec54cebbda343b8154b7cd5ff6dd9f2a2ca93
5
5
  SHA512:
6
- metadata.gz: 0b474c9ac63f1dd09b4b1aef416eee487aeaa84135f12242ba7a9fde520094a42279a738b5ef99e4540b622c35b4dc0b581d1ec3b44fd6a98217022dba1ab66a
7
- data.tar.gz: ea99e743a50f84952b78f2d43463482ab630175c7eafcc92567bb9a35044698a50b2b2d6e92d33f274b07a3b8f6b3d639358d6d4020b8db140350396c3e3e9c2
6
+ metadata.gz: 7d5dc6738b374642049d316e7213f2b7c83177182cc8aeed164ff7253d8c3a349faf6c46a8781ad1734fa4daa5337462cee769d72bdd7c69d959e18b3ea8605b
7
+ data.tar.gz: e1d929216f6e9239f5ab82ddaf20558b6e562917e6f1c51c392bd988c699f73af0500f9837fd85c8f76afaccb170f88c6a3ddd723b0be7660e596e1010ef7aa1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [2.7.0] - 2024-04-17
2
+
3
+ - Return <xs:any> and <xs:anyAttribute> from collect_elements/collect_attributes
4
+
1
5
  ## [2.6.3] - 2024-04-13
2
6
 
3
7
  - Fix retrieving documentation for referenced elements
@@ -220,7 +220,7 @@ module XSD
220
220
  else
221
221
  # map children recursive
222
222
  map_children(:*).map do |obj|
223
- if obj.is_a?(Element)
223
+ if obj.is_a?(Element) || obj.is_a?(Any)
224
224
  obj
225
225
  else
226
226
  # get elements considering references
@@ -244,7 +244,7 @@ module XSD
244
244
  else
245
245
  # map children recursive
246
246
  map_children(:*).map do |obj|
247
- if obj.is_a?(Attribute)
247
+ if obj.is_a?(Attribute) || obj.is_a?(AnyAttribute)
248
248
  obj
249
249
  else
250
250
  # get attributes considering references
@@ -27,5 +27,11 @@ module XSD
27
27
  # @!attribute process_contents
28
28
  # @return String, nil
29
29
  property :processContents, :string, default: 'strict'
30
+
31
+ # Get virtual element name
32
+ # @return String
33
+ def name
34
+ '#any'
35
+ end
30
36
  end
31
37
  end
@@ -26,5 +26,11 @@ module XSD
26
26
  # @!attribute process_contents
27
27
  # @return String, nil
28
28
  property :processContents, :string, default: 'strict'
29
+
30
+ # Get virtual attribute name
31
+ # @return String
32
+ def name
33
+ '#anyAttribute'
34
+ end
29
35
  end
30
36
  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.6.3'
4
+ VERSION = '2.7.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.6.3
4
+ version: 2.7.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: 2024-04-13 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder