Skip to content

Commit 00fe9b2

Browse files
authored
Merge pull request #4 from eclipxe13/master
Version 3.0.0
2 parents db68502 + f39e062 commit 00fe9b2

19 files changed

+124
-67
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
# Do not put this files on a distribution package (by .gitignore)
55
/vendor export-ignore
6-
/build export-ignore
76
/composer.lock export-ignore
87

98
# Do not put this files on a distribution package
10-
/docs/ export-ignore
9+
/build/ export-ignore
1110
/tests/ export-ignore
1211
/.gitattributes export-ignore
1312
/.gitignore export-ignore

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# do not include this files on git
22
/vendor
3-
/build
43
/composer.lock
5-
.phpunit.result.cache

.phplint.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.scrutinizer.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,9 @@ filter:
66
build:
77
nodes:
88
analysis:
9-
environment:
10-
php:
11-
version: "7.3"
12-
project_setup:
13-
override: true
149
tests:
1510
override:
1611
- php-scrutinizer-run --enable-security-analysis
17-
- phpcs-run --standard=phpcs.xml.dist src/ tests/
1812
- command: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
1913
coverage:
2014
file: coverage.clover

.travis.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
language: php
22

3-
# This triggers builds to run on the new TravisCI infrastructure.
4-
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
5-
sudo: false
6-
73
# php compatibility
84
php:
95
- "7.2"
106
- "7.3"
7+
- "7.4snapshot"
8+
9+
matrix:
10+
allow_failures:
11+
- php: "7.4snapshot"
12+
13+
env:
14+
global:
15+
- PHP_CS_FIXER_FUTURE_MODE=1
16+
- PHP_CS_FIXER_IGNORE_ENV=1
1117

1218
cache:
1319
- directories:
1420
- $HOME/.composer
1521

1622
before_script:
23+
- phpenv config-rm xdebug.ini || true
1724
- travis_retry composer install --no-interaction --prefer-dist
18-
- phpenv config-rm xdebug.ini
19-
- mkdir -p build
2025

2126
script:
22-
- vendor/bin/phplint
23-
- vendor/bin/php-cs-fixer fix --verbose
27+
- vendor/bin/php-cs-fixer fix --dry-run --verbose
2428
- vendor/bin/phpcbf --colors -sp src/ tests/
2529
- vendor/bin/phpunit --testdox --verbose
26-
- vendor/bin/phpstan.phar analyse --no-progress --level max src/ tests/
30+
- vendor/bin/phpstan analyse --no-progress --verbose --level max src/ tests/
2731

2832
notifications:
2933
email: false

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ By participating in this project and its community, you are expected to uphold t
99
## Team members
1010

