Skip to content
This repository
Browse code

use HTTMultiParty to support file upload

  • Loading branch information...
commit 48e80b64bc6bc936ea88f5078b3a01651f38c03a 1 parent 9aed628
David Li taweili authored
1  init.rb
... ... @@ -1,3 +1,4 @@
1 1 require "httparty"
  2 +require "httmultiparty"
2 3 require "hashie"
3 4 require "mogli"
2  lib/mogli.rb
@@ -2,7 +2,7 @@ module Mogli
2 2 end
3 3
4 4 require "httparty"
5   -
  5 +require "httmultiparty"
6 6
7 7 require "mogli/authenticator"
8 8 require "mogli/model"
2  lib/mogli/client.rb
@@ -7,7 +7,7 @@ class Client
7 7 attr_reader :default_params
8 8 attr_reader :expiration
9 9
10   - include HTTParty
  10 + include HTTMultiParty
11 11 include Mogli::Client::Event
12 12 include Mogli::Client::User
13 13
1  mogli.gemspec
@@ -10,6 +10,7 @@ spec = Gem::Specification.new do |s|
10 10 s.email = 'mmangino@elevatedrails.com'
11 11 s.homepage = 'http://developers.facebook.com/docs/api'
12 12 s.add_dependency 'hashie', '~> 1.1.0'
  13 + s.add_dependency 'httmultiparty', '>= 0.3.6'
13 14 s.add_dependency 'httparty', '>= 0.4.3'
14 15 s.add_dependency 'multi_json', '~> 1.0.3'
15 16 s.add_development_dependency 'json'

0 comments on commit 48e80b6

Please sign in to comment.
Something went wrong with that request. Please try again.