booking-ruby 0.1.3 → 0.1.4

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: b9bfb8bb6f132db74e4879b25d7654975ecd4c5d
4
- data.tar.gz: 7c15de88e3b663d2db0e541ebd0827e56a6c6190
3
+ metadata.gz: 867aa4b580e5f826678be6de48a9ddd1c62141ca
4
+ data.tar.gz: ebe78f6abe2f83f794d3ae413335465d0b73e7f3
5
5
  SHA512:
6
- metadata.gz: 9da48bd7edd2fa545bf196c31409203da82862a3a9ec5ba022053e58d3fa6b1a6a3fac270a57e326b41897ae2c3ee337dd50e3d4f9368adfc367d85156255950
7
- data.tar.gz: 413e531b644598a7274586d93ffb9d224f5063c3f0706ef347ed96a645058fcd6dde256dcbfa67324bcb2f2917abdc6a8fab476fcfc5fa3e6805f666f04f8d29
6
+ metadata.gz: 25783f659992561a87528331e029745f874bbde29488defde35589a7b8c51c31563fa8c5b60606a84b03dae76f90d7b574962eb163a46b16e1c309e25f1c7f2b
7
+ data.tar.gz: 68822a113b95cd41d45313896b81d07f4d8a7c62ae4f4bff22ffef37fd84532a4b32a555f6d8be12d47e616434d5832a230ec182fdc47a79090a5928dadab3a1
@@ -14,9 +14,11 @@ module BookingApi
14
14
  end
15
15
 
16
16
  def parsed_entries_from_response
17
- JSON.parse(response.body)
18
- rescue JSON::ParserError
19
- []
17
+ if response.body && (response.body.is_a?(Hash) || response.body.is_a?(Array))
18
+ response.body
19
+ else
20
+ raise JSON::ParserError
21
+ end
20
22
  end
21
23
  end
22
24
  end
@@ -1,3 +1,3 @@
1
1
  module BookingApi
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booking-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hendrik Kleinwaechter