ruby_rabbitmq_janus 1.2.0 → 1.2.1

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
  SHA1:
3
- metadata.gz: 319f21f0c9819cad786787a0d4d3959d81136ff9
4
- data.tar.gz: 04309841a1a11d5e43e1a5869fd4b87e74e2763b
3
+ metadata.gz: 12aafd54721da33f128d3c79cfefc33897355465
4
+ data.tar.gz: 19a810e4e28a331646086aa31b01289978b0a7e8
5
5
  SHA512:
6
- metadata.gz: f1a66b42070c411b11c6c83c94db4ba3e738d990fdefc404b04ff540ff36e17b816ddec79cdacd1a54c8e861a38fc8a8c5a25b2354619e55c326047d6b218114
7
- data.tar.gz: bb9d2e51ba0c821a17d1463a4add055c0479bb395fd41d533e2a35e33e49cefd9f925a612887ebb23acdfe36ba047f984d34bbd7f8e8f8c22ca797143c3cd69d
6
+ metadata.gz: b46b0ecf3a06109c8bb395c3aadef37638db794b3cb0fc53cc63b1135dbbdb3ca53c4376557d99cbbf2e80f252d81a731d3f49251b943de74d557acdda8fcef6
7
+ data.tar.gz: 4291d4479d6c597649994962d333d32179f0bc91488fed09f38d0d7f01fbca9ddb7713ec915911ac90c27ee732bb15f36aaf497a110c461349fae86c73878021
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.2.0'
6
+ VERSION = '1.2.1'
7
7
 
8
8
  # Define a summary description to gem
9
9
  SUMMARY = 'Ruby RabbitMQ Janus'
data/lib/rrj/init.rb CHANGED
@@ -121,7 +121,7 @@ module RubyRabbitmqJanus
121
121
  def message_admin(type, options = { 'replace' => {}, 'add' => {} })
122
122
  @transaction = Janus::Transactions::Admin.new(@session,
123
123
  true,
124
- handle?(options))
124
+ handle?(options['replace']))
125
125
  @transaction.connect { Janus::Messages::Admin.new(type, options) }
126
126
  end
127
127
 
@@ -211,9 +211,6 @@ module RubyRabbitmqJanus
211
211
  end
212
212
 
213
213
  def handle?(options)
214
- # if options.key?('replace') && options['replace'].key?('handle_id')
215
- # options['replace'].key?('handle_id') ? replace['handle_id'] : 0
216
- # end
217
214
  options['replace'].key?('handle_id') ? replace['handle_id'] : 0
218
215
  end
219
216
  end
@@ -5,7 +5,18 @@ module RubyRabbitmqJanus
5
5
  # Modules for create message for Janus
6
6
  module Messages
7
7
  # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
8
- # Create an message for janus
8
+
9
+ # # Create a message for janus.
10
+ # Create a message, in hash format, and sending to json format.
11
+ # It's loading file base and change elements and configure message for
12
+ # used in rabbitmq.
13
+ #
14
+ # @!attribute [r] type
15
+ # @return [String]
16
+ # Type to request sending ('base::info', 'peer::trickle')
17
+ #
18
+ # @see file:/config/requests.md For more information to type requests
19
+ # used.
9
20
  class Message
10
21
  attr_reader :type
11
22
 
@@ -6,6 +6,9 @@ module RubyRabbitmqJanus
6
6
  module Publisher
7
7
  # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
8
8
 
9
+ # # Parent class for all publisher
10
+ # This element send and read a message in rabbitmq Queue
11
+ #
9
12
  # @!attribute [r] response
10
13
  # @return [RubyRabbitmqJanus::Janus::Responses::Response]
11
14
  # Given a Janus response
@@ -4,9 +4,12 @@ module RubyRabbitmqJanus
4
4
  module Rabbit
5
5
  module Publisher
6
6
  # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
7
+
7
8
  # This publisher send and read an message in queues
8
9
  class Publisher < BasePublisher
9
10
  # Intialize a publisher for sending and reading a message
11
+ # @param [String] rabbit object
12
+ #
10
13
  def initialize(exchange)
11
14
  super()
12
15
  @exchange = exchange.default_exchange
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_rabbitmq_janus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-15 00:00:00.000000000 Z
11
+ date: 2016-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler