-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
2,853 additions
and
643 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
* text=auto | ||
|
||
/.github/ export-ignore | ||
/docs/ export-ignore | ||
/tests/ export-ignore | ||
/mkdocs.yaml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Static Analysis" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'master' | ||
|
||
jobs: | ||
|
||
psalm: | ||
runs-on: 'ubuntu-20.04' | ||
strategy: | ||
matrix: | ||
php: | ||
- '8.1' | ||
steps: | ||
- uses: 'actions/checkout@v2' | ||
- uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '${{ matrix.php }}' | ||
- uses: 'ramsey/composer-install@v2' | ||
with: | ||
dependency-versions: 'highest' | ||
# Require vimeo/psalm via command-line instead of adding to Composer's | ||
# "require-dev"; we only want to run static analysis once on the highest | ||
# version of PHP available. Also, Psalm on 5.6? No, thank you. | ||
- run: 'composer require --dev vimeo/psalm' | ||
- run: './vendor/bin/psalm --config="tests/psalm.xml" --threads="$(nproc)" --php-version="5.6" --no-cache --stats --show-info=false --output-format="github"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: "Linting and Unit Tests" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'develop' | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'master' | ||
|
||
jobs: | ||
|
||
syntax-linting: | ||
runs-on: 'ubuntu-20.04' | ||
strategy: | ||
matrix: | ||
php: | ||
- '5.6' | ||
- '7.0' | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
steps: | ||
- uses: 'actions/checkout@v2' | ||
- uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '${{ matrix.php }}' | ||
- run: 'find src/ -type f -name "*.php" -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )' | ||
|
||
unit-testing: | ||
runs-on: 'ubuntu-20.04' | ||
strategy: | ||
matrix: | ||
php: | ||
- '5.6' | ||
- '7.0' | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
steps: | ||
- uses: 'actions/checkout@v2' | ||
- uses: 'shivammathur/setup-php@v2' | ||
with: | ||
php-version: '${{ matrix.php }}' | ||
- uses: 'ramsey/composer-install@v2' | ||
with: | ||
dependency-versions: 'highest' | ||
- run: './vendor/bin/phpunit --bootstrap="tests/bootstrap.php" --test-suffix="Test.php" tests' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/build/ | ||
/.idea/ | ||
/build/ | ||
/gh-pages/ | ||
/vendor/ | ||
# Because this library will never be the root package, don't commit Composer's lock file. | ||
/composer.lock |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Darsyn IP | ||
|
||
## `4.2.0` | ||
|
||
- Added `IpInterface::equals()` method for comparing two IP addresses. | ||
- Added `getCommonCidr(IpInterface $ip): int` for determining how in range two | ||
IP addresses are according to their common CIDR value. | ||
- Added `isBenchmarking()`, `isDocumentation()`, and `isPublicUse()` type | ||
methods for both IPv4 and IPv6 addresses. | ||
- Added `isBroadcast()`, `isShared()`, and `isFutureReserved()` type methods for | ||
IPv4 addresses. | ||
- Added `getMulticastScope()`, `isUniqueLocal()`, `isUnicast()`, and | ||
`isUnicastGlobal()` type methods for IPv6 addresses. | ||
- Added `Ipv6::fromEmbedded()` factory method to create an instance of an | ||
IPv4-embedded address as IPv6 instead of Multi. | ||
- Made internal helper methods for dealing with binary data into utility | ||
classes: `Darsyn\IP\Util\Binary` and `Darsyn\IP\Util\MbString`. | ||
- Complete documentation overhaul | ||
- Increase test coverage. | ||
- Started using static analysis both locally and via GitHub actions. | ||
- Documentation and tests are excluded from the Git archive to reduce download | ||
size when installing Composer dependency as dist. | ||
- Updated Code of Conduct to Contributor Covenant v2.1 | ||
|
||
## `4.0.2` | ||
|
||
- Add return types to DocComments to prevent | ||
[`symfony/error-handler`](https://github.com/symfony/symfony/tree/5.4/src/Symfony/Component/ErrorHandler) | ||
from throwing deprecation errors | ||
|
||
## `4.0.1` | ||
|
||
- Add Code of Conduct to project. | ||
- Add new internal helper for dealing with binary strings. | ||
- Add namespace indicator to function calls to speed up symbol resolution. | ||
- Add `__toString()` to IP objects. | ||
- Update unit tests, now runnable on all PHP versions 5.6 to 8.1 | ||
|
||
## `4.0.0` | ||
|
||
- Complete rewrite of library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.