Skip to content

Commit

Permalink
Fix spec failures caused by Faraday 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Apr 24, 2012
1 parent 3aece62 commit 1bc25e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/octokit/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def connection(authenticate=true, raw=false, version=3, force_urlencoded=false)

connection = Faraday.new(options) do |builder|
if version >= 3 && !force_urlencoded
builder.use Faraday::Request::JSON
builder.request :json
else
builder.use Faraday::Request::UrlEncoded
builder.request :url_encoded
end
builder.use Faraday::Response::RaiseOctokitError
unless raw
Expand Down
4 changes: 2 additions & 2 deletions octokit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ require File.expand_path('../lib/octokit/version', __FILE__)

Gem::Specification.new do |gem|
gem.add_dependency 'addressable', '~> 2.2'
gem.add_dependency 'faraday', '~> 0.7'
gem.add_dependency 'faraday', '~> 0.8'
gem.add_dependency 'faraday_middleware', '~> 0.8'
gem.add_dependency 'hashie', '~> 1.2'
gem.add_dependency 'multi_json', '~> 1.3'
gem.add_development_dependency 'json'
gem.add_development_dependency 'maruku'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rspec', '~> 2.8'
gem.add_development_dependency 'rspec'
gem.add_development_dependency 'simplecov'
gem.add_development_dependency 'webmock'
gem.add_development_dependency 'yard'
Expand Down

0 comments on commit 1bc25e7

Please sign in to comment.