openxml-drawingml 0.2.1 → 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: 1fab100eb31e29e390dbae0499747918b27396037cd6ac6f64b36b0eac9a3709
4
- data.tar.gz: 5a52243e84c0af9a28cbcfbb39063697025de110244af128cdf59aa048f47f09
3
+ metadata.gz: 234ae593cf6b0352ea48225f59d687c7f569e4fb38a5c974ba6a003be02d1c08
4
+ data.tar.gz: 32e68b47f5cc7ea282f37e169eec8f589f40e2750948283cb14e437904ce41b6
5
5
  SHA512:
6
- metadata.gz: c0f44055a610c9cfc6149e99fbb5f3c908ac8cf487594fc61363e99f8dcc38c6dad796fb61e9ac7953a41b21f0c37e76acd37e3f40ee781fdafb6e1f75e3af9b
7
- data.tar.gz: 8a0c9f8de06cebc06e4b8988c03515bdb1a534e12510df6d714866c1f8029036334ec20114e6cd672ce3aee8c1a4dbc226d950ecc6be617f90dbd101a8da6462
6
+ metadata.gz: c90f86bfb4168f1c8706337743086560e281389974dea7e7ba1c592fc69ca551a951a8c85682377ac9a69ddc1a3607bac0486b9da96cc2706bfada3832234e58
7
+ data.tar.gz: 1b57e9bc8d593ff7a11fff0aef292e45667fed225b6a3aa1600d19e7ce29ea20f6a827e655cf6d912099a0b1eeb4c294523192d12d85bf7679ce22279e2af9e3
@@ -0,0 +1,21 @@
1
+ name: Tests
2
+ on: [push]
3
+
4
+ jobs:
5
+ ruby:
6
+ name: Ruby Tests
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby-version: [ "2.3", "2.4", "2.5", "2.6", "2.7", "3.0" ]
11
+
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v2
15
+ - name: Setup Ruby
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ bundler-cache: true
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ - name: Run Tests
21
+ run: bundle exec rake spec
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ rocx-0.1.0.gem
5
5
  .rspec-local
6
6
  /coverage
7
7
  TODO.md
8
+ Gemfile.lock
@@ -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.2.1"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.required_ruby_version = ">= 2.0"
22
+ spec.required_ruby_version = ">= 2.3"
23
23
 
24
24
  spec.add_dependency "nokogiri"
25
25
  spec.add_dependency "openxml-package", "~> 0.3.2"
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.2.1
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-10-28 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
@@ -133,10 +133,9 @@ executables: []
133
133
  extensions: []
134
134
  extra_rdoc_files: []
135
135
  files:
136
+ - ".github/workflows/ci.yml"
136
137
  - ".gitignore"
137
- - ".travis.yml"
138
138
  - Gemfile
139
- - Gemfile.lock
140
139
  - LICENSE.txt
141
140
  - README.md
142
141
  - Rakefile
@@ -410,14 +409,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
410
409
  requirements:
411
410
  - - ">="
412
411
  - !ruby/object:Gem::Version
413
- version: '2.0'
412
+ version: '2.3'
414
413
  required_rubygems_version: !ruby/object:Gem::Requirement
415
414
  requirements:
416
415
  - - ">="
417
416
  - !ruby/object:Gem::Version
418
417
  version: '0'
419
418
  requirements: []
420
- rubygems_version: 3.2.15
419
+ rubygems_version: 3.4.6
421
420
  signing_key:
422
421
  specification_version: 4
423
422
  summary: Implements the Office Open XML spec for DrawingML
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- # .travis.yml
2
- language: ruby
3
- rvm:
4
- - 2.3.0
5
- script:
6
- - bundle exec rake spec
data/Gemfile.lock DELETED
@@ -1,65 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- openxml-drawingml (0.2.1)
5
- nokogiri
6
- openxml-package (~> 0.3.2)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- coderay (1.1.2)
12
- diff-lcs (1.3)
13
- docile (1.3.1)
14
- json (2.1.0)
15
- method_source (0.9.2)
16
- mini_portile2 (2.6.1)
17
- nokogiri (1.12.5)
18
- mini_portile2 (~> 2.6.1)
19
- racc (~> 1.4)
20
- openxml-package (0.3.4)
21
- nokogiri
22
- ox
23
- rubyzip
24
- ox (2.14.5)
25
- pry (0.12.2)
26
- coderay (~> 1.1.0)
27
- method_source (~> 0.9.0)
28
- racc (1.6.0)
29
- rake (12.3.2)
30
- rr (1.2.1)
31
- rspec (3.8.0)
32
- rspec-core (~> 3.8.0)
33
- rspec-expectations (~> 3.8.0)
34
- rspec-mocks (~> 3.8.0)
35
- rspec-core (3.8.0)
36
- rspec-support (~> 3.8.0)
37
- rspec-expectations (3.8.2)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-mocks (3.8.0)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-support (3.8.0)
44
- rubyzip (2.3.2)
45
- simplecov (0.16.1)
46
- docile (~> 1.1)
47
- json (>= 1.8, < 3)
48
- simplecov-html (~> 0.10.0)
49
- simplecov-html (0.10.2)
50
- timecop (0.9.1)
51
-
52
- PLATFORMS
53
- ruby
54
-
55
- DEPENDENCIES
56
- openxml-drawingml!
57
- pry
58
- rake
59
- rr
60
- rspec
61
- simplecov
62
- timecop
63
-
64
- BUNDLED WITH
65
- 2.2.17