Skip to content

v2.0.0

Compare
Choose a tag to compare
@picandocodigo picandocodigo released this 30 Nov 19:53

Refactored code and functionality. The library was refactored in a way you need to instantiate a client with the API key to use it (more info in "Breaking changes"). 100% of the documented API is now supported and implemented.

The base API Response includes the remaining_monthly_allowance for your API key, extra_allowance and allowance_refresh_timer. These values are updated on the client instance on every request so you can use client.remaining_monthly_client to check how many requests the API key has left.

New APIs

  • developers
  • games_update
  • genres
  • platforms_by_name
  • platforms_images
  • publishers

Breaking changes:

  • Dropped support for Ruby 2.4. The gem might still work on Ruby 2.4, but it's not being regularly tested for any version lower than 2.5.

  • You now need to instantiate the Gamesdb::Client class passing in the api_key. E.g:

> client = Gamesdb::Client.new(ENV['GAMESDB_API_KEY'])


> client = Gamesdb::Client.new('my_api_key')
> client.platforms
...
  • Changes in methods:

  • platform_by_id changes to platforms_by_id.

  • game_by_id changes to games_by_id.

  • game_images changes to games_images.
    These APIs now support a string of comma delimited ids as parameters as well as the id Integer.