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 +4 -4
- data/lib/rrj/info.rb +1 -1
- data/lib/rrj/tools/replaces.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d867ab33a737631d0e24dbfef98cf530a567fbe
|
|
4
|
+
data.tar.gz: e49d2887b98ad7d79977ad3ed082bd619aa63494
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbb8ea88cddb61406065484e14f9a2e775a14b91d5b4b0b70c930cf598cddcc57c497a1abfdcd26b71ed74bfccaa8f5ba8cab6a593983ede389f4c8758b5f9aa
|
|
7
|
+
data.tar.gz: e70bf30e2202049ee6ccc0acfb08876835022f4541ce96c9b4b9421df17818f8f80b53b13ee305a4656e3aef529a2c24f7bfb00e870803a0e13d3eddd59363c5
|
data/lib/rrj/info.rb
CHANGED
data/lib/rrj/tools/replaces.rb
CHANGED
|
@@ -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
|
-
|
|
90
|
+
opts['candidates']
|
|
89
91
|
else
|
|
90
|
-
|
|
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
|