<commit_before># Changelog

## 2.0.0

- Refactored code and functionality. The API support is the same as 1.2.0, but the library was refactored in a way you need to instantiate a client with the API KEY to use it.

### New APIs

- `platforms_by_name`
- `games_update`

### Breaking changes:

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

```ruby
> 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.


## 1.2.0
- Raise ArgumentError if api key isn't present

## 1.1.2
* Internal changes: update API endpoint url (adds `v1`), update tests

## 1.1.1
* Adds `platform_id` parameter to `games_by_name`
* Adds `page` parameter to `games_by_name`
* Adds extra fields and boxart to `games_by_name` response
* Refactors `process_platform_games`

## 1.1.0<commit_msg>Updates CHANGELOG<commit_after># Changelog

## 2.0.0

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:

```ruby
> 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.


## 1.2.0
- Raise ArgumentError if api key isn't present

## 1.1.2
* Internal changes: update API endpoint url (adds `v1`), update tests

## 1.1.1
* Adds `platform_id` parameter to `games_by_name`
* Adds `page` parameter to `games_by_name`
* Adds extra fields and boxart to `games_by_name` response
* Refactors `process_platform_games`

## 1.1.0
{'fraction_non_alphanumeric': 0.10139235987147448, 'fraction_numerical': 0.01570867547304534, 'mean_word_length': 4.4197292069632494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5027916', 'n_tokens_mistral': 977, 'n_tokens_neox': 912, 'n_words': 345}