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 Farady #26

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 1 addition & 2 deletions help_scout-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency 'activesupport'
spec.add_dependency 'faraday', '~> 0.10'
spec.add_dependency 'faraday_middleware', '>= 0.10.1', '< 1.0'
spec.add_dependency 'faraday', '~> 2.6'
spec.required_ruby_version = '>= 2.3'

spec.add_development_dependency 'awesome_print', '~> 1.8'
Expand Down
1 change: 0 additions & 1 deletion lib/help_scout-sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require 'active_support/core_ext'
require 'json'
require 'faraday'
require 'faraday_middleware'

require 'help_scout/version'

Expand Down
2 changes: 1 addition & 1 deletion lib/help_scout/api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def connection
@_connection ||= build_connection.tap do |conn|
if authorize?
HelpScout::API::AccessToken.refresh!
conn.authorization(:Bearer, access_token) if access_token
conn.request(:authorization, :Bearer, access_token) if access_token
end
end
end
Expand Down