-
Notifications
You must be signed in to change notification settings - Fork 43
2223-3 #294
base: master
Are you sure you want to change the base?
2223-3 #294
Conversation
2223/3/app/helpers/azure.rb
Outdated
headers = { 'Content-Type' => 'application/json', | ||
'Ocp-Apim-Subscription-Key' => File.read('settings/azure_key.txt') } | ||
connection.post do |request| | ||
request.url PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FeatureEnvy: Azure#response refers to 'request' more than self (maybe move it to another class?). More info.
require 'json' | ||
require 'mechanize' | ||
require 'faraday' | ||
require 'pry' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this gem is used in dev mode
you should not require 'pry' in production.
@@ -0,0 +1,47 @@ | |||
require 'faraday' | |||
require 'pry' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pry only in dev mode
end | ||
|
||
def connection | ||
headers = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move headers to constant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Номер
2223
Номер задания
3
Ссылка на видео с демо
https://youtu.be/r1sAs2qrgYo
Комментарии
Выполнено