service_caller 1.0.5 → 1.0.6

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: a82a014594816863e1bfcc5595241ad98f46088584d3491b014b1a64c70a42c2
4
- data.tar.gz: 4c436447096e5d4eda6be6e3dc445cf9857686d57eab9a471a9c352de58db1c3
3
+ metadata.gz: 9c1313e1b353cf8d51153ce4bd9e6b86bc94d316709c55831577d00b3941f0ca
4
+ data.tar.gz: 567531b521f7f072dc944c9ddda7f9b44928bab7af2ed4b4622b5dbb72ac60b7
5
5
  SHA512:
6
- metadata.gz: 6bfda486178406cbb5d2a3f69a9c918d1b3726f5dec1ee635fccf3e1d4229bf24a2998f210a824edfe499999cd8c30454cbbe73dc731c215894bac7fca7c9d37
7
- data.tar.gz: 14808d05d2f90a70502d4c0f2978fc5e626a04942c23ee2f8a55caaea9ab33e2aafea7a607096f0bb7dcbb98868bc27dd4747a76e99e8897c177ce4e41ffb37b
6
+ metadata.gz: 255720883b3aaf9df87c4482a8b628394863d65ebe4fd7dcf8af66f76564a92173905f72193fd88687ba3989beec3e3bd6bbd43c181d1ae6a258d204cebe27d2
7
+ data.tar.gz: fb840f0cf41fe41714d301f6abc2780bea9695e747100951ad76306ec84289e16775a14ddac0407f40a5895e93f14687609c616095edcb6f5c5ff5a8fb7fc5e0
@@ -2,7 +2,7 @@ module ServiceExtend
2
2
  module Handler
3
3
 
4
4
  def call
5
- if defined?(::Rails::Engine)
5
+ if defined?(::Rails::Engine) && defined?(::ActiveRecord)
6
6
  begin
7
7
  super
8
8
  rescue ServiceError => e
@@ -25,4 +25,4 @@ module ServiceExtend
25
25
  end
26
26
 
27
27
  end
28
- end
28
+ 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.5
4
+ version: 1.0.6
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-11-29 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: basic implement of service object
14
14
  email: laura34963@kdanmobile.com