twimage 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,6 @@ $:.unshift(File.dirname(__FILE__)) unless
9
9
  require 'twimage/base'
10
10
  require 'twimage/twitpic'
11
11
  require 'twimage/version'
12
- #Dir.glob('./twimage/*').each { |f| require_relative f }
13
12
 
14
13
  module Twimage
15
14
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Twimage
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: twimage
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rob Cameron