ruby_rabbitmq_janus 2.7.2.pre.307 → 2.7.2.pre.308
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrj/rabbit/publisher/base.rb +4 -8
- data/lib/rrj/tools/gem/config.rb +4 -5
- data/lib/rrj/tools/replaces/type.rb +2 -4
- 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: 34705b52ba1d1cb1e75466f9444ed290f91cc0b25eed3ea15479c37973928a72
|
4
|
+
data.tar.gz: 05abee65e27a54c8c644a0f01ce47a481aac898e7df28b0f8f6c7c8219612615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf33cc7e8e93a2e113c82e38c301297189a36ae933e9c7ad5eb25caf2da79a61dbf907fb2a013f0c99e541af3d3aa36015b102c86eb118b622f9fe311ebb0561
|
7
|
+
data.tar.gz: e736d499e24e6f29ef6101b4514826950b89e2b77ad7e6447e80f532ba42d21e7a6cc2e44f5910d53c5712b80d5527091598889c6b6b18385ca1d75493d2c019
|
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
# :reek:UtilityFunction
|
4
4
|
|
5
|
-
# rubocop:disable Style/GuardClause
|
6
|
-
|
7
5
|
module RubyRabbitmqJanus
|
8
6
|
module Rabbit
|
9
7
|
module Publisher
|
@@ -56,11 +54,10 @@ module RubyRabbitmqJanus
|
|
56
54
|
end
|
57
55
|
|
58
56
|
def test_correlation(m_cor, p_cor)
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
end
|
57
|
+
raise Errors::Rabbit::Publisher::Base::TestCorrelation, m_cor, p_cor \
|
58
|
+
unless m_cor.eql?(p_cor)
|
59
|
+
|
60
|
+
yield
|
64
61
|
end
|
65
62
|
|
66
63
|
def synchronize(payload)
|
@@ -76,7 +73,6 @@ module RubyRabbitmqJanus
|
|
76
73
|
end
|
77
74
|
end
|
78
75
|
end
|
79
|
-
# rubocop:enable Style/GuardClause
|
80
76
|
|
81
77
|
require 'rrj/rabbit/publisher/exclusive'
|
82
78
|
require 'rrj/rabbit/publisher/admin'
|
data/lib/rrj/tools/gem/config.rb
CHANGED
@@ -12,7 +12,6 @@ end
|
|
12
12
|
require File.join('rrj', 'models', 'concerns', file)
|
13
13
|
end
|
14
14
|
|
15
|
-
# rubocop:disable Naming/MemoizedInstanceVariableName
|
16
15
|
module RubyRabbitmqJanus
|
17
16
|
module Tools
|
18
17
|
# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
|
@@ -50,7 +49,7 @@ module RubyRabbitmqJanus
|
|
50
49
|
def initialize
|
51
50
|
@options = @configuration = nil
|
52
51
|
loading_configuration_customize
|
53
|
-
loading_configuration_default
|
52
|
+
@options ||= loading_configuration_default
|
54
53
|
end
|
55
54
|
|
56
55
|
private
|
@@ -66,13 +65,13 @@ module RubyRabbitmqJanus
|
|
66
65
|
|
67
66
|
def loading_configuration_default
|
68
67
|
@configuration = PATH_DEFAULT
|
69
|
-
|
68
|
+
load_configuration
|
70
69
|
end
|
71
70
|
end
|
72
71
|
end
|
73
72
|
end
|
74
|
-
|
75
|
-
|
73
|
+
|
74
|
+
require RubyRabbitmqJanus::Tools::Config.instance.orm
|
76
75
|
require File.join('rrj',
|
77
76
|
'models',
|
78
77
|
RubyRabbitmqJanus::Tools::Config.instance.orm)
|
@@ -4,14 +4,13 @@ require 'active_support/core_ext/string'
|
|
4
4
|
|
5
5
|
# :reek:UtilityFunction
|
6
6
|
# :reek:TooManyStatements
|
7
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
8
7
|
|
9
8
|
module RubyRabbitmqJanus
|
10
9
|
module Tools
|
11
|
-
# Class for converting
|
10
|
+
# Class for converting elements given by apps to this gem an type conform
|
12
11
|
# to request sending
|
13
12
|
class Type
|
14
|
-
#
|
13
|
+
# Initialize an object for cast a type to data given by app
|
15
14
|
#
|
16
15
|
# @param [Hash] request Request parsing before sending to RabbitMQ/Janus
|
17
16
|
def initialize(request)
|
@@ -106,4 +105,3 @@ module RubyRabbitmqJanus
|
|
106
105
|
end
|
107
106
|
end
|
108
107
|
end
|
109
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|