doc2text 0.4.10 → 0.4.11

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: 74365e7b06103f594f0e2984c520ed24aad2e7b45202eac4a5b0069297e2743c
4
- data.tar.gz: e53dcb4b5eca2f92d8287e4447b8307978493ae36e4eb4e1c53fb54dd529f9fa
3
+ metadata.gz: 3c1beb721d04a176cf3c6865d627d1db7ec4d3f0659ccffe0ecc856ce402a09e
4
+ data.tar.gz: a5248bc158bfc3bcac2cb776bb613c0c0c275155997aa71df292a6ecd6459782
5
5
  SHA512:
6
- metadata.gz: 430df5a5805e14f4e7348595662415c1c98148d6bab6274cd0db52e92e08fe2be75e3ce88e380412ea3e25966040ff3ed7f4a24a4bbdb9a88fdbaacf3bca710e
7
- data.tar.gz: f93c232f94dd142c9e1d39afa1db8ba0129ff9fd0901c1417569ba4113ddff7995e2424cfcd033dd52e3197c9515fd22cfece5da6b4e6c30f22ac01b43017bd9
6
+ metadata.gz: cce97b69956004f57f17edcdd4276ee3da5d7c5174a4b48138c39705808ccc56c8caae6880f1b41fee4b02ade0b745b6ac0e7e4b43564d614f7e81523ff11a87
7
+ data.tar.gz: cba486e21727b50d6dbeed98374ccbeb5a3cd6494f8db0b4168a5c37612a4c9a13dba1c7986764179fc78657063b414879adff710812d501558ce367a8ac2069
@@ -12,9 +12,9 @@ module Doc2Text
12
12
  |zip_file|
13
13
  Dir.mkdir(extract_path)
14
14
  zip_file.each do |entry|
15
- zipped_file_extract_path = File.join extract_path, entry.name
16
- FileUtils.mkdir_p File.dirname(zipped_file_extract_path)
17
- zip_file.extract entry, zipped_file_extract_path
15
+ zipped_file_extract_path = File.join extract_path, File.dirname(entry.name)
16
+ FileUtils.mkdir_p zipped_file_extract_path
17
+ zip_file.extract entry, nil, destination_directory: extract_path
18
18
  end
19
19
  }
20
20
  end
@@ -41,7 +41,7 @@ module Doc2Text
41
41
  end
42
42
 
43
43
  def extract_path
44
- File.join File.dirname(@document_path), ".#{File.basename(@document_path)}_#{extract_extension}"
44
+ @extract_path ||= File.join File.dirname(@document_path), ".#{File.basename(@document_path)}_#{extract_extension}"
45
45
  end
46
46
  end
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doc2text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin A.
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
- rubygems_version: 4.0.10
81
+ rubygems_version: 3.6.7
82
82
  specification_version: 4
83
83
  summary: Translates odt to markdown
84
84
  test_files: []