Skip to content

Commit

Permalink
Version 3.0
Browse files Browse the repository at this point in the history
* Require PHP 7.2.
* Use `kahlan` for testing.
* Add `validate` and `check` functions.
* Add `assert\datetime` and `assert\iterable`.
* Add `filter\template` and `util\repr`.
* Re-arrange into `library/` directory.
* Re-name exception `InvalidList` into `MultipleInvalid`.
* Extract `Schema::compile` into `compile` function.
* Fix `filter\vars` now returns in order.
  • Loading branch information
jm42 committed Jan 21, 2019
2 parents c26a316 + 33a5c32 commit a2ffc3a
Show file tree
Hide file tree
Showing 20 changed files with 3,496 additions and 2,535 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
coverage_clover: build/logs/clover.xml
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
language: php

php:
- 5.6
- 7.0
- 7.2

install:
- composer self-update
- composer install
before_script:
- composer require --no-interaction php-coveralls/php-coveralls
- composer install --no-interaction --prefer-dist
- mkdir -p build/logs/

script:
- php vendor/bin/kahlan --cc=true --coverage=4 --clover=build/logs/clover.xml

after_success:
- php vendor/bin/php-coveralls -v
58 changes: 34 additions & 24 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,67 @@
### Last Version

* Add assert\datetime
### 3.0.0 (2019-01-21)

* Require PHP 7.2.
* Use `kahlan` for testing.
* Add `validate` and `check` functions.
* Add `assert\datetime` and `assert\iterable`.
* Add `filter\template` and `util\repr`.
* Re-arrange into `library/` directory.
* Re-name exception `InvalidList` into `MultipleInvalid`.
* Extract `Schema::compile` into `compile` function.
* Fix `filter\vars` now returns in order.

### 2.1.0 (2017-04-03)

* Better error messages in assert\file
* Add filter\datetime
* Better error messages in `assert\file`.
* Add `filter\datetime`.

### 2.0.0 (2016-12-03)

* Remove assert\regexp
* Now Invalid accepts template and params
* PHP >=5.6 required
* Remove `assert\regexp`.
* Now `Invalid` accepts template and parameters.
* PHP >=5.6 required.

### 1.3.0 (2016-10-08)

* Add InvalidList::getMessages
* Add assert\file as an alias of dict
* Add `InvalidList::getMessages`.
* Add `assert\file` as an alias of `assert\dict`.

### 1.2.0 (2016-10-26)

* Mark assert\regexp as deprecated
* Add filter\intl\alpha y filter\intl\alnum
* Add assert\dictkeys
* Mark `assert\regexp` as deprecated.
* Add `filter\intl\alpha` y `filter\intl\alnum`.
* Add `assert\dictkeys`.

### 1.1.1 (2016-09-19)

* Add assert\match as wrapper around preg_match
* Add filter\intl namespace
* Add filter\intl\chars
* Add `assert\match` as wrapper around `preg_match`.
* Add `filter\intl` namespace.
* Add `filter\intl\chars`.

### 1.1.0 (2016-09-13)

* Fix bug with calling assert\object with a non object and ask to be cloned
* Fix $path in schemas called by assert\all
* Parameter extra for assert\dict accepts a schema dict
* Fix bug with calling `assert\object` with a non object and ask to be cloned.
* Fix `$path` in schemas called by `assert\all`.
* Parameter extra for `assert\dict` accepts a schema dict.

### 1.0.1 (2014-10-19)

* Move type validators outside closures.

### 1.0.0 (2014-09-29)

* New assert\iif for simple conditionals
* Finish a basic assert\object
* New `assert\iif` for simple conditionals.
* Finish a basic `assert\object`.

### 1.0.0-RC2 (2014-09-01)

* Add base to filter\intval
* Make filter\boolval php <5.5 compatible
* Make Invalid compatible with \Exception
* New filter\sanitize and filter\vars
* Parameter extra for assert\dict accept an array
* Add base to `filter\intval`.
* Make `filter\boolval` php <5.5 compatible.
* Make `Invalid` compatible with `Exception`.
* New `filter\sanitize` and `filter\vars`.
* Parameter extra for `assert\dict` accept an array.

### 1.0.0-RC1 (2014-08-07)

Expand Down
Loading

0 comments on commit a2ffc3a

Please sign in to comment.