docx 0.9.0 → 0.9.1

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: 38d8b4c53502b022e87a0b00ac8b15c99c06d79c2a51e664364ddd52dcca52a7
4
- data.tar.gz: e7a747b4ef58b53e279fdd0cfc516b06ab5c14820e622938bea4ec73858f637c
3
+ metadata.gz: f170295a0362d6fcbbe6313ddd9f3ccf50379eb220ab52b26caee581786471a4
4
+ data.tar.gz: f6050fc0a2959392184da37012e0a2efcb5290f8bb1d015510e9dd52abf71ee7
5
5
  SHA512:
6
- metadata.gz: f4db62333498540c5ff8ea488828d17c05629c0477fd917bd9106a061d987f368e02a16d4fe566b93c456a5b1920fe1aa5dfe3c39aa3d68682a99e83087c4f25
7
- data.tar.gz: 12864372c581d4fb4cd7f4330b49b4aa115061dfef5b8bc9ff603adaea6a0766b6e1475ae402eef473ce7636352e8b68657be59bc18cd048d85e2314d523f416
6
+ metadata.gz: de8c52dced6b5d95b7fa3d34ab8c124ce5e1539fc5874fac1b5a71d31c3f7c46af7b27cc53bd89960f122a01a5a36372825f91acd8c1d0cae715f7380a2b7625
7
+ data.tar.gz: bb39bab159ac4f5ccec77ddd3c64bd9a1a8863f80a948c7d963cfde2e6904ecc112f2c4c79e080dbfc37b2580ecc37ab4249c0d303f945a02ccae432a33671fc
data/lib/docx/document.rb CHANGED
@@ -29,7 +29,6 @@ module Docx
29
29
 
30
30
  # if path-or_io is string && does not contain a null byte
31
31
  if (path_or_io.instance_of?(String) && !/\u0000/.match?(path_or_io))
32
- raise Errno::EIO.new('Invalid file format') if !File.extname(path_or_io).eql?('.docx')
33
32
  @zip = Zip::File.open(path_or_io)
34
33
  else
35
34
  @zip = Zip::File.open_buffer(path_or_io)
data/lib/docx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Docx #:nodoc:
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Hunt
@@ -11,7 +11,7 @@ authors:
11
11
  - Sebastian Wittenkamp
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2025-04-20 00:00:00.000000000 Z
14
+ date: 2025-05-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri