diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e8ad548 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +.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 +tests export-ignore diff --git a/Diff.mw.php b/Diff.mw.php deleted file mode 100644 index e9fb0bb..0000000 --- a/Diff.mw.php +++ /dev/null @@ -1,27 +0,0 @@ - - */ - -if ( !defined( 'Diff_VERSION' ) ) { - die( 'Not an entry point.' ); -} - -$GLOBALS['wgExtensionCredits']['other'][] = array( - 'path' => __FILE__, - 'name' => 'Diff', - 'version' => Diff_VERSION, - 'author' => array( - '[https://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]', - ), - 'url' => 'https://github.com/wmde/Diff', - 'description' => 'Library for diffing, patching and representing differences between complex objects', - 'license-name' => 'GPL-2.0+' -); diff --git a/Diff.php b/Diff.php index dd9e32e..997d951 100644 --- a/Diff.php +++ b/Diff.php @@ -5,13 +5,7 @@ return 1; } -define( 'Diff_VERSION', '2.1' ); - -if ( defined( 'MEDIAWIKI' ) ) { - call_user_func( function() { - require_once __DIR__ . '/Diff.mw.php'; - } ); -} +define( 'Diff_VERSION', '2.2' ); // Aliasing of classes that got renamed. // For more details, see Aliases.php. diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 66f6c6d..3163b3f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -3,6 +3,11 @@ These are the release notes for the [Diff library](README.md). Latest release: [![Latest Stable Version](https://poser.pugx.org/diff/diff/version.png)](https://packagist.org/packages/diff/diff) +## Version 2.2 (2017-08-09) + +* Removed MediaWiki extension registration +* Add .gitattributes file to exclude not needed files from git exports + ## Version 2.1 (2016-09-01) * Improved various PHPDocs