Commit graph

646 commits

Author SHA1 Message Date
Alexandre Gomes Gaigalas 3e31d97992 Merge pull request #199 from GypsyCodex/add-test-section
Add Test section in README.md
2014-08-05 13:48:57 -03:00
Davide Pastore 40a7b1e7ba Add Test section in README.md
Use <project folder>, add the "$" symbol, remove the configuration of phpunit, add composer download and installation of dependencies.
2014-08-04 09:40:03 +02:00
Augusto Pascutti 880f02b6bb Merge pull request #191 from malukenho/patch-3
Links for rules on README.
2014-07-15 01:10:19 -03:00
Jefersson Nathan 2ce3685b20 Links of rules on README.
All references to rules inside the README now have
a link to the corresponding section into the documentation.

Fixes #190 on GitHub.
2014-07-15 04:07:17 +00:00
Alexandre Gaigalas 0ca64fa83b Fixing tests/bootstrap.php for #182 2014-07-14 11:04:38 -03:00
Augusto Pascutti b5cc9c7dd6 Merge pull request #194 from GrahamCampbell/alias
Branch alias added on composer.

Alias the `master` branch to the next milestone (tag).
2014-07-12 20:09:08 -03:00
Augusto Pascutti 95b6d315e3 Merge pull request #182 from GrahamCampbell/psr-4
PSR-4 support instead of PSR-0.
2014-07-12 20:08:08 -03:00
Graham Campbell ae056920b4 PSR-4 autoloading 2014-07-12 20:20:43 +01:00
Graham Campbell 5d902267f5 Added branch alias 2014-07-12 20:19:17 +01:00
Augusto Pascutti d03e453973 Merge pull request #192 from gabrielsch/patch-1
Cleaning up RecursiveTreeIterator class
2014-07-12 16:08:16 -03:00
Gabriel Schmitt 7392b0db2e Cleaning up the code and making it PSR1/2 compatible
More cleaning
2014-07-11 08:37:18 -03:00
Augusto Pascutti 4b9856c11f Merge pull request #193 from augustohp/189-scrutinizer
Scrutinizer code coverage and custom Makefile support
2014-07-11 03:35:17 -03:00
Augusto Pascutti 5043a43017 Removes new line from beggining of file.
Since this is considered output by PHP and could harm the output buffer
for requests that will send headers after this.

Nasty bug.
2014-07-11 03:26:08 -03:00
Augusto Pascutti b0eb1284b8 Add scrutinizer badges to README.
Also removes the unstable build badge, which is kind of redundant since
we will always respect the pattern of keeping the `master` branch stable
enough to be used.

Two Scrutinizer badges were added: code coverage and code quality.

Travis changed to report code coverage to Scrutinizer.
2014-07-11 03:26:03 -03:00
Alexandre Gaigalas ee6af90ba4 PHP 5.6 working, hhvm on testing 2014-05-16 12:54:18 -03:00
Alexandre Gaigalas 26c2ebc372 hhvm RecursiveTreeIterator support
This code is from the PHP source itself. It's required to run
Respect\Validation on hhvm, which lacks the class.

By adding it to the library folder, it's loaded automatically
by our testing routines.

Further documentation should be written, but only after a stable
build for hhvm appears on Travis.
2014-05-16 12:51:43 -03:00
Alexandre Gaigalas 0d5d6d6e2b Updated Respect\Foundation 2014-05-16 12:25:54 -03:00
Alexandre Gomes Gaigalas afe5588767 Merge pull request #180 from malukenho/patch-1
Keeping an eye on PHP 5.6
2014-05-16 12:16:27 -03:00
Jefersson Nathan a81a2164e4 Keeping an eye on PHP 5.6
PHP 5.6 still alpha, but we can check if our code will break over there. Seems we have one incompatible thing so far. :)
2014-05-16 11:05:01 -03:00
Augusto Pascutti 662cd72cbd Merge pull request #167 from henriqueoliveira/master
Phone rule accepts brazilian 9th digit. 

For more information, see https://en.wikipedia.org/wiki/Telephone_numbers_in_Brazil#Ninth_digit_for_mobile_numbers.
2014-05-08 23:26:31 -03:00
Augusto Pascutti 765db1565f Merge pull request #175 from kodok-buncit/patch-1
Exception file name not matching class name.

Renames the class name to the one expected to exist inside the file name containing it.
2014-05-08 22:46:50 -03:00
FKhairil 1b8e20ed4f fix class name not match with filename 2014-05-07 01:18:56 +07:00
Augusto Pascutti d666c5979f Merge pull request #170 from jhmilan/issue-168
GH-168: Adds "DK" to country code validation rule.
2014-05-04 05:51:49 -03:00
Jose H. Milan 36b91cef45 Fixing issue 168 (missed DK code)
Added DK to iso alpha 2 country code list. Now it is iso compliant
(https://www.iso.org/obp/ui/#search/code). Since this list has now 249
items as per iso.org
2014-05-03 22:02:35 +02:00
Henrique Oliveira c84d9a21a9 Fixed Phone Ninth digit validation for Brazilian phone numbers 2014-04-26 23:32:56 -03:00
Augusto Pascutti a7b7eae4db Merge pull request #166 from GrahamCampbell/composer
Better dependency versions constraints on `composer.json`.
2014-04-23 23:21:52 -03:00
Graham Campbell c4df7e55b9 Update composer.json 2014-04-21 19:57:25 +01:00
Nick Lombard 8223931d05 Removed <?php as it is not required anymore. 2014-04-18 12:04:38 +02:00
Nick Lombard d2ffd8e8b6 Merge pull request #162 from GypsyCodex/highlight-readme-code
Add Syntax Highlighting in README.md
2014-04-18 12:03:18 +02:00
Nick Lombard 64911e2562 Merge pull request #160 from GypsyCodex/fix-typo
Little typo from documentation fixed
2014-04-18 12:01:52 +02:00
Davide Pastore be6eaf733f Add Syntax Highlighting in README.md 2014-04-12 16:59:10 +02:00
Davide Pastore 4dfc77790c Little typo 2014-04-09 10:05:15 +02:00
Augusto Pascutti 979c06997b Merge pull request #148 from augustohp/develop
Allow internationalized domains and skip TLD check.
2014-02-19 23:20:33 -03:00
Augusto Pascutti 9acc778a8c Merge pull request #151 from leonnleite/develop
Add missing CNPJException
2014-02-19 23:01:38 -03:00
root 61f8cc25ae updating tests to testing when the missing cnpjException file 2014-02-19 22:34:01 -03:00
Mehmet Tolga Avcioglu 9ec85c3b81 Add TLDs "post" and "xxx". 2014-02-16 21:31:20 -03:00
Mehmet Tolga Avcioglu d12787cb9e Domain rules now can skip TLD checks and accepts IDNA.
Skipping TLD check allows for local domains like "machine.dev",
but the default behavior of the rule still the same: it validates
TLDs, so domains will only be valid (by default) if the TLD is a
valid one.

The signature of rule (using the builder) changes from:

    v::domain() // Still works, same behavior as before.

To:

    v::domain(false) // Skips TLD check.

Fix #33.

The "Domain" rule now validates domains on "ASCII Compatible Encoding"
[ACE][1] for internationalized domain names (ICANN, 2003).

An excerpt from Wikipedia article:

> If given a label containing at least one non-ASCII character, ToASCII
> will apply the Nameprep algorithm, which converts the label to
> lowercase and performs other normalization, and will then translate the
> result to ASCII using [Punycode][16] before prepending the four-character
> string ["xn--"][17].

[1]: http://wikipedia.org/wiki/Internationalized_domain_name#ToASCII_and_ToUnicode
[16]: http://tools.ietf.org/html/rfc3492
[17]: http://www.atm.tut.fi/list-archive/ietf-announce/msg13572.html
2014-02-16 21:29:23 -03:00
Logan H Kennedy a73f9d8595 Fix grammar error on README.md.
Fix phrase "given data is a file (that) was uploaded" on `uploaded`
validation rule.
2014-02-16 21:00:13 -03:00
Augusto Pascutti 87397f9125 Merge pull request #146 from augustohp/139-Broken_sf_rule
Fix 139: Broken `sf` (Symfony) rule
2014-02-16 18:30:09 -03:00
Augusto Pascutti d3bf4dd5d1 Merge pull request #147 from augustohp/NFeAccessKey_Rule
Adds NFe Access Key validation rule.
2014-02-16 18:25:41 -03:00
Andrey Knupp Vital 917176222c Adds NFeAccessKey validation rule.
Relevant just to Brazil, this rule validates NFe access key.
2014-02-16 16:48:51 -03:00
Augusto Pascutti c2850055bc Fix Symfony validation rule.
The API of Symfony\Component\Validator changed more than 2 years ago, so
this validation rule wasn't working for quite a long time.

This fixes the validator to work with versions >= 2.1 of
Symfony/Validation as the change on composer shows us. Although a bug
fix, this breaks compatibility with people already using this validator.

I was astonished to not find any tests for that validator also. :(
With those tests we can ensure that any change on the component API will
be noticed by us.
2014-02-16 03:22:41 -03:00
Augusto Pascutti d1a2f18a80 Add PHPUnit as a development dependency on composer.json.
We can always use Respect/Foundation, but with that component on
composer.json I think it is easier for new contributors to get things
running on their development environment.
2014-02-16 03:17:13 -03:00
Augusto Pascutti 73c3248d87 Authors on composer.json are now resumed to a link.
Instead of keeping the file up to date and confusing ourselves with
changes to the file on the version control, the author's not point to
GitHub list of contributors.
2014-02-16 03:17:13 -03:00
Augusto Pascutti 159213b731 Updates README introduction.
With the discussion on reddit about Respect/Validation being the most
awesome validation engine and also with a more accurate number of
current rules.
2014-02-16 03:17:13 -03:00
Augusto Pascutti d8c1380420 Merge pull request #143 from cloudson/patch-1
Update copyright date to 2014.
2014-02-15 16:00:12 -02:00
Claudson Oliveira 62d3c05046 Update copyright date 2014-01-29 09:47:48 -02:00
Nick Lombard a6917b5914 Moved badges to fit screen width 2014-01-29 03:34:15 +02:00
Nick Lombard 7de50ba122 Added some packagist bling
poser badges as provided by https://poser.pugx.org/
2014-01-29 03:25:59 +02:00
Augusto Pascutti d2ca4b5d56 Skip instead of fail if Zend/Validator is not present.
It makes more sense to skip a test that can't be executed than failing
indicating a problem with the test suite.
2013-12-10 00:50:32 -02:00