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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 842e017b72a7b7286972e05a66f1b4773f77b3e6
4
- data.tar.gz: 3ab23013f733b6ac79b795c28325efb43e29b108
3
+ metadata.gz: afb0bbec9b0fbd3f9e793de9f8356d651ae17ca2
4
+ data.tar.gz: 224f278d1239082d3603493d06fce34ba1a2e34e
5
5
  SHA512:
6
- metadata.gz: dc951f7e56ae0d973183be9edc190fc0c4ef413e897c4bd38057d6ffbfbede259985408dac492e5eba1d44a8a60e7395eb56a10eee1471fde1602be8eead7a52
7
- data.tar.gz: f95e0ab035fd649e766a4002c263205c5dc7b65f2065591d54da95ff4e03b59d9af6e08223816c2ba614ba19ef57a3d78fc7071e08c022406678db7f562bd520
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.get_leaders(type, limit)
9
+ def self.get_leaderboards(limit)
10
10
  response = KOAUtils::Request.make(
11
11
  type: :get,
12
- url: URL + "/boards/#{type}",
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koa-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Rykwalder