Branch: refs/heads/dev
Home:
https://github.com/MediaWiki-Bot/MediaWiki-Bot
Commit: fc1442a9503fea766d59832cf9c82574248ca7a7
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/fc1442a9503fea766d59832cf9c82574248ca7a7
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-01 (Fri, 01 Aug 2014)
Changed paths:
M Changes
M lib/MediaWiki/Bot.pm
M t/00-init.t
M t/01-api_error.t
M t/02-login.t
M t/03-get_text.t
M t/04-edit.t
M t/05-revert.t
M t/06-get_history.t
M t/07-unicode.t
M t/08-get_last.t
M t/09-update_rc.t
M t/10-what_links_here.t
M t/11-get_pages_in_category.t
M t/12-linksearch.t
M t/13-get_namespace_names.t
M t/14-get_pages_in_namespace.t
M t/15-count_contributions.t
M t/16-last_active.t
M t/17-was_blocked.t
M t/18-is_blocked.t
M t/19-get_pages.t
M t/20-assertion.t
M t/21-get_allusers.t
M t/22-get_id.t
M t/23-list_transclusions.t
M t/24-purge_page.t
M t/25-sitematrix.t
M t/26-diff.t
M t/27-prefixindex.t
M t/28-search.t
M t/29-get_log.t
M t/30-was_g_blocked.t
M t/31-is_g_blocked.t
M t/32-was_locked.t
M t/33-is_locked.t
M t/34-secure.t
M t/35-get_protection.t
M t/36-email.t
M t/37-move.t
M t/38-test_image_exists.t
M t/39-image_usage.t
M t/40-upload.t
M t/41-get_users.t
M t/42-expandtemplates.t
M t/43-recentchanges.t
M t/44-patrol.t
M t/45-contributions.t
M t/46-usergroups.t
M t/47-global_image_usage.t
M t/48-get_image.t
M t/49-get_all_categories.t
Log Message:
-----------
Fix up user agent strings
- Add a link to the default UA per request: RT #94885
- Warn when the UA isn't sufficiently customized, and encourage
devs to provide an 'operator'
- Add a link to the test suite's UAs
Fixes gh-61, RT #94885, gh-66
Commit: d204b14b5aae0c0fb4999ea716b0847554c1fcd4
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/d204b14b5aae0c0fb4999ea716b0847554c1fcd4
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-01 (Fri, 01 Aug 2014)
Changed paths:
M lib/MediaWiki/Bot.pm
M t/13-get_namespace_names.t
Log Message:
-----------
Refactor extraction of namespace aliases
This was always pretty hairy, because the response is split between
the "namespacealiases" and "namespaces" sections, and you have to
merge them.
This replaces the loop with a doubple-map that may be clearer,
because this shows the two steps separately. n is small enough (~4
for most wikis) that we don't care about efficiency. Comments have
also been added.
Addresses gh-64 in part.
Commit: 3ebf2dd81ae1505054d8c58dfffee2eda3f2b462
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/3ebf2dd81ae1505054d8c58dfffee2eda3f2b462
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-19 (Tue, 19 Aug 2014)
Changed paths:
M Changes
M lib/MediaWiki/Bot.pm
A lib/MediaWiki/Bot/Constants.pm
M t/05-revert.t
M t/07-unicode.t
M t/17-was_blocked.t
M t/18-is_blocked.t
M t/20-assertion.t
M t/31-is_g_blocked.t
M t/32-was_locked.t
M t/34-secure.t
M t/38-test_image_exists.t
M t/40-upload.t
Log Message:
-----------
Use constants instead of magic numbers
Create a library of importable constants, and use them in place
of hardcoded magic numbers, which were being used for boolean
return values (changing this might be overkill), namespace
numbers, and certain status information like the nonexistence
of a wiki page and the (non-boolean) file status.
Fixes gh-59.
Commit: 0bf12045d75204a4e5791f37e50d32f62e7d5ab3
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/0bf12045d75204a4e5791f37e50d32f62e7d5ab3
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-19 (Tue, 19 Aug 2014)
Changed paths:
M lib/MediaWiki/Bot.pm
Log Message:
-----------
Convert loops to maps so they're more comprehensible
Commit: 30860b1a3efc97c197914a380377f852e10366df
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/30860b1a3efc97c197914a380377f852e10366df
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-19 (Tue, 19 Aug 2014)
Changed paths:
M lib/MediaWiki/Bot.pm
Log Message:
-----------
Escape URLs containing regex metacharacters
Commit: a4f7ff45c28e2263a375e13c2d60d6376f38434c
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/a4f7ff45c28e2263a375e13c2d60d6376f38434c
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-19 (Tue, 19 Aug 2014)
Changed paths:
M lib/MediaWiki/Bot.pm
Log Message:
-----------
Catch when a CAPTCHA has been encountered
This doesn't give you any way to deal with the CAPTCHA yet, but
it can let you know what happened. Since CAPTCHAs aren't a "real"
error condition, they're presented differently, and we didn't
understand that, leaving no error information in the Bot object's
error attribute. Now, we add a specific error constant and provide
the data needed to proceed in the details. The next step is to
augment the edit method with a way to accept both the ID and the
solution, and retry properly. It might also be interesting to try
an automatic interactive retry option.
Commit: 5d1ecaac417b7ae4197bb2740760eb9e4df64d7c
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/5d1ecaac417b7ae4197bb2740760eb9e4df64d7c
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-19 (Tue, 19 Aug 2014)
Changed paths:
A .proverc
Log Message:
-----------
Set some common options for prove
In particular, specify tests which shouldn't run in parallel. The
tests identified as "seq" will always be run sequentially, while
all others are eligible for parallel execution. Specify -jN to
run N test jobs.
Commit: 4aa97ca1aa7a2bf5cc12408d03daae2c7315334f
https://github.com/MediaWiki-Bot/MediaWiki-Bot/commit/4aa97ca1aa7a2bf5cc12408d03daae2c7315334f
Author: Mike Doherty <
mi...@mikedoherty.ca>
Date: 2014-08-19 (Tue, 19 Aug 2014)
Changed paths:
M t/04-edit.t
Log Message:
-----------
Also skip editing tests when a CAPTCHA is encountered
Compare:
https://github.com/MediaWiki-Bot/MediaWiki-Bot/compare/4642ad3d3008...4aa97ca1aa7a