ruby_rabbitmq_janus 3.0.0.pre.382 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -6
- data/lib/rrj/errors/error.rb +3 -1
- data/lib/rrj/errors/janus/janus.rb +10 -11
- data/lib/rrj/errors/janus/responses/admin.rb +1 -1
- data/lib/rrj/errors/janus/responses/event.rb +1 -1
- data/lib/rrj/errors/janus/responses/standard.rb +1 -1
- data/lib/rrj/errors/rabbit/rabbit.rb +47 -18
- data/lib/rrj/errors/tools/tools.rb +45 -9
- data/lib/rrj/info.rb +1 -1
- data/lib/rrj/rabbit/connect.rb +13 -2
- data/lib/rrj/tools/gem/config/gem.rb +1 -1
- data/lib/rrj/tools/gem/config/janus.rb +2 -0
- data/lib/rrj/tools/gem/config/queues.rb +8 -0
- data/lib/rrj/tools/gem/config/rabbit.rb +2 -0
- data/spec/ruby_rabbitmq_janus/process/concurrencies/concurrency_spec.rb +2 -1
- data/spec/ruby_rabbitmq_janus/process/concurrencies/event_admin_spec.rb +2 -1
- data/spec/ruby_rabbitmq_janus/process/concurrencies/event_spec.rb +2 -1
- data/spec/spec_helper.rb +6 -0
- data/tmp/coverage/index.html +1846 -1576
- metadata +19 -35
- data/lib/rrj/errors/base/admin.rb +0 -24
- data/lib/rrj/errors/base/base.rb +0 -5
- data/lib/rrj/errors/base/init.rb +0 -46
- data/lib/rrj/errors/base/task.rb +0 -32
- data/lib/rrj/errors/janus/messages/admin.rb +0 -33
- data/lib/rrj/errors/janus/messages/message.rb +0 -51
- data/lib/rrj/errors/janus/messages/standard.rb +0 -33
- data/lib/rrj/errors/janus/responses/base.rb +0 -15
- data/lib/rrj/errors/janus/transactions/admin.rb +0 -37
- data/lib/rrj/errors/janus/transactions/handle.rb +0 -52
- data/lib/rrj/errors/janus/transactions/session.rb +0 -38
- data/lib/rrj/errors/janus/transactions/transaction.rb +0 -23
- data/lib/rrj/errors/rabbit/base_event.rb +0 -25
- data/lib/rrj/errors/rabbit/connect.rb +0 -65
- data/lib/rrj/errors/rabbit/listener/base.rb +0 -46
- data/lib/rrj/errors/rabbit/listener/from.rb +0 -19
- data/lib/rrj/errors/rabbit/listener/from_admin.rb +0 -19
- data/lib/rrj/errors/rabbit/propertie.rb +0 -37
- data/lib/rrj/errors/rabbit/publisher/admin.rb +0 -32
- data/lib/rrj/errors/rabbit/publisher/base.rb +0 -39
- data/lib/rrj/errors/rabbit/publisher/exclusive.rb +0 -33
- data/lib/rrj/errors/rabbit/publisher/keepalive.rb +0 -19
- data/lib/rrj/errors/rabbit/publisher/non_exclusive.rb +0 -33
- data/lib/rrj/errors/tools/gem/cluster.rb +0 -42
- data/lib/rrj/errors/tools/gem/config.rb +0 -121
- data/lib/rrj/errors/tools/gem/log.rb +0 -81
- data/lib/rrj/errors/tools/gem/option.rb +0 -44
- data/lib/rrj/errors/tools/gem/request.rb +0 -23
- data/lib/rrj/errors/tools/replaces/replace.rb +0 -30
- data/lib/rrj/errors/tools/replaces/type.rb +0 -30
@@ -1,121 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# :reek:IrresponsibleModule
|
4
|
-
|
5
|
-
# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
|
6
|
-
|
7
|
-
module RubyRabbitmqJanus
|
8
|
-
module Errors
|
9
|
-
module Tools
|
10
|
-
class BaseConfig < BaseTools
|
11
|
-
def initialize(message, level = :fatal)
|
12
|
-
super("[Config]#{message}", level)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
module Config
|
17
|
-
class Initialize < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
18
|
-
def initialize
|
19
|
-
super '[Initialize] Error when initialize configuration to RRJ Gem'
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
class QueueFrom < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
24
|
-
def initialize
|
25
|
-
super '[QueueFrom] Error for reading standard queue from'
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
class QueueTo < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
30
|
-
def initialize
|
31
|
-
super '[QueueTo] Error for reading standard queue to'
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class QueueAdminFrom < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
36
|
-
def initialize
|
37
|
-
super '[QueueAdminFrom] Error for reading admin queue from'
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
class QueueAdminTo < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
42
|
-
def initialize
|
43
|
-
super '[QueueAdminTo] Error for reading admin queue to'
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
class LogLevel < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
48
|
-
def initialize
|
49
|
-
super '[LogLevel] Error for reading option level', :warn
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
class LogLevelRabbit < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
54
|
-
def initialize
|
55
|
-
super '[LogLevelRabbit] Error for reading option level for rabbitmq', :warn
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
class AdminPassword < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
60
|
-
def initialize
|
61
|
-
super '[AdminPassword] Error for reading option admin password', :warn
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
class TimeToLive < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
66
|
-
def initialize
|
67
|
-
super '[TimeToLive] Keepalive TTL option is not reading in config file', :warn
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
class PluginAt < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
72
|
-
def initialize(parameter)
|
73
|
-
super "[PluginAt] Plugin is not found in configuration file, with parameter #{parameter}", :warn
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
class Cluster < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
78
|
-
def initialize(parameter)
|
79
|
-
super "[Cluster] Cluster parameter is missing, with parameter #{parameter}", :warn
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
class LogType < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
84
|
-
def initialize
|
85
|
-
super '[LogType] Error with Log Type', :fatal
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
class LogOption < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
90
|
-
def initialize
|
91
|
-
super '[LogOption] Error with Log Option', :fatal
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
class Environment < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
96
|
-
def initialize
|
97
|
-
super '[Environment] Error with environment option', :fatal
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
class ORM < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
102
|
-
def initialize
|
103
|
-
super '[ORM] Error with Object Relational Mapping option', :fatal
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
class ProgramName < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
108
|
-
def initialize
|
109
|
-
super '[ProgramName] Error with ProgramName option', :fatal
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
class Rabbitmq < RubyRabbitmqJanus::Errors::Tools::BaseConfig
|
114
|
-
def initialize(value)
|
115
|
-
super "[RabbitMQConfig] Missing RabbitMQ configuration for key : #{value}", :fatal
|
116
|
-
end
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
@@ -1,81 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# :reek:IrresponsibleModule
|
4
|
-
|
5
|
-
# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
|
6
|
-
|
7
|
-
module RubyRabbitmqJanus
|
8
|
-
module Errors
|
9
|
-
module Tools
|
10
|
-
class BaseLog < BaseTools
|
11
|
-
def initialize(message, level = :warn)
|
12
|
-
super("[Log]#{message}", level)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
module Log
|
17
|
-
class Unknown < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
18
|
-
def initialize
|
19
|
-
super '[Unknown] Error for writing in logger with level :unknown'
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# Error for Tools::Log#fatal
|
24
|
-
class Fatal < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
25
|
-
def initialize
|
26
|
-
super '[Fatal] Error for writing in logger with level :fatal'
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
# Error for Tools::Log#error
|
31
|
-
class Error < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
32
|
-
def initialize
|
33
|
-
super '[Error] Error for writing in logger with level :error'
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# Error for Tools::Log#warn
|
38
|
-
class Warn < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
39
|
-
def initialize
|
40
|
-
super '[Warn] Error for writing in logger with level :warning'
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
# Error for Tools::Log#info
|
45
|
-
class Info < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
46
|
-
def initialize
|
47
|
-
super '[Info] Error for writing in logger with level :nfo'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# Error for Tools::Log#debug
|
52
|
-
class Debug < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
53
|
-
def initialize
|
54
|
-
super '[Debug] Error for writing in logger with level :debug'
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# Error for Tools::Log#logger
|
59
|
-
class Logger < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
60
|
-
def initialize
|
61
|
-
super '[Logger] Error return logger to instance'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
# Error for Tools::Log#logdev
|
66
|
-
class Logdev < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
67
|
-
def initialize
|
68
|
-
super '[Logdev] Error filname to logger instance'
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
# Error for Tools::Log#save_level
|
73
|
-
class SaveLevel < RubyRabbitmqJanus::Errors::Tools::BaseLog
|
74
|
-
def initialize
|
75
|
-
super '[SaveLevel] Error for changing log level'
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RubyRabbitmqJanus
|
4
|
-
module Errors
|
5
|
-
module Tools
|
6
|
-
# Define a super class for all error in Option class
|
7
|
-
class BaseOption < BaseTools
|
8
|
-
def initialize(message, level)
|
9
|
-
super("[Option] #{message}", level)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module Option
|
14
|
-
# Error for Tools::Option#initialize
|
15
|
-
class Initialize < RubyRabbitmqJanus::Errors::Tools::BaseOption
|
16
|
-
def initialize(msg)
|
17
|
-
super "Error in initializer : #{msg}", :fatal
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Error for Tools::Option#use_current_session?
|
22
|
-
class UseCurrentSession < RubyRabbitmqJanus::Errors::Tools::BaseOption
|
23
|
-
def initialize(opts)
|
24
|
-
super "Error for test use current session -- #{opts}", :fatal
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
# Error for Tools::Option#use_current_handle?
|
29
|
-
class UseCurrentHandle < RubyRabbitmqJanus::Errors::Tools::BaseOption
|
30
|
-
def initialize(opts)
|
31
|
-
super "Error for test use current handle -- #{opts}", :fatal
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# Error for Tools::Option#cluster_mode
|
36
|
-
class ClusterMode < RubyRabbitmqJanus::Errors::Tools::BaseOption
|
37
|
-
def initialize
|
38
|
-
super 'Error for create session in cluster mode disable', :fatal
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RubyRabbitmqJanus
|
4
|
-
module Errors
|
5
|
-
module Tools
|
6
|
-
# Define super class for all errors in request class
|
7
|
-
class BaseRequest < BaseTools
|
8
|
-
def initialize(message, level = :fatal)
|
9
|
-
super("[Request] #{message}", level)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module Request
|
14
|
-
# Error initialize method for Request class
|
15
|
-
class Initializer < RubyRabbitmqJanus::Errors::Tools::BaseRequest
|
16
|
-
def initalize
|
17
|
-
super 'Error in initializer'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RubyRabbitmqJanus
|
4
|
-
module Errors
|
5
|
-
module Tools
|
6
|
-
# Super class error for Replace class
|
7
|
-
class BaseReplace < BaseTools
|
8
|
-
def initialize(message, level = :fatal)
|
9
|
-
super "[Replace] #{message}", level
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module Replace
|
14
|
-
# Error for initialize in Replace class
|
15
|
-
class Initialize < RubyRabbitmqJanus::Errors::Tools::BaseReplace
|
16
|
-
def initialize
|
17
|
-
super 'Error in initializer'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Error for transform_request in Replace class
|
22
|
-
class TransformRequest < RubyRabbitmqJanus::Errors::Tools::BaseReplace
|
23
|
-
def initialize
|
24
|
-
super 'Error for transform base request element'
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RubyRabbitmqJanus
|
4
|
-
module Errors
|
5
|
-
module Tools
|
6
|
-
# Super class error for Type class
|
7
|
-
class BaseType < BaseTools
|
8
|
-
def initialize(message, level = :fatal)
|
9
|
-
super "[Type] #{message}", level
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module Type
|
14
|
-
# Error for initialize method in Type class
|
15
|
-
class Initialize < RubyRabbitmqJanus::Errors::Tools::BaseType
|
16
|
-
def initialize
|
17
|
-
super 'Error in initializer'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# Error for convert method in Type class
|
22
|
-
class Convert < RubyRabbitmqJanus::Errors::Tools::BaseType
|
23
|
-
def initialize
|
24
|
-
super 'Error for converting data to good type'
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|