Releases: FTB-Gamepedia/MediaWiki-Butt-Ruby
Releases · FTB-Gamepedia/MediaWiki-Butt-Ruby
0.11.1
0.11.0
- Fix get_mostcategories_page typo (Mostcactegories) (#24).
- Significant rewrite of the README, arguably the most important part of this version.
- New Utils module for replicating some of MediaWiki's utilities. Right now this only includes the
#encode_url
method, a Ruby version of the JavaScript methodmw.util.rawurlencode
(#21). - Recent Changes responses are no longer printed on every request (#19).
0.10.2
0.10.1
0.10.0
- Remove all incorrectly splatted method arguments, so account creation reasons and edit summaries work now (#12).
- Support a bunch of more Lists (#17). All of the old methods still exist in various submodules. The new methods are:
- Log:
- get_interwiki_backlinks
- get_language_backlinks
- get_image_backlinks
- get_url_backlinks
- get_block_log
- get_reblock_log
- get_unblock_log
- get_delete_log
- get_deletion_restore_log
- get_interwiki_import_log
- get_upload_import_log
- get_overall_log
- get_merge_log
- get_move_log
- get_move_redirect_log
- get_autocreate_users_log
- get_user_create2_log
- get_user_create2_log
- get_patrol_log
- get_modify_protection_log
- get_move_protected_log
- get_protect_log
- get_unprotect_log
- get_autopromotion_log
- get_rights_log
- get_upload_overwrite_log
- get_upload_log
- The logs not explicitly supported (they are still supported in get_overall_log) are:
- upload/revert
- rights/erevoke
- delete/event
- delete/revision
- Miscellaneous:
- get_tags
- QueryPage:
- get_mostrevisions_page
- get_mostlinked_page
- get_mostlinkedtemplates_page
- get_mostlinkedcategories_page
- get_mostinterwikis_page
- get_mostimages_page
- get_mostlinkedcategories_page
- get_listduplicatedfiles_page
- get_listredirects_page
- get_wantedtemplates_page
- get_wantedpages_page
- get_wantedfiles_page
- get_wantedcategories_page
- get_unwatchedpages_page
- get_unusedtemplates_page
- get_unusedcategories_page
- get_uncategorizedtemplates_page
- get_uncategorizedpages_page
- get_uncategorizedcategories_page
- get_shortpages_page
- get_withoutinterwiki_page
- get_fewestrevisions_page
- get_lonelypages_page
- get_ancientpages_page
- get_longpages_page
- get_doubleredirects_page
- get_brokenredirects_page
- get_querypage
- RecentChanges:
- get_recent_changes
- get_recent_deleted_revisions
- Search
- get_prefix_search
- Log:
- New constant MediaWiki::Constants::TIME_FORMAT for the standard MediaWiki timestamp format.
- Improve performance slightly by using Array#<< instead of Array#push.
0.9.0
- get_category_members has a new parameter, type, which can be used to get more data in a single result.
- get_category_members no longer gets files and subcategories by default. Use the above to get more data at once.
- New get_subcategories and get_files_in_category for specifically getting files or subcategories.
0.8.2
- Fix outdated usage of @namespaces variable, causing a NoMethodError on get_random_pages calls.
- Greatly improved documentation.
0.8.1
0.8.0
- A ton of property query methods (#7). View their docs for info:
- get_all_links_in_page
- get_other_langs_of_page
- get_interwiki_links_in_page
- get_templates_in_page
- get_images_in_page
- get_page_size
- get_protection_levels
- get_display_title
- get_number_of_watchers
- page_new?
- page_redirect?
- can_i_read?
- do_i_watch?
- get_external_links
- get_duplicated_files_of
- get_image_bytes
- get_image_dimensions
- get_image_sizes
- A ton of list query methods (#8). View their docs for info:
- get_all_pages_in_namespace
- get_all_users
- get_all_blocks
- get_all_transcluders
- get_all_deleted_files
- get_all_protected_titles
- get_user_contributions
- get_full_watchlist
- get_all_duplicated_files
- Fix a NoMethodError on what_links_here caused by not actually setting the list in that query (#14).
- User-Agents are optionally customizable in the MediaWiki::Butt initialization. If this is not used, the old defaults will still be used ('NotLoggedIn/MediaWiki-Butt' and 'Username/MediaWiki-Butt') (#13).
- Fix @returns in docs.
- Got rid of false things in docs.
- Remove dependency on string-utility. That should be something the user does on their end.
- get_contrib_count no longer has a second parameter, because of the above change.
- Fix open-ended dependency for HTTPClient.
- New get_logged_in_contributors method for getting all logged in user's usernames that have contributed to a page.
- New get_total_contributors method for getting the total number of contributors to a page.
- Refactor Properties to be more like Meta.
- New get_limited protected method that limits the 'limit' parameter for queries. It's essentially just reducing duplicated code.
- Remove all global variables. MediaWiki::Constants::Namespaces' $namespaces is now MediaWiki::Constants with the hash being defined as NAMESPACES (#10).
0.7.0
- upload's filename argument is no longer splat, because arrays.
- Fix incorrect regex $ when ^ should be used in upload.
- New get_all_categories method.
- New get_all_images method.
- Fix broken user_bot? calls.
- user_bot? returns false when not logged in and username is not set.
- Refactor Query module to have its own folder, and subfolder for meta. This shouldn't change anything on the user's end.
- A couple methods no longer stupidly print stuff.
- New get_categories_in_page method.