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 +4 -4
- data/lib/rrj/binary.rb +2 -0
- data/lib/rrj/errors/rabbit/base_event.rb +2 -0
- data/lib/rrj/errors/rabbit/listener/base.rb +2 -0
- data/lib/rrj/errors/rabbit/listener/from.rb +2 -0
- data/lib/rrj/errors/rabbit/listener/from_admin.rb +2 -0
- data/lib/rrj/errors/rabbit/listener/janus_instance.rb +1 -0
- data/lib/rrj/errors/rabbit/publisher/base.rb +2 -0
- data/lib/rrj/errors/rabbit/publisher/janus_instance.rb +2 -0
- data/lib/rrj/errors/rabbit/publisher/keepalive.rb +2 -0
- data/lib/rrj/errors/tools/gem/config.rb +6 -0
- data/lib/rrj/rabbit/connect.rb +2 -0
- data/lib/rrj/rabbit/listener/from.rb +1 -0
- data/lib/rrj/rabbit/listener/janus_instance.rb +2 -0
- data/lib/rrj/rabbit/publisher/admin.rb +2 -0
- data/lib/rrj/rabbit/publisher/base.rb +2 -0
- data/lib/rrj/task.rb +2 -0
- data/lib/rrj/tools/gem/config.rb +9 -0
- data/lib/rrj/tools/gem/log.rb +2 -0
- data/lib/rrj/tools/replaces/replace.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cb3089fb50dc4ce5729eba2c73dbc968b6ede2bf408b42bfca23f01d600e244
|
4
|
+
data.tar.gz: c11c4c29bcc1a381ec2f7ddb32bbfa9f2981306c173996c3d2ee3a2f6f6e8388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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}"
|
@@ -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
|
data/lib/rrj/rabbit/connect.rb
CHANGED
data/lib/rrj/task.rb
CHANGED
data/lib/rrj/tools/gem/config.rb
CHANGED
@@ -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
|
data/lib/rrj/tools/gem/log.rb
CHANGED