mediawiktory 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/CONTRIBUTING.md +16 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +5 -5
  6. data/examples/query_generator.rb +1 -1
  7. data/lib/mediawiktory.rb +2 -1
  8. data/lib/mediawiktory/action.rb +9 -0
  9. data/lib/mediawiktory/client.rb +27 -2
  10. data/lib/mediawiktory/generated/abusefilters.rb +3 -3
  11. data/lib/mediawiktory/generated/abuselog.rb +2 -2
  12. data/lib/mediawiktory/generated/allcategories.rb +2 -2
  13. data/lib/mediawiktory/generated/alldeletedrevisions.rb +4 -4
  14. data/lib/mediawiktory/generated/allfileusages.rb +2 -2
  15. data/lib/mediawiktory/generated/allimages.rb +4 -4
  16. data/lib/mediawiktory/generated/alllinks.rb +3 -3
  17. data/lib/mediawiktory/generated/allmessages.rb +2 -2
  18. data/lib/mediawiktory/generated/allpages.rb +8 -8
  19. data/lib/mediawiktory/generated/allredirects.rb +3 -3
  20. data/lib/mediawiktory/generated/alltransclusions.rb +3 -3
  21. data/lib/mediawiktory/generated/allusers.rb +5 -5
  22. data/lib/mediawiktory/generated/backlinks.rb +3 -3
  23. data/lib/mediawiktory/generated/blocks.rb +3 -3
  24. data/lib/mediawiktory/generated/categories.rb +3 -3
  25. data/lib/mediawiktory/generated/categorymembers.rb +5 -5
  26. data/lib/mediawiktory/generated/checktoken.rb +1 -1
  27. data/lib/mediawiktory/generated/checkuser.rb +1 -1
  28. data/lib/mediawiktory/generated/checkuserlog.rb +1 -1
  29. data/lib/mediawiktory/generated/close-open-topic.rb +1 -1
  30. data/lib/mediawiktory/generated/contenttranslation.rb +1 -1
  31. data/lib/mediawiktory/generated/contenttranslationlangtrend.rb +1 -1
  32. data/lib/mediawiktory/generated/contributors.rb +4 -4
  33. data/lib/mediawiktory/generated/coordinates.rb +2 -2
  34. data/lib/mediawiktory/generated/cxpublish.rb +1 -1
  35. data/lib/mediawiktory/generated/delete.rb +1 -1
  36. data/lib/mediawiktory/generated/deletedrevisions.rb +3 -3
  37. data/lib/mediawiktory/generated/deletedrevs.rb +3 -3
  38. data/lib/mediawiktory/generated/deleteeducation.rb +1 -1
  39. data/lib/mediawiktory/generated/duplicatefiles.rb +1 -1
  40. data/lib/mediawiktory/generated/echomarkread.rb +1 -1
  41. data/lib/mediawiktory/generated/echomarkseen.rb +1 -1
  42. data/lib/mediawiktory/generated/edit-header.rb +1 -1
  43. data/lib/mediawiktory/generated/edit-post.rb +1 -1
  44. data/lib/mediawiktory/generated/edit-topic-summary.rb +1 -1
  45. data/lib/mediawiktory/generated/edit.rb +4 -4
  46. data/lib/mediawiktory/generated/editlist.rb +2 -2
  47. data/lib/mediawiktory/generated/embeddedin.rb +3 -3
  48. data/lib/mediawiktory/generated/enlist.rb +2 -2
  49. data/lib/mediawiktory/generated/expandtemplates.rb +1 -1
  50. data/lib/mediawiktory/generated/extlinks.rb +1 -1
  51. data/lib/mediawiktory/generated/extracts.rb +1 -1
  52. data/lib/mediawiktory/generated/exturlusage.rb +3 -3
  53. data/lib/mediawiktory/generated/featuredfeed.rb +2 -2
  54. data/lib/mediawiktory/generated/feedcontributions.rb +3 -3
  55. data/lib/mediawiktory/generated/feedrecentchanges.rb +2 -2
  56. data/lib/mediawiktory/generated/feedwatchlist.rb +3 -3
  57. data/lib/mediawiktory/generated/filearchive.rb +2 -2
  58. data/lib/mediawiktory/generated/filerepoinfo.rb +1 -1
  59. data/lib/mediawiktory/generated/fileusage.rb +3 -3
  60. data/lib/mediawiktory/generated/flow-parsoid-utils.rb +2 -2
  61. data/lib/mediawiktory/generated/gadgetcategories.rb +1 -1
  62. data/lib/mediawiktory/generated/gadgets.rb +1 -1
  63. data/lib/mediawiktory/generated/geosearch.rb +4 -4
  64. data/lib/mediawiktory/generated/globalallusers.rb +4 -4
  65. data/lib/mediawiktory/generated/globalblocks.rb +2 -2
  66. data/lib/mediawiktory/generated/globalgroups.rb +1 -1
  67. data/lib/mediawiktory/generated/globalusage.rb +1 -1
  68. data/lib/mediawiktory/generated/globaluserinfo.rb +1 -1
  69. data/lib/mediawiktory/generated/globaluserrights.rb +2 -2
  70. data/lib/mediawiktory/generated/imageinfo.rb +1 -1
  71. data/lib/mediawiktory/generated/images.rb +1 -1
  72. data/lib/mediawiktory/generated/imageusage.rb +3 -3
  73. data/lib/mediawiktory/generated/import.rb +2 -2
  74. data/lib/mediawiktory/generated/info.rb +2 -2
  75. data/lib/mediawiktory/generated/iwbacklinks.rb +2 -2
  76. data/lib/mediawiktory/generated/iwlinks.rb +2 -2
  77. data/lib/mediawiktory/generated/jsonconfig.rb +1 -1
  78. data/lib/mediawiktory/generated/langbacklinks.rb +2 -2
  79. data/lib/mediawiktory/generated/langlinks.rb +2 -2
  80. data/lib/mediawiktory/generated/links.rb +2 -2
  81. data/lib/mediawiktory/generated/linkshere.rb +3 -3
  82. data/lib/mediawiktory/generated/listpages.rb +3 -3
  83. data/lib/mediawiktory/generated/lists.rb +2 -2
  84. data/lib/mediawiktory/generated/liststudents.rb +1 -1
  85. data/lib/mediawiktory/generated/lock-topic.rb +1 -1
  86. data/lib/mediawiktory/generated/logevents.rb +5 -5
  87. data/lib/mediawiktory/generated/managetags.rb +1 -1
  88. data/lib/mediawiktory/generated/mobileview.rb +3 -3
  89. data/lib/mediawiktory/generated/moderate-post.rb +1 -1
  90. data/lib/mediawiktory/generated/moderate-topic.rb +1 -1
  91. data/lib/mediawiktory/generated/move.rb +1 -1
  92. data/lib/mediawiktory/generated/new-topic.rb +1 -1
  93. data/lib/mediawiktory/generated/notifications.rb +3 -3
  94. data/lib/mediawiktory/generated/oldreviewedpages.rb +4 -4
  95. data/lib/mediawiktory/generated/opensearch.rb +3 -3
  96. data/lib/mediawiktory/generated/options.rb +1 -1
  97. data/lib/mediawiktory/generated/pageimages.rb +1 -1
  98. data/lib/mediawiktory/generated/pageswithprop.rb +2 -2
  99. data/lib/mediawiktory/generated/pageterms.rb +1 -1
  100. data/lib/mediawiktory/generated/pagetriageaction.rb +1 -1
  101. data/lib/mediawiktory/generated/paraminfo.rb +3 -3
  102. data/lib/mediawiktory/generated/parse.rb +3 -3
  103. data/lib/mediawiktory/generated/prefixsearch.rb +1 -1
  104. data/lib/mediawiktory/generated/protect.rb +1 -1
  105. data/lib/mediawiktory/generated/protectedtitles.rb +4 -4
  106. data/lib/mediawiktory/generated/querypage.rb +1 -1
  107. data/lib/mediawiktory/generated/random.rb +2 -2
  108. data/lib/mediawiktory/generated/recentchanges.rb +6 -6
  109. data/lib/mediawiktory/generated/redirects.rb +3 -3
  110. data/lib/mediawiktory/generated/refresheducation.rb +1 -1
  111. data/lib/mediawiktory/generated/reply.rb +1 -1
  112. data/lib/mediawiktory/generated/reviewactivity.rb +1 -1
  113. data/lib/mediawiktory/generated/revisiondelete.rb +4 -4
  114. data/lib/mediawiktory/generated/revisions.rb +4 -4
  115. data/lib/mediawiktory/generated/rollback.rb +1 -1
  116. data/lib/mediawiktory/generated/search.rb +4 -4
  117. data/lib/mediawiktory/generated/setglobalaccountstatus.rb +2 -2
  118. data/lib/mediawiktory/generated/siteinfo.rb +2 -2
  119. data/lib/mediawiktory/generated/sitematrix.rb +4 -4
  120. data/lib/mediawiktory/generated/stabilize.rb +1 -1
  121. data/lib/mediawiktory/generated/stashedit.rb +2 -2
  122. data/lib/mediawiktory/generated/stashimageinfo.rb +1 -1
  123. data/lib/mediawiktory/generated/strikevote.rb +1 -1
  124. data/lib/mediawiktory/generated/tag.rb +1 -1
  125. data/lib/mediawiktory/generated/tags.rb +1 -1
  126. data/lib/mediawiktory/generated/templatedata.rb +1 -1
  127. data/lib/mediawiktory/generated/templates.rb +2 -2
  128. data/lib/mediawiktory/generated/titleblacklist.rb +1 -1
  129. data/lib/mediawiktory/generated/tokens.rb +1 -1
  130. data/lib/mediawiktory/generated/transcludedin.rb +3 -3
  131. data/lib/mediawiktory/generated/undelete.rb +1 -1
  132. data/lib/mediawiktory/generated/upload.rb +1 -1
  133. data/lib/mediawiktory/generated/usercontribs.rb +4 -4
  134. data/lib/mediawiktory/generated/userinfo.rb +1 -1
  135. data/lib/mediawiktory/generated/userrights.rb +2 -2
  136. data/lib/mediawiktory/generated/users.rb +2 -2
  137. data/lib/mediawiktory/generated/videoinfo.rb +1 -1
  138. data/lib/mediawiktory/generated/view-header.rb +1 -1
  139. data/lib/mediawiktory/generated/view-post-history.rb +1 -1
  140. data/lib/mediawiktory/generated/view-post.rb +1 -1
  141. data/lib/mediawiktory/generated/view-topic-history.rb +1 -1
  142. data/lib/mediawiktory/generated/view-topic-summary.rb +1 -1
  143. data/lib/mediawiktory/generated/view-topic.rb +1 -1
  144. data/lib/mediawiktory/generated/view-topiclist.rb +3 -3
  145. data/lib/mediawiktory/generated/visualeditor.rb +2 -2
  146. data/lib/mediawiktory/generated/watchlist.rb +5 -5
  147. data/lib/mediawiktory/generated/watchlistraw.rb +4 -4
  148. data/lib/mediawiktory/generated/wikibase.rb +1 -1
  149. data/lib/mediawiktory/generated/wikisets.rb +1 -1
  150. data/lib/mediawiktory/generated/zeroconfig.rb +1 -1
  151. data/lib/mediawiktory/mw_module.rb +6 -2
  152. data/lib/mediawiktory/page.rb +46 -0
  153. data/lib/mediawiktory/query.rb +21 -23
  154. data/lib/mediawiktory/version.rb +4 -1
  155. data/script/lib/parameter.rb +2 -5
  156. metadata +6 -4
  157. data/Gemfile.lock +0 -63
  158. data/lib/mediawiktory/array_with_keys.rb +0 -41
@@ -4,13 +4,13 @@ module MediaWiktory
4
4
  prefix "cm"
5
5
  param :title, Params::String
6
6
  param :pageid, Params::Integer
7
- param :prop, Params::List[Params::Enum["ids", "title", "sortkey", "sortkeyprefix", "type", "timestamp"]]
8
- param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
9
- param :type, Params::List[Params::Enum["page", "subcat", "file"]]
7
+ param :prop, Params::List[Params::Enum[:ids, :title, :sortkey, :sortkeyprefix, :type, :timestamp]]
8
+ param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
9
+ param :type, Params::List[Params::Enum[:page, :subcat, :file]]
10
10
  param :continue, Params::String
11
11
  param :limit, Params::IntegerOrMax
12
- param :sort, Params::Enum["sortkey", "timestamp"]
13
- param :dir, Params::Enum["asc", "desc", "ascending", "descending", "newer", "older"]
12
+ param :sort, Params::Enum[:sortkey, :timestamp]
13
+ param :dir, Params::Enum[:asc, :desc, :ascending, :descending, :newer, :older]
14
14
  param :start, Params::Timestamp
15
15
  param :end, Params::Timestamp
16
16
  param :starthexsortkey, Params::String
@@ -1,7 +1,7 @@
1
1
  module MediaWiktory
2
2
  class Checktoken < Action
3
3
  symbol :checktoken
4
- param :type, Params::Enum["csrf", "deleteglobalaccount", "patrol", "rollback", "setglobalaccountstatus", "userrights", "watch"]
4
+ param :type, Params::Enum[:csrf, :deleteglobalaccount, :patrol, :rollback, :setglobalaccountstatus, :userrights, :watch]
5
5
  param :token, Params::String
6
6
  param :maxtokenage, Params::Integer
7
7
  end
@@ -3,7 +3,7 @@ module MediaWiktory
3
3
  symbol :checkuser
4
4
  prefix "cu"
5
5
  post!
6
- param :request, Params::Enum["userips", "edits", "ipusers"]
6
+ param :request, Params::Enum[:userips, :edits, :ipusers]
7
7
  param :target, Params::String
8
8
  param :reason, Params::String
9
9
  param :limit, Params::IntegerOrMax
@@ -5,7 +5,7 @@ module MediaWiktory
5
5
  param :user, Params::String
6
6
  param :target, Params::String
7
7
  param :limit, Params::IntegerOrMax
8
- param :dir, Params::Enum["newer", "older"]
8
+ param :dir, Params::Enum[:newer, :older]
9
9
  param :from, Params::Timestamp
10
10
  param :to, Params::Timestamp
11
11
  param :continue, Params::String
@@ -3,7 +3,7 @@ module MediaWiktory
3
3
  symbol :"close-open-topic"
4
4
  prefix "cot"
5
5
  post!
6
- param :moderationState, Params::Enum["lock", "unlock", "close", "reopen"]
6
+ param :moderationState, Params::Enum[:lock, :unlock, :close, :reopen]
7
7
  param :reason, Params::String
8
8
  param :token, Params::String
9
9
  end
@@ -7,6 +7,6 @@ module MediaWiktory
7
7
  param :sourcetitle, Params::String
8
8
  param :limit, Params::IntegerOrMax
9
9
  param :offset, Params::String
10
- param :type, Params::Enum["draft", "published"]
10
+ param :type, Params::Enum[:draft, :published]
11
11
  end
12
12
  end
@@ -3,6 +3,6 @@ module MediaWiktory
3
3
  symbol :contenttranslationlangtrend
4
4
  param :source, Params::String
5
5
  param :target, Params::String
6
- param :interval, Params::Enum["week", "month"]
6
+ param :interval, Params::Enum[:week, :month]
7
7
  end
8
8
  end
@@ -2,10 +2,10 @@ module MediaWiktory
2
2
  class Contributors < MWModule
3
3
  symbol :contributors
4
4
  prefix "pc"
5
- param :group, Params::List[Params::Enum["bot", "sysop", "bureaucrat", "reviewer", "steward", "accountcreator", "import", "transwiki", "ipblock-exempt", "oversight", "founder", "rollbacker", "autoreviewer", "researcher", "filemover", "checkuser", "templateeditor", "massmessage-sender", "abusefilter", "epcoordinator", "eponline", "epcampus", "epinstructor", "suppress", "flow-bot", "confirmed"]]
6
- param :excludegroup, Params::List[Params::Enum["bot", "sysop", "bureaucrat", "reviewer", "steward", "accountcreator", "import", "transwiki", "ipblock-exempt", "oversight", "founder", "rollbacker", "autoreviewer", "researcher", "filemover", "checkuser", "templateeditor", "massmessage-sender", "abusefilter", "epcoordinator", "eponline", "epcampus", "epinstructor", "suppress", "flow-bot", "confirmed"]]
7
- param :rights, Params::List[Params::Enum["apihighlimits", "applychangetags", "autoconfirmed", "autopatrol", "bigdelete", "block", "blockemail", "bot", "browsearchive", "changetags", "createaccount", "createpage", "createtalk", "delete", "deletedhistory", "deletedtext", "deletelogentry", "deleterevision", "edit", "editcontentmodel", "editinterface", "editprotected", "editmyoptions", "editmyprivateinfo", "editmyusercss", "editmyuserjs", "editmywatchlist", "editsemiprotected", "editusercssjs", "editusercss", "edituserjs", "hideuser", "import", "importupload", "ipblock-exempt", "managechangetags", "markbotedits", "mergehistory", "minoredit", "move", "movefile", "move-categorypages", "move-rootuserpages", "move-subpages", "nominornewtalk", "noratelimit", "override-export-depth", "pagelang", "passwordreset", "patrol", "patrolmarks", "protect", "proxyunbannable", "purge", "read", "reupload", "reupload-own", "reupload-shared", "rollback", "sendemail", "siteadmin", "suppressionlog", "suppressredirect", "suppressrevision", "unblockself", "undelete", "unwatchedpages", "upload", "upload_by_url", "userrights", "userrights-interwiki", "viewmyprivateinfo", "viewmywatchlist", "viewsuppressed", "writeapi", "spamblacklistlog", "tboverride", "tboverride-account", "titleblacklistlog", "gadgets-edit", "gadgets-definition-edit", "renameuser", "nuke", "massmessage", "gather-hidelist", "usermerge", "review", "validate", "autoreview", "autoreviewrestore", "unreviewedpages", "movestable", "stablesettings", "templateeditor", "superprotect", "editeditorprotected", "flow-edit-post", "flow-suppress", "flow-hide", "flow-delete", "transcode-reset", "transcode-status", "globalblock", "globalblock-whitelist", "globalblock-exempt", "securepoll-create-poll", "torunblocked", "skipcaptcha", "override-antispoof", "centralauth-merge", "centralauth-unmerge", "centralauth-lock", "centralauth-oversight", "globalgrouppermissions", "globalgroupmembership", "centralauth-autoaccount", "centralauth-rename", "centralauth-usermerge", "viewdeletedfile", "collectionsaveasuserpage", "collectionsaveascommunitypage", "abusefilter-modify", "abusefilter-log-detail", "abusefilter-view", "abusefilter-log", "abusefilter-modify-restricted", "abusefilter-revert", "abusefilter-view-private", "abusefilter-log-private", "abusefilter-hidden-log", "abusefilter-hide-log", "abusefilter-modify-global", "moodbar-admin", "mf-uploadbutton", "vipsscaler-test", "ep-org", "ep-course", "ep-token", "ep-enroll", "ep-remstudent", "ep-online", "ep-campus", "ep-instructor", "ep-beonline", "ep-becampus", "ep-beinstructor", "ep-bereviewer", "ep-remreviewer", "ep-bulkdelorgs", "ep-bulkdelcourses", "ep-remarticle", "ep-addstudent", "flow-lock", "flow-create-board", "mwoauthproposeconsumer", "mwoauthupdateownconsumer", "mwoauthmanageconsumer", "mwoauthsuppress", "mwoauthviewsuppressed", "mwoauthviewprivate", "mwoauthmanagemygrants", "checkuser", "checkuser-log"]]
8
- param :excluderights, Params::List[Params::Enum["apihighlimits", "applychangetags", "autoconfirmed", "autopatrol", "bigdelete", "block", "blockemail", "bot", "browsearchive", "changetags", "createaccount", "createpage", "createtalk", "delete", "deletedhistory", "deletedtext", "deletelogentry", "deleterevision", "edit", "editcontentmodel", "editinterface", "editprotected", "editmyoptions", "editmyprivateinfo", "editmyusercss", "editmyuserjs", "editmywatchlist", "editsemiprotected", "editusercssjs", "editusercss", "edituserjs", "hideuser", "import", "importupload", "ipblock-exempt", "managechangetags", "markbotedits", "mergehistory", "minoredit", "move", "movefile", "move-categorypages", "move-rootuserpages", "move-subpages", "nominornewtalk", "noratelimit", "override-export-depth", "pagelang", "passwordreset", "patrol", "patrolmarks", "protect", "proxyunbannable", "purge", "read", "reupload", "reupload-own", "reupload-shared", "rollback", "sendemail", "siteadmin", "suppressionlog", "suppressredirect", "suppressrevision", "unblockself", "undelete", "unwatchedpages", "upload", "upload_by_url", "userrights", "userrights-interwiki", "viewmyprivateinfo", "viewmywatchlist", "viewsuppressed", "writeapi", "spamblacklistlog", "tboverride", "tboverride-account", "titleblacklistlog", "gadgets-edit", "gadgets-definition-edit", "renameuser", "nuke", "massmessage", "gather-hidelist", "usermerge", "review", "validate", "autoreview", "autoreviewrestore", "unreviewedpages", "movestable", "stablesettings", "templateeditor", "superprotect", "editeditorprotected", "flow-edit-post", "flow-suppress", "flow-hide", "flow-delete", "transcode-reset", "transcode-status", "globalblock", "globalblock-whitelist", "globalblock-exempt", "securepoll-create-poll", "torunblocked", "skipcaptcha", "override-antispoof", "centralauth-merge", "centralauth-unmerge", "centralauth-lock", "centralauth-oversight", "globalgrouppermissions", "globalgroupmembership", "centralauth-autoaccount", "centralauth-rename", "centralauth-usermerge", "viewdeletedfile", "collectionsaveasuserpage", "collectionsaveascommunitypage", "abusefilter-modify", "abusefilter-log-detail", "abusefilter-view", "abusefilter-log", "abusefilter-modify-restricted", "abusefilter-revert", "abusefilter-view-private", "abusefilter-log-private", "abusefilter-hidden-log", "abusefilter-hide-log", "abusefilter-modify-global", "moodbar-admin", "mf-uploadbutton", "vipsscaler-test", "ep-org", "ep-course", "ep-token", "ep-enroll", "ep-remstudent", "ep-online", "ep-campus", "ep-instructor", "ep-beonline", "ep-becampus", "ep-beinstructor", "ep-bereviewer", "ep-remreviewer", "ep-bulkdelorgs", "ep-bulkdelcourses", "ep-remarticle", "ep-addstudent", "flow-lock", "flow-create-board", "mwoauthproposeconsumer", "mwoauthupdateownconsumer", "mwoauthmanageconsumer", "mwoauthsuppress", "mwoauthviewsuppressed", "mwoauthviewprivate", "mwoauthmanagemygrants", "checkuser", "checkuser-log"]]
5
+ param :group, Params::List[Params::Enum[:bot, :sysop, :bureaucrat, :reviewer, :steward, :accountcreator, :import, :transwiki, :"ipblock-exempt", :oversight, :founder, :rollbacker, :autoreviewer, :researcher, :filemover, :checkuser, :templateeditor, :"massmessage-sender", :abusefilter, :epcoordinator, :eponline, :epcampus, :epinstructor, :suppress, :"flow-bot", :confirmed]]
6
+ param :excludegroup, Params::List[Params::Enum[:bot, :sysop, :bureaucrat, :reviewer, :steward, :accountcreator, :import, :transwiki, :"ipblock-exempt", :oversight, :founder, :rollbacker, :autoreviewer, :researcher, :filemover, :checkuser, :templateeditor, :"massmessage-sender", :abusefilter, :epcoordinator, :eponline, :epcampus, :epinstructor, :suppress, :"flow-bot", :confirmed]]
7
+ param :rights, Params::List[Params::Enum[:apihighlimits, :applychangetags, :autoconfirmed, :autopatrol, :bigdelete, :block, :blockemail, :bot, :browsearchive, :changetags, :createaccount, :createpage, :createtalk, :delete, :deletedhistory, :deletedtext, :deletelogentry, :deleterevision, :edit, :editcontentmodel, :editinterface, :editprotected, :editmyoptions, :editmyprivateinfo, :editmyusercss, :editmyuserjs, :editmywatchlist, :editsemiprotected, :editusercssjs, :editusercss, :edituserjs, :hideuser, :import, :importupload, :"ipblock-exempt", :managechangetags, :markbotedits, :mergehistory, :minoredit, :move, :movefile, :"move-categorypages", :"move-rootuserpages", :"move-subpages", :nominornewtalk, :noratelimit, :"override-export-depth", :pagelang, :passwordreset, :patrol, :patrolmarks, :protect, :proxyunbannable, :purge, :read, :reupload, :"reupload-own", :"reupload-shared", :rollback, :sendemail, :siteadmin, :suppressionlog, :suppressredirect, :suppressrevision, :unblockself, :undelete, :unwatchedpages, :upload, :upload_by_url, :userrights, :"userrights-interwiki", :viewmyprivateinfo, :viewmywatchlist, :viewsuppressed, :writeapi, :spamblacklistlog, :tboverride, :"tboverride-account", :titleblacklistlog, :"gadgets-edit", :"gadgets-definition-edit", :renameuser, :nuke, :massmessage, :"gather-hidelist", :usermerge, :review, :validate, :autoreview, :autoreviewrestore, :unreviewedpages, :movestable, :stablesettings, :templateeditor, :superprotect, :editeditorprotected, :"flow-edit-post", :"flow-suppress", :"flow-hide", :"flow-delete", :"transcode-reset", :"transcode-status", :globalblock, :"globalblock-whitelist", :"globalblock-exempt", :"securepoll-create-poll", :torunblocked, :skipcaptcha, :"override-antispoof", :"centralauth-merge", :"centralauth-unmerge", :"centralauth-lock", :"centralauth-oversight", :globalgrouppermissions, :globalgroupmembership, :"centralauth-autoaccount", :"centralauth-rename", :"centralauth-usermerge", :viewdeletedfile, :collectionsaveasuserpage, :collectionsaveascommunitypage, :"abusefilter-modify", :"abusefilter-log-detail", :"abusefilter-view", :"abusefilter-log", :"abusefilter-modify-restricted", :"abusefilter-revert", :"abusefilter-view-private", :"abusefilter-log-private", :"abusefilter-hidden-log", :"abusefilter-hide-log", :"abusefilter-modify-global", :"moodbar-admin", :"mf-uploadbutton", :"vipsscaler-test", :"ep-org", :"ep-course", :"ep-token", :"ep-enroll", :"ep-remstudent", :"ep-online", :"ep-campus", :"ep-instructor", :"ep-beonline", :"ep-becampus", :"ep-beinstructor", :"ep-bereviewer", :"ep-remreviewer", :"ep-bulkdelorgs", :"ep-bulkdelcourses", :"ep-remarticle", :"ep-addstudent", :"flow-lock", :"flow-create-board", :mwoauthproposeconsumer, :mwoauthupdateownconsumer, :mwoauthmanageconsumer, :mwoauthsuppress, :mwoauthviewsuppressed, :mwoauthviewprivate, :mwoauthmanagemygrants, :checkuser, :"checkuser-log"]]
8
+ param :excluderights, Params::List[Params::Enum[:apihighlimits, :applychangetags, :autoconfirmed, :autopatrol, :bigdelete, :block, :blockemail, :bot, :browsearchive, :changetags, :createaccount, :createpage, :createtalk, :delete, :deletedhistory, :deletedtext, :deletelogentry, :deleterevision, :edit, :editcontentmodel, :editinterface, :editprotected, :editmyoptions, :editmyprivateinfo, :editmyusercss, :editmyuserjs, :editmywatchlist, :editsemiprotected, :editusercssjs, :editusercss, :edituserjs, :hideuser, :import, :importupload, :"ipblock-exempt", :managechangetags, :markbotedits, :mergehistory, :minoredit, :move, :movefile, :"move-categorypages", :"move-rootuserpages", :"move-subpages", :nominornewtalk, :noratelimit, :"override-export-depth", :pagelang, :passwordreset, :patrol, :patrolmarks, :protect, :proxyunbannable, :purge, :read, :reupload, :"reupload-own", :"reupload-shared", :rollback, :sendemail, :siteadmin, :suppressionlog, :suppressredirect, :suppressrevision, :unblockself, :undelete, :unwatchedpages, :upload, :upload_by_url, :userrights, :"userrights-interwiki", :viewmyprivateinfo, :viewmywatchlist, :viewsuppressed, :writeapi, :spamblacklistlog, :tboverride, :"tboverride-account", :titleblacklistlog, :"gadgets-edit", :"gadgets-definition-edit", :renameuser, :nuke, :massmessage, :"gather-hidelist", :usermerge, :review, :validate, :autoreview, :autoreviewrestore, :unreviewedpages, :movestable, :stablesettings, :templateeditor, :superprotect, :editeditorprotected, :"flow-edit-post", :"flow-suppress", :"flow-hide", :"flow-delete", :"transcode-reset", :"transcode-status", :globalblock, :"globalblock-whitelist", :"globalblock-exempt", :"securepoll-create-poll", :torunblocked, :skipcaptcha, :"override-antispoof", :"centralauth-merge", :"centralauth-unmerge", :"centralauth-lock", :"centralauth-oversight", :globalgrouppermissions, :globalgroupmembership, :"centralauth-autoaccount", :"centralauth-rename", :"centralauth-usermerge", :viewdeletedfile, :collectionsaveasuserpage, :collectionsaveascommunitypage, :"abusefilter-modify", :"abusefilter-log-detail", :"abusefilter-view", :"abusefilter-log", :"abusefilter-modify-restricted", :"abusefilter-revert", :"abusefilter-view-private", :"abusefilter-log-private", :"abusefilter-hidden-log", :"abusefilter-hide-log", :"abusefilter-modify-global", :"moodbar-admin", :"mf-uploadbutton", :"vipsscaler-test", :"ep-org", :"ep-course", :"ep-token", :"ep-enroll", :"ep-remstudent", :"ep-online", :"ep-campus", :"ep-instructor", :"ep-beonline", :"ep-becampus", :"ep-beinstructor", :"ep-bereviewer", :"ep-remreviewer", :"ep-bulkdelorgs", :"ep-bulkdelcourses", :"ep-remarticle", :"ep-addstudent", :"flow-lock", :"flow-create-board", :mwoauthproposeconsumer, :mwoauthupdateownconsumer, :mwoauthmanageconsumer, :mwoauthsuppress, :mwoauthviewsuppressed, :mwoauthviewprivate, :mwoauthmanagemygrants, :checkuser, :"checkuser-log"]]
9
9
  param :limit, Params::IntegerOrMax
10
10
  param :continue, Params::String
11
11
  end
@@ -4,8 +4,8 @@ module MediaWiktory
4
4
  prefix "co"
5
5
  param :limit, Params::IntegerOrMax
6
6
  param :continue, Params::String
7
- param :prop, Params::List[Params::Enum["type", "name", "dim", "country", "region", "globe"]]
8
- param :primary, Params::Enum["primary", "secondary", "all"]
7
+ param :prop, Params::List[Params::Enum[:type, :name, :dim, :country, :region, :globe]]
8
+ param :primary, Params::Enum[:primary, :secondary, :all]
9
9
  param :distancefrompoint, Params::String
10
10
  param :distancefrompage, Params::String
11
11
  end
@@ -10,7 +10,7 @@ module MediaWiktory
10
10
  param :to, Params::String
11
11
  param :sourcetitle, Params::String
12
12
  param :sourcerevision, Params::String
13
- param :status, Params::Enum["draft", "published"]
13
+ param :status, Params::Enum[:draft, :published]
14
14
  param :categories, Params::String
15
15
  param :wpCaptchaId, Params::String
16
16
  param :wpCaptchaWord, Params::String
@@ -6,7 +6,7 @@ module MediaWiktory
6
6
  param :pageid, Params::Integer
7
7
  param :reason, Params::String
8
8
  param :watch, Params::Boolean
9
- param :watchlist, Params::Enum["watch", "unwatch", "preferences", "nochange"]
9
+ param :watchlist, Params::Enum[:watch, :unwatch, :preferences, :nochange]
10
10
  param :unwatch, Params::Boolean
11
11
  param :oldimage, Params::String
12
12
  param :token, Params::String
@@ -2,7 +2,7 @@ module MediaWiktory
2
2
  class Deletedrevisions < MWModule
3
3
  symbol :deletedrevisions
4
4
  prefix "drv"
5
- param :prop, Params::List[Params::Enum["ids", "flags", "timestamp", "user", "userid", "size", "sha1", "contentmodel", "comment", "parsedcomment", "content", "tags", "parsetree"]]
5
+ param :prop, Params::List[Params::Enum[:ids, :flags, :timestamp, :user, :userid, :size, :sha1, :contentmodel, :comment, :parsedcomment, :content, :tags, :parsetree]]
6
6
  param :limit, Params::IntegerOrMax
7
7
  param :expandtemplates, Params::Boolean
8
8
  param :generatexml, Params::Boolean
@@ -10,10 +10,10 @@ module MediaWiktory
10
10
  param :section, Params::String
11
11
  param :diffto, Params::String
12
12
  param :difftotext, Params::String
13
- param :contentformat, Params::Enum["application/json", "text/x-wiki", "text/javascript", "text/css", "text/plain"]
13
+ param :contentformat, Params::Enum[:"application/json", :"text/x-wiki", :"text/javascript", :"text/css", :"text/plain"]
14
14
  param :start, Params::Timestamp
15
15
  param :end, Params::Timestamp
16
- param :dir, Params::Enum["newer", "older"]
16
+ param :dir, Params::Enum[:newer, :older]
17
17
  param :tag, Params::String
18
18
  param :user, Params::String
19
19
  param :excludeuser, Params::String
@@ -4,16 +4,16 @@ module MediaWiktory
4
4
  prefix "dr"
5
5
  param :start, Params::Timestamp
6
6
  param :end, Params::Timestamp
7
- param :dir, Params::Enum["newer", "older"]
7
+ param :dir, Params::Enum[:newer, :older]
8
8
  param :from, Params::String
9
9
  param :to, Params::String
10
10
  param :prefix, Params::String
11
11
  param :unique, Params::Boolean
12
- param :namespace, Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]
12
+ param :namespace, Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]
13
13
  param :tag, Params::String
14
14
  param :user, Params::String
15
15
  param :excludeuser, Params::String
16
- param :prop, Params::List[Params::Enum["revid", "parentid", "user", "userid", "comment", "parsedcomment", "minor", "len", "sha1", "content", "token", "tags"]]
16
+ param :prop, Params::List[Params::Enum[:revid, :parentid, :user, :userid, :comment, :parsedcomment, :minor, :len, :sha1, :content, :token, :tags]]
17
17
  param :limit, Params::IntegerOrMax
18
18
  param :continue, Params::String
19
19
  end
@@ -3,7 +3,7 @@ module MediaWiktory
3
3
  symbol :deleteeducation
4
4
  post!
5
5
  param :ids, Params::List[Params::Integer]
6
- param :type, Params::Enum["org", "course"]
6
+ param :type, Params::Enum[:org, :course]
7
7
  param :comment, Params::String
8
8
  param :token, Params::String
9
9
  end
@@ -4,7 +4,7 @@ module MediaWiktory
4
4
  prefix "df"
5
5
  param :limit, Params::IntegerOrMax
6
6
  param :continue, Params::String
7
- param :dir, Params::Enum["ascending", "descending"]
7
+ param :dir, Params::Enum[:ascending, :descending]
8
8
  param :localonly, Params::Boolean
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module MediaWiktory
4
4
  post!
5
5
  param :list, Params::List[Params::String]
6
6
  param :all, Params::Boolean
7
- param :sections, Params::List[Params::Enum["alert", "message"]]
7
+ param :sections, Params::List[Params::Enum[:alert, :message]]
8
8
  param :token, Params::String
9
9
  end
10
10
  end
@@ -3,6 +3,6 @@ module MediaWiktory
3
3
  symbol :echomarkseen
4
4
  post!
5
5
  param :token, Params::String
6
- param :type, Params::Enum["alert", "message", "all"]
6
+ param :type, Params::Enum[:alert, :message, :all]
7
7
  end
8
8
  end
@@ -5,7 +5,7 @@ module MediaWiktory
5
5
  post!
6
6
  param :prev_revision, Params::String
7
7
  param :content, Params::String
8
- param :format, Params::Enum["html", "wikitext"]
8
+ param :format, Params::Enum[:html, :wikitext]
9
9
  param :token, Params::String
10
10
  end
11
11
  end
@@ -6,7 +6,7 @@ module MediaWiktory
6
6
  param :postId, Params::String
7
7
  param :prev_revision, Params::String
8
8
  param :content, Params::String
9
- param :format, Params::Enum["html", "wikitext"]
9
+ param :format, Params::Enum[:html, :wikitext]
10
10
  param :token, Params::String
11
11
  end
12
12
  end
@@ -5,7 +5,7 @@ module MediaWiktory
5
5
  post!
6
6
  param :prev_revision, Params::String
7
7
  param :summary, Params::String
8
- param :format, Params::Enum["html", "wikitext"]
8
+ param :format, Params::Enum[:html, :wikitext]
9
9
  param :token, Params::String
10
10
  end
11
11
  end
@@ -8,7 +8,7 @@ module MediaWiktory
8
8
  param :sectiontitle, Params::String
9
9
  param :text, Params::String
10
10
  param :summary, Params::String
11
- param :tags, Params::List[Params::Enum["Huggle", "WPCleaner", "huggle"]]
11
+ param :tags, Params::List[Params::Enum[:Huggle, :WPCleaner, :huggle]]
12
12
  param :minor, Params::Boolean
13
13
  param :notminor, Params::Boolean
14
14
  param :bot, Params::Boolean
@@ -19,15 +19,15 @@ module MediaWiktory
19
19
  param :nocreate, Params::Boolean
20
20
  param :watch, Params::Boolean
21
21
  param :unwatch, Params::Boolean
22
- param :watchlist, Params::Enum["watch", "unwatch", "preferences", "nochange"]
22
+ param :watchlist, Params::Enum[:watch, :unwatch, :preferences, :nochange]
23
23
  param :md5, Params::String
24
24
  param :prependtext, Params::String
25
25
  param :appendtext, Params::String
26
26
  param :undo, Params::Integer
27
27
  param :undoafter, Params::Integer
28
28
  param :redirect, Params::Boolean
29
- param :contentformat, Params::Enum["application/json", "text/x-wiki", "text/javascript", "text/css", "text/plain"]
30
- param :contentmodel, Params::Enum["MassMessageListContent", "wikitext", "javascript", "json", "css", "text", "SecurePoll", "flow-board", "Scribunto", "JsonSchema"]
29
+ param :contentformat, Params::Enum[:"application/json", :"text/x-wiki", :"text/javascript", :"text/css", :"text/plain"]
30
+ param :contentmodel, Params::Enum[:MassMessageListContent, :wikitext, :javascript, :json, :css, :text, :SecurePoll, :"flow-board", :Scribunto, :JsonSchema]
31
31
  param :token, Params::String
32
32
  param :captchaword, Params::String
33
33
  param :captchaid, Params::String
@@ -4,10 +4,10 @@ module MediaWiktory
4
4
  post!
5
5
  param :id, Params::Integer
6
6
  param :label, Params::String
7
- param :perm, Params::Enum["public", "private"]
7
+ param :perm, Params::Enum[:public, :private]
8
8
  param :description, Params::String
9
9
  param :image, Params::String
10
- param :mode, Params::Enum["update", "remove", "deletelist", "hidelist", "showlist", "flag", "approve"]
10
+ param :mode, Params::Enum[:update, :remove, :deletelist, :hidelist, :showlist, :flag, :approve]
11
11
  param :continue, Params::String
12
12
  param :titles, Params::List[Params::String]
13
13
  param :pageids, Params::List[Params::Integer]
@@ -5,9 +5,9 @@ module MediaWiktory
5
5
  param :title, Params::String
6
6
  param :pageid, Params::Integer
7
7
  param :continue, Params::String
8
- param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
9
- param :dir, Params::Enum["ascending", "descending"]
10
- param :filterredir, Params::Enum["all", "redirects", "nonredirects"]
8
+ param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
9
+ param :dir, Params::Enum[:ascending, :descending]
10
+ param :filterredir, Params::Enum[:all, :redirects, :nonredirects]
11
11
  param :limit, Params::IntegerOrMax
12
12
  end
13
13
  end
@@ -2,8 +2,8 @@ module MediaWiktory
2
2
  class Enlist < Action
3
3
  symbol :enlist
4
4
  post!
5
- param :subaction, Params::Enum["add", "remove"]
6
- param :role, Params::Enum["instructor", "online", "campus", "student"]
5
+ param :subaction, Params::Enum[:add, :remove]
6
+ param :role, Params::Enum[:instructor, :online, :campus, :student]
7
7
  param :username, Params::String
8
8
  param :userid, Params::Integer
9
9
  param :courseid, Params::Integer
@@ -4,7 +4,7 @@ module MediaWiktory
4
4
  param :title, Params::String
5
5
  param :text, Params::String
6
6
  param :revid, Params::Integer
7
- param :prop, Params::List[Params::Enum["wikitext", "categories", "properties", "volatile", "ttl", "modules", "jsconfigvars", "encodedjsconfigvars", "parsetree"]]
7
+ param :prop, Params::List[Params::Enum[:wikitext, :categories, :properties, :volatile, :ttl, :modules, :jsconfigvars, :encodedjsconfigvars, :parsetree]]
8
8
  param :includecomments, Params::Boolean
9
9
  param :generatexml, Params::Boolean
10
10
  end
@@ -4,7 +4,7 @@ module MediaWiktory
4
4
  prefix "el"
5
5
  param :limit, Params::IntegerOrMax
6
6
  param :offset, Params::Integer
7
- param :protocol, Params::Enum["bitcoin", "ftp", "ftps", "geo", "git", "gopher", "http", "https", "irc", "ircs", "magnet", "mailto", "mms", "news", "nntp", "redis", "sftp", "sip", "sips", "sms", "ssh", "svn", "tel", "telnet", "urn", "worldwind", "xmpp"]
7
+ param :protocol, Params::Enum[:bitcoin, :ftp, :ftps, :geo, :git, :gopher, :http, :https, :irc, :ircs, :magnet, :mailto, :mms, :news, :nntp, :redis, :sftp, :sip, :sips, :sms, :ssh, :svn, :tel, :telnet, :urn, :worldwind, :xmpp]
8
8
  param :query, Params::String
9
9
  param :expandurl, Params::Boolean
10
10
  end
@@ -7,7 +7,7 @@ module MediaWiktory
7
7
  param :limit, Params::IntegerOrMax
8
8
  param :intro, Params::Boolean
9
9
  param :plaintext, Params::Boolean
10
- param :sectionformat, Params::Enum["plain", "wiki", "raw"]
10
+ param :sectionformat, Params::Enum[:plain, :wiki, :raw]
11
11
  param :continue, Params::Integer
12
12
  param :variant, Params::String
13
13
  end
@@ -2,11 +2,11 @@ module MediaWiktory
2
2
  class Exturlusage < MWModule
3
3
  symbol :exturlusage
4
4
  prefix "eu"
5
- param :prop, Params::List[Params::Enum["ids", "title", "url"]]
5
+ param :prop, Params::List[Params::Enum[:ids, :title, :url]]
6
6
  param :offset, Params::Integer
7
- param :protocol, Params::Enum["bitcoin", "ftp", "ftps", "geo", "git", "gopher", "http", "https", "irc", "ircs", "magnet", "mailto", "mms", "news", "nntp", "redis", "sftp", "sip", "sips", "sms", "ssh", "svn", "tel", "telnet", "urn", "worldwind", "xmpp"]
7
+ param :protocol, Params::Enum[:bitcoin, :ftp, :ftps, :geo, :git, :gopher, :http, :https, :irc, :ircs, :magnet, :mailto, :mms, :news, :nntp, :redis, :sftp, :sip, :sips, :sms, :ssh, :svn, :tel, :telnet, :urn, :worldwind, :xmpp]
8
8
  param :query, Params::String
9
- param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
9
+ param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
10
10
  param :limit, Params::IntegerOrMax
11
11
  param :expandurl, Params::Boolean
12
12
  end
@@ -1,8 +1,8 @@
1
1
  module MediaWiktory
2
2
  class Featuredfeed < Action
3
3
  symbol :featuredfeed
4
- param :feedformat, Params::Enum["rss", "atom"]
5
- param :feed, Params::Enum["potd", "featured", "onthisday"]
4
+ param :feedformat, Params::Enum[:rss, :atom]
5
+ param :feed, Params::Enum[:potd, :featured, :onthisday]
6
6
  param :language, Params::String
7
7
  end
8
8
  end
@@ -1,12 +1,12 @@
1
1
  module MediaWiktory
2
2
  class Feedcontributions < Action
3
3
  symbol :feedcontributions
4
- param :feedformat, Params::Enum["rss", "atom"]
4
+ param :feedformat, Params::Enum[:rss, :atom]
5
5
  param :user, Params::String
6
- param :namespace, Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]
6
+ param :namespace, Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]
7
7
  param :year, Params::Integer
8
8
  param :month, Params::Integer
9
- param :tagfilter, Params::List[Params::Enum["Huggle", "WPCleaner", "huggle", "possiblevandalism", "ExternalLinkaddedtodisambiguationpage", "cannededitsummary", "newblankarticle", "extraneousmarkup", "de-userfying", "Possibleselfpromotioninuserspace", "signatureadded", "discretionarysanctionsalert", "imageaddedtotemplate", "nowikiadded", "Additionofinterwikilink", "Removalofallinterwikilinks", "userspacespam", "changingheightorweight", "possiblelibelorvandalism", "Endofpagetext", "non-Englishcontent", "Extraneousformatting", "revertinganti-vandalbot", "Possiblevandalism", "Removalofinterwikilink", "Rapidreverts", "addingemailaddress", "nonsensecharacters", "removalofcopyviotemplates", "badexternal", "largeunwikifiednewarticle", "removalofarticlesfordeletiontemplate", "Sectionblanking", "possiblecutandpastemove", "unusualredirect", "coi-spam", "autobiography", "repeatingcharacters", "categoriesremoved", "removalofCategory:LivingPeople", "veryshortnewarticle", "possiblelinkspam", "referencelistremoval", "imagetemplateremoval", "shouting", "talkpageblanking", "blanking", "removalofspeedydeletiontemplates", "self-renamingandbadusertalkmoves", "wikilove", "mobileappedit", "mobileedit", "mobilewebedit", "HHVM", "OAuthCID:115", "OAuthCID:142", "OAuthCID:144", "OAuthCID:150", "OAuthCID:151", "OAuthCID:154", "OAuthCID:159", "OAuthCID:194", "OAuthCID:206", "OAuthCID:21", "OAuthCID:211", "OAuthCID:212", "OAuthCID:218", "OAuthCID:236", "OAuthCID:239", "OAuthCID:251", "OAuthCID:252", "OAuthCID:259", "OAuthCID:261", "OAuthCID:263", "OAuthCID:278", "OAuthCID:285", "OAuthCID:297", "OAuthCID:306", "OAuthCID:60", "OAuthCID:64", "OAuthCID:67", "OAuthCID:76", "OAuthCID:85", "OAuthCID:99", "visualeditor", "visualeditor-needcheck", "visualeditor-switched", "contenttranslation"]]
9
+ param :tagfilter, Params::List[Params::Enum[:Huggle, :WPCleaner, :huggle, :possiblevandalism, :ExternalLinkaddedtodisambiguationpage, :cannededitsummary, :newblankarticle, :extraneousmarkup, :"de-userfying", :Possibleselfpromotioninuserspace, :signatureadded, :discretionarysanctionsalert, :imageaddedtotemplate, :nowikiadded, :Additionofinterwikilink, :Removalofallinterwikilinks, :userspacespam, :changingheightorweight, :possiblelibelorvandalism, :Endofpagetext, :"non-Englishcontent", :Extraneousformatting, :"revertinganti-vandalbot", :Possiblevandalism, :Removalofinterwikilink, :Rapidreverts, :addingemailaddress, :nonsensecharacters, :removalofcopyviotemplates, :badexternal, :largeunwikifiednewarticle, :removalofarticlesfordeletiontemplate, :Sectionblanking, :possiblecutandpastemove, :unusualredirect, :"coi-spam", :autobiography, :repeatingcharacters, :categoriesremoved, :"removalofCategory:LivingPeople", :veryshortnewarticle, :possiblelinkspam, :referencelistremoval, :imagetemplateremoval, :shouting, :talkpageblanking, :blanking, :removalofspeedydeletiontemplates, :"self-renamingandbadusertalkmoves", :wikilove, :mobileappedit, :mobileedit, :mobilewebedit, :HHVM, :"OAuthCID:115", :"OAuthCID:142", :"OAuthCID:144", :"OAuthCID:150", :"OAuthCID:151", :"OAuthCID:154", :"OAuthCID:159", :"OAuthCID:194", :"OAuthCID:206", :"OAuthCID:21", :"OAuthCID:211", :"OAuthCID:212", :"OAuthCID:218", :"OAuthCID:236", :"OAuthCID:239", :"OAuthCID:251", :"OAuthCID:252", :"OAuthCID:259", :"OAuthCID:261", :"OAuthCID:263", :"OAuthCID:278", :"OAuthCID:285", :"OAuthCID:297", :"OAuthCID:306", :"OAuthCID:60", :"OAuthCID:64", :"OAuthCID:67", :"OAuthCID:76", :"OAuthCID:85", :"OAuthCID:99", :visualeditor, :"visualeditor-needcheck", :"visualeditor-switched", :contenttranslation]]
10
10
  param :deletedonly, Params::Boolean
11
11
  param :toponly, Params::Boolean
12
12
  param :newonly, Params::Boolean
@@ -1,8 +1,8 @@
1
1
  module MediaWiktory
2
2
  class Feedrecentchanges < Action
3
3
  symbol :feedrecentchanges
4
- param :feedformat, Params::Enum["rss", "atom"]
5
- param :namespace, Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]
4
+ param :feedformat, Params::Enum[:rss, :atom]
5
+ param :namespace, Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]
6
6
  param :invert, Params::Boolean
7
7
  param :associated, Params::Boolean
8
8
  param :days, Params::Integer
@@ -1,14 +1,14 @@
1
1
  module MediaWiktory
2
2
  class Feedwatchlist < Action
3
3
  symbol :feedwatchlist
4
- param :feedformat, Params::Enum["rss", "atom"]
4
+ param :feedformat, Params::Enum[:rss, :atom]
5
5
  param :hours, Params::Integer
6
6
  param :linktosections, Params::Boolean
7
7
  param :allrev, Params::Boolean
8
8
  param :wlowner, Params::String
9
9
  param :wltoken, Params::String
10
- param :wlshow, Params::List[Params::Enum["minor", "!minor", "bot", "!bot", "anon", "!anon", "patrolled", "!patrolled", "unread", "!unread"]]
11
- param :wltype, Params::List[Params::Enum["edit", "external", "new", "log"]]
10
+ param :wlshow, Params::List[Params::Enum[:minor, :"!minor", :bot, :"!bot", :anon, :"!anon", :patrolled, :"!patrolled", :unread, :"!unread"]]
11
+ param :wltype, Params::List[Params::Enum[:edit, :external, :new, :log]]
12
12
  param :wlexcludeuser, Params::String
13
13
  end
14
14
  end
@@ -5,10 +5,10 @@ module MediaWiktory
5
5
  param :from, Params::String
6
6
  param :to, Params::String
7
7
  param :prefix, Params::String
8
- param :dir, Params::Enum["ascending", "descending"]
8
+ param :dir, Params::Enum[:ascending, :descending]
9
9
  param :sha1, Params::String
10
10
  param :sha1base36, Params::String
11
- param :prop, Params::List[Params::Enum["sha1", "timestamp", "user", "size", "dimensions", "description", "parseddescription", "mime", "mediatype", "metadata", "bitdepth", "archivename"]]
11
+ param :prop, Params::List[Params::Enum[:sha1, :timestamp, :user, :size, :dimensions, :description, :parseddescription, :mime, :mediatype, :metadata, :bitdepth, :archivename]]
12
12
  param :limit, Params::IntegerOrMax
13
13
  param :continue, Params::String
14
14
  end
@@ -2,6 +2,6 @@ module MediaWiktory
2
2
  class Filerepoinfo < MWModule
3
3
  symbol :filerepoinfo
4
4
  prefix "fri"
5
- param :prop, Params::List[Params::Enum["apiurl", "name", "displayname", "rooturl", "local"]]
5
+ param :prop, Params::List[Params::Enum[:apiurl, :name, :displayname, :rooturl, :local]]
6
6
  end
7
7
  end
@@ -2,9 +2,9 @@ module MediaWiktory
2
2
  class Fileusage < MWModule
3
3
  symbol :fileusage
4
4
  prefix "fu"
5
- param :prop, Params::List[Params::Enum["pageid", "title", "redirect"]]
6
- param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
7
- param :show, Params::List[Params::Enum["redirect", "!redirect"]]
5
+ param :prop, Params::List[Params::Enum[:pageid, :title, :redirect]]
6
+ param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
7
+ param :show, Params::List[Params::Enum[:redirect, :"!redirect"]]
8
8
  param :limit, Params::IntegerOrMax
9
9
  param :continue, Params::String
10
10
  end
@@ -1,8 +1,8 @@
1
1
  module MediaWiktory
2
2
  class FlowParsoidUtils < Action
3
3
  symbol :"flow-parsoid-utils"
4
- param :from, Params::Enum["html", "wikitext"]
5
- param :to, Params::Enum["html", "wikitext"]
4
+ param :from, Params::Enum[:html, :wikitext]
5
+ param :to, Params::Enum[:html, :wikitext]
6
6
  param :content, Params::String
7
7
  param :title, Params::String
8
8
  param :pageid, Params::Integer