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

Update faraday gem to 0.9 #2

Open
wants to merge 4 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
2 changes: 1 addition & 1 deletion edge_cast.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.files = Dir.glob('lib/**/*') + %w[CHANGELOG.md LICENSE README.md]
s.require_path = 'lib'

s.add_dependency 'faraday', '~> 0.8'
s.add_dependency 'faraday', '~> 0.9'
s.add_dependency 'faraday_middleware', '~> 0.8'
s.add_dependency 'activesupport', '~> 4.0'

Expand Down
2 changes: 1 addition & 1 deletion lib/edge_cast/request/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module EdgeCast
module Request
class Authorization < Faraday::Middleware
Faraday.register_middleware :request, :auth => lambda { Authorization }
Faraday::Request.register_middleware :request, :auth => lambda { Authorization }

def initialize(app, api_token)
@app, @api_token = app, api_token
Expand Down
2 changes: 1 addition & 1 deletion lib/edge_cast/response/raise_client_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
module EdgeCast
module Response
class RaiseClientError < Faraday::Response::Middleware
Faraday.register_middleware :response, :client_error => lambda { RaiseClientError }
Faraday::Response.register_middleware :response, :client_error => lambda { RaiseClientError }

def on_complete(env)
case env[:status].to_i
Expand Down
2 changes: 1 addition & 1 deletion lib/edge_cast/response/raise_server_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module EdgeCast
module Response
class RaiseServerError < Faraday::Response::Middleware
Faraday.register_middleware :response, :server_error => lambda { RaiseServerError }
Faraday::Response.register_middleware :response, :server_error => lambda { RaiseServerError }

def on_complete(env)
case env[:status].to_i
Expand Down