Commit graph

245 commits

Author SHA1 Message Date
WMDE-Fisch
6df9ed1ad6 update mediawiki-codesniffer to 0.11.0 and fix issues
- mostly auto fixes
- some too long lines fixed
- ignore amp space in one case  passing by reference

Change-Id: I6472f83bc3cbf4bd629d83050cc3319b19ec465c
2017-08-11 22:27:51 +02:00
James D. Forrester
7bbb4be49b Update OOjs UI to v0.22.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.22.4

Depends-On: I505e7c612b70a949d2b101172964bd7433fb8d5e
Change-Id: Ice2c56b035c5b9e6525d5b9c0d9b45eb07bb2943
2017-08-01 13:57:36 -07:00
Timo Tijhof
977334a6bd Update wikimedia/relpath from 1.0.3 -> 2.0.0
* (4f670afd92) Normalize leading path separator to forward slash
               Fixes Windows compatibility.
* (b0eeb17d31) Drop support for PHP 5.3 and PHP 5.4.

Depends-On: I98eb809ff72c4d09bfbb89a9dad9bc7094868240
Change-Id: I4111af30dfbfe2c72d52325bbd1923773e3b4202
2017-07-28 23:44:03 +00:00
Kunal Mehta
d1cf48a397 build: Update mediawiki/mediawiki-codesniffer to 0.10.1
And auto-fix all errors.

The `<exclude-pattern>` stanzas are now included in the default ruleset
and don't need to be repeated.

Change-Id: I928af549dc88ac2c6cb82058f64c7c7f3111598a
2017-07-22 18:24:09 -07:00
jenkins-bot
2cf8cdf14a Merge "Bump justinrainbow/json-schema development dependency to ~5.2" 2017-07-17 17:29:06 +00:00
Kunal Mehta
b0a22c92ad Bump justinrainbow/json-schema development dependency to ~5.2
https://github.com/justinrainbow/json-schema/compare/3.0.1...5.2.0
https://github.com/justinrainbow/json-schema/releases/tag/4.0.0
https://github.com/justinrainbow/json-schema/releases/tag/4.0.1
https://github.com/justinrainbow/json-schema/releases/tag/4.1.0
https://github.com/justinrainbow/json-schema/releases/tag/5.0.0
https://github.com/justinrainbow/json-schema/releases/tag/5.1.0
https://github.com/justinrainbow/json-schema/releases/tag/5.2.0

Change-Id: I9e3aa67bcf1f4e7b6b0dc831c64df73ce0fea8fe
2017-07-17 10:12:55 -07:00
Reedy
45bf8ad0b9 Update wikimedia/composer-merge-plugin from 1.4.0 -> 1.4.1
https://github.com/wikimedia/composer-merge-plugin/releases/tag/v1.4.1
https://github.com/wikimedia/composer-merge-plugin/compare/v1.4.0...v1.4.1

Change-Id: I805516387648ae76a2b22adac6f94c498b69e6a3
Depends-On: I50338e7f64f8eb3ff9e7177f59d93c88e08562d6
2017-07-16 16:34:09 +01:00
James D. Forrester
1d12fd51ef Update OOjs UI to v0.22.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.22.3

Depends-On: If676bfab1d2040a9d360c741a5ab4e1c81b36b87
Change-Id: I684822b564663a94e03fc8b559617974502c8e52
2017-07-11 15:15:55 -07:00
Reedy
bf05883808 Update mediawiki/mediawiki-codesniffer to 0.8.1
Change-Id: I7ac436521fcba3fa9ae8775fcf589a06ddcadd9e
2017-07-05 21:04:46 +00:00
James D. Forrester
620396a946 Update OOjs UI to v0.22.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.22.2

Depends-On: If6a7aa1d924b416fc95831e1a1b26313e6482cbf
Change-Id: I36a5329fe7d6e134ec1f7b5583017ddff64ca03a
2017-06-29 11:21:12 +01:00
James D. Forrester
7668836236 Update OOjs UI to v0.22.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.22.1

Depends-On: I4ee36222e67697a7290a1ac94788676e476ca768
Change-Id: I964a298018d837b1a05a1608a81ca0544f34a2c8
2017-05-31 12:27:05 -07:00
Gergő Tisza
6b3c42dfc0 Update psysh to 0.8.5
0.8.4 introduced sudo, which is like TestingAccessWrapper
but shorter to type. 0.8.5 fixes a bug in 0.8.4.

Vendor patch is in I375c9d681999e8ff46d8bbf2120194e7a4612011.

Change-Id: I07b174c6f25f1d289f0b233f7aec493cb51919cd
2017-05-23 15:36:54 +00:00
James D. Forrester
e7e607e807 Update OOjs UI to v0.21.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.4

Depends-On: I676c9aadbf4739437b94ec729cc4fe47ed19c886
Change-Id: Ie9f8e42c46948688495cbd80e778b484c7b03982
2017-05-16 23:34:01 +01:00
Volker E
adf31f97d4 Update OOjs UI to v0.21.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.3

Change-Id: I53696e023197ae4dd85605d6615e9faceda05398
2017-05-09 18:21:26 -07:00
Paladox
484617661d Update mediawiki/mediawiki-codesniffer to 0.8.0
Change-Id: I11c4e0e519589c2d005896bf9d3758ef017346fb
2017-05-06 12:26:16 -07:00
Volker E
580d8de9b1 Update OOjs UI to v0.21.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.2

Change-Id: Id7cae80a4f3d84ea5d50003f2409537b307c0c58
2017-04-25 18:28:38 -07:00
Gergő Tisza
525bfbc8df Switch to librarized version of TestingAccessWrapper
Replaces \TestingAccessWrapper (defined in core) with
\Wikimedia\TestingAccessWrapper (defined in the composer package
wikimedia/testing-access-wrapper).

See https://gerrit.wikimedia.org/r/#/q/topic:librarize-testing-access-wrapper
for downstream patches.

The core version of the class is kept around for a while to avoid
circular dependency problems.

Bug: T163434
Change-Id: I52cc257e593da3d6c3b01a909e554a950225aec8
2017-04-20 14:15:57 +00:00
James D. Forrester
e169d184c9 Update OOjs UI to v0.21.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.1

Depends-On: I5edcf21effee760d9951965a152481f2c603b59b
Change-Id: I5edcf21effee760d9951965a152481f2c603b5b9
2017-04-18 16:41:08 -07:00
Volker E
2d3367238e Update OOjs UI to v0.21.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.21.0

Change-Id: I94d5b7a89551e7d34d53223872ad3005f0ac4a04
2017-04-11 16:41:59 -07:00
Reedy
c71024b323 Update oyejorge/less.php v1.7.0.13 to v1.7.0.14
https://github.com/oyejorge/less.php/releases/tag/v1.7.0.14
https://github.com/oyejorge/less.php/compare/v1.7.0.13...v1.7.0.14

Change-Id: Ibf7cc4704fae5890093e6855403d93b0a2b1b97f
Depends-On: Ie641cf2954c39fd84ab26a92ad3028a49c15926d
2017-04-04 02:03:50 +01:00
Reedy
f591ff5dcf Update cssjanus/cssjanus from 1.1.3 to 1.2.0
https://github.com/cssjanus/php-cssjanus/releases/tag/v1.2.0
https://github.com/cssjanus/php-cssjanus/compare/v1.1.3...v1.2.0

Change-Id: Iad2ea202b7724edc8360ce74943e2026f57e1f06
Depends-On: Iec366b794e38710102deaba771dba5cf7b412d5a
2017-04-04 02:03:12 +01:00
Reedy
729deb3ad1 Update composer-merge-plugin from 1.3.1 to 1.4.0
https://github.com/wikimedia/composer-merge-plugin/releases/tag/v1.4.0
https://github.com/wikimedia/composer-merge-plugin/compare/v1.3.1...v1.4.0

Change-Id: I3e01a632b764f7903291d0141243e6210da9bebe
Depends-On: I0c96d9a630ab25ff4269af25a660c5bd7837a9dc
2017-04-04 02:02:21 +01:00
Reedy
54d3d66412 Update monolog from 1.18.2 to 1.22.1
https://github.com/Seldaek/monolog/releases/tag/1.19.0
https://github.com/Seldaek/monolog/releases/tag/1.20.0
https://github.com/Seldaek/monolog/releases/tag/1.21.0
https://github.com/Seldaek/monolog/releases/tag/1.22.0
https://github.com/Seldaek/monolog/releases/tag/1.22.1

https://github.com/Seldaek/monolog/compare/1.18.2...1.22.1

Bug: T158707
Change-Id: Icfb87911486aee8b712ce643f0041f91eb6cc078
Depends-On: Id5a96aaba77e52290a5afaff2c01b29c285e67af
2017-04-04 00:45:45 +00:00
Volker E
ff22b6aff8 Update OOjs UI to v0.20.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.20.2

Change-Id: Ib79bda91982de97425b6a025b18299ec8693255d
2017-03-30 14:40:56 -07:00
jenkins-bot
3c71427fad Merge "Update psy/psysh 0.8.1 -> 0.8.3" 2017-03-30 02:06:16 +00:00
Reedy
48026c4d49 Update phpunit 4.8.31 -> 4.8.35
Change-Id: I909466567b9f66dc391258ca7f7bac12ce98b23c
2017-03-30 02:11:56 +01:00
Reedy
097e69e7f5 Update psy/psysh 0.8.1 -> 0.8.3
https://github.com/bobthecow/psysh/releases/tag/v0.8.2
https://github.com/bobthecow/psysh/releases/tag/v0.8.3

https://github.com/bobthecow/psysh/compare/v0.8.1...v0.8.3

Change-Id: Ief2e0444d6e79df4433172d00d2db2b137bc2bb2
2017-03-30 02:09:15 +01:00
Volker E
5df9a27b27 Update OOjs UI to v0.20.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.20.1

Depends-On: I9b50eee459085eaa00819cbabe340ac442a332bd
Change-Id: I9b50eee459085eaa00819cbabe340ac442a332db
2017-03-29 19:44:37 +00:00
Tim Starling
b0524d1e49 Update RemexHtml to 1.0.1
For a bug fix

Depends-On: I4421afbfa52d7711d9369398891e91ae09db50c9
Change-Id: I5285c0b1c6f42891c002637cd3e4bd2f54615940
2017-03-23 02:22:03 +00:00
Volker E
f4d122ce53 Update OOjs UI to v0.20.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.20.0

Change-Id: I10ef5d85fcfae3a0b22b07a8a5ed3ae3e2d51288
2017-03-15 10:33:46 -07:00
Derk-Jan Hartman
da081e5733 composer.json: Make ext-curl a suggested package for MediaWiki core
curl is the preferred HTTP implementation as far as I'm a aware and the
only implementation used by MultiHttpClient, a requirement for
something like VisualEditor

Change-Id: I40a015339d4a3f92cfadcd92dfd70425639d0412
2017-03-09 21:31:00 +00:00
jenkins-bot
82524dc4da Merge "RemexHtml tidy driver with p-wrapping" 2017-03-08 15:24:36 +00:00
Tim Starling
9341a00ed1 RemexHtml tidy driver with p-wrapping
Pull in the RemexHtml library, which is an HTML 5 library I recently
created.

RemexCompatMunger mutates the event stream, inserting <mw:p-wrap>
elements where necessary, and occasionally taking even more invasive
action such as reparenting and removing nodes maintained in Serializer's
tree.

RemexCompatFormatter produces a MediaWiki-style serialization which is
relatively compatible with existing parser tests. It also does final
empty element handling, including translating <mw:p-wrap> to <p>

Tests are imported from both Html5Depurate and Subbu's pwrap.js.

Depends-On: I864f31d9afdffdde49bfd39f07a0fb7f4df5c5d9
Change-Id: I900155b7dd199b0ae2a3b9cdb6db5136fc4f35a8
2017-03-08 16:54:13 +11:00
Volker E
44565fa7b9 Update OOjs UI to v0.19.5
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.5

Change-Id: Ic15534df2f4006b94d1161a91e2d689f96892073
2017-03-07 15:26:57 -08:00
Paladox
c53fcb8cf1 Update oyejorge/less.php to 1.7.0.13
See changes at
https://github.com/oyejorge/less.php/blob/master/CHANGES.md

https://github.com/oyejorge/less.php/compare/v1.7.0.10...v1.7.0.13

Depends-On: Iaafb9800a223f2a1e163bb2e55b4017fcc98e682
Change-Id: I6a925c2e82812df0acf4c8b8da2541b62fea8809
2017-03-07 21:09:09 +00:00
Kunal Mehta
a57b64436c Use wikimedia/timestamp
Bug: T100924
Depends-On: I0a067367cda6885fa45631ed7c18799d653dc9bf
Change-Id: I69ba64e364df8af089c1c918cdf32f99454e693a
2017-02-28 21:15:38 -08:00
Volker E
36cd338271 Update OOjs UI to v0.19.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.4

Change-Id: Ifa1c6cb355a0c4f5073c93e37939cfc2f6653c81
2017-02-28 15:53:58 -08:00
jenkins-bot
3635092917 Merge "Drop in replacement of eval.php based on psysh" 2017-02-24 01:20:16 +00:00
Volker E
d969a58e74 Update OOjs UI to v0.19.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.2

Depends-On: If351020ee7f29d038eeea8258e0bd607c4134060
Change-Id: I2dbc0fb49cb500f8a378b5f9c8175fd1dabebf17
2017-02-16 00:59:40 +00:00
Antoine Musso
7671b2b71e Drop in replacement of eval.php based on psysh
eval.php is meant to eval() commands in MediaWiki global scope. We had
at least a couple attempts to move it to a regular Maintenance script.

As noted on the revert commit b475e930 r54839, using a Maintenance
script drop us in the callee function scope instead of the global scope
which is a hard requirement.

http://psysh.org/ is a Read-Eval-Print-Loop with color highlight, modern
code and more.

Add maintenance/shell.php script as MediaWikiShell class.

Passing command from stdin is supported.
Execution is forked for graceful handling of PHP fatal errors.
Colors!!
Support the undocumented '-d' arguments from eval.php:
  0 set $wgDebugLogFile to stdout. Eval.php used /dev/stdout, make it
    php://stdout in the new script.
  1 additionally set DBO_DEBUG on all the database load balancer servers

PHP globals have to be whitelisted which is not supported out of the box
by Psy. Upon request, the author of PsySh, Justin Hileman, kindly
provided a pass to inject globals (with the exceptions of super
globals). He agreed for code reuse:
    https://github.com/bobthecow/psysh/issues/353
The code was added to maintenance/CodeCleanerGlobalsPass.inc

Note that this is not a perfect simulation of global scope (but pretty
close): variables declared in the shell which did not exist before
won't be global unless the 'global' keword is used.

Example usage:

$ php maintenance/shell.php

>>> $wgFullyInitialised
=> true

>>> $hashar = User::newFromName( 'hashar' )
=> User {#274
     +mId: null,
     +mName: "Hashar",
     ...

>>> ls --long --all $h
<descriptive output of all object properties/methods>

Bug: T117661
Signed-off-by: Justin Hileman <justin@justinhileman.info>
Signed-off-by: Gergő Tisza <tgr.huwiki@gmail.com>
Change-Id: I3d6d42e138d3cc4a0aaafdd7f5f97cb17d8b8cb3
2017-02-13 08:34:38 +00:00
jenkins-bot
4b77a6463a Merge "Add dev dependency on HTML matchers" 2017-02-10 11:42:07 +00:00
Reedy
e3b36b255b Update psr/log to v1.0.2
https://github.com/php-fig/log/compare/1.0.0...1.0.2
https://github.com/php-fig/log/releases/tag/1.0.1
https://github.com/php-fig/log/releases/tag/1.0.2

Change-Id: I63bc43ec352d4fe756596cfcb46320e5e02edf7a
Depends-On: I7d4e1d7f61c56fb8951744e0a149b4a3df480e5b
2017-02-09 16:15:13 +00:00
Aleksey Bekh-Ivanov (WMDE)
57e85ee45f Add dev dependency on HTML matchers
Change-Id: Ic547cbf737221d4ed677e2c23adbbf001047b3c4
2017-02-09 15:11:19 +01:00
Reedy
c585af7e4e Updated cssjanus to v1.1.3
https://github.com/cssjanus/php-cssjanus/releases/tag/v1.1.3
https://github.com/cssjanus/php-cssjanus/compare/v1.1.2...v1.1.3

Depends-On: I59d095b8fbeba1d60de3834bee68c4a524bf4f81
Change-Id: I4b3704e8552d4ea9a05ca67935ce02719d04995e
2017-02-08 02:37:37 +00:00
Volker E
0993a9f442 Update OOjs UI to v0.19.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.1

Change-Id: I6ef09c5285f89feee040a894785c02dab728e6ad
2017-02-07 16:50:58 -08:00
Volker E
dd46ccf3fa Update OOjs UI to v0.19.0
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.0

Change-Id: I56c43ff1b49631d0e4c477a72d3e7cdd9d46c4c9
2017-02-01 15:30:46 -08:00
addshore
75cca32625 PHAN: lock phpstorm-stubs at a specific hash in composer.json
This will stop updates to the upstream package from
breaking our CI with no warning.

Change-Id: I1cafe663c25d46134025f7c6987e48676615b7b0
2017-01-30 17:09:41 +00:00
addshore
9252dff64b PHAN: load stubs from phpstorm-stubs library
Also add a single small stub for the Memcached class
constructor that is slightly wrong in the phpstorm
stubs library.

jetbrains/phpstorm-stubs has been added to packagist via:
https://github.com/JetBrains/phpstorm-stubs/pull/149

Change-Id: I1bca7390d1dc24c38d65c1c8968f356326ff4636
2017-01-30 16:25:47 +00:00
James D. Forrester
58d61a7248 Update OOjs UI to v0.18.4
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.4

Change-Id: I09eacfe7597b26e33ef50e606afcee0cefca1d1c
2017-01-17 16:12:07 -08:00
James D. Forrester
6cf6b03ba7 Update OOjs UI to v0.18.3
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.3

Change-Id: I8f26c0024d44dd2bac2c19c869254a7154c4103e
2017-01-03 16:27:21 -08:00