service_caller 1.0.1 → 1.0.2

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: c5284539790a1d66ff79136adf0cec9cda146845e1f90b95537b44a7923824bf
4
- data.tar.gz: ad3aeac59b19ca57e4822a299eb3c0d3c06b7100ea1e69172d8ab695c0e2668d
3
+ metadata.gz: 5159b8ff11941967c8ec8109825b04b8d1b9829c6a01bd6aa48a2919569f699f
4
+ data.tar.gz: 69035b8b9442eb484b5e63a19206928a6296f966047da6ed8d238961fd8481ca
5
5
  SHA512:
6
- metadata.gz: 8c84a748b42fa8d69ea32197ae170b5fc4f92f9f1c9ff8f08ef4597ab3f97213df2ea1917ff6b0ea596fe6c3e728aab346fee26379b59bbb53652029a994f40c
7
- data.tar.gz: ad0a0fd20c82cde47ed87b95ee9b561ff0c13b06091f4ca3008d8304b9f370dfe48041f630f5faf26f033c44efc458cb9d1204ff852dd87c0c9cac318e92c18f
6
+ metadata.gz: e08b4d5ac5a26500b3385b7d267b0249740571bf8c2daf488bd83adc46c4f7a6c84b742e0e5909c1ed878de689a6488e7163d044274128ab9a92206b93e6c289
7
+ data.tar.gz: 54227b9ce8b66c2d49e49fe201fad94ed119c8f39dc1f1a01367ba0be4abff8bf3431e1e23820a680d8a48390706f9339b532b95a641de7ca28f05c4f2e629ae
@@ -8,7 +8,7 @@ module ServiceExtend
8
8
  rescue ServiceError => e
9
9
  @error = e
10
10
  rescue ActiveRecord::RecordNotFound => e
11
- @error = ServiceError.new(404, e.message)
11
+ @error = ServiceError.new(:record_not_found, e.message)
12
12
  @error.set_backtrace(e.backtrace)
13
13
  rescue Exception => e
14
14
  @error = ServiceError.generate_from_exception(e)
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-12 00:00:00.000000000 Z
11
+ date: 2019-08-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: basic implement of service object
14
14
  email: laura34963@kdanmobile.com