Skip to content

Commit

Permalink
Merge pull request #335 from pacoorozco/release-3.2.0
Browse files Browse the repository at this point in the history
Bump version 3.1.0 -> 3.2.0
  • Loading branch information
pacoorozco authored Sep 8, 2022
2 parents dbcfa08 + 7c66897 commit 652f0c0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/) and this

## Unreleased

## 3.2.0 - 2022-09-08

### Added
- New endpoint (`/leaderbodar`) to get the Leader Board. It's accessible for guests. ([#324][i324])
- Documentation about how to customize application views. See [HOWTO file](https://github.com/pacoorozco/gamify-laravel/blob/main/HOWTO.md).

### Changed
- Update dependencies. ([#311][i311], [#312][i312], [#313][i313], [#314][i314])
- Update dependencies. ([#311][i311], [#312][i312], [#313][i313], [#314][i314], [#325][i325], [#326][i326], [#329][i329], [#330][i330], [#331][i331], [#332][i332])

[i311]: https://github.com/pacoorozco/gamify-laravel/pull/311
[i312]: https://github.com/pacoorozco/gamify-laravel/pull/312
[i313]: https://github.com/pacoorozco/gamify-laravel/pull/313
[i314]: https://github.com/pacoorozco/gamify-laravel/pull/314
[i325]: https://github.com/pacoorozco/gamify-laravel/pull/325
[i326]: https://github.com/pacoorozco/gamify-laravel/pull/326
[i329]: https://github.com/pacoorozco/gamify-laravel/pull/329
[i330]: https://github.com/pacoorozco/gamify-laravel/pull/330
[i331]: https://github.com/pacoorozco/gamify-laravel/pull/331
[i332]: https://github.com/pacoorozco/gamify-laravel/pull/332
[i324]: https://github.com/pacoorozco/gamify-laravel/issue/324

## 3.1.0 - 2022-08-03

Expand Down
10 changes: 5 additions & 5 deletions app/Enums/BadgeActuators.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ final class BadgeActuators extends FlaggedEnum implements LocalizedEnum
public static function toSelectArray(): array
{
return [
BadgeActuators::None()->value => BadgeActuators::None()->description,
self::None => self::None()->description,
trans('enums.actuators_related_with_question_events') => [
BadgeActuators::OnQuestionAnswered()->value => BadgeActuators::OnQuestionAnswered()->description,
BadgeActuators::OnQuestionCorrectlyAnswered()->value => BadgeActuators::OnQuestionCorrectlyAnswered()->description,
BadgeActuators::OnQuestionIncorrectlyAnswered()->value => BadgeActuators::OnQuestionIncorrectlyAnswered()->description,
self::OnQuestionAnswered => self::OnQuestionAnswered()->description,
self::OnQuestionCorrectlyAnswered => self::OnQuestionCorrectlyAnswered()->description,
self::OnQuestionIncorrectlyAnswered => self::OnQuestionIncorrectlyAnswered()->description,
],
trans('enums.actuators_related_with_user_events') => [
BadgeActuators::OnUserLogin()->value => BadgeActuators::OnUserLogin()->description,
self::OnUserLogin => self::OnUserLogin()->description,
],
];
}
Expand Down
3 changes: 2 additions & 1 deletion app/Presenters/UserPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class UserPresenter extends Presenter

public function role(): string
{
return $this->model->role->description;
return $this->model->role->description
?? '';
}

public function createdAt(): string
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
|
*/

'version' => '3.1.0',
'version' => '3.2.0',

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 652f0c0

Please sign in to comment.