openxml-package 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: d9d9d2bb9ed93cad6c56d2642cf32f5dec4a3196
4
- data.tar.gz: 523d6f4d5e2c72c78f3a0210231d4e95cd98b38f
3
+ metadata.gz: 4897a42b3b6601e4c9592fd0a0dfb280d00924bc
4
+ data.tar.gz: e897af932351b707af9c4b954eb64437dcb85db3
5
5
  SHA512:
6
- metadata.gz: d12159354e30a736f3b20694cde93ad3855ba4a5ac17146ef252c325262fe92aa4ddd292b9dcf6d851e329884a3feaf5587393802134e90411f80da2fd33b5f3
7
- data.tar.gz: 9c8c076c937bfe168182dfe7ddae3f6b0efa6a6687607661949cfceb1dfe92fb7bacf3717a27532921fc8b05c6384e4f1cfbbc98afc5c71dc9b552170901a1cb
6
+ metadata.gz: 8ef6f7fd79923969da139af148dcb8ee285216d7794a24ee5d6e74602a9ac6ba7fe05f95bdef3b6ac877fd59900210f3742f9658296c2e40f53909c40839238c
7
+ data.tar.gz: 94c22130fd32fca51a16ed4714534aa141a84c4a89e1399723ce4867b736cb3d440e9e134e045c21f663d3071df368483f233879540e267c335e150974d4573b
@@ -1,3 +1,3 @@
1
1
  module OpenXmlPackage
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openxml-package
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Lail