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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rrj/rabbit/connect.rb +6 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9c64b31ea647aa1d9fadaf8698b8c3afd6b50be1d25c29fee2dc765fa2c806e
4
- data.tar.gz: 11606929018663804e10767760ee42a2f44853aba64d91fcb6de90ce9e635e7e
3
+ metadata.gz: 5f0d9c4dd4823fb125bf3798b6d7b1532321e2cd9d67afa46a61399a7a79bc58
4
+ data.tar.gz: 8fd69c66e75032916adb4ea872858f1121744c94c4eb6649cb377cd84365456f
5
5
  SHA512:
6
- metadata.gz: 97b1232c7f56ec1f77a2604facf57952b206a47382b20872ae2892302cdc114bb43f12af7f9186f70ba048e62e04644addc699bd8943e355e9719d4626d76fda
7
- data.tar.gz: '06719336042761afd96fdcd8526c58c7b7af898b48de625eae1d24e33d69413e02325f406d2edea0a5769bba3ba843df20009546dde7cccc727a9689d834154f'
6
+ metadata.gz: 10ac8f8ceb5b2d605fca4cfd599fa9f751e8a61c23368a80ddcbd80fbe27f0a159edaa5d65624670bb5c3554e3b346db727a7a5f57046f5c87ffb59e34bea8e8
7
+ data.tar.gz: 39d62e14646e803b0d59cad2980f3b6fdc3456538d187e28cdc1f0869acb9b3f74836617812e204b57ebd75d948fe1a94f6ca49dabb716926063b89a54d014ad
@@ -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
- start
28
- yield
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.327
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-10-28 00:00:00.000000000 Z
11
+ date: 2019-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord