mumble-ruby 1.1.2 → 1.1.3
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/.ruby-version +1 -1
- data/README.rdoc +2 -2
- data/lib/mumble-ruby/client.rb +13 -2
- data/lib/mumble-ruby/user.rb +6 -2
- data/lib/mumble-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b7712193233cf410a5308a93844f2deb20be3cb
|
4
|
+
data.tar.gz: 8cf654563bf5cf8af6ce55830bcc17ba6e7071fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb1372dc9c8facdb62ade21037aec5022962bea342996e96fd9cab14449ff2b7fb88f0928756c37ed753232833b3022f96aec1e790449c89749b497f5521267e
|
7
|
+
data.tar.gz: b963b417e4b5270c15da439081d10b57bd82f4cf92aa4f55860b1cd6c4ce81c4ee6c43ea849e69ea64b675b04b46f25e2d1230feccf2a43e2e4e5c8d6cd5e624
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.1
|
1
|
+
ruby-2.1
|
data/README.rdoc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
mumble-ruby
|
2
|
-
http://www.github.com/
|
2
|
+
http://www.github.com/mattvperry/mumble-ruby
|
3
3
|
|
4
4
|
== DESCRIPTION:
|
5
5
|
|
@@ -116,4 +116,4 @@ There is huge room for improvement in this library and I am willing to accept al
|
|
116
116
|
|
117
117
|
The documentation for Mumble's control and voice protocol is a good reference for using this client as all of the callbacks
|
118
118
|
are based on the types of messages the Mumble uses to accomplish its tasks.
|
119
|
-
You can see it here[https://github.com/mumble-voip/mumble/
|
119
|
+
You can see it here[https://github.com/mumble-voip/mumble-protocol/blob/master/protocol_stack_tcp.rst].
|
data/lib/mumble-ruby/client.rb
CHANGED
@@ -63,13 +63,24 @@ module Mumble
|
|
63
63
|
def me
|
64
64
|
users[@session]
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
|
+
def set_comment(comment="")
|
68
|
+
send_user_state(comment: comment)
|
69
|
+
end
|
70
|
+
|
67
71
|
def join_channel(channel)
|
68
72
|
id = channel_id channel
|
69
73
|
send_user_state(session: @session, channel_id: id)
|
70
74
|
channels[id]
|
71
75
|
end
|
72
76
|
|
77
|
+
def move_user(user, channel)
|
78
|
+
cid = channel_id channel
|
79
|
+
uid = user_session user
|
80
|
+
send_user_state(session: uid, channel_id: cid)
|
81
|
+
channels[cid]
|
82
|
+
end
|
83
|
+
|
73
84
|
def text_user(user, string)
|
74
85
|
session = user_session user
|
75
86
|
send_text_message(session: [user_session(user)], message: string)
|
@@ -165,7 +176,7 @@ module Mumble
|
|
165
176
|
|
166
177
|
def version_exchange
|
167
178
|
send_version({
|
168
|
-
version: encode_version(1, 2,
|
179
|
+
version: encode_version(1, 2, 10),
|
169
180
|
release: "mumble-ruby #{Mumble::VERSION}",
|
170
181
|
os: %x{uname -s}.strip,
|
171
182
|
os_version: %x{uname -v}.strip
|
data/lib/mumble-ruby/user.rb
CHANGED
@@ -33,11 +33,15 @@ module Mumble
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def muted?
|
36
|
-
!!mute || !!self_mute
|
36
|
+
!!data['suppress'] || !!data['mute'] || !!self_mute
|
37
37
|
end
|
38
38
|
|
39
39
|
def deafened?
|
40
|
-
!!deaf || !!self_deaf
|
40
|
+
!!data['deaf'] || !!self_deaf
|
41
|
+
end
|
42
|
+
|
43
|
+
def register
|
44
|
+
client.send_user_state(session: session, user_id: 0)
|
41
45
|
end
|
42
46
|
|
43
47
|
def stats
|
data/lib/mumble-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumble-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Perry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.4.5
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Implements the mumble VOIP protocol in ruby for more easily writing clients.
|