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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 177f8dc4c528ad6fc78dd44549831956622c2534718b48b95ca24f4e31c6e391
4
- data.tar.gz: 8506887fc57433a53b736b194c870a30683b974dc43c8d6d32a901a4ed57e963
3
+ metadata.gz: 32bf573c4d8392ba310f7aeb2dbb844bffba80ff8dd4b8d20865e3cb3d81ae51
4
+ data.tar.gz: 67b779dd4910372fea6c0faf1674d042364e903636f3be82428218a998bc9ac8
5
5
  SHA512:
6
- metadata.gz: 840007fb44954659241da754e623636452aa013704444b8c94aef48ac94fe335d1b15a8af481632468c37b1d5ef08750e71b9efcdadb893a7653d4a598dee431
7
- data.tar.gz: ea9c74246349e918ec9e838330faccdddeed7feb93737530463631c1e3ad9198eb0420b7cdfc555142e09a6287836e6124d29bf444bc429f51be6cbb00ddb5bc
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/44e8680ad5e96d109be2/maintainability)](https://codeclimate.com/github/dazzl-tv/ruby-rabbitmq-janus/maintainability)
7
- [![Test Coverage](https://api.codeclimate.com/v1/badges/44e8680ad5e96d109be2/test_coverage)](https://codeclimate.com/github/dazzl-tv/ruby-rabbitmq-janus/test_coverage)
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
@@ -6,7 +6,7 @@
6
6
  # Define constant to gem.
7
7
  module RubyRabbitmqJanus
8
8
  # Define version to gem
9
- VERSION = '4.0.0'
9
+ VERSION = '4.0.1'
10
10
 
11
11
  # Name to gem
12
12
  GEM_NAME = 'ruby_rabbitmq_janus'
@@ -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 unless block
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.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord