Commit graph

103 commits

Author SHA1 Message Date
Henrique Moody 8b8f7db713
Update list of subdivision codes
To update the list of subdivisions, I decided to use the iso-codes [1]
instead of GeoNames [2] as it seems like that one is more often updated.

This commit will also create a Bash script to update that list in the
future.

[1]: https://salsa.debian.org/iso-codes-team/iso-codes
[2]: http://www.geonames.org/

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-26 16:18:49 +02:00
Henrique Moody f580e187d0
Update list of Country Codes
To update the list of countries, I decided to use the iso-codes [1]
instead of GeoNames [2] as it seems like that one is more often updated.

This commit will also create a Bash script to update that list in the
future.

[1]: https://salsa.debian.org/iso-codes-team/iso-codes
[2]: http://www.geonames.org/

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-26 14:59:41 +02:00
bagus erlang 120d924d8d
Fix coding standard of code in the "Feature guide" 2019-02-10 12:41:37 +01:00
Henrique Moody a009286ba6
Update "See also" section in the rules's documentation
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-11 13:19:52 +01:00
Lee Hesselden 780233a44b
Updated documentation about custom rules
The documentation about custom rules does not specify that creating an
exception for the rule is necessary. This commit will add that to the
documentation with an example to make it explicit.

Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-02 11:23:04 +01:00
Henrique Moody 66f5475463
Update PHP support
Due to the current status of the development of the library, it seems
like we will be supporting version 1.1 for a long time. Even when we
release version 2.0 we will still give support for version 1.1 for a
while.

This commit will make sure that version 1.1 is fully supported for PHP
7.2 and 7.3. Also, it will remove the support for HHVM since it will not
keep the compatibility with PHP anymore [1].

In order to make that happen, this commit will create a TestCase from
Validation so we can use the same API to create mocks in both PHPUnit
versions 4.0 and 5.0.

During the development of this commit, I noticed that PHPUnit 4.0 had
issues to mock "SplFileInfo" and for that reason, this commit will also
replace those mocks by "SplFileInfo" instances.

[1]: https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-02 11:09:24 +01:00
Henrique Moody 52614d600d
Organize documentation for "Read the Docs"
The current documentation is hosted via GitHub pages rendered by
"Couscous". Every time we need a new version of the documentation
published we need to manually execute the "couscous".

This commit reorganize the documentation to be published to
"Read the Docs" because it will also allow us to have documentations per
version of the library most importantly provider a search field for the
documentation.

The documentation will be then published on:
https://respect-validation.readthedocs.io/

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-08-23 01:59:39 +02:00
Islam Elshobokshy e70c201691
Make clear that "Alnum" rule accepts whitespaces
Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2018-07-01 14:27:41 +02:00
Henrique Moody cb4fb83b3e
Revert "Elaborated API styles documentation"
This reverts commit eb2621fafe.
2018-05-19 16:17:57 +02:00
Henrique Moody c6b6a4c425
Revert "Tested and fixed documentation"
This reverts commit 4357349ff0.
2018-05-19 16:17:47 +02:00
Nick Lombard 4357349ff0
Tested and fixed documentation
Fixed concrete and builder api documentation
2018-04-22 12:35:48 +02:00
Nick Lombard eb2621fafe
Elaborated API styles documentation
Transferred documentation from issue #90 Dynamic chaining
2018-04-22 01:12:42 +02:00
Henrique Moody cc179f9209 Merge branch '1.0' into 1.1 2016-08-03 10:53:00 +02:00
Henrique Moody e5fdd87a16 Rename "Iterable" to "IterableType" 2016-08-03 10:43:33 +02:00
Henrique Moody b8ecd59f48 Merge branch '1.0' into 1.1 2016-05-07 20:54:08 +02:00
Marcel Prince 6597aa5114 Add method Identical To Validator.php 2016-05-07 20:51:56 +02:00
Henrique Moody 2d3c0ceed8 Merge branch '1.0' into 1.1 2016-05-05 13:14:59 +02:00
Henrique Moody 62316fc8b9 Merge branch '0.9' into 1.0 2016-05-05 13:14:24 +02:00
Mohammad Amiri 1ce8ac8c7e Update FilterVar.md
Fixed a mistake in Url validation examples
2016-05-05 13:12:45 +02:00
Augusto Pascutti 9460a4c237 Ensure namespace separator on appended prefixes
Appending a prefix to search new rules under required that the namespace
(prefix) being added always ended with a trailing namespace character so
rules could successfully be found under it. This ensures that the
separator is always present.

Changes a test for a rule which does not implement Respect's interface
to an actual class so we don't need to declare one to use as a stub.
2016-04-23 21:20:54 -03:00
Henrique Moody 46541c7e46 Allow the define brands for credit card validation 2016-04-06 16:42:49 -03:00
Ruben Vermeersch 7a907e6795 Fix missing change from arr() to arrayVal() 2016-04-06 10:08:40 +02:00
Emmerson f40eb63d7b Create "PhpLabel" rule 2016-03-04 21:48:25 -03:00
Samuel Heinzmann ce3f885862 Create "Fibonacci" rule 2016-02-13 14:02:21 -02:00
Caio César Tavares 6d04b77762 Fix ExceptionInterface namespace. 2016-01-29 18:32:59 -02:00
Henrique Moody c2eece6785 Create "IdentityCard" rule
Original-Author: Tomasz Regdos <tomek@regdos.com>.
2016-01-13 22:57:11 -02:00
Tomasz Regdos b8da3a947b Create "Pesel" rule
Create validator for PESEL - Polish Human Identification Number.
2015-12-17 11:25:57 -02:00
Guilherme Siani c828420438 Create "Image" rule 2015-12-14 10:14:26 -02:00
Henrique Moody 799228a6e0 Merge branch '1.0' 2015-11-25 18:05:51 -02:00
Henrique Moody 0c53645311 Better examples for PostalCode rule 2015-11-25 18:03:11 -02:00
Henrique Moody e103a4ac88 Fix typo on the title 2015-11-13 13:18:29 -02:00
Henrique Moody c8980d4fc0 Fix typo on the title 2015-11-13 13:07:19 -02:00
Emmerson 621b4707b5 Create "LanguageCode" rule 2015-10-26 23:12:21 -03:00
Henrique Moody cd46545855 Small coding standards and docs improvements 2015-10-24 01:32:07 -02:00
Henrique Moody 474afaa2ec Remove "ValidationExceptionInterface" 2015-10-23 09:00:31 -02:00
Henrique Moody 67e072ebd3 Remove "NestedValidationExceptionInterface" 2015-10-23 09:00:18 -02:00
Diego Oliveira 70997912eb Create "Imei" rule 2015-10-23 07:53:59 -02:00
Henrique Moody 8c9c587597 Improvements and fixes on exceptions
There were some cases when the exceptions was not displayed property
when using nested exception, this commit fix the problem and also
display messages in Markdown list.
2015-10-22 03:01:41 -02:00
Emmerson 29bdb0a9f6 Create "BoolVal" rule 2015-10-21 01:35:05 -03:00
Henrique Moody 66027b85a5 Documentation improvements
- Add a space after comments with `//`;
- Add missing "See also" sections in some files
2015-10-19 22:55:05 -02:00
Guilherme Siani 1c254ab682 Refactor "ArrayVal" rule and add integration tests 2015-10-18 18:50:07 -02:00
João Torquato f08a1fa9fc Create "ArrayType" rule 2015-10-18 18:01:11 -02:00
Guilherme Siani 767fcaaccf Create "Iterable" rule 2015-10-18 17:27:25 -02:00
Reginaldo Junior 7398588c56 Create "FloatType" rule 2015-10-18 16:57:49 -02:00
Justin Hook 4145faab39 Create "CurrencyCode" rule 2015-10-18 14:42:39 -02:00
João Torquato a3694241f2 Create "Countable" rule 2015-10-18 11:37:50 -02:00
Henrique Moody 9c49dd3bcf Use short array syntax 2015-10-17 22:56:32 -03:00
Henrique Moody 15ce71a578 On documentation, bump supported version to 5.4 2015-10-17 14:56:26 -03:00
Guilherme Siani 36395378b6 Fix typo on "Alnum" docs 2015-10-17 13:24:16 -03:00
Henrique Moody 60568eac62 Create "IntType" rule 2015-10-16 23:43:01 -03:00