error_response 0.2.2 → 0.2.3

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 +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cfa01e4926a8b4314961856f280ec635698c5206ee3e9f22c085e609db63e8b
4
- data.tar.gz: a03ad5a015db1e82b1a0b1cec8d59db52e38a24538eb00eb4f2794d9b1bdd0c8
3
+ metadata.gz: cc196d31f6efba6daf505398631854613de7c94c9b6b4e3e365bcc44519d0b31
4
+ data.tar.gz: 5b0ed90c4275256fd5fca3b26463826b8a8f1f9df83bf62b604cab923930e9ed
5
5
  SHA512:
6
- metadata.gz: 10801649800603182bf3b3b07a75b35d3b7734629aa550a06739ecce23fd47eeb48271f2e66856896b5a6e602e7067ccc59a096c0f4515cea14f0cc9b967cd47
7
- data.tar.gz: 75eb9c7b4a5ebb09fc7a75f66ca30216053e5cbec46c14065f8d4187b56e448ebc86c0f40910ecd44e53d1ea36729f9a2c9349337d425dfc488373931968b7a4
6
+ metadata.gz: 14ac71c26ddec3ec948131b0e0f2c5e1d6fde6775abde8513d21d621148a0015012207eb5c5f9fdace369ae75ca74d9b6d6c639e368f8b1a1f8ee3033abf6294
7
+ data.tar.gz: 3d012a284a580986cadfcf9c103779642eca3cb4b6a734b4c548bccaade20a8f5e9acfe1b1a426c4117120dc14c4b5e47e059918c46a00ff1a90c5d6cd0eee3c
@@ -13,7 +13,7 @@ class ErrorResponse
13
13
  end
14
14
 
15
15
  def self.to_hash(key)
16
- yaml_hash[key.to_s]
16
+ yaml_hash[key.to_s] || {}
17
17
  end
18
18
 
19
19
  def self.all
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: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jameslee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2020-01-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: use for error_response
14
14
  email: jameslee@kdanmobile.com
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
- rubygems_version: 3.0.4
39
+ rubygems_version: 3.0.6
40
40
  signing_key:
41
41
  specification_version: 4
42
42
  summary: A tool for API error response