ruby_rabbitmq_janus 4.0.0.pre.1001345090 → 4.0.1.pre.1265973744
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/rrj/info.rb +1 -1
- data/lib/rrj/rabbit/connect.rb +5 -4
- 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: 00525225ef0d9ad31a25dac31c508eb47c10d87ed7ed16cdecbdc437f190700f
|
4
|
+
data.tar.gz: e5eb6523b5d108ae853818340c714a6273c24957682de5133f85d3e1cbcfc3af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33e047760fee47afb31b787f540d0b3bf70c116bd44b7caef1192b012708973811f0b2331bbc269b55acb5c3333b5a1d57afb52fe32531838c22ca67470550aa
|
7
|
+
data.tar.gz: 11494f66e6c49b9d47f48d30ee4480c82056271fdf8460ee1611af93f63c11836712818e9d64038bc0b4a849f5ce4ed4a592fdf87ccb6b0834e9cd14053cb080
|
data/README.md
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
[![Linter](https://github.com/dazzl-tv/ruby-rabbitmq-janus/actions/workflows/linter.yml/badge.svg)](https://github.com/dazzl-tv/ruby-rabbitmq-janus/actions/workflows/linter.yml)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/ruby_rabbitmq_janus.svg)](https://badge.fury.io/rb/ruby_rabbitmq_janus)
|
5
5
|
[![Docs](https://inch-ci.org/github/dazzl-tv/ruby-rabbitmq-janus.svg)](https://inch-ci.org/github/dazzl-tv/ruby-rabbitmq-janus)
|
6
|
-
[![Maintainability](https://api.codeclimate.com/v1/badges/
|
7
|
-
[![Test Coverage](https://api.codeclimate.com/v1/badges/
|
6
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/f1eda688803e829438a7/maintainability)](https://codeclimate.com/github/dazzl-tv/ruby-rabbitmq-janus/maintainability)
|
7
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/f1eda688803e829438a7/test_coverage)](https://codeclimate.com/github/dazzl-tv/ruby-rabbitmq-janus/test_coverage)
|
8
8
|
[![Known Vulnerabilities](https://snyk.io/test/github/dazzl-tv/ruby-rabbitmq-janus/badge.svg)](https://snyk.io/test/github/dazzl-tv/ruby-rabbitmq-janus)
|
9
9
|
|
10
10
|
Ruby Gem for Janus WebRTC Gateway integration using RabbitMQ message queue
|
data/lib/rrj/info.rb
CHANGED
data/lib/rrj/rabbit/connect.rb
CHANGED
@@ -15,7 +15,8 @@ module RubyRabbitmqJanus
|
|
15
15
|
|
16
16
|
# Create an transaction with rabbitmq and close after response is received
|
17
17
|
def transaction_short(&block)
|
18
|
-
raise RubyRabbitmqJanus::Errors::Connect::MissingAction
|
18
|
+
raise RubyRabbitmqJanus::Errors::Rabbit::Connect::MissingAction \
|
19
|
+
unless block
|
19
20
|
|
20
21
|
response = nil
|
21
22
|
|
@@ -23,7 +24,7 @@ module RubyRabbitmqJanus
|
|
23
24
|
response = transaction_long(&block)
|
24
25
|
end
|
25
26
|
rescue Timeout::Error
|
26
|
-
raise RubyRabbitmqJanus::Errors::Connect::TransactionTimeout, \
|
27
|
+
raise RubyRabbitmqJanus::Errors::Rabbit::Connect::TransactionTimeout, \
|
27
28
|
'The "Short transaction" have raised Timeout exception.'
|
28
29
|
ensure
|
29
30
|
close
|
@@ -32,7 +33,7 @@ module RubyRabbitmqJanus
|
|
32
33
|
|
33
34
|
# Create an transaction with rabbitmq and not close
|
34
35
|
def transaction_long
|
35
|
-
raise RubyRabbitmqJanus::Errors::Connect::MissingAction \
|
36
|
+
raise RubyRabbitmqJanus::Errors::Rabbit::Connect::MissingAction \
|
36
37
|
unless block_given?
|
37
38
|
|
38
39
|
Timeout.timeout(60) do
|
@@ -40,7 +41,7 @@ module RubyRabbitmqJanus
|
|
40
41
|
yield
|
41
42
|
end
|
42
43
|
rescue Timeout::Error
|
43
|
-
raise RubyRabbitmqJanus::Errors::Connect::TransactionTimeout, \
|
44
|
+
raise RubyRabbitmqJanus::Errors::Rabbit::Connect::TransactionTimeout, \
|
44
45
|
'The "Long transaction" have raised Timeout exception.'
|
45
46
|
end
|
46
47
|
|
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: 4.0.
|
4
|
+
version: 4.0.1.pre.1265973744
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|