twimage 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/twimage.rb +0 -1
- data/lib/twimage/base.rb +1 -1
- data/lib/twimage/version.rb +1 -1
- metadata +1 -1
data/lib/twimage.rb
CHANGED
data/lib/twimage/base.rb
CHANGED
@@ -8,7 +8,7 @@ module Twimage
|
|
8
8
|
puts response.code
|
9
9
|
if response.code == 200
|
10
10
|
@image = Tempfile.new(['twimage','.jpg'])
|
11
|
-
@image << response.body
|
11
|
+
@image << response.body.force_encoding('utf-8')
|
12
12
|
else
|
13
13
|
raise ImageURLInvalid, "The image_url #{@image_url} was not found (returned a 404)"
|
14
14
|
end
|
data/lib/twimage/version.rb
CHANGED