Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump versions #7

Merged
merged 3 commits into from
Mar 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#
# JBZoo Toolbox - Path
# JBZoo Toolbox - Path.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package Path
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/Path
# @see https://github.com/JBZoo/Path
#

# EditorConfig is awesome: http://EditorConfig.org
Expand Down
5 changes: 2 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#
# JBZoo Toolbox - Path
# JBZoo Toolbox - Path.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package Path
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/Path
# @see https://github.com/JBZoo/Path
#

/.github export-ignore
Expand Down
38 changes: 23 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#
# JBZoo Toolbox - Path
# JBZoo Toolbox - Path.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package Path
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/Path
# @see https://github.com/JBZoo/Path
#

name: CI
Expand All @@ -21,7 +20,7 @@ on:
branches:
- 'master'
schedule:
- cron: '30 */8 * * *'
- cron: '50 */8 * * *'

env:
COLUMNS: 120
Expand All @@ -35,20 +34,22 @@ jobs:
JBZOO_COMPOSER_UPDATE_FLAGS: ${{ matrix.composer_flags }}
strategy:
matrix:
php-version: [ 7.4, 8.0, 8.1 ]
php-version: [ 8.1, 8.2 ]
coverage: [ xdebug, none ]
composer_flags: [ "--prefer-lowest", "" ]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
coverage: ${{ matrix.coverage }}
tools: composer
extensions: ast

- name: Build the Project
run: make update --no-print-directory
Expand All @@ -57,12 +58,15 @@ jobs:
run: make test --no-print-directory