1111
* [Carlos C Soto](https://github.com/eclipxe13) - original author and maintainer
12-
* [GitHub constributors](https://github.com/phpcfdi/cfdi-expresiones/graphs/contributors)
12+
* [GitHub contributors](https://github.com/phpcfdi/cfdi-expresiones/graphs/contributors)
1313

1414
## Communication Channels
1515

@@ -75,8 +75,8 @@ If any of these do not pass, it will result in a complete build failure.
7575
Before you can run these, be sure to `composer install` or `composer update`.
7676

7777
```shell
78-
vendor/bin/parallel-lint src/ tests/
7978
vendor/bin/phpcs -sp src/ tests/
8079
vendor/bin/php-cs-fixer fix -v --dry-run
8180
vendor/bin/phpunit --coverage-text
81+
vendor/bin/phpstan analyse --level max src/ tests/
8282
```

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Carlos C Soto
3+
Copyright (c) 2019 PHPCFDI
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Ejemplo de expresión para RET 1.0:
4040
?&re=XAXX010101000&nr=12345678901234567890%tt=1234567890.123456&id=ad662d33-6934-459c-a128-BDf0393f0f44
4141
```
4242

43-
4443
## Instalación
4544

4645
Usa [composer](https://getcomposer.org/)
@@ -74,19 +73,21 @@ Esta librería se mantendrá compatible con al menos la versión con
7473
También utilizamos [Versionado Semántico 2.0.0](https://semver.org/lang/es/) por lo que puedes usar esta librería
7574
sin temor a romper tu aplicación.
7675

76+
### Cambiar de la versión 2.0.0 a la versión 3.0.0
77+
78+
La versión `3.0.0` agrega un método a la interfaz `ExpressionExtractorInterface` por lo que es necesario crear una
79+
versión mayor. Puedes actualizar con confianza si no creaste alguna clase que implemente `ExpressionExtractorInterface`.
7780

7881
## Contribuciones
7982

8083
Las contribuciones con bienvenidas. Por favor lee [CONTRIBUTING][] para más detalles
8184
y recuerda revisar el archivo de tareas pendientes [TODO][] y el [CHANGELOG][].
8285

83-
8486
## Copyright and License
8587

86-
The phpcfdi/cfdi-expresiones library is copyright © [Carlos C Soto](http://eclipxe.com.mx/)
88+
The phpcfdi/cfdi-expresiones library is copyright © [PhpCfdi](https://www.phpcfdi.com/)
8789
and licensed for use under the MIT License (MIT). Please see [LICENSE][] for more information.
8890

89-
9091
[contributing]: https://github.com/phpcfdi/cfdi-expresiones/blob/master/CONTRIBUTING.md
9192
[changelog]: https://github.com/phpcfdi/cfdi-expresiones/blob/master/docs/CHANGELOG.md
9293
[todo]: https://github.com/phpcfdi/cfdi-expresiones/blob/master/docs/TODO.md
@@ -99,9 +100,9 @@ and licensed for use under the MIT License (MIT). Please see [LICENSE][] for mor
99100
[coverage]: https://scrutinizer-ci.com/g/phpcfdi/cfdi-expresiones/code-structure/master/code-coverage
100101
[downloads]: https://packagist.org/packages/phpcfdi/cfdi-expresiones
101102

102-
[badge-source]: http://img.shields.io/badge/source-phpcfdi/cfdi--expresiones-blue.svg?style=flat-square
103+
[badge-source]: https://img.shields.io/badge/source-phpcfdi/cfdi--expresiones-blue.svg?style=flat-square
103104
[badge-release]: https://img.shields.io/github/release/phpcfdi/cfdi-expresiones.svg?style=flat-square
104-
[badge-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
105+
[badge-license]: https://img.shields.io/github/license/phpcfdi/cfdi-expresiones.svg?style=flat-square
105106
[badge-build]: https://img.shields.io/travis/phpcfdi/cfdi-expresiones/master.svg?style=flat-square
106107
[badge-quality]: https://img.shields.io/scrutinizer/g/phpcfdi/cfdi-expresiones/master.svg?style=flat-square
107108
[badge-coverage]: https://img.shields.io/scrutinizer/coverage/g/phpcfdi/cfdi-expresiones/master.svg?style=flat-square

build/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

composer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"ext-dom": "*"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^8.0",
31-
"overtrue/phplint": "^1.0",
30+
"phpunit/phpunit": "^8.4",
3231
"squizlabs/php_codesniffer": "^3.0",
3332
"friendsofphp/php-cs-fixer": "^2.4",
3433
"phpstan/phpstan-shim": "^0.11"
@@ -54,10 +53,9 @@
5453
"vendor/bin/phpcbf --colors -sp src/ tests/"
5554
],
5655
"dev:test": [
57-
"vendor/bin/phplint",
56+
"@dev:check-style",
5857
"vendor/bin/phpunit --testdox --verbose --stop-on-failure",
59-
"find . -type f -name .phpunit.result.cache -delete",
60-
"vendor/bin/phpstan analyse --verbose --level max src/ tests/"
58+
"vendor/bin/phpstan analyse --verbose --no-progress --level max src/ tests/"
6159
],
6260
"dev:coverage": [
6361
"@php -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-text --coverage-html build/coverage/html/"
@@ -67,7 +65,7 @@
6765
"dev:build": "DEV: run dev:fix-style dev:tests and dev:docs, run before pull request",
6866
"dev:check-style": "DEV: search for code style errors using php-cs-fixer and phpcs",
6967
"dev:fix-style": "DEV: fix code style errors using php-cs-fixer and phpcbf",
70-
"dev:test": "DEV: run phplint, phpunit and phpstan",
68+
"dev:test": "DEV: run dev:check-style, phpunit and phpstan",
7169
"dev:coverage": "DEV: run phpunit with xdebug and storage coverage in build/coverage/html/"
7270
}
7371
}

0 commit comments

Comments
 (0)