Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Jul 2, 2023
1 parent 44f059a commit 21d8816
Show file tree
Hide file tree
Showing 2,160 changed files with 173,115 additions and 66,944 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The validation APIs help you validate data. Check if an E-mail address is real.
[Cloudmersive Validation API](https://www.cloudmersive.com/validate-api) provides data validation capabilities for validating email addresses, phone numbers, IP addresses, and many other types of business data.

- API version: v1
- Package version: 1.8.1
- Package version: 3.0.1


## Requirements
Expand Down
23 changes: 23 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,28 @@ Remove-Item –path ./cloudmersive_validate_api_client –recurse
(Get-Content ./composer.json).replace('Swagger and contributors', 'Cloudmersive') | Set-Content ./composer.json
(Get-Content ./composer.json).replace('https://github.com/swagger-api/swagger-codegen', 'https://cloudmersive.com') | Set-Content ./composer.json
(Get-Content ./composer.json).replace('http://swagger.io', 'https://cloudmersive.com') | Set-Content ./composer.json
(Get-Content ./composer.json).replace('^6.2', '^7.5') | Set-Content ./composer.json
(Get-Content ./composer.json).replace('5.5', '7.2.5') | Set-Content ./composer.json

$old = [regex]::Escape('\GuzzleHttp\Psr7\try_fopen')
$new = '\GuzzleHttp\Psr7\Utils::tryFopen'

Get-ChildItem ./lib -Recurse -Filter *.php | ForEach-Object {
$text = Get-Content $_.FullName
$changed = $false

$newText = @()
foreach ($line in $text)
{
$newLine = $line -replace $old, $new
if ($newLine -ne $line) { $changed = $true }
$newText += $newLine
}

if ($changed)
{
[System.IO.File]::WriteAllLines($_.FullName, $newText)
}
}

& php C:\Users\adm101\composer.phar install
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive/cloudmersive_validate_api_client",
"version": "1.8.1",
"version": "3.0.1",
"description": "",
"keywords": [
"swagger",
Expand All @@ -17,11 +17,11 @@
}
],
"require": {
"php": ">=5.5",
"php": ">=7.2.5",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.2"
"guzzlehttp/guzzle": "^7.5"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
Expand Down
Loading

0 comments on commit 21d8816

Please sign in to comment.