openxml-docx 0.11.3 → 0.11.4
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 +1 -1
- data/Gemfile.lock +8 -6
- data/lib/openxml/docx/package.rb +2 -2
- data/lib/openxml/docx/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c043249c00d51ea622a2bbe412c85e44d19f684f66cea17039864801f0e63a0a
|
4
|
+
data.tar.gz: 19130fc1b08df6b6e2a9880f0c8984818ecb2ec0068854d8e5505703727fca5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b8d63ae7366c58096db5898fb9c38119b60089186140a99d46d98b3c5bc461081add2b2d30ea693f6ab4405b3c79d66a96ed401f485f27c8bdc35af64cd94b4
|
7
|
+
data.tar.gz: e3316a118cc6f756c39e36cabe6a2f8de4e57e2e8f49ec1b90f12d3a2e5528b2349a5a8ef74daebb2b18f98ff2fd7a7cba35e10ca7b10c9e74662bf1037516a9
|
data/.github/workflows/ci.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
openxml-docx (0.11.
|
4
|
+
openxml-docx (0.11.4)
|
5
5
|
nokogiri
|
6
6
|
openxml-drawingml
|
7
7
|
openxml-package (>= 0.2.2)
|
@@ -12,20 +12,20 @@ GEM
|
|
12
12
|
specs:
|
13
13
|
coderay (1.1.2)
|
14
14
|
diff-lcs (1.3)
|
15
|
-
docile (1.
|
15
|
+
docile (1.4.0)
|
16
16
|
method_source (1.0.0)
|
17
17
|
mini_portile2 (2.6.1)
|
18
18
|
nokogiri (1.12.5)
|
19
19
|
mini_portile2 (~> 2.6.1)
|
20
20
|
racc (~> 1.4)
|
21
|
-
openxml-drawingml (0.2.
|
21
|
+
openxml-drawingml (0.2.1)
|
22
22
|
nokogiri
|
23
23
|
openxml-package (~> 0.3.2)
|
24
24
|
openxml-package (0.3.4)
|
25
25
|
nokogiri
|
26
26
|
ox
|
27
27
|
rubyzip
|
28
|
-
ox (2.14.
|
28
|
+
ox (2.14.6)
|
29
29
|
pry (0.13.1)
|
30
30
|
coderay (~> 1.1)
|
31
31
|
method_source (~> 1.0)
|
@@ -46,10 +46,12 @@ GEM
|
|
46
46
|
rspec-support (~> 3.9.0)
|
47
47
|
rspec-support (3.9.3)
|
48
48
|
rubyzip (2.3.2)
|
49
|
-
simplecov (0.
|
49
|
+
simplecov (0.21.2)
|
50
50
|
docile (~> 1.1)
|
51
51
|
simplecov-html (~> 0.11)
|
52
|
-
|
52
|
+
simplecov_json_formatter (~> 0.1)
|
53
|
+
simplecov-html (0.12.3)
|
54
|
+
simplecov_json_formatter (0.1.3)
|
53
55
|
timecop (0.9.1)
|
54
56
|
|
55
57
|
PLATFORMS
|
data/lib/openxml/docx/package.rb
CHANGED
@@ -55,7 +55,7 @@ module OpenXml
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def embed_truetype_font(path: nil, name: nil)
|
58
|
-
open(path, "rb") do |source_font|
|
58
|
+
URI.open(path, "rb") do |source_font|
|
59
59
|
obfuscation_data = obfuscate_font source_font
|
60
60
|
data = obfuscation_data[:bytes] << source_font.read
|
61
61
|
destination_font_name = "font#{fonts.fonts.count + 1}.odttf"
|
@@ -79,7 +79,7 @@ module OpenXml
|
|
79
79
|
content_type ||= extension_match[:extension] if extension_match
|
80
80
|
return if content_type.nil?
|
81
81
|
|
82
|
-
open(path, "rb") do |source_image|
|
82
|
+
URI.open(path, "rb") do |source_image|
|
83
83
|
embed_image_data(data: source_image.read, content_type: content_type, into_part: into_part)
|
84
84
|
end
|
85
85
|
end
|
data/lib/openxml/docx/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openxml-docx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene Doyel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -477,7 +477,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
477
477
|
- !ruby/object:Gem::Version
|
478
478
|
version: '0'
|
479
479
|
requirements: []
|
480
|
-
rubygems_version: 3.
|
480
|
+
rubygems_version: 3.2.22
|
481
481
|
signing_key:
|
482
482
|
specification_version: 4
|
483
483
|
summary: Implements the Office Open XML spec for creating WordprocessingML documents
|