Skip to content

Commit

Permalink
Bump version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pavog committed Dec 19, 2023
1 parent 993f00d commit 0f87063
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
invokerPackage: Aternos\ModrinthApi
artifactVersion: 1.0.0
artifactVersion: 2.0.0
generatorName: php
outputDir: .
inputSpec: https://docs.modrinth.com/redocusaurus/plugin-redoc-0.yaml
2 changes: 1 addition & 1 deletion lib/Client/ModrinthAPIClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct(?string $apiToken = null, ?Configuration $configurat
{
$this->httpClient = $httpClient;
$this->configuration = $configuration ?? (Configuration::getDefaultConfiguration())
->setUserAgent("php-modrinth-api/1.0.0");
->setUserAgent("php-modrinth-api/2.0.0");
$this->setApiToken($apiToken);
}

Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP';
protected $userAgent = 'OpenAPI-Generator/2.0.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -434,7 +434,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: v2.7.0/15cf3fc' . PHP_EOL;
$report .= ' SDK Package Version: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 2.0.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Client/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ClientTest extends TestCase
public function setUp(): void
{
$this->apiClient = new ModrinthAPIClient();
$this->apiClient->setUserAgent("aternos/php-modrinth-api@1.0.0 ([email protected])");
$this->apiClient->setUserAgent("aternos/php-modrinth-api@2.0.0 ([email protected])");
}

protected function assertValidProjectList($list): void
Expand Down

0 comments on commit 0f87063

Please sign in to comment.