Skip to content

Commit

Permalink
Support distribution via Composer and Packagist
Browse files Browse the repository at this point in the history
This way the extension can be installed from packagist.org

Bug: T188188
Change-Id: I90a77574947a0b0c845d7c7b5e69c16a79b74c57
  • Loading branch information
rvogel authored and enst80 committed Feb 27, 2018
1 parent 6e67c9f commit c6380e9
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitattributes export-ignore
.gitignore export-ignore
.gitreview export-ignore
composer.json export-ignore
Gruntfile.js export-ignore
package.json export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/node_modules
/vendor
/composer.lock
/composer.phar
.svn
*~
*.kate-swp
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ Requirements
Installation
------------

Copy this extension directory `Auth_remoteuser/` into your mediawiki
extension folder `extensions/`. Then add the following line to your
Either copy this extension directory `Auth_remoteuser/` into your
mediawiki extension folder `extensions/` or, when installing with
Composer, add an appropriate required package link to your
`composer.local.json` file:

"require": { "mediawiki/auth-remoteuser": "~2" }

Then, enable the extension in MediaWiki by adding the following to your
global configuration file `LocalSettings.php`:

wfLoadExtension( 'Auth_remoteuser' );
Expand Down
57 changes: 57 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
{
"name": "mediawiki/auth-remoteuser",
"type": "mediawiki-extension",
"extra": {
"installer-name": "Auth_remoteuser"
},
"description": "Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)",
"homepage": "https://www.mediawiki.org/wiki/Extension:Auth_remoteuser",
"license": "GPL-2.0-or-later",
"keywords": [
"extension",
"wiki",
"mediawiki",
"authentication"
],
"support": {
"docs": "https://www.mediawiki.org/wiki/Extension:Auth_remoteuser",
"wiki": "https://www.mediawiki.org/wiki/Extension:Auth_remoteuser",
"source": "https://github.com/wikimedia/mediawiki-extensions-Auth_remoteuser",
"forum": "https://www.mediawiki.org/wiki/Extension_talk:Auth_remoteuser",
"issues": "https://phabricator.wikimedia.org/tag/mediawiki-extensions-auth_remoteuser/"
},
"authors": [
{
"name": "Otheus Shelling",
"homepage": "https://en.wikipedia.org/wiki/User:Otheus"
},
{
"name": "Rusty Burchfield",
"homepage": "http://www.csh.rit.edu/~gicode",
"role": "Developer"
},
{
"name": "James Kinsman",
"homepage": "https://en.wikipedia.org/wiki/User:VibroAxe"
},
{
"name": "Daniel Thomas"
},
{
"name": "Ian Ward Comfort"
},
{
"name": "Mark A. Hershberger",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Stefan Engelhardt",
"email": "[email protected]",
"homepage": "https://wikitech.wikimedia.org/wiki/User:Enst80",
"role": "Developer"
}
],
"require": {
"php": ">=5.4.0",
"composer/installers": "~1.0.1"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
Expand Down

0 comments on commit c6380e9

Please sign in to comment.