diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3f150e3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +.editorconfig export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.scrutinizer.yml export-ignore +.travis.yml export-ignore +composer.json export-ignore +phpcs.xml export-ignore +phpunit.xml.dist export-ignore diff --git a/.travis.yml b/.travis.yml index 3484c76..1296abe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,9 @@ language: php php: - - 5.3 - - 5.4 - - 5.5 - 5.6 - 7 - - hhvm + - hhvm-3.18 before_script: - travis_retry composer install --prefer-source diff --git a/Common.php b/Common.php index 3d0d69e..5c84d97 100644 --- a/Common.php +++ b/Common.php @@ -15,18 +15,4 @@ return 1; } -define( 'DATAVALUES_COMMON_VERSION', '0.3.1' ); - -if ( defined( 'MEDIAWIKI' ) ) { - $GLOBALS['wgExtensionCredits']['datavalues'][] = array( - 'path' => __DIR__, - 'name' => 'DataValues Common', - 'version' => DATAVALUES_COMMON_VERSION, - 'author' => array( - '[https://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]' - ), - 'url' => 'https://github.com/DataValues/Common', - 'description' => 'Contains common implementations of the interfaces defined by DataValuesInterfaces', - 'license-name' => 'GPL-2.0+' - ); -} +define( 'DATAVALUES_COMMON_VERSION', '0.4.3' ); diff --git a/README.md b/README.md index a857363..e025348 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,22 @@ DataValues Common has been written by the Wikidata team, as [Wikimedia Germany] ## Release notes +### 0.4.3 (2019-06-28) + +* Fixed typo in error message in `DispatchingValueParser` + +### 0.4.2 (2018-08-16) + +* The component can now be installed together with DataValues 2.x + +### 0.4.1 (2018-08-09) + +* Fixed version number not updated before. + +### 0.4.0 (2017-08-09) + +* Removed MediaWiki integration + ### 0.3.1 (2015-08-14) * The component can now be installed together with DataValues Interfaces 0.1.5 diff --git a/composer.json b/composer.json index 45f01ef..e49bdc9 100644 --- a/composer.json +++ b/composer.json @@ -24,12 +24,15 @@ }, "require": { "php": ">=5.3.0", - "data-values/data-values": "~1.0|~0.1", + "data-values/data-values": "~2.0|~1.0|~0.1", "data-values/interfaces": "~0.2.0|^0.1.5" }, + "require-dev": { + "phpunit/phpunit": "~5.7" + }, "extra": { "branch-alias": { - "dev-master": "0.3.x-dev" + "dev-master": "0.4.x-dev" } }, "autoload": { diff --git a/src/ValueParsers/DispatchingValueParser.php b/src/ValueParsers/DispatchingValueParser.php index cdd92de..5146a3e 100644 --- a/src/ValueParsers/DispatchingValueParser.php +++ b/src/ValueParsers/DispatchingValueParser.php @@ -62,7 +62,7 @@ public function parse( $value ) { } throw new ParseException( - 'The value is not recognitzed by the configured parsers', + 'The value is not recognized by the configured parsers', $value, $this->format );