photo_mini_fb 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. data/lib/photo_mini_fb.rb +1 -2
  2. metadata +2 -2
@@ -3,7 +3,6 @@ require 'erb'
3
3
  require 'json' unless defined? JSON
4
4
  require 'socket'
5
5
  require 'uri'
6
- require 'open-uri'
7
6
  require 'net/http'
8
7
 
9
8
  module MiniFB
@@ -207,7 +206,7 @@ module MiniFB
207
206
  end
208
207
 
209
208
  def MiniFB.post_upload(filename, kwargs)
210
- content = File.open(filename, 'rb') { |f| f.read }
209
+ content = open(filename, 'rb') { |f| f.read }
211
210
  boundary = Digest::MD5.hexdigest(content)
212
211
  header = {'Content-type' => "multipart/form-data, boundary=#{boundary}"}
213
212
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Reeder