magicbell 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/magicbell/api_operations.rb +1 -1
- data/lib/magicbell/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 227b2cb36060dcd39e520a0bb39da83c26c51dace5628654e53f6183de9d4f1f
|
4
|
+
data.tar.gz: 8831c5e2e1ecbfb92571274fa2c88ffa5f69e31f584056bbbbd45ba516a40a0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cf7e78a7f15536638a6689c65b1fc2c87138c708c062b6b28744838df205cb2e0f72f6350bba502d57ad12300911bb485e61f54b03fe6e2c6d6b12597ff0f11
|
7
|
+
data.tar.gz: a498534bed9613ec8dbd0c04641fee9a657fd60468a0db903799933665450279e30ffcb13afeaf41b49f3933876b3efb321e1ab3dc6d5f0c834d2d7bb49a0528
|
@@ -44,7 +44,7 @@ module MagicBell
|
|
44
44
|
e.errors = []
|
45
45
|
unless e.response_body.nil? || e.response_body.empty?
|
46
46
|
body = JSON.parse(response.body)
|
47
|
-
e.errors = body["errors"]
|
47
|
+
e.errors = body["errors"].is_a?(Array) ? body["errors"] : []
|
48
48
|
e.errors.each do |error, index|
|
49
49
|
puts "#{error["suggestion"].red}"
|
50
50
|
puts "#{error["help_link"].blue.on_white}"
|
data/lib/magicbell/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magicbell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hana Mohan
|
8
8
|
- Nisanth Chunduru
|
9
9
|
- Rahmane Ousmane
|
10
10
|
- Josue Montano
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-10-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: httparty
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
181
|
rubygems_version: 3.1.6
|
182
|
-
signing_key:
|
182
|
+
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Ruby Library for MagicBell
|
185
185
|
test_files: []
|