yandex-delivery 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yandex-delivery/api_request.rb +1 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ba338d37a068e4369364fc6f381913f1e6a968c532ee5db77f5b1df1302fc97
|
4
|
+
data.tar.gz: 73d448721cdfbe808bcf696e93ecded3e94e66e59533689a9772efe269442ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbda8e042c4d4f9f956d9f49cae7c492d1d3207b6580b744a60b59596e9611294dedac81d348c1347eb3f306ac0fd669428ab63b5422468ce4745880d2d98d9e
|
7
|
+
data.tar.gz: c6a070acd02dea393683083073ef4b267e382051ff99c973f86433f722b802cc915dbc28c2870f08f17cd6c3b58c56f158b0d79d17028014464e9c51171172dc
|
@@ -144,7 +144,7 @@ module YandexDelivery
|
|
144
144
|
if request
|
145
145
|
request.params.merge!(params) if params
|
146
146
|
request.headers['Content-Type'] = 'application/json'
|
147
|
-
request.headers['Authorization'] = "OAuth
|
147
|
+
request.headers['Authorization'] = "OAuth #{self.api_key}"
|
148
148
|
request.headers.merge!(headers) if headers
|
149
149
|
request.body = body if body
|
150
150
|
request.options.timeout = self.timeout
|
@@ -185,9 +185,6 @@ module YandexDelivery
|
|
185
185
|
unless self.api_key
|
186
186
|
raise YandexDelivery::YandexDeliveryError, "You must set an api_key prior to making a call"
|
187
187
|
end
|
188
|
-
unless self.app_id
|
189
|
-
raise YandexDelivery::YandexDeliveryError, "You must set an app_id prior to making a call"
|
190
|
-
end
|
191
188
|
end
|
192
189
|
|
193
190
|
def api_url
|