Skip to content

Commit

Permalink
refactor(deps): updated pulkitjalan/ip-geolocation to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Dec 20, 2024
1 parent 2c56d03 commit 119827f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Create a licence key by confirming that it will not be used for GeoIpUpdate. Now
To check if the variable is set up, run this command to install the latest database release:

```bash
docker compose exec app php artisan geoip:update
docker compose exec app php artisan ip-geolocation:update
```
the database should be now downloaded inside `storage/app/GeoLite2-Country`, no additional steps are required.

Expand Down
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule): void
{
$schedule->command("geoip:update")->daily();
$schedule->command("ip-geolocation:update")->daily();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Logic/GeoIpLocatorImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private function retryLocate(string $ip, int $retries = 0): Country
Log::emergency('Cannot recover from invalid MaxMind DB.');
throw $exception;
}
Artisan::call('geoip:update');
Artisan::call('ip-geolocation:update');

return $this->retryLocate($ip, $retries + 1);
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"laravel/tinker": "^v2.8",
"league/csv": "^9.10",
"opis/json-schema": "^2.3",
"pulkitjalan/geoip": "^7.0"
"pulkitjalan/ip-geolocation": "^8.0"
},
"require-dev": {
"fakerphp/faker": "^v1.23",
Expand Down
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion containers/php/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ "$1" = 'php-fpm' ]; then
php artisan optimize
fi
php artisan migrate --force
php artisan geoip:update
php artisan ip-geolocation:update
elif [ "$1" = 'crond' ]; then
wait-for "${FPM_URL:?Missing FPM_URL}:${FPM_PORT:?Missing FPM_PORT}" -t 60
fi
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/GeoIpLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Artisan::partialMock()
->shouldReceive('call')
->times(3)
->with('geoip:update');
->with('ip-geolocation:update');

Log::partialMock()
->shouldReceive('emergency')
Expand Down

0 comments on commit 119827f

Please sign in to comment.