xsd 2.7.0 → 2.7.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: 6ec3eb825c36a39f706cd6a684d294b443fa7c59a4e9494ef8b1a6e65f226e5e
4
- data.tar.gz: 659b6e95914a0d3a4e04c7b5e17ec54cebbda343b8154b7cd5ff6dd9f2a2ca93
3
+ metadata.gz: a204e10bdaaac5744ae8f38bf10e7d83a030a570134739e71a28db641bc955c3
4
+ data.tar.gz: e61695c62db5a99877b3d87098a42021df2b416a3ee00dfdeac13a8377ccdea8
5
5
  SHA512:
6
- metadata.gz: 7d5dc6738b374642049d316e7213f2b7c83177182cc8aeed164ff7253d8c3a349faf6c46a8781ad1734fa4daa5337462cee769d72bdd7c69d959e18b3ea8605b
7
- data.tar.gz: e1d929216f6e9239f5ab82ddaf20558b6e562917e6f1c51c392bd988c699f73af0500f9837fd85c8f76afaccb170f88c6a3ddd723b0be7660e596e1010ef7aa1
6
+ metadata.gz: a70c3ac790859ee1d7a649f5ee1ee41b21aacc5fd29d6465a5dd3a113c755856f92f8aafeb937d42e98f57d6f6e3a4e1bb7231a5aeb12e78de8aee66b9cc7cbd
7
+ data.tar.gz: 77ae1a10ed5165d71b065814e5466a00f3831ccda312a7a18d4646f2d0d44b7775570ccade57731e75d51f9016c91c4721084f991692f53c6075949051dc5be9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
- ## [2.7.0] - 2024-04-17
1
+ ## [2.7.1] - 2024-04-17
2
2
 
3
3
  - Return <xs:any> and <xs:anyAttribute> from collect_elements/collect_attributes
4
+ - Make multiple_allowed? available on all definitions with max occurs
4
5
 
5
6
  ## [2.6.3] - 2024-04-13
6
7
 
@@ -100,12 +100,6 @@ module XSD
100
100
  !required?
101
101
  end
102
102
 
103
- # Determine if element may occur multiple times
104
- # @return Boolean
105
- def multiple_allowed?
106
- computed_max_occurs == :unbounded || computed_max_occurs > 1
107
- end
108
-
109
103
  # Determine if element has complex content
110
104
  # @return Boolean
111
105
  def complex_content?
@@ -42,5 +42,11 @@ module XSD
42
42
  min_occurs
43
43
  end
44
44
  end
45
+
46
+ # Determine if element may occur multiple times
47
+ # @return Boolean
48
+ def multiple_allowed?
49
+ computed_max_occurs == :unbounded || computed_max_occurs > 1
50
+ end
45
51
  end
46
52
  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.0'
4
+ VERSION = '2.7.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.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.arkhipov