service_caller 1.0.6 → 1.0.7

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/service_error.rb +2 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c1313e1b353cf8d51153ce4bd9e6b86bc94d316709c55831577d00b3941f0ca
4
- data.tar.gz: 567531b521f7f072dc944c9ddda7f9b44928bab7af2ed4b4622b5dbb72ac60b7
3
+ metadata.gz: b493de0bcf6aaff3c0daba2ccefc261c47153963dfa134fff6a6816d48db3e1e
4
+ data.tar.gz: 65a47a73a42b6bf314deef26778f0ac097f3157b864cd9262b5fbfed9712626b
5
5
  SHA512:
6
- metadata.gz: 255720883b3aaf9df87c4482a8b628394863d65ebe4fd7dcf8af66f76564a92173905f72193fd88687ba3989beec3e3bd6bbd43c181d1ae6a258d204cebe27d2
7
- data.tar.gz: fb840f0cf41fe41714d301f6abc2780bea9695e747100951ad76306ec84289e16775a14ddac0407f40a5895e93f14687609c616095edcb6f5c5ff5a8fb7fc5e0
6
+ metadata.gz: 41c351b6befc131da9f7ac025d2d5c299b7ea5dbf5a68966592c4c80f4c83953e0c8a8443b38c38a9e5113cdfc946a84efef5465f3a73433e7b83d49eaf96158
7
+ data.tar.gz: edde6d3efef4f44f94a16485317ee87be423d8970e6e2d8fe26fb96aa70410f59fc1a3792af1386a8780b4df6b2b4d94fba562db55d0f21930fcbf77664c51aa
data/lib/service_error.rb CHANGED
@@ -14,7 +14,8 @@ class ServiceError < StandardError
14
14
 
15
15
  def initialize(key, error_obj={})
16
16
  @key = key
17
+ error_msg = error_obj.delete(:error_msg) || key
17
18
  @error_obj = error_obj
18
- super(error_obj[:error_msg] || key)
19
+ super(error_msg)
19
20
  end
20
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_caller
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: basic implement of service object
14
14
  email: laura34963@kdanmobile.com
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  requirements: []
45
- rubygems_version: 3.0.1
45
+ rubygems_version: 3.0.6
46
46
  signing_key:
47
47
  specification_version: 4
48
48
  summary: Ruby Service Basic Class