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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a2806ab42cdd91d4eaada59a02ef686432dec09656fd369d244e9a9111a5f0f
4
- data.tar.gz: ad0d1da2faf2bbdc2c51da677bf4c91c90a4fbb759a70e74da19d525e47de7a2
3
+ metadata.gz: 227b2cb36060dcd39e520a0bb39da83c26c51dace5628654e53f6183de9d4f1f
4
+ data.tar.gz: 8831c5e2e1ecbfb92571274fa2c88ffa5f69e31f584056bbbbd45ba516a40a0e
5
5
  SHA512:
6
- metadata.gz: 6849a6a65cb71d23f3f96b7cfccf47bdc2d808c76004bbfafb4321f9b670b852cb7b2770f0fa3fc0a553ca3c6e5d2ba85a52820c63e00350c61f1a69cffee730
7
- data.tar.gz: e0a8e457403e9b67210d0ada15d8aa3adbbbfea7a7c50810e40ad04dcf0b6d3ca74c193f191a34e127a9b5080aab834e9fa6ed66cca7c2ab95e71484c007d4ee
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}"
@@ -1,3 +1,3 @@
1
1
  module MagicBell
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
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.0
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-07-06 00:00:00.000000000 Z
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: []