discordrb 1.6.5 → 1.6.6

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: fb4293a540d97b7c63609c9df1fbf4673f2572ea
4
- data.tar.gz: 316bc0f2f6853ae080ded0ed26765c8051b8479a
3
+ metadata.gz: ae206b1493cc2947c8e9e167a7b56beddb8dc6b0
4
+ data.tar.gz: 2cd3796af4b5b0641bca15ccbadc9fe2969995c5
5
5
  SHA512:
6
- metadata.gz: 268cb865059b2b8931bf8179a080bd3bfed369464e02f919ae19f346f276439b69d490163677e79caea20985c0f8cdb5623f0b80100ca0a0ee98ec92ccc8af7b
7
- data.tar.gz: 900ccc20679e0ea98a5eb0b9b4bbbfaf73f4fc893cecb4faaecb3364363e5c559ceac8bccc091e1646c165ca09e1595e1c4cb32c345e68a18dca56d790aab0cd
6
+ metadata.gz: 6ced598d35f407a828bf0e71de59426a6295299e63d4639b6149ec35673d07dc953fe7c8f93e3a238ef24cafb8ad63a4bde7f9fd7d1d0d0ebefbd331ffdd96c9
7
+ data.tar.gz: 0a63a2826f570ea166c9e6d5f5de257643d9a3616140f3e3938f31e78c27d21dcba9b58c411403223332b5887e9bf8cd21a9b38e92083c93c97a624317a97469
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.6
4
+
5
+ ### Bugfixes
6
+ * Fixed a problem that would cause an incompatibility with Ruby 2.1
7
+ * Fixed servers sometimes containing duplicate members
8
+
3
9
  ## 1.6.5
4
10
  * The bot will now request the users that would previously be sent all in one READY packet in multiple chunks. This improves startup time slightly and ensures compatibility with the latest Discord change, but it also means that some users won't be in server members lists until a while after creation (usually a couple seconds at most).
5
11
 
data/lib/discordrb/bot.rb CHANGED
@@ -1167,11 +1167,11 @@ module Discordrb
1167
1167
  v: 2, # Another identifier
1168
1168
  token: @token,
1169
1169
  properties: { # I'm unsure what these values are for exactly, but they don't appear to impact bot functionality in any way.
1170
- '$os': RUBY_PLATFORM.to_s,
1171
- '$browser': 'discordrb',
1172
- '$device': 'discordrb',
1173
- '$referrer': '',
1174
- '$referring_domain': ''
1170
+ :'$os' => RUBY_PLATFORM.to_s,
1171
+ :'$browser' => 'discordrb',
1172
+ :'$device' => 'discordrb',
1173
+ :'$referrer' => '',
1174
+ :'$referring_domain' => ''
1175
1175
  },
1176
1176
  large_threshold: 100
1177
1177
  }
@@ -835,7 +835,7 @@ module Discordrb
835
835
  # @note For internal use only
836
836
  # @!visibility private
837
837
  def add_user(user)
838
- @members << user
838
+ @members << user unless @members.include? user
839
839
  end
840
840
 
841
841
  # Removes a user from the user cache.
@@ -1,5 +1,5 @@
1
1
  # Discordrb and all its functionality, in this case only the version.
2
2
  module Discordrb
3
3
  # The current version of discordrb.
4
- VERSION = '1.6.5'.freeze
4
+ VERSION = '1.6.6'.freeze
5
5
  end
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.5
4
+ version: 1.6.6
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-12 00:00:00.000000000 Z
11
+ date: 2016-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faye-websocket