MediaWiki-Bot
view release on metacpan or search on metacpan
1.5.1 2008-12-21
- Fixed the bug where logins wouldn't transfer from API to wiki again, now part of test 01.
- Added tests for AssertEdit, maxlag, get_allusers, get_pages
- Added sub set_highlimits for api queries, since PWP can't tell if you're a bot
- Sub test_image_exists can now tell if an image page exists but has no image. Also uses API.
- Added defaults for protection, now uses API. In-house tests exist for protection and deletion.
- Some variable normalizing in tests.
- Added testing environment variables: PWPMakeTestSetWikiHost, PWPMakeTestSetWikiDir
- Reenabled tests for get_namespace_names, get_pages_in_namespace
- Some fixes for potential race conditions on database replication for tests,
should not be necessary in real production code
1.5.0 2008-12-08
- Added a sub get_pages(), which accepts a list of pages and gets each page's
text in one go and returns a hash. Much faster than get_text() for more than one page.
- Switched sub protect over to API, cascading works now
- Add a few more tests
1.4.2 2008-12-07
- Apparently I accidentally removed get_allusers? Fixed that.
- Some CPAN testers have been reporting a failure to make the test edit in
t/02_edit.t so I added a call to Data::Dumper.
1.4.1 2008-11-27
- Remove my tsting code from sub login, now using an updated version of
MediaWiki::API to handle cookies properly. MediaWiki::API 0.20 or higher now required.
1.4.0 2008-11-18
- Fix a bug in get_allusers() by bosborne
- Fix a bug which made some methods, such as delete_old_image, attempt to
execute logged-out because the method used to transfer cookies from the API
useragent, which does the logging in, to the MediaWiki::Bot useragent, which
does the other stuff, was not functional. This bug only affected non-api
methods and has been fixed through a nasty hack, which I hope can be made
cleaner in the coming weeks.
1.3.8 2008-11-16
- New method: get_allusers($limit) by bosborne
- That bug I fixed in 1.3.7? I fixed it again. For real this time.
- Using 'retries' instead of 'max retries' config variable for MediaWiki::API HTTP errors
1.3.7 2008-11-11
- Minor bugfix in one of the tests.
1.3.6 2008-10-27
- Added maxlag compatibility. (Thanks to the developers of MediaWiki::API for
their implementation) The settings are as follows:
- Maxlag parameter: Dafault 5 seconds, can be configured when creating the object
- Delay: 1 second
- Retries: Until success
- Make test 98 fail gracefully on platforms without the test suite
- Fix some really weird spacing in the Makefile.PL
- The other maxlag options, along with lots of other defaults, will probably
be modifiable in 1.4 with a sort of config sub. This will allow the custom
configuration of options for WWW::Mechanize and MediaWiki::API, so you don't
need to go sourcediving or remember the order for the parameters to the constructor.
- Since wiki.xyrael.net is down, tests 1, 8, 10, 11
1.3.5 2008-10-04
- Allowing cascade protection now. This may or may not work, since there
are some changes being made to the protection API.
- Anonymous editing should work. If you still can not use this framework
to edit, I need to be contacted. To this end, I've enabled an editing test,
hopefully cpan-testers sends me good results :)
- Fix a stupid mistake I made regarding the names of certain parameters to get_history
1.3.4 2008-09-11
- Some triage after the first CPAN test results came in:
- Appearantly, get_pages_in_category was running test file 08, test 2, very
slowly because I was loading a 1000+ page category in sets of 10 pages at a time.
This has been remedied, the limit is now 500.
- Cannot reproduce a bug in get_namespace_names and another in count_contributions -
so instead, if we get weird results, we run the sub again.
- There is a bug in get_history which was causing weird errors on some test machines.
I've switched it to use MediaWiki::API.
1.3.3 2008-09-10
- get_pages_in_category now uses the API
- Test 8 has been modified to test nested categories
- Test 7 is now faster, but still effective
- Bug checking added on edit for anon edit bug
- Bots now use the bot flag when editing, as was done before switching to API editing
- Regarding anonymous editing: MediaWiki bug 15420 has been marked as FIXED
by Roan Kattouw. Waiting for that to be scapped so I can test it and enable the editing tests.
- Before I updated get_pages_in_category, it seemed to have some encoding errors:
returning escape sequences where it shouldn't. I'll be looking into its status on that front.
1.3.2 2008-08-30
- Now logging in via API if password is supplied
- Fixed an encoding issue in page saving
- Anonymous editing is currently broken. This is an upstream issue which I am working to resolve
1.3.1 2008-08-28
- Maintenance: update manifest, readme
- More MediaWiki::API: blocking, deleting, get_text
- Add localization for MediaWiki::API. This is important...
- Update tests to test for loading of sections of pages
- AssertEdit assertaions can now be passed as 'bot' OR as '&assert=bot'
- MediaWiki::API didn't localise with set_wiki()
- Unicode issues with MediaWiki::API editing fixed
- Fix one warning in edit() - undefined value in string eq near line 252
1.3 2008-08-27
- Convert over to use MediaWiki::API
1.01 2007
- Standardized all functions to return 1 and set $object->{errstr} in the event of an error
- get_history and other _get_api-based functions will now properly escape utf8 characters in the query
- Fixed memory leak issues with WWW::Mechanize
0.1 2007-08-25
- original version
( run in 0.632 second using v1.01-cache-2.11-cpan-39bf76dae61 )