error_response 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/error_response.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4337265a4915af5e2401a44cc42d65a309e46152ea9a565a72e8ac2ee4428c6d
4
- data.tar.gz: ab9ec645f4cd894f493ba8df370fc944a57e5c464e17da29659ce3193c0e75a8
3
+ metadata.gz: 1dfefe20bd6f5d04dd9c810e9c41162c8553b6f956d66ca8167b582802e3942c
4
+ data.tar.gz: c62ac75a87b7e8c2792042524d885ecc67a0af91c07057dbf637f290350f2593
5
5
  SHA512:
6
- metadata.gz: 287974143f9c2c9cd714e9ba26f3f700cf709884cb0af76badc24abab2fdf4edef9d9ef0fd3253bddba16d7dbe026d33d62d1b47a7a9eca1762ffbb20ec7004a
7
- data.tar.gz: c808a0de1c3cdd652105a323e1b709dda8a2128c70453015a020158eb80c2733896ce12a6343f1f06c3b6bba44ddd8161d30ad61a7caeed9d60a2ac6b4ec13e4
6
+ metadata.gz: c060b9b673d0d4de104fbd08aa55a482ab25c481b89f0a06e0afbdf8ab62b4840fba3753857c24744839f19d4b40503ce1e5bf982b1ef43055162aa3a25af0fc
7
+ data.tar.gz: c5e2ba705cea8bbd13792683f98a67efdd9ac0706c8d9d5fdb227659df4ba35406b8d309624b13deb7cef92f16024bafc144ad424fb5bfa8a71d68b19cc11634
@@ -9,7 +9,7 @@ class ErrorResponse
9
9
  end
10
10
 
11
11
  def self.to_hash(key)
12
- return unless yaml_hash.key?(key.to_s)
12
+ return {} unless yaml_hash.key?(key.to_s)
13
13
  yaml_hash[key.to_s].merge({ 'error_key' => key.to_s })
14
14
  end
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: error_response
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kdan Mobile Software Developer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: use for error_response
14
14
  email: dev@kdanmobile.com