ruby_rabbitmq_janus 4.0.0 → 4.0.1
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: 32bf573c4d8392ba310f7aeb2dbb844bffba80ff8dd4b8d20865e3cb3d81ae51
|
4
|
+
data.tar.gz: 67b779dd4910372fea6c0faf1674d042364e903636f3be82428218a998bc9ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1727add31c53372955f4e980e3e3232a53fa3a8963eaf749d91e189c0f97e74beddb794a26843970c80d4d96fe6b0ce8320d4241e27ab394e12d5cf650774076
|
7
|
+
data.tar.gz: d1867443be4ad91e130fe42114bf00772b94b5330bbc3f7d2b7dd4953aacbe9607038fba0d4a37b346a7f3b4e1581d18093d625e80c403634af3670d7740628c
|
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
|
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
|