- name: Uploading coverage to coveralls
if: ${{ matrix.coverage == 'xdebug' }}
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make report-coveralls --no-print-directory || true

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }}
path: build/
Expand All @@ -73,17 +77,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 7.4, 8.0, 8.1 ]
php-version: [ 8.1, 8.2 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: composer
extensions: ast

Expand All @@ -94,7 +99,8 @@ jobs:
run: make codestyle --no-print-directory

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: Linters - ${{ matrix.php-version }}
path: build/
Expand All @@ -105,10 +111,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 7.4, 8.0, 8.1 ]
php-version: [ 8.1, 8.2 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -118,6 +124,7 @@ jobs:
php-version: ${{ matrix.php-version }}
coverage: xdebug
tools: composer
extensions: ast

- name: Build the Project
run: make update --no-print-directory
Expand All @@ -126,7 +133,8 @@ jobs:
run: make report-all --no-print-directory

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: Reports - ${{ matrix.php-version }}
path: build/
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#
# JBZoo Toolbox - Path
# JBZoo Toolbox - Path.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package Path
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/Path
# @see https://github.com/JBZoo/Path
#

.idea
Expand Down
17 changes: 6 additions & 11 deletions .phan.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
<?php

/**
* JBZoo Toolbox - Path
* JBZoo Toolbox - Path.
*
* This file is part of the JBZoo Toolbox project.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Path
* @license MIT
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/Path
* @see https://github.com/JBZoo/Path
*/

declare(strict_types=1);

$default = include __DIR__ . '/vendor/jbzoo/codestyle/src/phan/default.php';
$default = include __DIR__ . '/vendor/jbzoo/codestyle/src/phan.php';

$config = array_merge($default, [
$config = \array_merge($default, [
'directory_list' => [
'src',

// Libs
'vendor/jbzoo/data',
'vendor/jbzoo/utils'
]
'vendor/jbzoo/utils',
],
]);

$config['plugins'][] = 'NotFullyQualifiedUsagePlugin';

return $config;
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#
# JBZoo Toolbox - Path
# JBZoo Toolbox - Path.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package Path
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/Path
# @see https://github.com/JBZoo/Path
#

ifneq (, $(wildcard ./vendor/jbzoo/codestyle/src/init.Makefile))
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# JBZoo / Path

[![Coverage Status](https://coveralls.io/repos/JBZoo/Path/badge.svg)](https://coveralls.io/github/JBZoo/Path) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Path/coverage.svg)](https://shepherd.dev/github/JBZoo/Path) [![PHP Strict Types](https://img.shields.io/badge/strict__types-%3D1-brightgreen)](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict)
[![Stable Version](https://poser.pugx.org/jbzoo/path/version)](https://packagist.org/packages/jbzoo/path) [![Latest Unstable Version](https://poser.pugx.org/jbzoo/path/v/unstable)](https://packagist.org/packages/jbzoo/path) [![Dependents](https://poser.pugx.org/jbzoo/path/dependents)](https://packagist.org/packages/jbzoo/path/dependents?order_by=downloads) [![GitHub Issues](https://img.shields.io/github/issues/jbzoo/path)](https://github.com/JBZoo/Path/issues) [![Total Downloads](https://poser.pugx.org/jbzoo/path/downloads)](https://packagist.org/packages/jbzoo/path/stats) [![GitHub License](https://img.shields.io/github/license/jbzoo/path)](https://github.com/JBZoo/Path/blob/master/LICENSE)
[![CI](https://github.com/JBZoo/Path/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/JBZoo/Path/actions/workflows/main.yml?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/JBZoo/Path/badge.svg?branch=master)](https://coveralls.io/github/JBZoo/Path?branch=master) [![Psalm Coverage](https://shepherd.dev/github/JBZoo/Path/coverage.svg)](https://shepherd.dev/github/JBZoo/Path) [![Psalm Level](https://shepherd.dev/github/JBZoo/Path/level.svg)](https://shepherd.dev/github/JBZoo/Path) [![CodeFactor](https://www.codefactor.io/repository/github/jbzoo/path/badge)](https://www.codefactor.io/repository/github/jbzoo/path/issues)
[![Stable Version](https://poser.pugx.org/jbzoo/path/version)](https://packagist.org/packages/jbzoo/path/) [![Total Downloads](https://poser.pugx.org/jbzoo/path/downloads)](https://packagist.org/packages/jbzoo/path/stats) [![Dependents](https://poser.pugx.org/jbzoo/path/dependents)](https://packagist.org/packages/jbzoo/path/dependents?order_by=downloads) [![Visitors](https://visitor-badge.glitch.me/badge?page_id=jbzoo.path)]() [![GitHub License](https://img.shields.io/github/license/jbzoo/path)](https://github.com/JBZoo/Path/blob/master/LICENSE)



Expand Down
55 changes: 31 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"name" : "jbzoo/path",
"type" : "library",
"description" : "PHP virtual path library",
"license" : "MIT",
"keywords" : ["url", "jbzoo", "path", "realpath", "filesystem", "virtual path"],
"authors" : [
"name" : "jbzoo/path",
"type" : "library",
"description" : "PHP virtual path library",
"license" : "MIT",
"keywords" : [
"url",
"jbzoo",
"path",
"realpath",
"filesystem",
"virtual path"
],

"authors" : [
{
"name" : "Denis Smetannikov",
"email" : "admin@jbzoo.com",
Expand All @@ -16,37 +24,36 @@
}
],

"require" : {
"php" : ">=7.4",
"minimum-stability" : "dev",
"prefer-stable" : true,

"require" : {
"php" : "^8.1",

"jbzoo/utils" : "^4.5|^5.0",
"jbzoo/data" : "^4.3|^5.0"
"jbzoo/utils" : "7.x-dev",
"jbzoo/data" : "7.x-dev"
},

"require-dev" : {
"jbzoo/toolbox-dev" : "^4.0.1"
"require-dev" : {
"jbzoo/toolbox-dev" : "7.x-dev"
},

"autoload" : {
"psr-4" : {
"JBZoo\\Path\\" : "src"
}
"autoload" : {
"psr-4" : {"JBZoo\\Path\\" : "src"}
},

"autoload-dev" : {
"classmap" : ["tests"]
"autoload-dev" : {
"psr-4" : {"JBZoo\\PHPUnit\\" : "tests"}
},

"config" : {
"config" : {
"optimize-autoloader" : true,
"allow-plugins" : {
"composer/package-versions-deprecated" : true
}
"allow-plugins" : {"composer/package-versions-deprecated" : true}
},

"extra" : {
"extra" : {
"branch-alias" : {
"dev-master" : "3.0.x-dev"
"dev-master" : "7.x-dev"
}
}
}
5 changes: 2 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
JBZoo Toolbox - Path
JBZoo Toolbox - Path.

This file is part of the JBZoo Toolbox project.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

@package Path
@license MIT
@copyright Copyright (C) JBZoo.com, All rights reserved.
@link https://github.com/JBZoo/Path
@see https://github.com/JBZoo/Path
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="tests/autoload.php"
Expand Down
10 changes: 2 additions & 8 deletions src/Exception.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
<?php

/**
* JBZoo Toolbox - Path
* JBZoo Toolbox - Path.
*
* This file is part of the JBZoo Toolbox project.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Path
* @license MIT
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @link https://github.com/JBZoo/Path
* @see https://github.com/JBZoo/Path
*/

declare(strict_types=1);

namespace JBZoo\Path;

/**
* Class Exception
*
* @package JBZoo\Path
*/
class Exception extends \RuntimeException
{
}
Loading