openxml-docx 0.11.3 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aef7247561ac85ebf59ce97f8a4c3de2b74e03d29881cb00257d44462adb395e
4
- data.tar.gz: 71d28458c33a4f75f61231e235d9cc956c8b6f70e1cd7473ca7b3ea1bbfeb1b5
3
+ metadata.gz: c043249c00d51ea622a2bbe412c85e44d19f684f66cea17039864801f0e63a0a
4
+ data.tar.gz: 19130fc1b08df6b6e2a9880f0c8984818ecb2ec0068854d8e5505703727fca5d
5
5
  SHA512:
6
- metadata.gz: ceb9ea15cc3af14d25fbfd44aed3146701f8914f7b17ccb82303b32dbba2837d02de3e14326533ba0b92183c365e35b767ef7a681efd3de234f1f24aa721f540
7
- data.tar.gz: d2458309c0b8f36154ab0e8a6992d90b58a5d8bd66438db45081a8f385337808fa0de0e8c5adfe98254127d6fe4685b066cb056835ea9ebed81500df5b384d72
6
+ metadata.gz: 5b8d63ae7366c58096db5898fb9c38119b60089186140a99d46d98b3c5bc461081add2b2d30ea693f6ab4405b3c79d66a96ed401f485f27c8bdc35af64cd94b4
7
+ data.tar.gz: e3316a118cc6f756c39e36cabe6a2f8de4e57e2e8f49ec1b90f12d3a2e5528b2349a5a8ef74daebb2b18f98ff2fd7a7cba35e10ca7b10c9e74662bf1037516a9
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby-version: [ "2.6", "2.7" ]
10
+ ruby-version: [ "2.6", "2.7", "3.0" ]
11
11
 
12
12
  steps:
13
13
  - name: Checkout
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openxml-docx (0.11.3)
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.3.2)
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.0)
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.5)
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.18.5)
49
+ simplecov (0.21.2)
50
50
  docile (~> 1.1)
51
51
  simplecov-html (~> 0.11)
52
- simplecov-html (0.12.2)
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module OpenXml
2
2
  module Docx
3
- VERSION = "0.11.3"
3
+ VERSION = "0.11.4"
4
4
  end
5
5
  end
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.3
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-10-28 00:00:00.000000000 Z
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.1.6
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