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 +4 -4
- data/.github/workflows/ci.yml +21 -0
- data/.gitignore +1 -0
- data/lib/openxml/drawingml/properties/percentage_property.rb +1 -1
- data/lib/openxml/drawingml/properties/space_after.rb +1 -1
- data/lib/openxml/drawingml/properties/space_before.rb +1 -1
- data/lib/openxml/drawingml/version.rb +1 -1
- data/openxml-drawingml.gemspec +1 -1
- metadata +5 -6
- data/.travis.yml +0 -6
- data/Gemfile.lock +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 234ae593cf6b0352ea48225f59d687c7f569e4fb38a5c974ba6a003be02d1c08
|
4
|
+
data.tar.gz: 32e68b47f5cc7ea282f37e169eec8f589f40e2750948283cb14e437904ce41b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
|
data/openxml-drawingml.gemspec
CHANGED
@@ -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.
|
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.
|
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:
|
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.
|
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.
|
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
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
|