dblruby 1.1.2.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/dblruby/stats.rb +2 -2
- data/lib/dblruby/user.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2aa21e5c1f30bbad1a967215c20de21d90dfbec95f09f036fec45761b522f5bf
|
4
|
+
data.tar.gz: 1e951b5136cc05b88d5c476fc802b455cb566e1f66cd87e203e1ad8580632b11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803a3e6d36405413cb753efac90a7cd9ca9b51180534b15ec3f746cbf4448463273f73b2910fc2b1bf5e62524a3b2e683173e11b4ebedc10d1a44b009ad5796b
|
7
|
+
data.tar.gz: 2becd6fac4539ecd073ad8135d5c8ae9988ee3c08ed39d7e54c7e2799936e1253aadbe46ad73e109159407cfc92729f00c45acdacd3e5329731a9edef771f858
|
data/lib/dblruby/stats.rb
CHANGED
@@ -21,10 +21,10 @@ class DBLRuby::Stats
|
|
21
21
|
alias_method :servers, :servercount
|
22
22
|
|
23
23
|
# Update the bot's server count.
|
24
|
-
# @param count [Integer
|
24
|
+
# @param count [Integer] Integer/String of bot server count.
|
25
25
|
# @param shard_id [Integer] ID of the shard
|
26
26
|
# @param shard_count [Integer] amount of shards the bot has.
|
27
|
-
# @raise [DBLRuby::Errors::InvalidAPIKey] if
|
27
|
+
# @raise [DBLRuby::Errors::InvalidAPIKey] if DBL returns a 401 error.
|
28
28
|
# @return The count of the servers.
|
29
29
|
def updateservercount(count, shard_id = nil, shard_count = nil)
|
30
30
|
url = "https://discordbots.org/api/bots/#{@id}/stats"
|
data/lib/dblruby/user.rb
CHANGED
@@ -43,7 +43,7 @@ class DBLRuby::User
|
|
43
43
|
# The discriminator of the user.
|
44
44
|
# @return [Integer] the user's discriminator without the #.
|
45
45
|
def discriminator
|
46
|
-
@data['discriminator'].delete('#')
|
46
|
+
@data['discriminator'].delete('#')
|
47
47
|
end
|
48
48
|
|
49
49
|
alias_method :discrim, :discriminator
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dblruby
|
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
|
+
- Chew
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -52,15 +52,15 @@ files:
|
|
52
52
|
- lib/dblruby/user.rb
|
53
53
|
- lib/dblruby/weekend.rb
|
54
54
|
- lib/dblruby/widget.rb
|
55
|
-
homepage:
|
55
|
+
homepage: https://github.com/Chew/DBLRuby
|
56
56
|
licenses:
|
57
57
|
- MIT
|
58
58
|
metadata:
|
59
|
-
bug_tracker_uri: https://github.com/
|
60
|
-
changelog_uri: https://github.com/
|
61
|
-
homepage_uri: http://github.com/
|
62
|
-
source_code_uri: http://github.com/
|
63
|
-
wiki_uri: http://github.com/
|
59
|
+
bug_tracker_uri: https://github.com/Chew/DBLRuby/issues
|
60
|
+
changelog_uri: https://github.com/Chew/DBLRuby/releases
|
61
|
+
homepage_uri: http://github.com/Chew/DBLRuby
|
62
|
+
source_code_uri: http://github.com/Chew/DBLRuby
|
63
|
+
wiki_uri: http://github.com/Chew/DBLRuby/wiki
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options: []
|
66
66
|
require_paths:
|
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.6.14
|
79
|
+
rubygems_version: 3.0.2
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: Discord Bot List API for Ruby
|