mumble-ruby 1.1.2 → 1.1.3

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: 0ea1635039ece7ef16c81a683f522d7abc5c6264
4
- data.tar.gz: b5d717df87c92f20a46ba6872d30cb401b5b74dd
3
+ metadata.gz: 7b7712193233cf410a5308a93844f2deb20be3cb
4
+ data.tar.gz: 8cf654563bf5cf8af6ce55830bcc17ba6e7071fe
5
5
  SHA512:
6
- metadata.gz: 6496f7236573a03d5a6a2332339dea83dcd88ecedc583e38fa4e85f449a336d6224ca563ff5b37b7db9aa4464b7099e837422fb093006381ed457efb42b55449
7
- data.tar.gz: 9f454308af386089a4ab4d71650b93a4d2b7a0a3491cfdf7f10e802a4c2f0d5486ab3da0ff72031189058de314cd5dfcbc2180df6ab966212b2ee5d05d98357e
6
+ metadata.gz: cb1372dc9c8facdb62ade21037aec5022962bea342996e96fd9cab14449ff2b7fb88f0928756c37ed753232833b3022f96aec1e790449c89749b497f5521267e
7
+ data.tar.gz: b963b417e4b5270c15da439081d10b57bd82f4cf92aa4f55860b1cd6c4ce81c4ee6c43ea849e69ea64b675b04b46f25e2d1230feccf2a43e2e4e5c8d6cd5e624
@@ -1 +1 @@
1
- ruby-2.1.1
1
+ ruby-2.1
@@ -1,5 +1,5 @@
1
1
  mumble-ruby
2
- http://www.github.com/perrym5/mumble-ruby
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/raw/master/doc/mumble-protocol.pdf].
119
+ You can see it here[https://github.com/mumble-voip/mumble-protocol/blob/master/protocol_stack_tcp.rst].
@@ -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, 7),
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Mumble
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
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.2
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: 2014-07-14 00:00:00.000000000 Z
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.2.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.