Skip to content

Commit d926c14

Browse files
committed
UniLex upgraded to 0.2.0
1 parent 96e4118 commit d926c14

File tree

5 files changed

+28
-19
lines changed

5 files changed

+28
-19
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [Unreleased]
8+
### Added
9+
- UniLex version updated to 0.2.0.
10+
711
## [0.6.7] - 2020-02-17
812
### Added
913
- UniLex version updated to 0.1.0.

composer.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@
1919
"require": {
2020
"php": "^7.3",
2121
"remorhaz/php-json-data": "^0.5.2",
22-
"remorhaz/php-unilex": "^0.1.0"
22+
"remorhaz/php-unilex": "^0.2"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^9.0.1",
26-
"infection/infection": "^0.15.3",
27-
"squizlabs/php_codesniffer": "^3.5.4",
28-
"phing/phing": "^2.16.3"
25+
"phpunit/phpunit": "^9.1",
26+
"infection/infection": "^0.16",
27+
"squizlabs/php_codesniffer": "^3.5.4"
2928
},
3029
"autoload": {
3130
"psr-4": {
@@ -45,16 +44,24 @@
4544
},
4645
"scripts": {
4746
"build": [
48-
"vendor/bin/phing"
47+
"vendor/bin/unilex build-token-matcher --desc=\"JSON Pointer token matcher.\" spec/LexerSpec.php generated/TokenMatcher.php",
48+
"vendor/bin/unilex build-lookup-table --type=LL_1 --symbol=Remorhaz\\\\JSON\\\\Pointer\\\\Parser\\\\SymbolType --token=Remorhaz\\\\JSON\\\\Pointer\\\\Parser\\\\TokenType --desc=\"JSON Pointer parser LL(1) lookup table.\" spec/GrammarSpec.php generated/LookupTable.php",
49+
"vendor/bin/phpcbf -p generated/; if [ $? -eq 1 ]; then exit 0; fi"
50+
],
51+
"test-cs": [
52+
"vendor/bin/phpcs -sp"
53+
],
54+
"test-unit": [
55+
"vendor/bin/phpunit --coverage-clover=build/logs/clover.xml --coverage-xml=build/logs/coverage-xml --log-junit=build/logs/junit.xml"
4956
],
5057
"test": [
51-
"vendor/bin/phpcs -sp",
52-
"vendor/bin/phpunit"
58+
"@test-cs",
59+
"@test-unit"
5360
],
5461
"infection": [
62+
"@test-unit",
5563
"mkdir -p ./build/logs",
56-
"vendor/bin/phpunit --coverage-clover=build/logs/clover.xml --coverage-xml=build/logs/coverage-xml --log-junit=build/logs/junit.xml",
57-
"vendor/bin/infection --coverage=build/logs --threads=4 --no-progress"
64+
"vendor/bin/infection --coverage=build/logs --threads=4 --no-progress --skip-initial-tests"
5865
]
5966
}
6067
}

generated/LookupTable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
2+
23
/**
34
* JSON Pointer parser LL(1) lookup table.
45
*
56
* Auto-generated file, please don't edit manually.
6-
* Run following command to update this file:
7-
* vendor/bin/phing json-pointer-lookup
8-
*
9-
* Phing version: 2.16.1
7+
* Generated by UniLex.
108
*/
119

10+
declare(strict_types=1);
11+
1212
use Remorhaz\JSON\Pointer\Parser\SymbolType;
1313
use Remorhaz\JSON\Pointer\Parser\TokenType;
1414

generated/TokenMatcher.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<?php
2+
23
/**
34
* JSON Pointer token matcher.
45
*
56
* Auto-generated file, please don't edit manually.
6-
* Run following command to update this file:
7-
* vendor/bin/phing json-pointer-matcher
8-
*
9-
* Phing version: 2.16.1
7+
* Generated by UniLex.
108
*/
119

1210
namespace Remorhaz\JSON\Pointer;

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<arg name="colors"/>
1010

11-
<rule ref="PSR2">
11+
<rule ref="PSR12">
1212
</rule>
1313

1414
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">

0 commit comments

Comments
 (0)