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

Excon-Adapter #38

Merged
merged 4 commits into from Jan 7, 2018

Conversation

Projects
None yet
2 participants
@manme

manme commented Dec 17, 2017

Integration of Excon for Sniffer is introduced here

Mikhail Mandronov added some commits Dec 17, 2017

Mikhail Mandronov
Mikhail Mandronov
Mikhail Mandronov
# rubocop:disable Metrics/AbcSize,Metrics/MethodLength
def request_with_sniffer(params = {}, &block)
if Sniffer.enabled?
datum = data.merge(params)

This comment has been minimized.

@manme

manme Dec 18, 2017

возможно не лучшая имплементация
данные о запросе могут храниться как в data так и в params
через middleware в теории может быть стабильней, но для других адаптеров выбран подобный путь.

This comment has been minimized.

@aderyabin

aderyabin Jan 7, 2018

Owner

Потому что не все поддерживают middleware

@aderyabin aderyabin merged commit 7d0cb5c into aderyabin:master Jan 7, 2018

2 checks passed

codeclimate All good!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment