zuora_connect 3.2.5 → 3.2.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb20b70dfdf001e2f58ec39b585a597b170636f62b6cf2b42ba7793be4b1801c
|
4
|
+
data.tar.gz: 75347ab051f27c0509c0c4478a4aabf7ab90f3c8c168fd3426fe364fb10322f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 744d36594c697e84a80b17f843084ac2f5f7848d71b145292eee1bda8ae11baf2e274d826bd1fec660a52506e80b7bcfb2291258919d087780ac05aaf06570e7
|
7
|
+
data.tar.gz: a510e390477e3f40ac956ea9382b0782837b445825048fa243551d0f2e7a9e3e9f24c58a7724d9b2cb55fc2a23837b5f4fc8c7f7dd8f96cc1ad8e8cd8d04564d
|
@@ -32,22 +32,7 @@ module Resque
|
|
32
32
|
else
|
33
33
|
raise
|
34
34
|
end
|
35
|
-
rescue ActiveRecord::StatementInvalid => exception
|
36
|
-
if (connection_count += 1) <= 3 &&
|
37
|
-
(
|
38
|
-
exception.message.include?("PG::UnableToSend: no connection to the server") ||
|
39
|
-
exception.message.include?("PG::ConnectionBad: PQconsumeInput()") ||
|
40
|
-
exception.message.include?("PG::ConnectionBad: PQsocket()") ||
|
41
|
-
exception.message.include?("PG::UnableToSend: SSL SYSCALL")
|
42
|
-
)
|
43
|
-
|
44
|
-
sleep 30
|
45
|
-
ActiveRecord::Base.establish_connection
|
46
|
-
retry
|
47
|
-
else
|
48
|
-
raise
|
49
|
-
end
|
50
|
-
rescue PG::ConnectionBad => exception
|
35
|
+
rescue ActiveRecord::StatementInvalid, PG::ConnectionBad => exception
|
51
36
|
Rails.logger.warn("Bad Connection Restart", exception)
|
52
37
|
Resque.enqueue_to(self.job.queue, self.job.payload['class'], args)
|
53
38
|
return
|
@@ -67,6 +67,7 @@ module ZuoraConnect
|
|
67
67
|
|
68
68
|
@zuora_user = ZuoraConnect::ZuoraUser.find_by(zuora_user_id: ZuoraConnect::ZuoraUser.current_user_id)
|
69
69
|
zuora_org_ids = request.headers["Zuora-Org-Ids"]
|
70
|
+
ZuoraConnect::ZuoraUser.current_org_ids = []
|
70
71
|
ZuoraConnect::ZuoraUser.current_org_ids = zuora_org_ids.split(',') if zuora_org_ids
|
71
72
|
|
72
73
|
end
|
@@ -560,6 +561,7 @@ module ZuoraConnect
|
|
560
561
|
end
|
561
562
|
|
562
563
|
zuora_org_ids = cookies['Zuora-Org-Ids'] || request.headers['Zuora-Org-Ids']
|
564
|
+
ZuoraConnect::ZuoraUser.current_org_ids = []
|
563
565
|
ZuoraConnect::ZuoraUser.current_org_ids = zuora_org_ids.split('|') if zuora_org_ids
|
564
566
|
|
565
567
|
rescue ZuoraAPI::Exceptions::ZuoraAPIAuthenticationTypeError => ex
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|