discordrb 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of discordrb might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc7dfd36f58df8feea4180b9f2ee01246094ee67
4
- data.tar.gz: e3abfaca8e1216f1ad67f0abfc93d5631369bb9f
3
+ metadata.gz: 6fcd66819ff42b5adefb4ae22114f8cbbdf34cb5
4
+ data.tar.gz: 250ae03f67f90638b5280049f5fbbfdca800b742
5
5
  SHA512:
6
- metadata.gz: 7c7226d0b7f7c7bf675942661d39a499d3161e97cbc872ab9931bc59a2881d0115217fe97db7fa4709cb19cf97b4172ac16ce81070ae4b8b26bae9142330e7f9
7
- data.tar.gz: 242b86beeee1d91d9bb5de6f72d239ebb98e73911c1287d825f3668f93eae38ab1e3ec8f075f2b0cd23d28827d49fa21cdfb995248359e36544e278a2cbd6554
6
+ metadata.gz: a2ea0ef9e288ecb2d4809a217de9fcfc1ba0fab772ca9b215b8bc8810f5cf85103552257f27289deb974904cfd2534e3a599830f589d2465e02b7374985cc287
7
+ data.tar.gz: 1fc4b0eeca3006817d6d5abd08cbcd22eba4e93f3fca1f6abb53b15bc5eec6865d79d5ef1042a2456c306ccbf7a9330b013892c0f827a89d463f0d33a0c97911
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.1
4
+ * The connection to voice was made more reliable. I haven't experienced any issues with it myself but I got reports where `recv` worked better than `recvmsg`.
5
+
3
6
  ## 1.5.0
4
7
  * Voice support: discordrb can now connect to voice using `bot.voice_connect` and do the following things:
5
8
  * Play files and URLs using `VoiceBot.play_file`
@@ -1,4 +1,4 @@
1
1
  # Discordrb and all its functionality, in this case only the version.
2
2
  module Discordrb
3
- VERSION = '1.5.0'
3
+ VERSION = '1.5.1'
4
4
  end
@@ -24,7 +24,7 @@ module Discordrb::Voice
24
24
 
25
25
  def receive_discovery_reply
26
26
  # Wait for a UDP message
27
- message = @socket.recvmsg.first
27
+ message = @socket.recv(70)
28
28
  ip = message[4..-3].delete("\0")
29
29
  port = message[-2..-1].to_i
30
30
  [ip, port]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discordrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - meew0