ruby_rabbitmq_janus 3.0.0.pre.327 → 3.0.0.pre.328
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrj/rabbit/connect.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f0d9c4dd4823fb125bf3798b6d7b1532321e2cd9d67afa46a61399a7a79bc58
|
4
|
+
data.tar.gz: 8fd69c66e75032916adb4ea872858f1121744c94c4eb6649cb377cd84365456f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10ac8f8ceb5b2d605fca4cfd599fa9f751e8a61c23368a80ddcbd80fbe27f0a159edaa5d65624670bb5c3554e3b346db727a7a5f57046f5c87ffb59e34bea8e8
|
7
|
+
data.tar.gz: 39d62e14646e803b0d59cad2980f3b6fdc3456538d187e28cdc1f0869acb9b3f74836617812e204b57ebd75d948fe1a94f6ca49dabb716926063b89a54d014ad
|
data/lib/rrj/rabbit/connect.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'timeout'
|
4
|
+
|
3
5
|
module RubyRabbitmqJanus
|
4
6
|
module Rabbit
|
5
7
|
# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
|
@@ -24,8 +26,10 @@ module RubyRabbitmqJanus
|
|
24
26
|
|
25
27
|
# Create an transaction with rabbitmq and not close
|
26
28
|
def transaction_long
|
27
|
-
|
28
|
-
|
29
|
+
Timeout.timeout(10) do
|
30
|
+
start
|
31
|
+
yield
|
32
|
+
end
|
29
33
|
rescue => exception
|
30
34
|
raise Errors::Rabbit::Connect::TransactionLong, exception
|
31
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_rabbitmq_janus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.pre.
|
4
|
+
version: 3.0.0.pre.328
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|