docx_manipulator 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class DocxManipulator
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -33,7 +33,7 @@ class DocxManipulator
33
33
 
34
34
  Zip::ZipOutputStream.open(target) do |os|
35
35
  Zip::ZipFile.foreach(source) do |entry|
36
- unless files_to_be_written.include?(entry.name)
36
+ if !files_to_be_written.include?(entry.name) && entry.file?
37
37
  os.put_next_entry entry.name
38
38
  os.write entry.get_input_stream.read
39
39
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: docx_manipulator
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Michael St\xC3\xA4mpfli"