-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
124 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This Dockerfile can be used to create a Docker image/container | ||
# that runs the unit tests on the PubmedParser extension. | ||
FROM mediawiki:1.32 | ||
MAINTAINER Daniel Kraus (https://www.bovender.de) | ||
RUN apt update -yqq && \ | ||
apt install -yqq \ | ||
php7.0-sqlite \ | ||
sqlite3 \ | ||
unzip \ | ||
zip | ||
RUN curl https://raw.githubusercontent.com/composer/getcomposer.org/cb19f2aa3aeaa2006c0cd69a7ef011eb31463067/web/installer -s | php -- --quiet | ||
RUN php composer.phar install | ||
|
||
COPY . /var/www/html/extensions/PubmedParser/ | ||
RUN mkdir /data && chown www-data /data | ||
|
||
WORKDIR /var/www/html/maintenance | ||
RUN php install.php --pass admin --dbtype sqlite --extensions PubmedParser Tests admin | ||
|
||
WORKDIR /var/www/html/tests/phpunit | ||
CMD ["php", "phpunit.php", "--group", "bovender"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.PHONY: test | ||
|
||
test: | ||
docker run -it --rm -v ${PWD}:/var/www/html/extensions/PubmedParser bovender/pubmedparser | ||
|
||
build-test-container: | ||
docker build -t bovender/pubmedparser . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,77 @@ | ||
Version 4.0.2 (2017-03-19) | ||
------------------------------------------------------------------------ | ||
# Changelog | ||
|
||
- Fix: Prevent log flooding with warnings in certain situations. | ||
All notable changes to this project will be documented in this file. | ||
|
||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [4.0.3][] - 2019-04-28 | ||
|
||
Version 4.0.1 (2016-11-09) | ||
------------------------------------------------------------------------ | ||
### Fixed | ||
|
||
- IMPROVEMENT: Use only https to access the Pubmed API. | ||
- Articles with single authors would not be formatted correctly. | ||
|
||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
## [4.0.2][] - 2017-03-19 | ||
|
||
### Fixed | ||
|
||
Version 4.0.0 (2016-11-05) | ||
------------------------------------------------------------------------ | ||
- Prevent log flooding with warnings in certain situations. | ||
|
||
- FIX: Prevent database errors on updating a citation with 'reload'. | ||
- FIX: The caching table in the database is now created in a database transaction. | ||
- FIX: The caching table in the database now uses the custom table prefix (you may want to manually rename an existing Pubmed table to include the prefix before running the new version of the extension.) | ||
- FIX: Undefined variable errors. | ||
- NEW: Compatibility with MediaWiki 1.25 and newer. The extension is not compatible with MediaWiki 1.24 and older. | ||
## [4.0.1][] - 2016-11-09 | ||
|
||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
### Changed | ||
|
||
- Use only https to access the Pubmed API. | ||
|
||
Version 3.2.1 (2016-06-04) | ||
------------------------------------------------------------------------ | ||
## [4.0.0][] - 2016-11-05 | ||
|
||
- FIX: Do not crash on database access (due to call to ignoreErrors function that has been turned into a protected function in newer MediaWiki versions). | ||
### Changed | ||
|
||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
- Compatibility with MediaWiki 1.25 and newer. The extension is not compatible with MediaWiki 1.24 and older. | ||
|
||
### Fixed | ||
|
||
Version 3.2.0 (2016-06-04) | ||
------------------------------------------------------------------------ | ||
- Prevent database errors on updating a citation with 'reload'. | ||
- The caching table in the database is now created in a database transaction. | ||
- The caching table in the database now uses the custom table prefix (you may want to manually rename an existing Pubmed table to include the prefix before running the new version of the extension.) | ||
- Undefined variable errors. | ||
|
||
- FIX: Prevent "instance of MySqlUpdater" error. | ||
- NEW: Ability to give PMC ID as an alternative to PMID ('PMC1234567'). | ||
- NEW: Ability to output PubmedCentral ID. | ||
## [3.2.1][] - 2016-06-04 | ||
|
||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
### Fixed | ||
|
||
- Do not crash on database access (due to call to ignoreErrors function that has been turned into a protected function in newer MediaWiki versions). | ||
|
||
## [3.2.0][] - 2016-06-04 | ||
|
||
Version 3.1.0 (2014-10-15) | ||
------------------------------------------------------------------------ | ||
### Added | ||
|
||
* Change: The extension requires PHP 5.3.0 or later. | ||
* Change: Use persistent database connections to increase performance. | ||
* Changed: The name of the 'reload' option can be customized in the system messages. | ||
* New: The template name to use for the citation can now be given as a parameter (with a leading '#'). | ||
- Ability to give PMC ID as an alternative to PMID ('PMC1234567'). | ||
- Ability to output PubmedCentral ID. | ||
|
||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
### Fixed | ||
|
||
- Prevent "instance of MySqlUpdater" error. | ||
|
||
## [3.1.0][] - 2014-10-15 | ||
|
||
Version 3.0.0 (2014-09-10) | ||
------------------------------------------------------------------------ | ||
### Added | ||
|
||
- The template name to use for the citation can now be given as a parameter (with a leading '#'). | ||
|
||
### Changed | ||
|
||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
- The extension requires PHP 5.3.0 or later. | ||
- Use persistent database connections to increase performance. | ||
- The name of the 'reload' option can be customized in the system messages. | ||
|
||
## [3.0.0][] - 2014-09-10 | ||
|
||
[4.0.3]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.3 | ||
[4.0.2]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.2 | ||
[4.0.1]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.1 | ||
[4.0.0]: https://github.com/bovender/PubmedParser/releases/tag/v4.0.0 | ||
[3.2.1]: https://github.com/bovender/PubmedParser/releases/tag/v3.2.1 | ||
[3.2.0]: https://github.com/bovender/PubmedParser/releases/tag/v3.2.0 | ||
[3.1.0]: https://github.com/bovender/PubmedParser/releases/tag/v3.1.0 | ||
[3.0.0]: https://github.com/bovender/PubmedParser/releases/tag/v3.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
tests/PubmedParser.Article.Test.php → tests/phpunit/PubmedParser.Article.Test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.