ruby_rabbitmq_janus 3.0.0.pre.382 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -6
  3. data/lib/rrj/errors/error.rb +3 -1
  4. data/lib/rrj/errors/janus/janus.rb +10 -11
  5. data/lib/rrj/errors/janus/responses/admin.rb +1 -1
  6. data/lib/rrj/errors/janus/responses/event.rb +1 -1
  7. data/lib/rrj/errors/janus/responses/standard.rb +1 -1
  8. data/lib/rrj/errors/rabbit/rabbit.rb +47 -18
  9. data/lib/rrj/errors/tools/tools.rb +45 -9
  10. data/lib/rrj/info.rb +1 -1
  11. data/lib/rrj/rabbit/connect.rb +13 -2
  12. data/lib/rrj/tools/gem/config/gem.rb +1 -1
  13. data/lib/rrj/tools/gem/config/janus.rb +2 -0
  14. data/lib/rrj/tools/gem/config/queues.rb +8 -0
  15. data/lib/rrj/tools/gem/config/rabbit.rb +2 -0
  16. data/spec/ruby_rabbitmq_janus/process/concurrencies/concurrency_spec.rb +2 -1
  17. data/spec/ruby_rabbitmq_janus/process/concurrencies/event_admin_spec.rb +2 -1
  18. data/spec/ruby_rabbitmq_janus/process/concurrencies/event_spec.rb +2 -1
  19. data/spec/spec_helper.rb +6 -0
  20. data/tmp/coverage/index.html +1846 -1576
  21. metadata +19 -35
  22. data/lib/rrj/errors/base/admin.rb +0 -24
  23. data/lib/rrj/errors/base/base.rb +0 -5
  24. data/lib/rrj/errors/base/init.rb +0 -46
  25. data/lib/rrj/errors/base/task.rb +0 -32
  26. data/lib/rrj/errors/janus/messages/admin.rb +0 -33
  27. data/lib/rrj/errors/janus/messages/message.rb +0 -51
  28. data/lib/rrj/errors/janus/messages/standard.rb +0 -33
  29. data/lib/rrj/errors/janus/responses/base.rb +0 -15
  30. data/lib/rrj/errors/janus/transactions/admin.rb +0 -37
  31. data/lib/rrj/errors/janus/transactions/handle.rb +0 -52
  32. data/lib/rrj/errors/janus/transactions/session.rb +0 -38
  33. data/lib/rrj/errors/janus/transactions/transaction.rb +0 -23
  34. data/lib/rrj/errors/rabbit/base_event.rb +0 -25
  35. data/lib/rrj/errors/rabbit/connect.rb +0 -65
  36. data/lib/rrj/errors/rabbit/listener/base.rb +0 -46
  37. data/lib/rrj/errors/rabbit/listener/from.rb +0 -19
  38. data/lib/rrj/errors/rabbit/listener/from_admin.rb +0 -19
  39. data/lib/rrj/errors/rabbit/propertie.rb +0 -37
  40. data/lib/rrj/errors/rabbit/publisher/admin.rb +0 -32
  41. data/lib/rrj/errors/rabbit/publisher/base.rb +0 -39
  42. data/lib/rrj/errors/rabbit/publisher/exclusive.rb +0 -33
  43. data/lib/rrj/errors/rabbit/publisher/keepalive.rb +0 -19
  44. data/lib/rrj/errors/rabbit/publisher/non_exclusive.rb +0 -33
  45. data/lib/rrj/errors/tools/gem/cluster.rb +0 -42
  46. data/lib/rrj/errors/tools/gem/config.rb +0 -121
  47. data/lib/rrj/errors/tools/gem/log.rb +0 -81
  48. data/lib/rrj/errors/tools/gem/option.rb +0 -44
  49. data/lib/rrj/errors/tools/gem/request.rb +0 -23
  50. data/lib/rrj/errors/tools/replaces/replace.rb +0 -30
  51. data/lib/rrj/errors/tools/replaces/type.rb +0 -30
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Janus
6
- # Define a super class for all errors in Janus::Transactions::Transaction
7
- class BaseTransaction < RubyRabbitmqJanus::Errors::RRJError
8
- def initialize(message, level = :fatal)
9
- super "[Transaction]#{message}", level
10
- end
11
- end
12
-
13
- module Transaction
14
- # Error for Janus::Transactions::Transaction#initialize
15
- class Initialize < RubyRabbitmqJanus::Errors::Janus::BaseTransaction
16
- def initialize
17
- super 'Error in initializer'
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,25 +0,0 @@
1
- # frozen-string_literal: true
2
-
3
- # :reek:IrresponsibleModule
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- module Rabbit
8
- # Error class for all Event
9
- class Event < BaseRabbit
10
- def initialize(message, level = :fatal)
11
- super("[Connect] #{message}", level)
12
- end
13
- end
14
-
15
- module BaseEvent
16
- # Error class for Rabbit BaseEvent
17
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Event
18
- def initialize
19
- super 'Error in intializer BaseEvent'
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Rabbit
6
- # Define a super class for all error in Option class
7
- class BaseConnect < BaseRabbit
8
- def initialize(message, level = :fatal)
9
- super("[Connect] #{message}", level)
10
- end
11
- end
12
-
13
- module Connect
14
- # Error for Rabbit::Connect#initialize
15
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
16
- def initialize(error)
17
- super "Error in initializer #{error}"
18
- end
19
- end
20
-
21
- # Error when transaction hs no block
22
- class MissingAction < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
23
- def initialize
24
- super 'Transaction failed, missing block'
25
- end
26
- end
27
-
28
- # Error for Rabbit::Connect#transaction_short
29
- class TransactionShort < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
30
- def initialize(error)
31
- super "Error during transaction with RabbitMQ #{error}"
32
- end
33
- end
34
-
35
- # Error for Rabbit::Connect#transaction_long
36
- class TransactionLong < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
37
- def initialize(error)
38
- super "Error during transaction with RabbitMQ #{error}"
39
- end
40
- end
41
-
42
- # Error for Rabbit::Connect#start
43
- class Start < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
44
- def initialize(error)
45
- super "Error for starting connection with RabbitMQ #{error}"
46
- end
47
- end
48
-
49
- # Error for Rabbit::Connect#close
50
- class Close < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
51
- def initialize(error)
52
- super "Error for closing connection with RabbitMQ #{error}"
53
- end
54
- end
55
-
56
- # Error for Rabbit::Connect#channel
57
- class Channel < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
58
- def initialize(error)
59
- super "Error for create channel in RabbitMQ instance #{error}"
60
- end
61
- end
62
- end
63
- end
64
- end
65
- end
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Rabbit
6
- module Listener
7
- # Base class error for listeners
8
- class BaseError < BaseRabbit
9
- def initialize(message, level = :fatal)
10
- super("[Listener] #{message}", level)
11
- end
12
- end
13
-
14
- module Base
15
- # Error initializer for listeners
16
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Listener::BaseError
17
- def initialize
18
- super 'Error in initialize'
19
- end
20
- end
21
-
22
- # Error listen event
23
- class ListenEvents < RubyRabbitmqJanus::Errors::Rabbit::Listener::BaseError
24
- def initialize(queue)
25
- super "Error when listen events to queue '#{queue}'"
26
- end
27
- end
28
-
29
- # Error when response is empty
30
- class ResponseEmpty < RubyRabbitmqJanus::Errors::Rabbit::Listener::BaseError
31
- def initialize(response)
32
- super "Response is empty ! (#{response})"
33
- end
34
- end
35
-
36
- # Error when response is nil
37
- class ResponseNil < RubyRabbitmqJanus::Errors::Rabbit::Listener::BaseError
38
- def initialize(response)
39
- super "Response is nil ! (#{response})"
40
- end
41
- end
42
- end
43
- end
44
- end
45
- end
46
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # :reek:IrresponsibleModule
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- module Rabbit
8
- module Listener
9
- module From
10
- class ListenEvents < RubyRabbitmqJanus::Errors::Rabbit::Listener::BaseError
11
- def initialize(error)
12
- super "Error for listen events in RabbitMQ public queue, #{error}"
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # :reek:IrresponsibleModule
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- module Rabbit
8
- module Listener
9
- module FromAdmin
10
- class ListenEvents < RubyRabbitmqJanus::Errors::Rabbit::Listener::BaseError
11
- def initialize(error)
12
- super "Error for listen events in RabbitMQ public queue, #{error}"
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Rabbit
6
- # Define a super class for all error in Option class
7
- class BasePropertie < BaseRabbit
8
- def initialize(message, level = :fatal)
9
- super("[Propertie] #{message}", level)
10
- end
11
- end
12
-
13
- module Propertie
14
- # Error for Rabbit::Propertie#initialize
15
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::BasePropertie
16
- def initialize
17
- super 'Error in initializer'
18
- end
19
- end
20
-
21
- # Error for Rabbit::Propertie#options
22
- class Options < RubyRabbitmqJanus::Errors::Rabbit::BasePropertie
23
- def initialize
24
- super 'Error for create hash to propertie message'
25
- end
26
- end
27
-
28
- # Error for Rabbit::Propertie#options_admin
29
- class OptionsAdmin < RubyRabbitmqJanus::Errors::Rabbit::BasePropertie
30
- def initialize
31
- super 'Error for create hash to propertie message admin'
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Rabbit
6
- module Publisher
7
- # Define a super class for all errors in Rabbit::Publisher::PublisherAdmin
8
- class BasePublisherAdmin < BaseErrorPublisher
9
- def initialize(message, level = :fatal)
10
- super "[Admin] #{message}", level
11
- end
12
- end
13
-
14
- module Admin
15
- # Error for Rabbit::Publisher::PublisherAdmin#initialize
16
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublisherAdmin
17
- def initialize
18
- super 'Error in initializer'
19
- end
20
- end
21
-
22
- # Error for Rabbit::Publisher::PublisherAdmin#publish
23
- class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublisherAdmin
24
- def initialize
25
- super 'Error for publish message'
26
- end
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # :reek:IrresponsibleModule
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- module Rabbit
8
- module Publisher
9
- # Define a super class for all errors in Rabbit::BaseEvent
10
- class BaseErrorPublisher < BaseRabbit
11
- def initialize(message, level = :fatal)
12
- super "[Publisher] #{message}", level
13
- end
14
- end
15
-
16
- module Base
17
- # Error for Rabbit::BaseEvent#initialize
18
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
19
- def initialize
20
- super 'Error in initializer'
21
- end
22
- end
23
-
24
- class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
25
- def initialize
26
- super 'Error for publishing message'
27
- end
28
- end
29
-
30
- class TestCorrelation < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
31
- def initialize(message, propertie)
32
- super "Correlation doesn't equal (msg: #{message}) != (prp: #{propertie})"
33
- end
34
- end
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Rabbit
6
- module Publisher
7
- # Define a super class for all errors in
8
- # Rabbit::Publisher::Exclusive
9
- class BasePublishExclusive < BaseErrorPublisher
10
- def initialize(message, level = :fatal)
11
- super "[Exclusive] #{message}", level
12
- end
13
- end
14
-
15
- module Exclusive
16
- # Error for Rabbit::Publisher::Exclusive#initialize
17
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishExclusive
18
- def initialize
19
- super 'Error in initializer'
20
- end
21
- end
22
-
23
- # Error for Rabbit::Publisher::Exclusive#publish
24
- class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishExclusive
25
- def initialize
26
- super 'Error for publish message'
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # :reek:IrresponsibleModule
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- module Rabbit
8
- module Publisher
9
- module Keepalive
10
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishExclusive
11
- def initialize
12
- super 'Error in initializer'
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Rabbit
6
- module Publisher
7
- # Define a super class for all errors in
8
- # Rabbit::Publisher::NonExclusive
9
- class BasePublishNonExclusive < BaseErrorPublisher
10
- def initialize(message, level = :fatal)
11
- super "[Non Exclusive] #{message}", level
12
- end
13
- end
14
-
15
- module PublishNonExclusive
16
- # Error for Rabbit::Publisher::NonExclusive#initialize
17
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishNonExclusive
18
- def initialize
19
- super 'Error in initializer'
20
- end
21
- end
22
-
23
- # Error for Rabbit::Publisher::NonExclusive#publish
24
- class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishNonExclusive
25
- def initialize
26
- super 'Error for publish message'
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # :reek:IrresponsibleModule
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- module Tools
8
- # Define a super class for all error in Tools::Option class
9
- class BaseCluster < BaseTools
10
- def initialize(message, level = :fatal)
11
- super("[Cluster]#{message}", level)
12
- end
13
- end
14
-
15
- module Cluster
16
- class CreateSession < RubyRabbitmqJanus::Errors::Tools::BaseCluster
17
- def initialize
18
- super '[CreateSession] Error during create session (just one instance to Janus)'
19
- end
20
- end
21
-
22
- class QueueTo < RubyRabbitmqJanus::Errors::Tools::BaseCluster
23
- def initialize
24
- super '[QueueTo] Error for create string queue_to'
25
- end
26
- end
27
-
28
- class QueueAdminTo < RubyRabbitmqJanus::Errors::Tools::BaseCluster
29
- def initialize
30
- super '[QueueAdminTo] Error for create string queue_admin_to'
31
- end
32
- end
33
-
34
- class RestartInstance < RubyRabbitmqJanus::Errors::Tools::BaseCluster
35
- def initialize
36
- super '[RestartInstance] Error for restart Janus Instance'
37
- end
38
- end
39
- end
40
- end
41
- end
42
- end