koa-utils 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/koa-utils/leaderboard-client.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afb0bbec9b0fbd3f9e793de9f8356d651ae17ca2
|
4
|
+
data.tar.gz: 224f278d1239082d3603493d06fce34ba1a2e34e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a557fedd82f04673eb527b01f6e30fe7872ce4c21703bb44beac416dcd4863662cd79625a11b58ccad5eea7379e5632d39daf994eb0331a1f5f6d8031548355
|
7
|
+
data.tar.gz: 222fe155d00a7b45ce817ec1749fbf33ca8b6620cb3a2a6d14b236cac6480b8a18d60883bc96ad8aefdcd44b3e995e422ae93262f94db077ab02c0134dc96096
|
@@ -6,16 +6,16 @@ module KOAUtils
|
|
6
6
|
URL = Conf.env!('LEADERBOARD_URL')
|
7
7
|
GAME_ID = Conf.env!('KOA_GAME_ID')
|
8
8
|
|
9
|
-
def self.
|
9
|
+
def self.get_leaderboards(limit)
|
10
10
|
response = KOAUtils::Request.make(
|
11
11
|
type: :get,
|
12
|
-
url: URL + "/boards
|
12
|
+
url: URL + "/boards",
|
13
13
|
data: {limit: limit, game_id: GAME_ID}
|
14
14
|
)
|
15
15
|
if response.successful?
|
16
16
|
JSON.parse(response.body)
|
17
17
|
else
|
18
|
-
|
18
|
+
{}
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|