discordrb 1.6.1 → 1.6.2
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -0
- data/discordrb.gemspec +1 -1
- data/lib/discordrb/version.rb +1 -1
- data/lib/discordrb/voice/network.rb +12 -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: 6efa41e1d94bb0d2a55a4629ee8b09cf7bdfcc08
|
4
|
+
data.tar.gz: c4a91091d7ab69734961a2dc3fb577351c6b2642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 940eb4beeaed7dc85253444b9a146c343a3da353bac0788dfc4ba15f4b9861b33f42fe7a7e12a1a37fb2b7f0c65b7f0beb5360cef1d28bde1e12fd5a80dd6bed
|
7
|
+
data.tar.gz: a07173725fc3b2501904ce867d5ed83a5dd26588cfc4aa4514edd125d8525b4d05d3e86fc20b21bdae8a6dc516e245af17a5601fedb76b8d822c8c55d8b3e271
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.6.2
|
4
|
+
|
5
|
+
### Bugfixes
|
6
|
+
* RbNaCl is now installed directly instead of the wrapper that also contains libsodium. This has the disadvantage that you will have to install libsodium manually but at least it's not broken on Windows anymore.
|
7
|
+
|
3
8
|
## 1.6.1
|
4
9
|
* It's now possible to prevent the `READY` packet from being printed in debug mode, run `bot.suppress_ready_debug` once before the `bot.run` to do it.
|
5
10
|
|
data/README.md
CHANGED
@@ -4,6 +4,14 @@
|
|
4
4
|
|
5
5
|
An implementation of the [Discord](https://discordapp.com/) API using Ruby.
|
6
6
|
|
7
|
+
## Quick links to sections
|
8
|
+
|
9
|
+
* [Installation](https://github.com/meew0/discordrb#installation)
|
10
|
+
* [Usage](https://github.com/meew0/discordrb#usage)
|
11
|
+
* [Support](https://github.com/meew0/discordrb#support)
|
12
|
+
* [Development](https://github.com/meew0/discordrb#development), [Contributing](https://github.com/meew0/discordrb#contributing)
|
13
|
+
* [License](https://github.com/meew0/discordrb#license)
|
14
|
+
|
7
15
|
## Installation
|
8
16
|
|
9
17
|
### Linux
|
data/discordrb.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency 'activesupport'
|
25
25
|
spec.add_dependency 'opus-ruby'
|
26
26
|
spec.add_dependency 'websocket-client-simple'
|
27
|
-
spec.add_dependency 'rbnacl
|
27
|
+
spec.add_dependency 'rbnacl'
|
28
28
|
|
29
29
|
spec.required_ruby_version = '>= 2.1.0'
|
30
30
|
|
data/lib/discordrb/version.rb
CHANGED
@@ -2,7 +2,16 @@ require 'websocket-client-simple'
|
|
2
2
|
require 'resolv'
|
3
3
|
require 'socket'
|
4
4
|
require 'json'
|
5
|
-
|
5
|
+
|
6
|
+
begin
|
7
|
+
require 'rbnacl'
|
8
|
+
$rbnacl_available = true
|
9
|
+
rescue LoadError
|
10
|
+
puts "libsodium not available! You can continue to use discordrb as normal but voice support won't work.
|
11
|
+
Read https://github.com/meew0/discordrb/wiki/Installing-libsodium for more details."
|
12
|
+
$rbnacl_available = false
|
13
|
+
end
|
14
|
+
|
6
15
|
|
7
16
|
module Discordrb::Voice
|
8
17
|
# Signifies to Discord that encryption should be used
|
@@ -113,6 +122,8 @@ module Discordrb::Voice
|
|
113
122
|
# @param session [String] The voice session ID Discord sends over the regular websocket
|
114
123
|
# @param endpoint [String] The endpoint URL to connect to
|
115
124
|
def initialize(channel, bot, token, session, endpoint)
|
125
|
+
fail 'RbNaCl is unavailable - unable to create voice bot! Please read https://github.com/meew0/discordrb/wiki/Installing-libsodium' unless $rbnacl_available
|
126
|
+
|
116
127
|
@channel = channel
|
117
128
|
@bot = bot
|
118
129
|
@token = token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discordrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- meew0
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faye-websocket
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: rbnacl
|
84
|
+
name: rbnacl
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|