openxml-drawingml 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
  SHA256:
3
- metadata.gz: 1a81a76e912c32877115787298177e190bf1a0179d25962286e9decca8004efc
4
- data.tar.gz: 3e9a72fb22447d2a53d36fd4a3b9d8d5a34fcd18fbb32ce805108fcf2120bf0c
3
+ metadata.gz: 234ae593cf6b0352ea48225f59d687c7f569e4fb38a5c974ba6a003be02d1c08
4
+ data.tar.gz: 32e68b47f5cc7ea282f37e169eec8f589f40e2750948283cb14e437904ce41b6
5
5
  SHA512:
6
- metadata.gz: fe240ff4f8f54ce9aeb9cce8fa61b99deda0745c008e9d065a43c98f65063b37a02e0f4a93bd8ffa8cd333e6dfb93dcb8bd0b672616c16ef694f370d8db8bb75
7
- data.tar.gz: 92a51c27a5baf40f7705fc70efc8b294954a330c170d540c4acdb97e2d8c1e933955122a710e0bdcc4b28db0df13952dac0303880635cae6976f4fff374e2ea9
6
+ metadata.gz: c90f86bfb4168f1c8706337743086560e281389974dea7e7ba1c592fc69ca551a951a8c85682377ac9a69ddc1a3607bac0486b9da96cc2706bfada3832234e58
7
+ data.tar.gz: 1b57e9bc8d593ff7a11fff0aef292e45667fed225b6a3aa1600d19e7ce29ea20f6a827e655cf6d912099a0b1eeb4c294523192d12d85bf7679ce22279e2af9e3
@@ -4,7 +4,7 @@ module OpenXml
4
4
  class PercentageProperty < ValueProperty
5
5
 
6
6
  def valid?
7
- value =~ OpenXml::DrawingML::ST_Percentage
7
+ value.is_a?(String) && value =~ OpenXml::DrawingML::ST_Percentage
8
8
  end
9
9
 
10
10
  def invalid_message
@@ -12,7 +12,7 @@ module OpenXml
12
12
 
13
13
  def initialize(value)
14
14
  super()
15
- target_property = value =~ /%/ ? :spacing_percent= : :spacing_points=
15
+ target_property = value.is_a?(String) && value =~ /%/ ? :spacing_percent= : :spacing_points=
16
16
  public_send(target_property, value)
17
17
  end
18
18
 
@@ -12,7 +12,7 @@ module OpenXml
12
12
 
13
13
  def initialize(value)
14
14
  super()
15
- target_property = value =~ /%/ ? :spacing_percent= : :spacing_points=
15
+ target_property = value.is_a?(String) && value =~ /%/ ? :spacing_percent= : :spacing_points=
16
16
  public_send(target_property, value)
17
17
  end
18
18
 
@@ -1,5 +1,5 @@
1
1
  module OpenXml
2
2
  module DrawingML
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openxml-drawingml
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
  - Amos King
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-12-23 00:00:00.000000000 Z
13
+ date: 2024-02-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -416,7 +416,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
416
416
  - !ruby/object:Gem::Version
417
417
  version: '0'
418
418
  requirements: []
419
- rubygems_version: 3.2.15
419
+ rubygems_version: 3.4.6
420
420
  signing_key:
421
421
  specification_version: 4
422
422
  summary: Implements the Office Open XML spec for DrawingML