phantoshot 0.0.4 → 0.0.5

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmMyYWIwMDI2MjVhNTg1MjAxNjdhMWQ2YWQzZjBkNDBmMWI5NGQyNQ==
4
+ YWY4ODQ3ZTRlN2UwNDU4Njk3N2E2MzBjOTUzZDYxMjI4ZjlhZjZiZg==
5
5
  data.tar.gz: !binary |-
6
- MmMzNzY2YWNlZjNhYzA3YmE2OTdkN2IwNzkzYmQxYjcxMzkyYmMwMA==
6
+ OTgxNWM0Mzc3ODUwMjhjYTg1ZjM1ZmZmOTcyOTEyYjEyZGQ4ZWUxZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTNkZjk5NjhiNjJkNzRlNzA0NjM3MzIwNmViYTY5ODI3MWJiZTEyMjcwMzU4
10
- ZDJjNjg0NTgwNjZhN2FkNmRiNDYyYTQ2YWRkMjA5MGIzOTg0NWRlNTYxZWE1
11
- N2QzYTQzNWI3NzkxZWZlNzk5MmU5ZDYzZjA4YWIyYzUyMDliODE=
9
+ Yjc3ZDFjYTNiZmYyYzEyOTZlNTBhYTY0YTA5ZmM5Mjc1NjI3OGYwZGRmMmMz
10
+ ZWJiOTk2MzZiZTkxMWNlYWYyNjg0MWIxNWUzNjRmMGQ0NzM2MzI4YTNhOTYx
11
+ MDdiMWM1ZjRmYmIzMjFlMThhNmZjNTU2YzgyMWUzNGEyMGQzNWM=
12
12
  data.tar.gz: !binary |-
13
- MjRlZTVjNDUzMzU2MTBkZmI4MDAyYWI5Y2I4ZTcwMDA0NDA3MzA4NDMxMjE2
14
- OWMzYzVhYjdlMGI4ZTNiY2ZmNzRiOTgyMGUzMTRkY2ViM2I4M2EwZWEyODg0
15
- YjhmZDMwYzJkNTBiMWU0NGVjOTRlNTJiN2ViYTgyMTEyODc1M2U=
13
+ ZjExMjgzMTM4ODBlZWRiMjlmY2M5ODdmNzNiNGY2MjcwMzE4MTI3MjMwNTc5
14
+ YjA0N2VlMDU4NjgyYmEyN2ZhM2RmYjdhMDliYTg0MmEwZGNlOWZhYjQ5MmIy
15
+ ZWYwYjM1YjUzNmYzNjE3ZjM3ZTIyMzY3NDU2NjQ0NjAxOTBmYTY=
@@ -14,9 +14,11 @@ include Magick
14
14
  hsh = Hashie::Mash.new(res)
15
15
 
16
16
  # Decode it for writing out to binary
17
- hsh[:image_data] = Base64.decode64( hsh[:image_data] )
17
+ hsh[:image_data] = Base64.decode64( hsh[:image_data] )
18
18
 
19
19
  tempfile = Tempfile.new('foo.png')
20
+ tempfile.binmode
21
+
20
22
  tempfile.write(hsh[:image_data])
21
23
  tempfile.close
22
24
 
@@ -33,6 +35,7 @@ include Magick
33
35
  end
34
36
 
35
37
  tempfile2 = Tempfile.new('bar.png')
38
+ tempfile2.binmode
36
39
 
37
40
  img.write(tempfile2.path)
38
41
 
@@ -1,3 +1,3 @@
1
1
  module Phantoshot
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantoshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Callahan