Skip to content

Commit eb3d71e

Browse files
chore(release): 0.3.0-develop.1 [skip ci]
## [0.3.0-develop.1](v0.2.5...v0.3.0-develop.1) (2022-10-25) ### Features * update schema to support url field for botd result ([#32](#32)) ([002542b](002542b)) ### Bug Fixes * add force flag to rm command ([#33](#33)) ([b8d8b9d](b8d8b9d))
1 parent b8d8b9d commit eb3d71e

File tree

9 files changed

+125
-5
lines changed

9 files changed

+125
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## [0.3.0-develop.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v0.2.5...v0.3.0-develop.1) (2022-10-25)
2+
3+
4+
### Features
5+
6+
* update schema to support url field for botd result ([#32](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/issues/32)) ([002542b](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/002542b4fd667ea36ab728d1c177be314000cbae))
7+
8+
9+
### Bug Fixes
10+
11+
* add force flag to rm command ([#33](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/issues/33)) ([b8d8b9d](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/b8d8b9dec6c351b869fef0b50c37684ad317b6d5))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
3232

3333
- API version: 3
34-
- Package version: 0.2.5
34+
- Package version: 1.0.0
3535
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
3636

3737
## Requirements

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fingerprintjs/fingerprint-pro-server-api-php-sdk",
3-
"version": "0.2.5",
3+
"version": "1.0.0",
44
"description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.",
55
"keywords": [
66
"swagger",

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"gitUserId": "fingerprintjs",
99
"gitRepoId": "fingerprint-pro-server-api-php-sdk",
1010
"description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.",
11-
"artifactVersion": "0.2.5"
11+
"artifactVersion": "1.0.0"
1212
}

src/.php_cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
return Symfony\CS\Config::create()
4+
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
5+
->setUsingCache(true)
6+
->fixers(
7+
[
8+
'ordered_use',
9+
'phpdoc_order',
10+
'short_array_syntax',
11+
'strict',
12+
'strict_param'
13+
]
14+
)
15+
->finder(
16+
Symfony\CS\Finder\DefaultFinder::create()
17+
->in(__DIR__)
18+
);

src/.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: php
2+
sudo: false
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- hhvm
9+
before_install: "composer install"
10+
script: "vendor/bin/phpunit"

src/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Configuration
8787
*
8888
* @var string
8989
*/
90-
protected $userAgent = 'Swagger-Codegen/0.2.5/php';
90+
protected $userAgent = 'Swagger-Codegen/1.0.0/php';
9191

9292
/**
9393
* Debug switch (default set to false)
@@ -396,7 +396,7 @@ public static function toDebugReport()
396396
$report .= ' OS: ' . php_uname() . PHP_EOL;
397397
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
398398
$report .= ' OpenAPI Spec Version: 3' . PHP_EOL;
399-
$report .= ' SDK Package Version: 0.2.5' . PHP_EOL;
399+
$report .= ' SDK Package Version: 1.0.0' . PHP_EOL;
400400
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
401401

402402
return $report;

src/git_push.sh

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/sh
2+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3+
#
4+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
5+
6+
git_user_id=$1
7+
git_repo_id=$2
8+
release_note=$3
9+
git_repo_base_url=$4
10+
11+
if [ "$git_user_id" = "" ]; then
12+
git_user_id="fingerprintjs"
13+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
14+
fi
15+
16+
if [ "$git_repo_id" = "" ]; then
17+
git_repo_id="fingerprint-pro-server-api-php-sdk"
18+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
19+
fi
20+
21+
if [ "$release_note" = "" ]; then
22+
release_note="Minor update"
23+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
24+
fi
25+
26+
if [ "$git_repo_base_url" = "" ]; then
27+
git_repo_base_url="https://github.com"
28+
echo "[INFO] No command line input provided. Set \$git_repo_base_url to $git_repo_base_url"
29+
fi
30+
31+
# Initialize the local directory as a Git repository
32+
git init
33+
34+
# Adds the files in the local repository and stages them for commit.
35+
git add .
36+
37+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
38+
git commit -m "$release_note"
39+
40+
# Sets the new remote
41+
git_remote=`git remote`
42+
if [ "$git_remote" = "" ]; then # git remote not defined
43+
44+
if [ "$GIT_TOKEN" = "" ]; then
45+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46+
git remote add origin ${git_repo_base_url}/${git_user_id}/${git_repo_id}.git
47+
else
48+
git_repo_base_url=${git_repo_base_url#*//}
49+
git_repo_base_url=${git_repo_base_url%%.*}
50+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_repo_base_url}/${git_user_id}/${git_repo_id}.git
51+
fi
52+
53+
fi
54+
55+
git pull origin master
56+
57+
# Pushes (Forces) the changes in the local repository up to the remote repository
58+
echo "Git pushing to ${git_repo_base_url}/${git_user_id}/${git_repo_id}.git"
59+
git push origin master 2>&1 | grep -v 'To https'
60+

src/phpunit.xml.dist

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="./vendor/autoload.php"
3+
colors="true"
4+
convertErrorsToExceptions="true"
5+
convertNoticesToExceptions="true"
6+
convertWarningsToExceptions="true"
7+
stopOnFailure="false">
8+
<testsuites>
9+
<testsuite>
10+
<directory>./test/Api</directory>
11+
<directory>./test/Model</directory>
12+
</testsuite>
13+
</testsuites>
14+
15+
<filter>
16+
<whitelist processUncoveredFilesFromWhitelist="true">
17+
<directory suffix=".php">././Api</directory>
18+
<directory suffix=".php">././Model</directory>
19+
</whitelist>
20+
</filter>
21+
</phpunit>

0 commit comments

Comments
 (0)