avv2word 1.1.17 → 1.1.18

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: 3cbebc1afb001bc7dda9e38d4cd2f8baf1024eeaadcdc093d2ec98f4dc3512fd
4
- data.tar.gz: 27607e2db08645c80f924c665adf051800204f5f81a1f35947c54ba42afc5a06
3
+ metadata.gz: 95e387833887863cebe3143db7017ab686644701424caa5b49343c51300ad310
4
+ data.tar.gz: 7c24d2050e2a38d43347b520262a4a1c8214a84e6e0e3888f7a24285df44b4cc
5
5
  SHA512:
6
- metadata.gz: 965cee217f0a047a274baa21f166151e4019aba32b7f6bfb7c826fda9ee0a2303e0455f41e528b23b67e54d99a1b666d3af88e8809a5d8b17b5651ff526cabd5
7
- data.tar.gz: b0ef73b72c1e6c83724cf1d563300cf94b59eac7e6494a82d15f0f47e810fb815c5d78cdea979a39689409a8d5f4dd0ef192dbdf32d0c65a65a0188957647299
6
+ metadata.gz: 5b511db218b1df2be1e85e663c0ddd0479d5bc3b3ad463b096b382adcc285d383688aa37d1ed74388cd7979f8dbba97fe15841caf23bdc6a6c6f4781f265bfb4
7
+ data.tar.gz: fd00d1831daca0f1a8b1d7fc882b2af026d5c709122c1e5ef3560eb0822f9c591655f67f91a16f73edc37831b8a208ec17caff08578ad3479b57e262fcdcf106
@@ -18,7 +18,7 @@ module Avv2word
18
18
  mime_type, img_data = img_elm.attributes["src"].value.split(",")
19
19
  # ^--data:image/jpeg;base64
20
20
  img_path = "tmp_imgs/image_#{i}.jpg"
21
- File.open(img_path,"w"){|f| f.write Base64.decode64(img_data)}
21
+ File.open(img_path,"wb"){|f| f.write Base64.decode64(img_data)}
22
22
  img_elm.attributes["src"].value = img_path
23
23
  match_dimensions = %x( file #{img_path} ).match(/, (?<x>\d+) ?x ?(?<y>\d+),/)
24
24
  img_elm["style"] = "width:#{match_dimensions[:x].to_i*resize}px;height:#{match_dimensions[:y].to_i*resize}px"
@@ -1,3 +1,3 @@
1
1
  module Avv2word
2
- VERSION = '1.1.17'
2
+ VERSION = '1.1.18'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avv2word
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.17
4
+ version: 1.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marián Bilas