ruby_rabbitmq_janus 2.6.0.pre.240 → 2.6.0.pre.244

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: cbce6c52ae98a6db8bd5ff3499d2daf0a95f9f1148df4cd3d70e7182470393a7
4
- data.tar.gz: e8f3b612cb56845ffd6ed398b5ed6642a315e33ff3a7ad219a347663f644d18f
3
+ metadata.gz: 6cb3089fb50dc4ce5729eba2c73dbc968b6ede2bf408b42bfca23f01d600e244
4
+ data.tar.gz: c11c4c29bcc1a381ec2f7ddb32bbfa9f2981306c173996c3d2ee3a2f6f6e8388
5
5
  SHA512:
6
- metadata.gz: 219f728ca6950258448c96e5b6bfb63bca07baf380ac38998a3eb011d6145c0d0ce5bba2e4e4f22902e1dd4d29df0866ed78738a8ab4837ce7aee71ce5348031
7
- data.tar.gz: ad4b2c75996c2eb8be1ce930bdffa22d70f48fd5411797d1e72c4383c2e5b13e964c0627d486ef37a1349fae0fa45de3858afba3d54d1c720af823caefb67698
6
+ metadata.gz: e5cdf174fae030439acf0d96d207dac5b05ac3210bd98d8e00dd502a88940d7817ea119f8c193aeb8107a0dd73fe2bf583b1af34c710e2300ddf886b21f4018f
7
+ data.tar.gz: 1534b1922a5ce801940d430002c32adb56e3e3d31d469145a27ea849c343c72cf133a63b7303e0bb2a2fe2023ab0da4c886244361b9020c34308289a5a2dca75
data/lib/rrj/binary.rb CHANGED
@@ -10,6 +10,8 @@ require 'rrj/models/concerns/janus_instance_validations'
10
10
  require "rrj/models/#{defined?(Mongoid) ? 'mongoid' : 'active_record'}"
11
11
 
12
12
  module RubyRabbitmqJanus
13
+ # :reek:InstanceVariableAssumption
14
+
13
15
  # # RubyRabbitmqJanus Bynary
14
16
  #
15
17
  # Initialize tools for a standalone executable
@@ -1,5 +1,7 @@
1
1
  # frozen-string_literal: true
2
2
 
3
+ # :reek:IrresponsibleModule
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Errors
5
7
  module Rabbit
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:IrresponsibleModule
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Errors
5
7
  module Rabbit
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:IrresponsibleModule
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Errors
5
7
  module Rabbit
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:IrresponsibleModule
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Errors
5
7
  module Rabbit
@@ -5,6 +5,7 @@ module RubyRabbitmqJanus
5
5
  module Rabbit
6
6
  module Listener
7
7
  module JanusInstance
8
+ # Error class for listenern janusInstance
8
9
  class ListenEvents < RubyRabbitmqJanus::Errors::Rabbit::Listener::BaseError
9
10
  def initialize(error)
10
11
  super "Error for listen events in RabbitMQ public queue, #{error}"
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:IrresponsibleModule
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Errors
5
7
  module Rabbit
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:IrresponsibleModule
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Errors
5
7
  module Rabbit
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:IrresponsibleModule
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Errors
5
7
  module Rabbit
@@ -62,6 +62,12 @@ module RubyRabbitmqJanus
62
62
  end
63
63
  end
64
64
 
65
+ class AdminPassword < RubyRabbitmqJanus::Errors::Tools::BaseConfig
66
+ def initialize
67
+ super '[AdminPassword] Error for reading option admin password', :warn
68
+ end
69
+ end
70
+
65
71
  class TimeToLive < RubyRabbitmqJanus::Errors::Tools::BaseConfig
66
72
  def initialize
67
73
  super '[TimeToLive] Keepalive TTL option is not reading in config file', :warn
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # :reek:TooManyStatements
4
+ # :reek:FeatureEnvy
5
+ # :reek:RepeatedConditional
4
6
 
5
7
  module RubyRabbitmqJanus
6
8
  module Rabbit
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # :reek:TooManyStatements
4
+ # :reek:InstanceVariableAssumption
4
5
 
5
6
  module RubyRabbitmqJanus
6
7
  module Rabbit
@@ -5,6 +5,8 @@ require 'rrj/janus/responses/janus_instance'
5
5
  module RubyRabbitmqJanus
6
6
  module Rabbit
7
7
  module Listener
8
+ # :reek:InstanceVariableAssumption
9
+
8
10
  # Listener to admin queue
9
11
  class JanusInstance < From
10
12
  private
@@ -3,6 +3,8 @@
3
3
  module RubyRabbitmqJanus
4
4
  module Rabbit
5
5
  module Publisher
6
+ # :reek:InstanceVariableAssumption
7
+
6
8
  # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
7
9
  # This publisher send and read an message in admin queues
8
10
  class Admin < Base
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:UtilityFunction
4
+
3
5
  # rubocop:disable Style/GuardClause
4
6
 
5
7
  module RubyRabbitmqJanus
data/lib/rrj/task.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # :reek:TooManyStatements
4
+ # :reek:BooleanParameter
5
+ # :reek:UtilityFunction
4
6
 
5
7
  module RubyRabbitmqJanus
6
8
  # @author VAILLANT jeremy <jeremy.vaillant@dazl.tv>
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:TooManyMethods
4
+
3
5
  # rubocop:disable Naming/MemoizedInstanceVariableName
4
6
  module RubyRabbitmqJanus
5
7
  module Tools
@@ -106,6 +108,13 @@ module RubyRabbitmqJanus
106
108
  raise Errors::Tools::Config::RabbitTester
107
109
  end
108
110
 
111
+ # @return [String] read configuration fir queue admin
112
+ def admin_pass
113
+ @options['rabbit']['admin_pass'].to_s
114
+ rescue
115
+ raise Errors::Tools::Config::AdminPassword
116
+ end
117
+
109
118
  # @return [Integer]
110
119
  # read configuration for janus time to live for keepalive messages
111
120
  def time_to_live
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:UtilityFunction
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Tools
5
7
  # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # :reek:UtilityFunction
4
+
3
5
  module RubyRabbitmqJanus
4
6
  module Tools
5
7
  # Tools for replace elements in request
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_rabbitmq_janus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0.pre.240
4
+ version: 2.6.0.pre.244
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy