trophy_api_client 1.0.25 → 1.0.26

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e83bc714888213fee4230e282f81c84167b7a06f299bfb64fa88c6f31fdbccf
4
- data.tar.gz: 8a8fd15093b0f52a3e740eda1c09992fafea425a66a3ec699ce4e4bd335f1a63
3
+ metadata.gz: 1a95dbb430879c95ed350b8de2a77e74d126450896fcbb309ab33d1007c6a536
4
+ data.tar.gz: df4e465c4a22865fdb41228ab10c29ade0d17b394b14aa16c1337e8114a44898
5
5
  SHA512:
6
- metadata.gz: db6436076a0426b84f0d1db8d6be58d0b37333cc72af12141e0823add83f0688eedb2ae9ab184b43b748daaf34dcc6ca7f35e29fc1aedb8a0caad445f391b038
7
- data.tar.gz: e3951f80976187af389151dcadef50b80089d30f9525c0f5abecd382538fa2507045f9221b3bddda585979e00fe12fdef6d9b018f8aa465c78f94e14431f680f
6
+ metadata.gz: c29eb2612f426a3a4c5e8b071fd707043f336d5632228648e58f55ba7cf6aa2eaa5e0d912023bbe2500308282b6552ad47d5dd895af166ba69b8e857a24ebe43
7
+ data.tar.gz: a105c7f1fb858c9b3442acefd55a9d9a6e03dd7304b8a10f76453e8765883ea1a7e34da6dc57f815cd99cac20bf9e41965be210a9f4e4cc8b1efd9b595beb6b8
data/lib/gemconfig.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module TrophyApiClient
4
4
  module Gemconfig
5
- VERSION = "1.0.25"
5
+ VERSION = "1.0.26"
6
6
  AUTHORS = ["Trophy Labs, Inc"].freeze
7
7
  EMAIL = ""
8
8
  SUMMARY = "Ruby library for the Trophy API."
@@ -463,12 +463,12 @@ module TrophyApiClient
463
463
  # environment: TrophyApiClient::Environment::DEFAULT,
464
464
  # api_key: "YOUR_API_KEY"
465
465
  # )
466
- # api.users.leaderboards(
466
+ # api.users.leaderboard(
467
467
  # id: "user-123",
468
468
  # key: "weekly-words",
469
469
  # run: "2025-01-15"
470
470
  # )
471
- def leaderboards(id:, key:, run: nil, request_options: nil)
471
+ def leaderboard(id:, key:, run: nil, request_options: nil)
472
472
  response = @request_client.conn.get do |req|
473
473
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
474
474
  req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
@@ -955,12 +955,12 @@ module TrophyApiClient
955
955
  # environment: TrophyApiClient::Environment::DEFAULT,
956
956
  # api_key: "YOUR_API_KEY"
957
957
  # )
958
- # api.users.leaderboards(
958
+ # api.users.leaderboard(
959
959
  # id: "user-123",
960
960
  # key: "weekly-words",
961
961
  # run: "2025-01-15"
962
962
  # )
963
- def leaderboards(id:, key:, run: nil, request_options: nil)
963
+ def leaderboard(id:, key:, run: nil, request_options: nil)
964
964
  Async do
965
965
  response = @request_client.conn.get do |req|
966
966
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1,3 +1,3 @@
1
1
  module MyGem
2
- VERSION = "1.0.25"
2
+ VERSION = "1.0.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trophy_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.25
4
+ version: 1.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trophy Labs, Inc