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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b2f03e5c1a326e97740fe641e90f51faeae0ec2
4
- data.tar.gz: ba6c31f4c65994508639d7402705e5d27a7e6542
3
+ metadata.gz: a915badea6d4976e95f7f691d15b3095004572fb
4
+ data.tar.gz: 689540a9b70b4efdcde997497738894043569654
5
5
  SHA512:
6
- metadata.gz: 2ff286a19b9efdb4ea17881850aabc375af3e80cc9aa12452803811d4dc90643285121f455840e9cd09b63d0ae387b66ce5f11d599a2a6fec27dd9b4c5c257b5
7
- data.tar.gz: 0e8ef3c1901603d8a8543f6ac813b1d5bc2e55dc8acfa03b4597afd02b3364ba7ad63a2d99be93abb2b06203208517453091f1eee47bd3e332b24a80c4dacef3
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(JSON.parse(response.body))
57
+ raise UnprocessableEntity.new(response.body.force_encoding("utf-8"))
61
58
  when 500
62
59
  raise ServerError
63
60
  when 503
@@ -1,3 +1,3 @@
1
1
  module Tiramizoo
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiramizoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiramizoo