Ftb gamepedia3/7/2023 Most query lists that took a limit parameter now use the attribute :query_limit_default instead of each having a set default of 500.get_recent_revisions, get_prefix_search, and get_full_watchlist now properly set their limits.Improvements to the way we handle query limits (#28, #31, and #37):.See the documentation for initialize for more details. MediaWiki::Butt.new now takes two parameters, url, and an options hash.Important: MediaWiki::Butt now depends on Ruby 2.3.Support for the continuation API (Issue #9 and PR #47).Fix query methods throwing NoMethodErrors.New method Butt#logged_in? to check if the current instance is logged in.It now queries with an assertion rather than checking the user's groups. Butt#user_bot? no longer has a parameter.New NotLoggedInError and NotBotError for the according assertions.Note: Assertions will only happen if post's autoparse parameter is true.New override_assertion parameter in post to prevent assertion errors being thrown.New :assertion option in initialize opts.Add support for the Assert API (PR #51).Documentation is now stored in master branch. ![]() Modify the edit, create_page, and move methods to take options hashes instead of a bunch of unnamed arguments.New siteinfo methods get_server, get_base_article_path, and get_article_path (#20).EditError is raised for any errors that occurred during the upload.UploadInvalidFileExtError is raised when the file extension is not valid.true/ false return value denote success/failure.Change return values of #upload to be more useful (#54).Strip leading and trailing whitespace from username in get_userlists, affecting the following methods (#55):.Switch around type and limit params in get_category_members (#57).Logical reversal of the redirect param for move (#58).Fix NoMethodError in get_other_langs_of_page when called for pages with only 1 language (#33).Fix NoMethodError in get_all_links_in_page when called for pages with no links.Fix NoMethodError in get_templates_in_page when called for pages with no templates (#61).:use_continuation is now defaulted to true.:query_limit_default is now defaulted to 'max'.Initialization parameter defaults are more likely what is to be used now (#62, #66).The returned value is now always a parsed hash, never an HTTPMessage directly.Remove unnecessary autoparse, header, and override_assertion parameters from post (#68).Valid types are verified in the MediaWiki::Query::Meta::TOKEN_TYPES array. This only takes one parameter, as opposed to the old method's two parameters, which is the type of token to receive. MediaWiki::Query::Properties#get_token has been replaced by MediaWiki::Query::Meta#get_token.create_account_email no longer takes a fifth token parameter.create_account no longer takes a fifth token parameter.login no longer takes a third token parameter.Patrol edits with the patrol method, which if errors will raise a PatrolError (#76). Rights log hashes no longer have title key because they were not useful.Returned log hash in move logs no longer has title key, it is now called old_title.Fix missing log hash methods causing NoMethodErrors (#35):.loghash_rightsrights: new_rights, old_rights.loghash_rightsautopromote: new_rights, old_rights.loghash_protect: details ( type, expiry, level) is not present in older protection logs getting protection logs will no longer error on older entries without details.loghash_patrol: current_revision, and previous_revision remove automatic.loghash_move: new_title, and suppressredirect.loghash_block: flags, duration, and expiry.Fix broken log hash keys causing NoMethodErrors (#35):.get_rightsrights -> loghash_rightsrights.get_rightsautopromote -> loghash_rightsautopromote.get_protectmoveprot -> loghash_protectmoveprot.get_importinterwiki -> loghash_importinterwiki.Is more accurate as a descriptor, because no new data is being "gotten" from these methods, they only format data.Fixes overlapping methods, such as get_general from siteinfo and get_general from log.Change log hash formatting methods from get_ to loghash_ to fix NoMethodErrors in log queries (#35).Add support for searching text (NCC-Gnisha) (#69, #77).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |