tiramizoo 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiramizoo.rb +1 -4
- data/lib/tiramizoo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a915badea6d4976e95f7f691d15b3095004572fb
|
4
|
+
data.tar.gz: 689540a9b70b4efdcde997497738894043569654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6533db37e9d3517e734d45d727a8a031040f2156bf3f82143637e73ab4cc15a6cf112d217bf5dd52196f43bf97d0bb3eb30e38587488df3dbe17ebbd5de79b68
|
7
|
+
data.tar.gz: 33b75e81ed55bbed8cc8d56ed9834767f9f434a8db436124690b43765c0eee68b665f5ec3a3127e02653661d3b7da17a4e6eced85f87b73b613347c6ce46ae11
|
data/lib/tiramizoo.rb
CHANGED
@@ -17,9 +17,6 @@ module Tiramizoo
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def create_order(sender = {}, recipient = {}, packages = [], time_window = {}, options = {})
|
20
|
-
sender = sender.slice("address_line", "postal_code", "country_code", "name", "phone_number", "information")
|
21
|
-
recipient = recipient.slice("address_line", "postal_code", "country_code", "name", "phone_number", "information")
|
22
|
-
|
23
20
|
body = {
|
24
21
|
"pickup" => sender.merge({
|
25
22
|
"after" => time_window["pickup_after"]
|
@@ -57,7 +54,7 @@ module Tiramizoo
|
|
57
54
|
when 401
|
58
55
|
raise InvalidApiToken
|
59
56
|
when 422
|
60
|
-
raise UnprocessableEntity.new(
|
57
|
+
raise UnprocessableEntity.new(response.body.force_encoding("utf-8"))
|
61
58
|
when 500
|
62
59
|
raise ServerError
|
63
60
|
when 503
|
data/lib/tiramizoo/version.rb
CHANGED