ruby_rabbitmq_janus 1.1.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1252bb3529447bd0b1dd68c762d627291555ac15
4
- data.tar.gz: f50e5c4f10ebeb0e258153e5900559f49424d6e9
3
+ metadata.gz: 4d867ab33a737631d0e24dbfef98cf530a567fbe
4
+ data.tar.gz: e49d2887b98ad7d79977ad3ed082bd619aa63494
5
5
  SHA512:
6
- metadata.gz: 108033fd212c50b694131cef62296dd086b0ee950092877ea0f50d03cfd769f194f78849f5ac245d3ef4c336af6edb63dc12bdad76acbf11429f046477c75943
7
- data.tar.gz: 5bfa8a59e521674ae156b81f6cf55810a4405938d7b36e505846a15199e03cc941553e64c65bea3584f9833778ee0fe85dfa0362c125d44183599241660c4a18
6
+ metadata.gz: fbb8ea88cddb61406065484e14f9a2e775a14b91d5b4b0b70c930cf598cddcc57c497a1abfdcd26b71ed74bfccaa8f5ba8cab6a593983ede389f4c8758b5f9aa
7
+ data.tar.gz: e70bf30e2202049ee6ccc0acfb08876835022f4541ce96c9b4b9421df17818f8f80b53b13ee305a4656e3aef529a2c24f7bfb00e870803a0e13d3eddd59363c5
data/lib/rrj/info.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # Define constant to gem.
4
4
  module RubyRabbitmqJanus
5
5
  # Define version to gem
6
- VERSION = '1.1.0'
6
+ VERSION = '1.1.1'
7
7
 
8
8
  # Define a summary description to gem
9
9
  SUMMARY = 'Ruby RabbitMQ Janus'
@@ -5,6 +5,7 @@ module RubyRabbitmqJanus
5
5
  # Format message request with good data to HASH format
6
6
  # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
7
7
  # :reek:TooManyMethods
8
+ # rubocop:disable Metrics/ClassLength
8
9
  class Replace
9
10
  # Initialize a tool replace
10
11
  def initialize(request, options = {})
@@ -82,12 +83,13 @@ module RubyRabbitmqJanus
82
83
 
83
84
  # Test candidates or candidate
84
85
  def candidates?
86
+ opts = @opts['replace']
85
87
  if @opts.key?('candidates')
86
88
  @request['candidates'] = @request['candidate']
87
89
  @request.delete('candidate')
88
- @opts['candidates']
90
+ opts['candidates']
89
91
  else
90
- @opts['candidate']
92
+ opts['candidate']
91
93
  end
92
94
  end
93
95
 
@@ -140,5 +142,6 @@ module RubyRabbitmqJanus
140
142
  !@opts[presence_of_key].nil?
141
143
  end
142
144
  end
145
+ # rubocop:enable Metrics/ClassLength
143
146
  end
144
147
  end
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy