Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade faraday to 0.14.0 #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/linked_in/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def initialize(url=nil, options=nil, &block)
# We need to use the FlatParamsEncoder so we can pass multiple of
# the same param to certain endpoints (like the search API).
self.options.params_encoder = ::Faraday::FlatParamsEncoder

self.response :linkedin_raise_error
middleware = Faraday::RackBuilder::Handler.new(LinkedIn::RaiseError)
self.builder.handlers.push(middleware)
end


Expand Down
4 changes: 2 additions & 2 deletions linkedin-oauth2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Gem::Specification.new do |gem|
# To support native JSON. Same requirements as Rails.
gem.required_ruby_version = '>= 1.9.3'

gem.add_dependency "oauth2", "~> 1.0"
gem.add_dependency "oauth2"
gem.add_dependency "hashie", "~> 3.2"
gem.add_dependency "faraday", "~> 0.9"
gem.add_dependency "faraday", "~> 0.14.0"

gem.add_development_dependency "rake"
gem.add_development_dependency "rspec", "~> 3.0"
Expand Down