Permalink
Browse files

Merge pull request #7 from alfo/master

Fixed #6
  • Loading branch information...
2 parents 152bfa3 + 25dd136 commit b367551640a64e00565887c5e4d8ec9aa804411d @mattb committed Apr 4, 2013
Showing with 6 additions and 5 deletions.
  1. +3 −3 instapaper_full.gemspec
  2. +3 −2 lib/instapaper_full.rb
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency("faraday", "~> 0.7.5")
- s.add_dependency("faraday_middleware", "~> 0.7.0")
+ s.add_dependency("faraday")
+ s.add_dependency("faraday_middleware")
s.add_dependency("simple_oauth", "~> 0.1")
- s.add_dependency("multi_json", "~> 1.0.4")
+ s.add_dependency("multi_json")
s.add_dependency("yajl-ruby", "~> 1.1.0")
s.add_development_dependency("rake")
@@ -1,7 +1,7 @@
require 'errors'
require 'json'
-require 'faraday/request/oauth'
-require 'faraday/response/parse_json'
+require 'faraday'
+require 'faraday_middleware'
module InstapaperFull
class API
@@ -28,6 +28,7 @@ def connection(options = {})
end
Faraday.new(options) do |builder|
+ builder.use Faraday::Request::Multipart
builder.use Faraday::Request::OAuth, oauth_params
builder.use Faraday::Request::UrlEncoded
builder.adapter Faraday.default_adapter

0 comments on commit b367551

Please sign in to comment.