qismo 0.8.0 → 0.8.1

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
  SHA256:
3
- metadata.gz: dac88cb1f371d51c88e85081b67c5a76780b52213a09b63f72e09354d877d8f6
4
- data.tar.gz: bc5767705a8da37415349f22734b0001197d5b42d49d158a5784c4894c1ca647
3
+ metadata.gz: 303405e0a510d866ccee020b05461f78dc2495dc1d79c00f9aa7c5cc5f05cac6
4
+ data.tar.gz: bcc7bc0d00e334ffb620190589421aedee83b89dbdeed9ac151f207152bde65f
5
5
  SHA512:
6
- metadata.gz: d7ea544beb490433c2e61a3b6790f4833511fbc3c89732000404603d2a5971fd47e179b1ada028a8abfd07086feaefa48a663fd7557a550ce4e489463fc5a786
7
- data.tar.gz: cbb1ceb24dcc1078a27465a362b269c6d6707fe4ccca1e585c9d5e8a7c53298c2b6724d0ab101cd1185518daf8b8c966c76997300a251ecdb53174d4e7d85faf
6
+ metadata.gz: 7b8ff7453b441a91a12c02d34447ba41a8f6c9fe0b2d17037707d92691ff3174e76e7251b74bcde9f626ef8cb6546176792fbc4afc2157bd898e15c1c373b7d0
7
+ data.tar.gz: a764e416f07d2be5023cd3aaf363940548cd4004634650dfb62111eff4bf434327c47200611d32f5c9e08ab0cf0c44fc13de4679217e7a09ccb2becfce7c0e7e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qismo (0.7.1)
4
+ qismo (0.8.0)
5
5
  activesupport
6
6
  http
7
7
 
data/lib/qismo/api.rb CHANGED
@@ -15,7 +15,11 @@ module Qismo
15
15
 
16
16
  def room(room_id)
17
17
  body = get("/api/v2/customer_rooms/#{room_id}")
18
- body.data.customer_room
18
+ if body.data.customer_room.nil?
19
+ raise Qismo::NotFoundError.new("Room not found", status_code: 404, response_body: body.to_json)
20
+ end
21
+
22
+ body
19
23
  end
20
24
 
21
25
  def room_additional_info(room_id)
data/lib/qismo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qismo
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qismo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qiscus Integration