smooch-api 5.34.0 → 5.34.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
  SHA1:
3
- metadata.gz: 90d0d302fd9a6eafb34e7aff8d955eb17c745f59
4
- data.tar.gz: 739432170aa2c2872700a9818a42bf5bc18ddfc2
3
+ metadata.gz: 6cfda887c56b25877b1de9b0cce3406acebbd98e
4
+ data.tar.gz: ee2881535e507054db0d82bcca7579a0a2c99107
5
5
  SHA512:
6
- metadata.gz: 1b5ce4afbaf6f19262135f339ea6f3200310640b69be4b8383af900f39bd17881c0aa7e03af77560b0aa350558bf93d026f24f4e52e0cb19a79a5148697658cf
7
- data.tar.gz: b3eb46087e0bc572a68df4c9fafe84eb39a50e4fec689cc8c4adc411b7868143d0d19f8717d05f3493a0750230290b73e98e3357dca0048fc488fb0c50f3afa2
6
+ metadata.gz: 1eae0e105c0a02790ddae9bda7ef91a0802973c448e9260a0d889af27dfae03153bd4d13c3c40ec183d39696f73865a0a687a3f1461a4d2dabf00d8cbb364d5b
7
+ data.tar.gz: 8c0f9b1ad33b45b4f926bff4cd2703b3f954f2410de357f956f65df20f701f430f699d2636cd24ec5f93b60fb76d08d5a2ad62cd090b153a6649bb11e405ef85
data/README.md CHANGED
@@ -25,7 +25,7 @@ gem install smooch-api
25
25
 
26
26
  Add this to the Gemfile:
27
27
 
28
- gem 'smooch-api', '~> 5.34.0'
28
+ gem 'smooch-api', '~> 5.34.1'
29
29
 
30
30
  ## Getting Started
31
31
 
@@ -34,5 +34,27 @@ module SmoochApi
34
34
  super arg
35
35
  end
36
36
  end
37
+
38
+ # Override to_s to display a friendly error message
39
+ def to_s
40
+ message
41
+ end
42
+
43
+ def message
44
+ if @message.nil?
45
+ msg = "Error message: the server returns an error"
46
+ else
47
+ msg = @message
48
+ end
49
+
50
+ error_response = {
51
+ code: code,
52
+ response_headers: response_headers,
53
+ response_body: response_body,
54
+ }
55
+
56
+ msg += "\n#{error_response}"
57
+ msg
58
+ end
37
59
  end
38
- end
60
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.2.3-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module SmoochApi
14
- VERSION = "5.34.0"
14
+ VERSION = "5.34.1"
15
15
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 5.33
6
+ OpenAPI spec version: 5.34
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 5.33
6
+ OpenAPI spec version: 5.34
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
5
5
 
6
- OpenAPI spec version: 5.33
6
+ OpenAPI spec version: 5.34
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.34.0
4
+ version: 5.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smooch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-04 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus