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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5116100a01cbfe68ca9a71c912a233609fd982c9d516cff36abdba4df0e48e4
4
- data.tar.gz: 828d75cb5785629f1e79a4b569f4c94e08ca6aafbaeb94fd2cbfe8b291edbc96
3
+ metadata.gz: 34705b52ba1d1cb1e75466f9444ed290f91cc0b25eed3ea15479c37973928a72
4
+ data.tar.gz: 05abee65e27a54c8c644a0f01ce47a481aac898e7df28b0f8f6c7c8219612615
5
5
  SHA512:
6
- metadata.gz: 54506d936ab8d58b6b4e5db9cbe684724a74af62f1da345d64731561cc645a1602646c40888d311edcacecbbe808a36cbd5a1a887627fa7313c1f9224578c03e
7
- data.tar.gz: f809b17314ec29ed883e0c9e589432a2b657cf96624ce1daf667a86e0236301c404cd196ac2a186fff96e3e70a6519f8dc55a4722ddc51434c001c9213579a7e
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
- if m_cor.eql?(p_cor)
60
- yield
61
- else
62
- raise Errors::Rabbit::Publisher::Base::TestCorrelation, m_cor, p_cor
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'
@@ -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
- @options ||= load_configuration
68
+ load_configuration
70
69
  end
71
70
  end
72
71
  end
73
72
  end
74
- # rubocop:enable Naming/MemoizedInstanceVariableName
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 elemnts given by apps to this gem an type conform
10
+ # Class for converting elements given by apps to this gem an type conform
12
11
  # to request sending
13
12
  class Type
14
- # Initalize an object for cast a type to data given by app
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
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.7.2.pre.307
4
+ version: 2.7.2.pre.308
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy