docxify 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/docxify/element/file.rb +0 -2
- data/lib/docxify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9feb2e005b3722bb91013f2b319a93da1f7ee49cbce3d28491dc279f1a06776a
|
4
|
+
data.tar.gz: 792b462f78fb7c03dc73f12ef9c9ab9359e55ab09d06a3cbcf10bd65b332cac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe9457df0501983598674783c781ebf2cc8b964e540aadc90645d8a1132a62ed0a28c2cbec56931d069b2435cb5e6419cca4a7e4232afb22f0b4a08bac2687ee
|
7
|
+
data.tar.gz: 0a8d8fb56b6f88350885cb0afadf8100fa31b682c3bef5c1cdba90ce0c039fdb9fc2f00aa3024723c9add5bb7cc97b288378def2f0ccf4ab85287f72d4f65408
|
data/CHANGELOG.md
CHANGED
data/lib/docxify/element/file.rb
CHANGED
@@ -22,11 +22,9 @@ module DocXify
|
|
22
22
|
if contains_png_image?(file_path_or_data)
|
23
23
|
@data = file_path_or_data
|
24
24
|
@filename = "#{Digest::SHA1.hexdigest(@data)}.png"
|
25
|
-
puts "Contains PNG image #{@filename}"
|
26
25
|
elsif contains_jpeg_image?(file_path_or_data)
|
27
26
|
@data = file_path_or_data
|
28
27
|
@filename = "#{Digest::SHA1.hexdigest(@data)}.jpg"
|
29
|
-
puts "Contains JPEG image #{@filename}"
|
30
28
|
else
|
31
29
|
raise ArgumentError.new("Unsupported file type - images must be PNG or JPEG")
|
32
30
|
end
|
data/lib/docxify/version.rb
CHANGED