We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a4b22 commit ec9d18aCopy full SHA for ec9d18a
1 file changed
lib/docx/document.rb
@@ -1,7 +1,7 @@
1
require 'docx/containers'
2
require 'docx/elements'
3
require 'nokogiri'
4
-require 'zip/zip'
+require 'zip'
5
6
module Docx
7
# The Document class wraps around a docx file and provides methods to
@@ -22,7 +22,7 @@ class Document
22
23
def initialize(path, &block)
24
@replace = {}
25
- @zip = Zip::ZipFile.open(path)
+ @zip = Zip::File.open(path)
26
@document_xml = @zip.read('word/document.xml')
27
@doc = Nokogiri::XML(@document_xml)
28
@styles_xml = @zip.read('word/styles.xml')
0 commit comments