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 +4 -4
- data/lib/rrj/info.rb +1 -1
- data/lib/rrj/init.rb +1 -4
- data/lib/rrj/janus/messages/message.rb +12 -1
- data/lib/rrj/rabbit/publish/base_publisher.rb +3 -0
- data/lib/rrj/rabbit/publish/publisher.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12aafd54721da33f128d3c79cfefc33897355465
|
4
|
+
data.tar.gz: 19a810e4e28a331646086aa31b01289978b0a7e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b46b0ecf3a06109c8bb395c3aadef37638db794b3cb0fc53cc63b1135dbbdb3ca53c4376557d99cbbf2e80f252d81a731d3f49251b943de74d557acdda8fcef6
|
7
|
+
data.tar.gz: 4291d4479d6c597649994962d333d32179f0bc91488fed09f38d0d7f01fbca9ddb7713ec915911ac90c27ee732bb15f36aaf497a110c461349fae86c73878021
|
data/lib/rrj/info.rb
CHANGED
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
|
-
|
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.
|
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-
|
11
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|