listcordrb 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/listcordrb/stats.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b045c166a7bbd2665bfb5c949cc40e58996d451
4
- data.tar.gz: 4071095ff4149a3a2de858e106e4e4aca70f4108
3
+ metadata.gz: 88b997be35a8a0d96eb6fa0985cb2c2dc08b680e
4
+ data.tar.gz: e8bb8208be552aec1b6fe5ea6a178f633e687eab
5
5
  SHA512:
6
- metadata.gz: 97f86c210d40f7031ee88df961365840b088f522ace3e9322a60508c78edbebfc3eaee62b64a3b27fc8df2cd72a7b7889118e31b498c34243f0ab62e971f9806
7
- data.tar.gz: 6618a70dbde196dece1779797d69c6c0a34a1aa725d7983b9050aec15973387ee8b35ff246c720d20bf0c3b7394a6f98abe13126a3ee65627e405ddafbf825f2
6
+ metadata.gz: 3e4169550541bde29ec8ab9c8a76e8b33b28b1d4de0be70eef95622b59dcdf4fa5800a8c98bef60e21bb5bea05a8136d4db08a8a391aef78d31fd8f1894c864d
7
+ data.tar.gz: c754cce5b667bf20ad8e9f3f70661ab7f63ef611b62f76d00797f9b902176e49c1f2c03bc9a499bdae50a3ef68430fad73faa3986abb397f9150e485cb65dc11
@@ -1,7 +1,7 @@
1
1
  # Stats and stuff, ya know.
2
2
  class ListCordRB::Stats
3
3
  # Initialize the stats
4
- # Program does this automatically when running DBLRuby.new.
4
+ # Program does this automatically when running ListCordRB.new.
5
5
  def initialize(apikey, id)
6
6
  @api = apikey
7
7
  @id = id
@@ -9,7 +9,7 @@ class ListCordRB::Stats
9
9
 
10
10
  # Get the server count, returns an int.
11
11
  def servers
12
- url = "http://listcord.com/api/bot/#{@id}"
12
+ url = "https://listcord.com/api/bot/#{@id}"
13
13
  JSON.parse(RestClient.get(url))['servers'].to_i
14
14
  end
15
15
 
@@ -17,7 +17,7 @@ class ListCordRB::Stats
17
17
 
18
18
  # Update the bot's server count.
19
19
  def servers=(count, shard = nil)
20
- url = "http://listcord.com/api/bot/#{@id}/guilds"
20
+ url = "https://listcord.com/api/bot/#{@id}/guilds"
21
21
  json = {
22
22
  'guilds' => count.to_s,
23
23
  'shard' => shard.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: listcordrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chewsterchew
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-02 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client