openxml-package 0.3.0 → 0.3.1
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/lib/openxml-package/version.rb +1 -1
- data/lib/openxml/has_properties.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4897a42b3b6601e4c9592fd0a0dfb280d00924bc
|
4
|
+
data.tar.gz: e897af932351b707af9c4b954eb64437dcb85db3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ef6f7fd79923969da139af148dcb8ee285216d7794a24ee5d6e74602a9ac6ba7fe05f95bdef3b6ac877fd59900210f3742f9658296c2e40f53909c40839238c
|
7
|
+
data.tar.gz: 94c22130fd32fca51a16ed4714534aa141a84c4a89e1399723ce4867b736cb3d440e9e134e045c21f663d3071df368483f233879540e267c335e150974d4573b
|
@@ -167,7 +167,7 @@ module OpenXml
|
|
167
167
|
|
168
168
|
def ensure_unique_in_group(name, group_index)
|
169
169
|
other_names = (choice_groups[group_index] - [name])
|
170
|
-
unique = other_names.all? { |other_name| instance_variable_defined?("@#{other_name}") }
|
170
|
+
unique = other_names.all? { |other_name| !instance_variable_defined?("@#{other_name}") }
|
171
171
|
message = "Property #{name} cannot also be set with #{other_names.join(", ")}."
|
172
172
|
raise ChoiceGroupUniqueError, message unless unique
|
173
173
|
end
|