Releases: FTB-Gamepedia/MediaWiki-Butt-Ruby
Releases · FTB-Gamepedia/MediaWiki-Butt-Ruby
0.6.0
- Slightly expanded Gem description.
- Finished all Meta modules and their methods, except for the allmessages meta query. #6
- New get_variables method.
- New get_function_hooks method.
- New get_extension_tags method.
- New get_skins method.
- New get_restriction_levels method.
- New get_restriction_types method.
- New get_restrictions_data method for the above methods.
- New get_allowed_file_extensions method, and refactored #upload to only allow files with those extensions.
- New get_all_usergroups method.
- New get_magic_words method.
- New get_special_page_aliases method.
- New get_namespace_aliases method.
- New get_namespaces method.
- New get_filerepo_favicons method.
- New get_filerepo_thumburls method.
- New get_nonlocal_filerepos method.
- New get_local_filerepos method.
- New get_filerepo_urls method.
- New get_filerepo_rooturls method.
- Refactor get_filerepo_names to use new get_filerepoinfo method.
- New get_filerepoinfo method, in a similar style to get_userlists.
- New get_current_user_options for getting a hash containing all of the currently logged in user's preferences.
- New get_email_address method for getting the currently logged in user's email address.
- New get_realname method for getting the currently logged in user's real name.
- New get_changeable_groups method for getting the currently logged in user's groups that they can change (add/remove people from)
- New current_user_hasmsg? method for checking if the user has any unread messages.
- check_login no longer returns false, ever, because any code after a fail is unreachable.
- prop parameter in get_current_user_meta is now optional, for get_current_user_name.
- New get_current_user_name method, for getting the currently logged in user's username.
- New get_siteinfo method, in a similar style to get_userlists.
- New get_statistics method, for getting a hash of the wiki's statistics.
- New get_general method, for getting hash of the 'general' wiki information.
- New get_extensions method, for getting an array of all extension names installed.
- New get_languages method, for getting a hash of all the languages, formatted as code => name.
- User-Agent header is now set for each post. It defaults to
NotLoggedIn/MediaWiki::Butt
, or#{name}/MediaWiki::Butt
if logged in. This might cause some slight performance issues (#5)
0.5.0
- New Administration module for administrative methods.
- New block and unblock methods, for (un)blocking users.
- Refactor token stuff. It still doesn't work exactly how I'd like yet, but it's better than it was before. Ideally I'd like to have it get the login-specific tokens on login and set them to some well-named instance variables. Then clear those on logout.
- Single-line each
do end
loops have been converted into{...}
style loops. - New delete method for deleting pages.
- New move method for moving pages.
0.4.1
- params[:format] is now automatically set to 'json', so it no longer needs to be defined in each method.
- Fixed a lot of styling issues thanks to Rubocop.
- check_login and check_create now use case/when statements instead of elsifs.
- check_create no longer returns anything.
- Update minimum Ruby version to 2.1, for refinements.
- Fix $namespaces hash syntax.
- Generally improved if statement syntax.
- Generally shortened a lot of code by using better syntax.
0.4.0
- New get_userrights method for getting an array of all user rights that user has.
- New get_user_gender method for getting the gender of the provided user.
- New get_current_user_meta for getting userlists about the currently logged in user. Essentially the equivalent of get_userlists for logged in users.
- Fix all userlist methods to work without supplying a username.
- New get_registration_time method to get when the user registered.
- Update to work with latest version of string-utility.
- Namespaces are now in a hash instead of a bunch of variables.
- Namespace parameters are now actually limited to the valid namespaces constant. It will default to the main namespace (0) if the integer provided is not in the namespaces hash.
- get_random_pages no longer wrongly sets the rnlimit to the namespaces argument rather than the namespace argument.
0.3.1
0.3.0
- New upload method to upload by URL.
- New create_page method.
- New get_userlists method.
- New get_usergroups method.
- New get_contrib_count method.
- Refactor get_usergroups and is_current_user_bot? to use new get_userinfo method.
- Minor refactors to make optional arguments more Ruby-like with splat arguments.
#edit
no longer prints the edit token, because that's stupid.#edit
no longer sets the summary if it is nil.
0.2.1
0.2.0
- New get_id method to get the pageid from the title.
- New get_random_pages method to get an array of random articles.
- New Namespace module full of constants.
- is_current_user_bot is now called as is_current_user_bot?.
- New get_edit_token method for obtaining an edit token based on the page title.
- New edit method and module for editing pages.
- Fix logout parsing error
0.1.1
- Got rid of pointless array in is_current_user_bot
- Potentially fixed docs
- Raise errors on unsuccessful account creation
#login
properly returns true if the login is successful on the first try#logout
returns true/false if it logs the user out. Basically returns true if @logged_in is true, and false if not, because the logout action has no errors.- Account creation stuff actually returns true/false on success/fail. It also handles errors now.
- Better Category title regex in get_category_members