mediawiktory 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dokaz +1 -0
- data/.rubocop_todo.yml +16 -0
- data/.yardopts +2 -0
- data/CHANGELOG.md +10 -4
- data/CONTRIBUTING.md +6 -9
- data/README.md +153 -72
- data/bin/mediawiktory-gen +35 -0
- data/lib/media_wiktory.rb +2 -0
- data/lib/mediawiktory.rb +13 -14
- data/lib/mediawiktory/generator.rb +107 -0
- data/lib/mediawiktory/generator/api.rb +75 -0
- data/lib/mediawiktory/generator/module.rb +105 -0
- data/lib/mediawiktory/generator/param.rb +271 -0
- data/lib/mediawiktory/generator/renderable.rb +59 -0
- data/lib/mediawiktory/generator/templates/_action_method.erb +20 -0
- data/lib/mediawiktory/generator/templates/_module_in_param_docs.erb +2 -0
- data/lib/mediawiktory/generator/templates/_param_impl_boolean.erb +1 -0
- data/lib/mediawiktory/generator/templates/_param_impl_enum.erb +1 -0
- data/lib/mediawiktory/generator/templates/_param_impl_enum_of_modules.erb +1 -0
- data/lib/mediawiktory/generator/templates/_param_impl_string.erb +1 -0
- data/lib/mediawiktory/generator/templates/_param_impl_timestamp.erb +1 -0
- data/lib/mediawiktory/generator/templates/_param_method.erb +14 -0
- data/lib/mediawiktory/generator/templates/action.rb.erb +204 -0
- data/lib/mediawiktory/generator/templates/action_class.rb.erb +30 -0
- data/lib/mediawiktory/generator/templates/actions.rb.erb +31 -0
- data/lib/mediawiktory/generator/templates/api.rb.erb +65 -0
- data/lib/mediawiktory/{client.rb → generator/templates/client.rb.erb} +24 -10
- data/lib/mediawiktory/generator/templates/module_class.rb.erb +22 -0
- data/lib/mediawiktory/generator/templates/response.rb.erb +122 -0
- data/lib/mediawiktory/version.rb +4 -2
- data/lib/mediawiktory/wikipedia/actions.rb +2296 -0
- data/lib/mediawiktory/wikipedia/actions/abusefiltercheckmatch.rb +55 -0
- data/lib/mediawiktory/wikipedia/actions/abusefilterchecksyntax.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/abusefilterevalexpression.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/abusefilterunblockautopromote.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/addstudents.rb +52 -0
- data/lib/mediawiktory/wikipedia/actions/antispoof.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/base.rb +351 -0
- data/lib/mediawiktory/wikipedia/actions/block.rb +132 -0
- data/lib/mediawiktory/wikipedia/actions/bouncehandler.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/categorytree.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/centralauthtoken.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/centralnoticechoicedata.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/centralnoticequerycampaign.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/changeauthenticationdata.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/checktoken.rb +52 -0
- data/lib/mediawiktory/wikipedia/actions/cirrus-config-dump.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/cirrus-mapping-dump.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/cirrus-settings-dump.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/clearhasmsg.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/clientlogin.rb +86 -0
- data/lib/mediawiktory/wikipedia/actions/compare.rb +71 -0
- data/lib/mediawiktory/wikipedia/actions/createaccount.rb +86 -0
- data/lib/mediawiktory/wikipedia/actions/cspreport.rb +38 -0
- data/lib/mediawiktory/wikipedia/actions/cxconfiguration.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/cxdelete.rb +55 -0
- data/lib/mediawiktory/wikipedia/actions/cxpublish.rb +95 -0
- data/lib/mediawiktory/wikipedia/actions/cxsave.rb +87 -0
- data/lib/mediawiktory/wikipedia/actions/cxsuggestionlist.rb +81 -0
- data/lib/mediawiktory/wikipedia/actions/cxtoken.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/delete.rb +103 -0
- data/lib/mediawiktory/wikipedia/actions/deleteeducation.rb +65 -0
- data/lib/mediawiktory/wikipedia/actions/deleteglobalaccount.rb +47 -0
- data/lib/mediawiktory/wikipedia/actions/echomarkread.rb +77 -0
- data/lib/mediawiktory/wikipedia/actions/echomarkseen.rb +57 -0
- data/lib/mediawiktory/wikipedia/actions/edit.rb +266 -0
- data/lib/mediawiktory/wikipedia/actions/editmassmessagelist.rb +65 -0
- data/lib/mediawiktory/wikipedia/actions/emailuser.rb +62 -0
- data/lib/mediawiktory/wikipedia/actions/enlist.rb +89 -0
- data/lib/mediawiktory/wikipedia/actions/expandtemplates.rb +129 -0
- data/lib/mediawiktory/wikipedia/actions/fancycaptchareload.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/featuredfeed.rb +57 -0
- data/lib/mediawiktory/wikipedia/actions/feedcontributions.rb +121 -0
- data/lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb +159 -0
- data/lib/mediawiktory/wikipedia/actions/feedwatchlist.rb +108 -0
- data/lib/mediawiktory/wikipedia/actions/filerevert.rb +55 -0
- data/lib/mediawiktory/wikipedia/actions/flagconfig.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/globalblock.rb +76 -0
- data/lib/mediawiktory/wikipedia/actions/globaluserrights.rb +94 -0
- data/lib/mediawiktory/wikipedia/actions/graph.rb +47 -0
- data/lib/mediawiktory/wikipedia/actions/help.rb +64 -0
- data/lib/mediawiktory/wikipedia/actions/imagerotate.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/import.rb +116 -0
- data/lib/mediawiktory/wikipedia/actions/jsonconfig.rb +60 -0
- data/lib/mediawiktory/wikipedia/actions/jsondata.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/languagesearch.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/linkaccount.rb +79 -0
- data/lib/mediawiktory/wikipedia/actions/liststudents.rb +63 -0
- data/lib/mediawiktory/wikipedia/actions/login.rb +55 -0
- data/lib/mediawiktory/wikipedia/actions/logout.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/managetags.rb +80 -0
- data/lib/mediawiktory/wikipedia/actions/massmessage.rb +55 -0
- data/lib/mediawiktory/wikipedia/actions/mergehistory.rb +79 -0
- data/lib/mediawiktory/wikipedia/actions/mobileview.rb +170 -0
- data/lib/mediawiktory/wikipedia/actions/move.rb +131 -0
- data/lib/mediawiktory/wikipedia/actions/oathvalidate.rb +47 -0
- data/lib/mediawiktory/wikipedia/actions/opensearch.rb +105 -0
- data/lib/mediawiktory/wikipedia/actions/options.rb +80 -0
- data/lib/mediawiktory/wikipedia/actions/pagetriageaction.rb +67 -0
- data/lib/mediawiktory/wikipedia/actions/pagetriagelist.rb +142 -0
- data/lib/mediawiktory/wikipedia/actions/pagetriagestats.rb +59 -0
- data/lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb +83 -0
- data/lib/mediawiktory/wikipedia/actions/pagetriagetemplate.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/paraminfo.rb +91 -0
- data/lib/mediawiktory/wikipedia/actions/parse.rb +286 -0
- data/lib/mediawiktory/wikipedia/actions/parsoid-batch.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/patrol.rb +60 -0
- data/lib/mediawiktory/wikipedia/actions/protect.rb +121 -0
- data/lib/mediawiktory/wikipedia/actions/purge.rb +155 -0
- data/lib/mediawiktory/wikipedia/actions/query.rb +325 -0
- data/lib/mediawiktory/wikipedia/actions/refresheducation.rb +57 -0
- data/lib/mediawiktory/wikipedia/actions/removeauthenticationdata.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/resetpassword.rb +47 -0
- data/lib/mediawiktory/wikipedia/actions/review.rb +54 -0
- data/lib/mediawiktory/wikipedia/actions/reviewactivity.rb +60 -0
- data/lib/mediawiktory/wikipedia/actions/revisiondelete.rb +125 -0
- data/lib/mediawiktory/wikipedia/actions/rollback.rb +96 -0
- data/lib/mediawiktory/wikipedia/actions/rsd.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/sanitize-mapdata.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/scribunto-console.rb +62 -0
- data/lib/mediawiktory/wikipedia/actions/setglobalaccountstatus.rb +81 -0
- data/lib/mediawiktory/wikipedia/actions/setnotificationtimestamp.rb +180 -0
- data/lib/mediawiktory/wikipedia/actions/setpagelanguage.rb +81 -0
- data/lib/mediawiktory/wikipedia/actions/shortenurl.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/sitematrix.rb +91 -0
- data/lib/mediawiktory/wikipedia/actions/spamblacklist.rb +36 -0
- data/lib/mediawiktory/wikipedia/actions/stabilize.rb +76 -0
- data/lib/mediawiktory/wikipedia/actions/stashedit.rb +113 -0
- data/lib/mediawiktory/wikipedia/actions/strikevote.rb +60 -0
- data/lib/mediawiktory/wikipedia/actions/tag.rb +117 -0
- data/lib/mediawiktory/wikipedia/actions/templatedata.rb +148 -0
- data/lib/mediawiktory/wikipedia/actions/thank.rb +47 -0
- data/lib/mediawiktory/wikipedia/actions/titleblacklist.rb +51 -0
- data/lib/mediawiktory/wikipedia/actions/tokens.rb +36 -0
- data/lib/mediawiktory/wikipedia/actions/transcodereset.rb +47 -0
- data/lib/mediawiktory/wikipedia/actions/ulslocalization.rb +31 -0
- data/lib/mediawiktory/wikipedia/actions/unblock.rb +76 -0
- data/lib/mediawiktory/wikipedia/actions/undelete.rb +99 -0
- data/lib/mediawiktory/wikipedia/actions/unlinkaccount.rb +39 -0
- data/lib/mediawiktory/wikipedia/actions/upload.rb +172 -0
- data/lib/mediawiktory/wikipedia/actions/userrights.rb +107 -0
- data/lib/mediawiktory/wikipedia/actions/validatepassword.rb +55 -0
- data/lib/mediawiktory/wikipedia/actions/visualeditor.rb +96 -0
- data/lib/mediawiktory/wikipedia/actions/visualeditoredit.rb +164 -0
- data/lib/mediawiktory/wikipedia/actions/watch.rb +164 -0
- data/lib/mediawiktory/wikipedia/actions/webapp-manifest.rb +25 -0
- data/lib/mediawiktory/wikipedia/actions/wikilove.rb +79 -0
- data/lib/mediawiktory/wikipedia/actions/zeroconfig.rb +44 -0
- data/lib/mediawiktory/wikipedia/api.rb +80 -0
- data/lib/mediawiktory/wikipedia/client.rb +61 -0
- data/lib/mediawiktory/wikipedia/modules/abusefilters.rb +85 -0
- data/lib/mediawiktory/wikipedia/modules/abuselog.rb +101 -0
- data/lib/mediawiktory/wikipedia/modules/allcategories.rb +104 -0
- data/lib/mediawiktory/wikipedia/modules/alldeletedrevisions.rb +213 -0
- data/lib/mediawiktory/wikipedia/modules/allfileusages.rb +95 -0
- data/lib/mediawiktory/wikipedia/modules/allimages.rb +183 -0
- data/lib/mediawiktory/wikipedia/modules/alllinks.rb +108 -0
- data/lib/mediawiktory/wikipedia/modules/allmessages.rb +143 -0
- data/lib/mediawiktory/wikipedia/modules/allpages.rb +182 -0
- data/lib/mediawiktory/wikipedia/modules/allredirects.rb +108 -0
- data/lib/mediawiktory/wikipedia/modules/allrevisions.rb +181 -0
- data/lib/mediawiktory/wikipedia/modules/alltransclusions.rb +108 -0
- data/lib/mediawiktory/wikipedia/modules/allusers.rb +141 -0
- data/lib/mediawiktory/wikipedia/modules/authmanagerinfo.rb +63 -0
- data/lib/mediawiktory/wikipedia/modules/babel.rb +30 -0
- data/lib/mediawiktory/wikipedia/modules/backlinks.rb +100 -0
- data/lib/mediawiktory/wikipedia/modules/betafeatures.rb +30 -0
- data/lib/mediawiktory/wikipedia/modules/blocks.rb +127 -0
- data/lib/mediawiktory/wikipedia/modules/categories.rb +90 -0
- data/lib/mediawiktory/wikipedia/modules/categoryinfo.rb +30 -0
- data/lib/mediawiktory/wikipedia/modules/categorymembers.rb +183 -0
- data/lib/mediawiktory/wikipedia/modules/centralnoticelogs.rb +70 -0
- data/lib/mediawiktory/wikipedia/modules/checkuser.rb +83 -0
- data/lib/mediawiktory/wikipedia/modules/checkuserlog.rb +83 -0
- data/lib/mediawiktory/wikipedia/modules/contenttranslation.rb +83 -0
- data/lib/mediawiktory/wikipedia/modules/contenttranslationcorpora.rb +50 -0
- data/lib/mediawiktory/wikipedia/modules/contenttranslationlangtrend.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/contenttranslationstats.rb +22 -0
- data/lib/mediawiktory/wikipedia/modules/contenttranslationsuggestions.rb +70 -0
- data/lib/mediawiktory/wikipedia/modules/contributors.rb +90 -0
- data/lib/mediawiktory/wikipedia/modules/coordinates.rb +80 -0
- data/lib/mediawiktory/wikipedia/modules/cxpublishedtranslations.rb +54 -0
- data/lib/mediawiktory/wikipedia/modules/cxtranslatorstats.rb +30 -0
- data/lib/mediawiktory/wikipedia/modules/deletedrevisions.rb +169 -0
- data/lib/mediawiktory/wikipedia/modules/deletedrevs.rb +148 -0
- data/lib/mediawiktory/wikipedia/modules/duplicatefiles.rb +58 -0
- data/lib/mediawiktory/wikipedia/modules/embeddedin.rb +93 -0
- data/lib/mediawiktory/wikipedia/modules/extlinks.rb +66 -0
- data/lib/mediawiktory/wikipedia/modules/extracts.rb +81 -0
- data/lib/mediawiktory/wikipedia/modules/exturlusage.rb +92 -0
- data/lib/mediawiktory/wikipedia/modules/featureusage.rb +59 -0
- data/lib/mediawiktory/wikipedia/modules/filearchive.rb +104 -0
- data/lib/mediawiktory/wikipedia/modules/filerepoinfo.rb +35 -0
- data/lib/mediawiktory/wikipedia/modules/fileusage.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/flagged.rb +22 -0
- data/lib/mediawiktory/wikipedia/modules/g-allcategories.rb +91 -0
- data/lib/mediawiktory/wikipedia/modules/g-alldeletedrevisions.rb +200 -0
- data/lib/mediawiktory/wikipedia/modules/g-allfileusages.rb +82 -0
- data/lib/mediawiktory/wikipedia/modules/g-allimages.rb +170 -0
- data/lib/mediawiktory/wikipedia/modules/g-alllinks.rb +95 -0
- data/lib/mediawiktory/wikipedia/modules/g-allpages.rb +182 -0
- data/lib/mediawiktory/wikipedia/modules/g-allredirects.rb +95 -0
- data/lib/mediawiktory/wikipedia/modules/g-allrevisions.rb +168 -0
- data/lib/mediawiktory/wikipedia/modules/g-alltransclusions.rb +95 -0
- data/lib/mediawiktory/wikipedia/modules/g-backlinks.rb +100 -0
- data/lib/mediawiktory/wikipedia/modules/g-categories.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/g-categorymembers.rb +170 -0
- data/lib/mediawiktory/wikipedia/modules/g-contenttranslation.rb +83 -0
- data/lib/mediawiktory/wikipedia/modules/g-contenttranslationsuggestions.rb +70 -0
- data/lib/mediawiktory/wikipedia/modules/g-deletedrevisions.rb +156 -0
- data/lib/mediawiktory/wikipedia/modules/g-duplicatefiles.rb +58 -0
- data/lib/mediawiktory/wikipedia/modules/g-embeddedin.rb +93 -0
- data/lib/mediawiktory/wikipedia/modules/g-exturlusage.rb +79 -0
- data/lib/mediawiktory/wikipedia/modules/g-fileusage.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/g-geosearch.rb +116 -0
- data/lib/mediawiktory/wikipedia/modules/g-gettingstartedgetpages.rb +46 -0
- data/lib/mediawiktory/wikipedia/modules/g-images.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/g-imageusage.rb +100 -0
- data/lib/mediawiktory/wikipedia/modules/g-iwbacklinks.rb +67 -0
- data/lib/mediawiktory/wikipedia/modules/g-langbacklinks.rb +67 -0
- data/lib/mediawiktory/wikipedia/modules/g-links.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/g-linkshere.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/g-mostviewed.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/g-oldreviewedpages.rb +114 -0
- data/lib/mediawiktory/wikipedia/modules/g-pageswithprop.rb +59 -0
- data/lib/mediawiktory/wikipedia/modules/g-prefixsearch.rb +72 -0
- data/lib/mediawiktory/wikipedia/modules/g-projectpages.rb +58 -0
- data/lib/mediawiktory/wikipedia/modules/g-protectedtitles.rb +93 -0
- data/lib/mediawiktory/wikipedia/modules/g-querypage.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/g-random.rb +71 -0
- data/lib/mediawiktory/wikipedia/modules/g-recentchanges.rb +157 -0
- data/lib/mediawiktory/wikipedia/modules/g-redirects.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/g-revisions.rb +185 -0
- data/lib/mediawiktory/wikipedia/modules/g-search.rb +112 -0
- data/lib/mediawiktory/wikipedia/modules/g-templates.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/g-transcludedin.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/g-watchlist.rb +145 -0
- data/lib/mediawiktory/wikipedia/modules/g-watchlistraw.rb +109 -0
- data/lib/mediawiktory/wikipedia/modules/g-wblistentityusage.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/gadgetcategories.rb +48 -0
- data/lib/mediawiktory/wikipedia/modules/gadgets.rb +75 -0
- data/lib/mediawiktory/wikipedia/modules/geosearch.rb +129 -0
- data/lib/mediawiktory/wikipedia/modules/gettingstartedgetpages.rb +46 -0
- data/lib/mediawiktory/wikipedia/modules/globalallusers.rb +106 -0
- data/lib/mediawiktory/wikipedia/modules/globalblocks.rb +106 -0
- data/lib/mediawiktory/wikipedia/modules/globalgroups.rb +35 -0
- data/lib/mediawiktory/wikipedia/modules/globalusage.rb +58 -0
- data/lib/mediawiktory/wikipedia/modules/globaluserinfo.rb +43 -0
- data/lib/mediawiktory/wikipedia/modules/imageinfo.rb +142 -0
- data/lib/mediawiktory/wikipedia/modules/images.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/imageusage.rb +100 -0
- data/lib/mediawiktory/wikipedia/modules/info.rb +69 -0
- data/lib/mediawiktory/wikipedia/modules/iwbacklinks.rb +80 -0
- data/lib/mediawiktory/wikipedia/modules/iwlinks.rb +87 -0
- data/lib/mediawiktory/wikipedia/modules/json.rb +57 -0
- data/lib/mediawiktory/wikipedia/modules/jsonfm.rb +64 -0
- data/lib/mediawiktory/wikipedia/modules/langbacklinks.rb +80 -0
- data/lib/mediawiktory/wikipedia/modules/langlinks.rb +95 -0
- data/lib/mediawiktory/wikipedia/modules/links.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/linkshere.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/logevents.rb +151 -0
- data/lib/mediawiktory/wikipedia/modules/mapdata.rb +46 -0
- data/lib/mediawiktory/wikipedia/modules/mmsites.rb +30 -0
- data/lib/mediawiktory/wikipedia/modules/mostviewed.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/mystashedfiles.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/none.rb +22 -0
- data/lib/mediawiktory/wikipedia/modules/notifications.rb +174 -0
- data/lib/mediawiktory/wikipedia/modules/oath.rb +30 -0
- data/lib/mediawiktory/wikipedia/modules/oldreviewedpages.rb +114 -0
- data/lib/mediawiktory/wikipedia/modules/ores.rb +22 -0
- data/lib/mediawiktory/wikipedia/modules/pageassessments.rb +45 -0
- data/lib/mediawiktory/wikipedia/modules/pageimages.rb +72 -0
- data/lib/mediawiktory/wikipedia/modules/pagepropnames.rb +38 -0
- data/lib/mediawiktory/wikipedia/modules/pageprops.rb +43 -0
- data/lib/mediawiktory/wikipedia/modules/pageswithprop.rb +72 -0
- data/lib/mediawiktory/wikipedia/modules/pageterms.rb +43 -0
- data/lib/mediawiktory/wikipedia/modules/pageviews.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/php.rb +35 -0
- data/lib/mediawiktory/wikipedia/modules/phpfm.rb +42 -0
- data/lib/mediawiktory/wikipedia/modules/prefixsearch.rb +72 -0
- data/lib/mediawiktory/wikipedia/modules/projectpages.rb +58 -0
- data/lib/mediawiktory/wikipedia/modules/projects.rb +29 -0
- data/lib/mediawiktory/wikipedia/modules/protectedtitles.rb +106 -0
- data/lib/mediawiktory/wikipedia/modules/querypage.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/random.rb +71 -0
- data/lib/mediawiktory/wikipedia/modules/rawfm.rb +29 -0
- data/lib/mediawiktory/wikipedia/modules/recentchanges.rb +170 -0
- data/lib/mediawiktory/wikipedia/modules/redirects.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/references.rb +30 -0
- data/lib/mediawiktory/wikipedia/modules/revisions.rb +198 -0
- data/lib/mediawiktory/wikipedia/modules/search.rb +125 -0
- data/lib/mediawiktory/wikipedia/modules/siteinfo.rb +70 -0
- data/lib/mediawiktory/wikipedia/modules/siteviews.rb +43 -0
- data/lib/mediawiktory/wikipedia/modules/stashimageinfo.rb +85 -0
- data/lib/mediawiktory/wikipedia/modules/tags.rb +51 -0
- data/lib/mediawiktory/wikipedia/modules/templates.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/tokens.rb +35 -0
- data/lib/mediawiktory/wikipedia/modules/transcludedin.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/transcodestatus.rb +22 -0
- data/lib/mediawiktory/wikipedia/modules/unreadnotificationpages.rb +50 -0
- data/lib/mediawiktory/wikipedia/modules/usercontribs.rb +155 -0
- data/lib/mediawiktory/wikipedia/modules/userinfo.rb +43 -0
- data/lib/mediawiktory/wikipedia/modules/users.rb +82 -0
- data/lib/mediawiktory/wikipedia/modules/videoinfo.rb +143 -0
- data/lib/mediawiktory/wikipedia/modules/watchlist.rb +158 -0
- data/lib/mediawiktory/wikipedia/modules/watchlistraw.rb +122 -0
- data/lib/mediawiktory/wikipedia/modules/wbentityusage.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/wblistentityusage.rb +77 -0
- data/lib/mediawiktory/wikipedia/modules/wikibase.rb +35 -0
- data/lib/mediawiktory/wikipedia/modules/wikisets.rb +58 -0
- data/lib/mediawiktory/wikipedia/modules/xml.rb +37 -0
- data/lib/mediawiktory/wikipedia/modules/xmlfm.rb +44 -0
- data/lib/mediawiktory/wikipedia/response.rb +122 -0
- data/lib/nokogiri/more.rb +12 -12
- data/mediawiktory.gemspec +4 -0
- metadata +350 -257
- data/bin/mediawiktory +0 -13
- data/doc/mediawiki_api_types.md +0 -14
- data/examples/query.rb +0 -15
- data/examples/query_generator.rb +0 -15
- data/lib/faraday/naive_cache.rb +0 -40
- data/lib/mediawiktory/action.rb +0 -61
- data/lib/mediawiktory/generated/abusefiltercheckmatch.rb +0 -9
- data/lib/mediawiktory/generated/abusefilterchecksyntax.rb +0 -6
- data/lib/mediawiktory/generated/abusefilterevalexpression.rb +0 -6
- data/lib/mediawiktory/generated/abusefilters.rb +0 -12
- data/lib/mediawiktory/generated/abusefilterunblockautopromote.rb +0 -8
- data/lib/mediawiktory/generated/abuselog.rb +0 -14
- data/lib/mediawiktory/generated/actions_mixin.rb +0 -352
- data/lib/mediawiktory/generated/addstudents.rb +0 -9
- data/lib/mediawiktory/generated/allcategories.rb +0 -15
- data/lib/mediawiktory/generated/alldeletedrevisions.rb +0 -28
- data/lib/mediawiktory/generated/allfileusages.rb +0 -14
- data/lib/mediawiktory/generated/allimages.rb +0 -23
- data/lib/mediawiktory/generated/alllinks.rb +0 -15
- data/lib/mediawiktory/generated/allmessages.rb +0 -19
- data/lib/mediawiktory/generated/allpages.rb +0 -21
- data/lib/mediawiktory/generated/allredirects.rb +0 -15
- data/lib/mediawiktory/generated/allrevisions.rb +0 -24
- data/lib/mediawiktory/generated/alltransclusions.rb +0 -15
- data/lib/mediawiktory/generated/allusers.rb +0 -18
- data/lib/mediawiktory/generated/antispoof.rb +0 -6
- data/lib/mediawiktory/generated/authmanagerinfo.rb +0 -10
- data/lib/mediawiktory/generated/babel.rb +0 -7
- data/lib/mediawiktory/generated/backlinks.rb +0 -14
- data/lib/mediawiktory/generated/betafeatures.rb +0 -7
- data/lib/mediawiktory/generated/block.rb +0 -20
- data/lib/mediawiktory/generated/blocks.rb +0 -16
- data/lib/mediawiktory/generated/bouncehandler.rb +0 -7
- data/lib/mediawiktory/generated/categories.rb +0 -12
- data/lib/mediawiktory/generated/categoryinfo.rb +0 -7
- data/lib/mediawiktory/generated/categorymembers.rb +0 -23
- data/lib/mediawiktory/generated/categorytree.rb +0 -7
- data/lib/mediawiktory/generated/centralauthtoken.rb +0 -5
- data/lib/mediawiktory/generated/centralnoticechoicedata.rb +0 -7
- data/lib/mediawiktory/generated/centralnoticelogs.rb +0 -11
- data/lib/mediawiktory/generated/centralnoticequerycampaign.rb +0 -6
- data/lib/mediawiktory/generated/changeauthenticationdata.rb +0 -10
- data/lib/mediawiktory/generated/checktoken.rb +0 -8
- data/lib/mediawiktory/generated/checkuser.rb +0 -14
- data/lib/mediawiktory/generated/checkuserlog.rb +0 -13
- data/lib/mediawiktory/generated/cirrus-config-dump.rb +0 -5
- data/lib/mediawiktory/generated/cirrus-mapping-dump.rb +0 -5
- data/lib/mediawiktory/generated/cirrus-settings-dump.rb +0 -5
- data/lib/mediawiktory/generated/clearhasmsg.rb +0 -6
- data/lib/mediawiktory/generated/clientlogin.rb +0 -15
- data/lib/mediawiktory/generated/compare.rb +0 -11
- data/lib/mediawiktory/generated/contenttranslation.rb +0 -12
- data/lib/mediawiktory/generated/contenttranslationcorpora.rb +0 -8
- data/lib/mediawiktory/generated/contenttranslationlangtrend.rb +0 -8
- data/lib/mediawiktory/generated/contenttranslationstats.rb +0 -5
- data/lib/mediawiktory/generated/contenttranslationsuggestions.rb +0 -11
- data/lib/mediawiktory/generated/contributors.rb +0 -12
- data/lib/mediawiktory/generated/coordinates.rb +0 -12
- data/lib/mediawiktory/generated/createaccount.rb +0 -15
- data/lib/mediawiktory/generated/cspreport.rb +0 -8
- data/lib/mediawiktory/generated/cxconfiguration.rb +0 -7
- data/lib/mediawiktory/generated/cxdelete.rb +0 -10
- data/lib/mediawiktory/generated/cxpublish.rb +0 -15
- data/lib/mediawiktory/generated/cxpublishedtranslations.rb +0 -9
- data/lib/mediawiktory/generated/cxsave.rb +0 -14
- data/lib/mediawiktory/generated/cxsuggestionlist.rb +0 -12
- data/lib/mediawiktory/generated/cxtoken.rb +0 -7
- data/lib/mediawiktory/generated/cxtranslatorstats.rb +0 -6
- data/lib/mediawiktory/generated/delete.rb +0 -15
- data/lib/mediawiktory/generated/deletedrevisions.rb +0 -23
- data/lib/mediawiktory/generated/deletedrevs.rb +0 -20
- data/lib/mediawiktory/generated/deleteeducation.rb +0 -10
- data/lib/mediawiktory/generated/deleteglobalaccount.rb +0 -9
- data/lib/mediawiktory/generated/duplicatefiles.rb +0 -10
- data/lib/mediawiktory/generated/echomarkread.rb +0 -11
- data/lib/mediawiktory/generated/echomarkseen.rb +0 -9
- data/lib/mediawiktory/generated/edit.rb +0 -35
- data/lib/mediawiktory/generated/editmassmessagelist.rb +0 -10
- data/lib/mediawiktory/generated/emailuser.rb +0 -11
- data/lib/mediawiktory/generated/embeddedin.rb +0 -13
- data/lib/mediawiktory/generated/enlist.rb +0 -13
- data/lib/mediawiktory/generated/expandtemplates.rb +0 -16
- data/lib/mediawiktory/generated/extlinks.rb +0 -11
- data/lib/mediawiktory/generated/extracts.rb +0 -13
- data/lib/mediawiktory/generated/exturlusage.rb +0 -13
- data/lib/mediawiktory/generated/fancycaptchareload.rb +0 -5
- data/lib/mediawiktory/generated/featuredfeed.rb +0 -8
- data/lib/mediawiktory/generated/featureusage.rb +0 -10
- data/lib/mediawiktory/generated/feedcontributions.rb +0 -16
- data/lib/mediawiktory/generated/feedrecentchanges.rb +0 -22
- data/lib/mediawiktory/generated/feedwatchlist.rb +0 -14
- data/lib/mediawiktory/generated/filearchive.rb +0 -15
- data/lib/mediawiktory/generated/filerepoinfo.rb +0 -7
- data/lib/mediawiktory/generated/filerevert.rb +0 -10
- data/lib/mediawiktory/generated/fileusage.rb +0 -11
- data/lib/mediawiktory/generated/flagconfig.rb +0 -5
- data/lib/mediawiktory/generated/flagged.rb +0 -5
- data/lib/mediawiktory/generated/gadgetcategories.rb +0 -8
- data/lib/mediawiktory/generated/gadgets.rb +0 -11
- data/lib/mediawiktory/generated/geosearch.rb +0 -17
- data/lib/mediawiktory/generated/gettingstartedgetpages.rb +0 -9
- data/lib/mediawiktory/generated/globalallusers.rb +0 -14
- data/lib/mediawiktory/generated/globalblock.rb +0 -13
- data/lib/mediawiktory/generated/globalblocks.rb +0 -14
- data/lib/mediawiktory/generated/globalgroups.rb +0 -7
- data/lib/mediawiktory/generated/globalusage.rb +0 -10
- data/lib/mediawiktory/generated/globaluserinfo.rb +0 -8
- data/lib/mediawiktory/generated/globaluserrights.rb +0 -13
- data/lib/mediawiktory/generated/graph.rb +0 -8
- data/lib/mediawiktory/generated/help.rb +0 -10
- data/lib/mediawiktory/generated/imageinfo.rb +0 -20
- data/lib/mediawiktory/generated/imagerotate.rb +0 -5
- data/lib/mediawiktory/generated/images.rb +0 -10
- data/lib/mediawiktory/generated/imageusage.rb +0 -14
- data/lib/mediawiktory/generated/import.rb +0 -16
- data/lib/mediawiktory/generated/info.rb +0 -10
- data/lib/mediawiktory/generated/iwbacklinks.rb +0 -12
- data/lib/mediawiktory/generated/iwlinks.rb +0 -13
- data/lib/mediawiktory/generated/jsonconfig.rb +0 -9
- data/lib/mediawiktory/generated/jsondata.rb +0 -6
- data/lib/mediawiktory/generated/langbacklinks.rb +0 -12
- data/lib/mediawiktory/generated/langlinks.rb +0 -14
- data/lib/mediawiktory/generated/languagesearch.rb +0 -7
- data/lib/mediawiktory/generated/linkaccount.rb +0 -14
- data/lib/mediawiktory/generated/links.rb +0 -11
- data/lib/mediawiktory/generated/linkshere.rb +0 -11
- data/lib/mediawiktory/generated/liststudents.rb +0 -9
- data/lib/mediawiktory/generated/logevents.rb +0 -19
- data/lib/mediawiktory/generated/login.rb +0 -11
- data/lib/mediawiktory/generated/logout.rb +0 -5
- data/lib/mediawiktory/generated/managetags.rb +0 -12
- data/lib/mediawiktory/generated/mapdata.rb +0 -9
- data/lib/mediawiktory/generated/massmessage.rb +0 -10
- data/lib/mediawiktory/generated/mergehistory.rb +0 -13
- data/lib/mediawiktory/generated/mmsites.rb +0 -6
- data/lib/mediawiktory/generated/mobileview.rb +0 -22
- data/lib/mediawiktory/generated/mostviewed.rb +0 -9
- data/lib/mediawiktory/generated/move.rb +0 -19
- data/lib/mediawiktory/generated/mystashedfiles.rb +0 -9
- data/lib/mediawiktory/generated/notifications.rb +0 -22
- data/lib/mediawiktory/generated/oath.rb +0 -7
- data/lib/mediawiktory/generated/oathvalidate.rb +0 -9
- data/lib/mediawiktory/generated/oldreviewedpages.rb +0 -15
- data/lib/mediawiktory/generated/opensearch.rb +0 -12
- data/lib/mediawiktory/generated/options.rb +0 -12
- data/lib/mediawiktory/generated/ores.rb +0 -6
- data/lib/mediawiktory/generated/pageassessments.rb +0 -9
- data/lib/mediawiktory/generated/pageimages.rb +0 -11
- data/lib/mediawiktory/generated/pagepropnames.rb +0 -8
- data/lib/mediawiktory/generated/pageprops.rb +0 -8
- data/lib/mediawiktory/generated/pageswithprop.rb +0 -11
- data/lib/mediawiktory/generated/pageterms.rb +0 -8
- data/lib/mediawiktory/generated/pagetriageaction.rb +0 -11
- data/lib/mediawiktory/generated/pagetriagelist.rb +0 -21
- data/lib/mediawiktory/generated/pagetriagestats.rb +0 -10
- data/lib/mediawiktory/generated/pagetriagetagging.rb +0 -13
- data/lib/mediawiktory/generated/pagetriagetemplate.rb +0 -7
- data/lib/mediawiktory/generated/pageviews.rb +0 -9
- data/lib/mediawiktory/generated/paraminfo.rb +0 -11
- data/lib/mediawiktory/generated/parse.rb +0 -36
- data/lib/mediawiktory/generated/parsoid-batch.rb +0 -6
- data/lib/mediawiktory/generated/patrol.rb +0 -10
- data/lib/mediawiktory/generated/prefixsearch.rb +0 -10
- data/lib/mediawiktory/generated/projectpages.rb +0 -10
- data/lib/mediawiktory/generated/projects.rb +0 -7
- data/lib/mediawiktory/generated/protect.rb +0 -16
- data/lib/mediawiktory/generated/protectedtitles.rb +0 -14
- data/lib/mediawiktory/generated/purge.rb +0 -15
- data/lib/mediawiktory/generated/query.rb +0 -20
- data/lib/mediawiktory/generated/querypage.rb +0 -9
- data/lib/mediawiktory/generated/random.rb +0 -11
- data/lib/mediawiktory/generated/recentchanges.rb +0 -21
- data/lib/mediawiktory/generated/redirects.rb +0 -11
- data/lib/mediawiktory/generated/references.rb +0 -7
- data/lib/mediawiktory/generated/refresheducation.rb +0 -9
- data/lib/mediawiktory/generated/removeauthenticationdata.rb +0 -8
- data/lib/mediawiktory/generated/resetpassword.rb +0 -9
- data/lib/mediawiktory/generated/review.rb +0 -10
- data/lib/mediawiktory/generated/reviewactivity.rb +0 -10
- data/lib/mediawiktory/generated/revisiondelete.rb +0 -15
- data/lib/mediawiktory/generated/revisions.rb +0 -26
- data/lib/mediawiktory/generated/rollback.rb +0 -14
- data/lib/mediawiktory/generated/rsd.rb +0 -5
- data/lib/mediawiktory/generated/sanitize-mapdata.rb +0 -8
- data/lib/mediawiktory/generated/scribunto-console.rb +0 -10
- data/lib/mediawiktory/generated/search.rb +0 -16
- data/lib/mediawiktory/generated/setglobalaccountstatus.rb +0 -12
- data/lib/mediawiktory/generated/setnotificationtimestamp.rb +0 -18
- data/lib/mediawiktory/generated/setpagelanguage.rb +0 -12
- data/lib/mediawiktory/generated/shortenurl.rb +0 -7
- data/lib/mediawiktory/generated/siteinfo.rb +0 -11
- data/lib/mediawiktory/generated/sitematrix.rb +0 -12
- data/lib/mediawiktory/generated/siteviews.rb +0 -8
- data/lib/mediawiktory/generated/spamblacklist.rb +0 -6
- data/lib/mediawiktory/generated/stabilize.rb +0 -12
- data/lib/mediawiktory/generated/stashedit.rb +0 -16
- data/lib/mediawiktory/generated/stashimageinfo.rb +0 -12
- data/lib/mediawiktory/generated/strikevote.rb +0 -10
- data/lib/mediawiktory/generated/tag.rb +0 -14
- data/lib/mediawiktory/generated/tags.rb +0 -9
- data/lib/mediawiktory/generated/templatedata.rb +0 -12
- data/lib/mediawiktory/generated/templates.rb +0 -11
- data/lib/mediawiktory/generated/thank.rb +0 -9
- data/lib/mediawiktory/generated/titleblacklist.rb +0 -9
- data/lib/mediawiktory/generated/tokens.rb +0 -6
- data/lib/mediawiktory/generated/transcludedin.rb +0 -11
- data/lib/mediawiktory/generated/transcodereset.rb +0 -9
- data/lib/mediawiktory/generated/transcodestatus.rb +0 -5
- data/lib/mediawiktory/generated/ulslocalization.rb +0 -6
- data/lib/mediawiktory/generated/unblock.rb +0 -12
- data/lib/mediawiktory/generated/undelete.rb +0 -13
- data/lib/mediawiktory/generated/unlinkaccount.rb +0 -8
- data/lib/mediawiktory/generated/unreadnotificationpages.rb +0 -9
- data/lib/mediawiktory/generated/upload.rb +0 -24
- data/lib/mediawiktory/generated/usercontribs.rb +0 -19
- data/lib/mediawiktory/generated/userinfo.rb +0 -8
- data/lib/mediawiktory/generated/userrights.rb +0 -13
- data/lib/mediawiktory/generated/users.rb +0 -11
- data/lib/mediawiktory/generated/validatepassword.rb +0 -10
- data/lib/mediawiktory/generated/videoinfo.rb +0 -20
- data/lib/mediawiktory/generated/visualeditor.rb +0 -13
- data/lib/mediawiktory/generated/visualeditoredit.rb +0 -23
- data/lib/mediawiktory/generated/watch.rb +0 -16
- data/lib/mediawiktory/generated/watchlist.rb +0 -20
- data/lib/mediawiktory/generated/watchlistraw.rb +0 -16
- data/lib/mediawiktory/generated/wbentityusage.rb +0 -11
- data/lib/mediawiktory/generated/wblistentityusage.rb +0 -11
- data/lib/mediawiktory/generated/webapp-manifest.rb +0 -5
- data/lib/mediawiktory/generated/wikibase.rb +0 -7
- data/lib/mediawiktory/generated/wikilove.rb +0 -13
- data/lib/mediawiktory/generated/wikisets.rb +0 -10
- data/lib/mediawiktory/generated/zeroconfig.rb +0 -7
- data/lib/mediawiktory/mw_module.rb +0 -324
- data/lib/mediawiktory/page.rb +0 -50
- data/lib/mediawiktory/query.rb +0 -58
- data/script/data/api.yaml +0 -40414
- data/script/lib/api.rb +0 -14
- data/script/lib/module.rb +0 -132
- data/script/lib/parameter.rb +0 -133
- data/script/parse_api.rb +0 -21
- data/test/cache.rb +0 -15
@@ -0,0 +1,122 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
module MediaWiktory::Wikipedia
|
6
|
+
# Thin wrapper around MediaWiki API response.
|
7
|
+
#
|
8
|
+
# It provides services for separating metadata of response of its essential data, continuing multi-
|
9
|
+
# page responses, and converting response errors into exceptions.
|
10
|
+
#
|
11
|
+
# You should not instantiate this class, it is obtained by some {Actions Action}'s {Actions::Base#response #response}.
|
12
|
+
class Response
|
13
|
+
# Response fail was returned by target MediaWiki API.
|
14
|
+
Error = Class.new(RuntimeError)
|
15
|
+
|
16
|
+
# @private
|
17
|
+
METADATA_KEYS = %w[error warnings batchcomplete continue success limits].freeze
|
18
|
+
|
19
|
+
# @private
|
20
|
+
def self.parse(action, response_body)
|
21
|
+
new(action, JSON.parse(response_body))
|
22
|
+
end
|
23
|
+
|
24
|
+
# Entire response "as is", including contents and metadata parts.
|
25
|
+
#
|
26
|
+
# See {#to_h} for content part of the response and {#metadata} for metadata part.
|
27
|
+
#
|
28
|
+
# @return [Hash]
|
29
|
+
attr_reader :raw
|
30
|
+
|
31
|
+
# Metadata part of the response, keys like "error", "warnings", "continue".
|
32
|
+
#
|
33
|
+
# See {#to_h} for content part of the response and {#raw} for entire response.
|
34
|
+
#
|
35
|
+
# @return [Hash]
|
36
|
+
attr_reader :metadata
|
37
|
+
|
38
|
+
# @private
|
39
|
+
def initialize(action, response_hash)
|
40
|
+
@action = action
|
41
|
+
@raw = response_hash.freeze
|
42
|
+
@metadata, @data = response_hash.partition { |key, _| METADATA_KEYS.include?(key) }.map(&:to_h).map(&:freeze)
|
43
|
+
error! if @metadata['error']
|
44
|
+
end
|
45
|
+
|
46
|
+
# "Content" part of the response as a plain Ruby Hash.
|
47
|
+
#
|
48
|
+
# @return [Hash]
|
49
|
+
def to_h
|
50
|
+
# For most of actions, like query, all response is inside additional "query" key,
|
51
|
+
# ...but not for all.
|
52
|
+
@data.key?(@action.name) ? @data.fetch(@action.name) : @data
|
53
|
+
end
|
54
|
+
|
55
|
+
# Fetches a key from response content.
|
56
|
+
#
|
57
|
+
# @param key [String] Key name.
|
58
|
+
def [](key)
|
59
|
+
to_h[key]
|
60
|
+
end
|
61
|
+
|
62
|
+
# Digs for a keys from response content.
|
63
|
+
#
|
64
|
+
# @param keys [Array<String>] Key names.
|
65
|
+
def dig(*keys)
|
66
|
+
hash_dig(to_h, *keys)
|
67
|
+
end
|
68
|
+
|
69
|
+
# Returns `true` if there is next pages of response. See also {#continue}
|
70
|
+
def continue?
|
71
|
+
@metadata.key?('continue')
|
72
|
+
end
|
73
|
+
|
74
|
+
# Continues current request and returns current & next pages merged. (Merging is necessary
|
75
|
+
# because MediaWiki tends to return the same object's data continued on the next request page.)
|
76
|
+
#
|
77
|
+
# @return [Response]
|
78
|
+
def continue
|
79
|
+
fail 'This is the last page' unless continue?
|
80
|
+
|
81
|
+
action = @action.merge(@metadata.fetch('continue'))
|
82
|
+
|
83
|
+
self.class.new(action, merge_responses(JSON.parse(action.perform)))
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def inspect
|
88
|
+
"#<#{self.class.name}(#{@action.name}): #{to_h.keys.join(', ')}#{' (can continue)' if continue?}>"
|
89
|
+
end
|
90
|
+
|
91
|
+
private
|
92
|
+
|
93
|
+
def merge_responses(new_response)
|
94
|
+
merger = lambda do |_k, v1, v2|
|
95
|
+
if v1.is_a?(Hash) && v2.is_a?(Hash)
|
96
|
+
v1.merge(v2, &merger)
|
97
|
+
elsif v1.is_a?(Array) && v2.is_a?(Array)
|
98
|
+
v1 + v2
|
99
|
+
else
|
100
|
+
v2
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Newest page is responsible for all metadata, so we take entire new response and only data
|
105
|
+
# part of old one.
|
106
|
+
#
|
107
|
+
# Deep recursive merge is necessary because MediaWiki could split response in parts unpredicatably
|
108
|
+
# (like ['query']['pages'][some_page_id] can be present on several pages, providing different
|
109
|
+
# parts of a page).
|
110
|
+
@data.merge(new_response, &merger)
|
111
|
+
end
|
112
|
+
|
113
|
+
def error!
|
114
|
+
fail Error, hash_dig(@metadata, 'error', 'info')
|
115
|
+
end
|
116
|
+
|
117
|
+
# TODO: replace with Hash#dig when minimal Ruby version would be 2.3
|
118
|
+
def hash_dig(hash, *keys)
|
119
|
+
keys.inject(hash) { |res, key| res[key] or return nil }
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
data/lib/nokogiri/more.rb
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'naught'
|
2
4
|
|
5
|
+
# @private
|
6
|
+
# Used only by Generator
|
3
7
|
module Nokogiri
|
4
8
|
module More
|
5
9
|
module NodeChildrenGroups
|
6
10
|
def children_groups(*selectors)
|
7
11
|
groups = []
|
8
|
-
flat = children.select{|node| selectors.any?{|s| node.matches?(s)}}
|
9
|
-
|
10
|
-
groups << make_group(flat, selectors)
|
11
|
-
end
|
12
|
+
flat = children.select { |node| selectors.any? { |s| node.matches?(s) } }
|
13
|
+
groups << make_group(flat, selectors) until flat.empty?
|
12
14
|
groups
|
13
15
|
end
|
14
|
-
|
15
|
-
#include NodeOnlyFor
|
16
|
-
|
16
|
+
|
17
17
|
def each_term
|
18
18
|
children_groups('dt', 'dd')
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
private
|
22
|
-
|
22
|
+
|
23
23
|
def make_group(flat, selectors)
|
24
24
|
sel = selectors.dup
|
25
25
|
group = [[]]
|
26
|
-
|
26
|
+
until flat.empty?
|
27
27
|
if flat.first.matches?(sel.first)
|
28
28
|
group.last << flat.shift
|
29
29
|
elsif sel.size > 1 && flat.first.matches?(sel[1])
|
@@ -43,7 +43,7 @@ module Nokogiri
|
|
43
43
|
|
44
44
|
# so you can just `at?(selector).tap{|node| ...`
|
45
45
|
# and never be inside `tap`, if it's not found
|
46
|
-
def tap
|
46
|
+
def tap
|
47
47
|
self
|
48
48
|
end
|
49
49
|
end
|
@@ -60,7 +60,7 @@ module Nokogiri
|
|
60
60
|
def at_xpath?(selector)
|
61
61
|
at_xpath(selector) || NodeNaught.new
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
def find_child?(selector)
|
65
65
|
find_child(selector) || NodeNaught.new
|
66
66
|
end
|
data/mediawiktory.gemspec
CHANGED
@@ -10,6 +10,8 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.summary = 'Full-featured MediaWiki client with Arel-like queries'
|
11
11
|
s.licenses = ['MIT']
|
12
12
|
|
13
|
+
s.required_ruby_version = '>= 2.1.0'
|
14
|
+
|
13
15
|
s.files = `git ls-files`.split($RS).reject do |file|
|
14
16
|
file =~ /^(?:
|
15
17
|
spec\/.*
|
@@ -23,6 +25,8 @@ Gem::Specification.new do |s|
|
|
23
25
|
end
|
24
26
|
s.require_paths = ["lib"]
|
25
27
|
|
28
|
+
s.add_dependency 'nokogiri'
|
29
|
+
s.add_dependency 'naught'
|
26
30
|
s.add_dependency 'faraday'
|
27
31
|
s.add_dependency 'faraday_middleware'
|
28
32
|
s.add_dependency 'hashie'
|
metadata
CHANGED
@@ -1,333 +1,426 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediawiktory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Shepelev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: faraday
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '0'
|
20
|
-
|
19
|
+
name: nokogiri
|
21
20
|
prerelease: false
|
21
|
+
type: :runtime
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: faraday_middleware
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
|
-
|
33
|
+
name: naught
|
35
34
|
prerelease: false
|
35
|
+
type: :runtime
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: hashie
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - ">="
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: '0'
|
47
|
+
name: faraday
|
48
|
+
prerelease: false
|
48
49
|
type: :runtime
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
name: faraday_middleware
|
49
62
|
prerelease: false
|
63
|
+
type: :runtime
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: addressable
|
57
70
|
requirement: !ruby/object:Gem::Requirement
|
58
71
|
requirements:
|
59
72
|
- - ">="
|
60
73
|
- !ruby/object:Gem::Version
|
61
74
|
version: '0'
|
75
|
+
name: hashie
|
76
|
+
prerelease: false
|
62
77
|
type: :runtime
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
name: addressable
|
63
90
|
prerelease: false
|
91
|
+
type: :runtime
|
64
92
|
version_requirements: !ruby/object:Gem::Requirement
|
65
93
|
requirements:
|
66
94
|
- - ">="
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0'
|
69
|
-
description:
|
97
|
+
description:
|
70
98
|
email: zverok.offline@gmail.com
|
71
99
|
executables: []
|
72
100
|
extensions: []
|
73
101
|
extra_rdoc_files: []
|
74
102
|
files:
|
103
|
+
- ".dokaz"
|
104
|
+
- ".rubocop_todo.yml"
|
105
|
+
- ".yardopts"
|
75
106
|
- CHANGELOG.md
|
76
107
|
- CONTRIBUTING.md
|
77
108
|
- LICENSE.txt
|
78
109
|
- README.md
|
79
|
-
- bin/mediawiktory
|
80
|
-
- doc/mediawiki_api_types.md
|
81
|
-
- examples/query.rb
|
82
|
-
- examples/query_generator.rb
|
83
|
-
- lib/faraday/naive_cache.rb
|
110
|
+
- bin/mediawiktory-gen
|
84
111
|
- lib/media_wiktory.rb
|
85
112
|
- lib/mediawiktory.rb
|
86
|
-
- lib/mediawiktory/
|
87
|
-
- lib/mediawiktory/
|
88
|
-
- lib/mediawiktory/
|
89
|
-
- lib/mediawiktory/
|
90
|
-
- lib/mediawiktory/
|
91
|
-
- lib/mediawiktory/
|
92
|
-
- lib/mediawiktory/
|
93
|
-
- lib/mediawiktory/
|
94
|
-
- lib/mediawiktory/
|
95
|
-
- lib/mediawiktory/
|
96
|
-
- lib/mediawiktory/
|
97
|
-
- lib/mediawiktory/
|
98
|
-
- lib/mediawiktory/
|
99
|
-
- lib/mediawiktory/
|
100
|
-
- lib/mediawiktory/
|
101
|
-
- lib/mediawiktory/
|
102
|
-
- lib/mediawiktory/
|
103
|
-
- lib/mediawiktory/
|
104
|
-
- lib/mediawiktory/
|
105
|
-
- lib/mediawiktory/
|
106
|
-
- lib/mediawiktory/generated/allusers.rb
|
107
|
-
- lib/mediawiktory/generated/antispoof.rb
|
108
|
-
- lib/mediawiktory/generated/authmanagerinfo.rb
|
109
|
-
- lib/mediawiktory/generated/babel.rb
|
110
|
-
- lib/mediawiktory/generated/backlinks.rb
|
111
|
-
- lib/mediawiktory/generated/betafeatures.rb
|
112
|
-
- lib/mediawiktory/generated/block.rb
|
113
|
-
- lib/mediawiktory/generated/blocks.rb
|
114
|
-
- lib/mediawiktory/generated/bouncehandler.rb
|
115
|
-
- lib/mediawiktory/generated/categories.rb
|
116
|
-
- lib/mediawiktory/generated/categoryinfo.rb
|
117
|
-
- lib/mediawiktory/generated/categorymembers.rb
|
118
|
-
- lib/mediawiktory/generated/categorytree.rb
|
119
|
-
- lib/mediawiktory/generated/centralauthtoken.rb
|
120
|
-
- lib/mediawiktory/generated/centralnoticechoicedata.rb
|
121
|
-
- lib/mediawiktory/generated/centralnoticelogs.rb
|
122
|
-
- lib/mediawiktory/generated/centralnoticequerycampaign.rb
|
123
|
-
- lib/mediawiktory/generated/changeauthenticationdata.rb
|
124
|
-
- lib/mediawiktory/generated/checktoken.rb
|
125
|
-
- lib/mediawiktory/generated/checkuser.rb
|
126
|
-
- lib/mediawiktory/generated/checkuserlog.rb
|
127
|
-
- lib/mediawiktory/generated/cirrus-config-dump.rb
|
128
|
-
- lib/mediawiktory/generated/cirrus-mapping-dump.rb
|
129
|
-
- lib/mediawiktory/generated/cirrus-settings-dump.rb
|
130
|
-
- lib/mediawiktory/generated/clearhasmsg.rb
|
131
|
-
- lib/mediawiktory/generated/clientlogin.rb
|
132
|
-
- lib/mediawiktory/generated/compare.rb
|
133
|
-
- lib/mediawiktory/generated/contenttranslation.rb
|
134
|
-
- lib/mediawiktory/generated/contenttranslationcorpora.rb
|
135
|
-
- lib/mediawiktory/generated/contenttranslationlangtrend.rb
|
136
|
-
- lib/mediawiktory/generated/contenttranslationstats.rb
|
137
|
-
- lib/mediawiktory/generated/contenttranslationsuggestions.rb
|
138
|
-
- lib/mediawiktory/generated/contributors.rb
|
139
|
-
- lib/mediawiktory/generated/coordinates.rb
|
140
|
-
- lib/mediawiktory/generated/createaccount.rb
|
141
|
-
- lib/mediawiktory/generated/cspreport.rb
|
142
|
-
- lib/mediawiktory/generated/cxconfiguration.rb
|
143
|
-
- lib/mediawiktory/generated/cxdelete.rb
|
144
|
-
- lib/mediawiktory/generated/cxpublish.rb
|
145
|
-
- lib/mediawiktory/generated/cxpublishedtranslations.rb
|
146
|
-
- lib/mediawiktory/generated/cxsave.rb
|
147
|
-
- lib/mediawiktory/generated/cxsuggestionlist.rb
|
148
|
-
- lib/mediawiktory/generated/cxtoken.rb
|
149
|
-
- lib/mediawiktory/generated/cxtranslatorstats.rb
|
150
|
-
- lib/mediawiktory/generated/delete.rb
|
151
|
-
- lib/mediawiktory/generated/deletedrevisions.rb
|
152
|
-
- lib/mediawiktory/generated/deletedrevs.rb
|
153
|
-
- lib/mediawiktory/generated/deleteeducation.rb
|
154
|
-
- lib/mediawiktory/generated/deleteglobalaccount.rb
|
155
|
-
- lib/mediawiktory/generated/duplicatefiles.rb
|
156
|
-
- lib/mediawiktory/generated/echomarkread.rb
|
157
|
-
- lib/mediawiktory/generated/echomarkseen.rb
|
158
|
-
- lib/mediawiktory/generated/edit.rb
|
159
|
-
- lib/mediawiktory/generated/editmassmessagelist.rb
|
160
|
-
- lib/mediawiktory/generated/emailuser.rb
|
161
|
-
- lib/mediawiktory/generated/embeddedin.rb
|
162
|
-
- lib/mediawiktory/generated/enlist.rb
|
163
|
-
- lib/mediawiktory/generated/expandtemplates.rb
|
164
|
-
- lib/mediawiktory/generated/extlinks.rb
|
165
|
-
- lib/mediawiktory/generated/extracts.rb
|
166
|
-
- lib/mediawiktory/generated/exturlusage.rb
|
167
|
-
- lib/mediawiktory/generated/fancycaptchareload.rb
|
168
|
-
- lib/mediawiktory/generated/featuredfeed.rb
|
169
|
-
- lib/mediawiktory/generated/featureusage.rb
|
170
|
-
- lib/mediawiktory/generated/feedcontributions.rb
|
171
|
-
- lib/mediawiktory/generated/feedrecentchanges.rb
|
172
|
-
- lib/mediawiktory/generated/feedwatchlist.rb
|
173
|
-
- lib/mediawiktory/generated/filearchive.rb
|
174
|
-
- lib/mediawiktory/generated/filerepoinfo.rb
|
175
|
-
- lib/mediawiktory/generated/filerevert.rb
|
176
|
-
- lib/mediawiktory/generated/fileusage.rb
|
177
|
-
- lib/mediawiktory/generated/flagconfig.rb
|
178
|
-
- lib/mediawiktory/generated/flagged.rb
|
179
|
-
- lib/mediawiktory/generated/gadgetcategories.rb
|
180
|
-
- lib/mediawiktory/generated/gadgets.rb
|
181
|
-
- lib/mediawiktory/generated/geosearch.rb
|
182
|
-
- lib/mediawiktory/generated/gettingstartedgetpages.rb
|
183
|
-
- lib/mediawiktory/generated/globalallusers.rb
|
184
|
-
- lib/mediawiktory/generated/globalblock.rb
|
185
|
-
- lib/mediawiktory/generated/globalblocks.rb
|
186
|
-
- lib/mediawiktory/generated/globalgroups.rb
|
187
|
-
- lib/mediawiktory/generated/globalusage.rb
|
188
|
-
- lib/mediawiktory/generated/globaluserinfo.rb
|
189
|
-
- lib/mediawiktory/generated/globaluserrights.rb
|
190
|
-
- lib/mediawiktory/generated/graph.rb
|
191
|
-
- lib/mediawiktory/generated/help.rb
|
192
|
-
- lib/mediawiktory/generated/imageinfo.rb
|
193
|
-
- lib/mediawiktory/generated/imagerotate.rb
|
194
|
-
- lib/mediawiktory/generated/images.rb
|
195
|
-
- lib/mediawiktory/generated/imageusage.rb
|
196
|
-
- lib/mediawiktory/generated/import.rb
|
197
|
-
- lib/mediawiktory/generated/info.rb
|
198
|
-
- lib/mediawiktory/generated/iwbacklinks.rb
|
199
|
-
- lib/mediawiktory/generated/iwlinks.rb
|
200
|
-
- lib/mediawiktory/generated/jsonconfig.rb
|
201
|
-
- lib/mediawiktory/generated/jsondata.rb
|
202
|
-
- lib/mediawiktory/generated/langbacklinks.rb
|
203
|
-
- lib/mediawiktory/generated/langlinks.rb
|
204
|
-
- lib/mediawiktory/generated/languagesearch.rb
|
205
|
-
- lib/mediawiktory/generated/linkaccount.rb
|
206
|
-
- lib/mediawiktory/generated/links.rb
|
207
|
-
- lib/mediawiktory/generated/linkshere.rb
|
208
|
-
- lib/mediawiktory/generated/liststudents.rb
|
209
|
-
- lib/mediawiktory/generated/logevents.rb
|
210
|
-
- lib/mediawiktory/generated/login.rb
|
211
|
-
- lib/mediawiktory/generated/logout.rb
|
212
|
-
- lib/mediawiktory/generated/managetags.rb
|
213
|
-
- lib/mediawiktory/generated/mapdata.rb
|
214
|
-
- lib/mediawiktory/generated/massmessage.rb
|
215
|
-
- lib/mediawiktory/generated/mergehistory.rb
|
216
|
-
- lib/mediawiktory/generated/mmsites.rb
|
217
|
-
- lib/mediawiktory/generated/mobileview.rb
|
218
|
-
- lib/mediawiktory/generated/mostviewed.rb
|
219
|
-
- lib/mediawiktory/generated/move.rb
|
220
|
-
- lib/mediawiktory/generated/mystashedfiles.rb
|
221
|
-
- lib/mediawiktory/generated/notifications.rb
|
222
|
-
- lib/mediawiktory/generated/oath.rb
|
223
|
-
- lib/mediawiktory/generated/oathvalidate.rb
|
224
|
-
- lib/mediawiktory/generated/oldreviewedpages.rb
|
225
|
-
- lib/mediawiktory/generated/opensearch.rb
|
226
|
-
- lib/mediawiktory/generated/options.rb
|
227
|
-
- lib/mediawiktory/generated/ores.rb
|
228
|
-
- lib/mediawiktory/generated/pageassessments.rb
|
229
|
-
- lib/mediawiktory/generated/pageimages.rb
|
230
|
-
- lib/mediawiktory/generated/pagepropnames.rb
|
231
|
-
- lib/mediawiktory/generated/pageprops.rb
|
232
|
-
- lib/mediawiktory/generated/pageswithprop.rb
|
233
|
-
- lib/mediawiktory/generated/pageterms.rb
|
234
|
-
- lib/mediawiktory/generated/pagetriageaction.rb
|
235
|
-
- lib/mediawiktory/generated/pagetriagelist.rb
|
236
|
-
- lib/mediawiktory/generated/pagetriagestats.rb
|
237
|
-
- lib/mediawiktory/generated/pagetriagetagging.rb
|
238
|
-
- lib/mediawiktory/generated/pagetriagetemplate.rb
|
239
|
-
- lib/mediawiktory/generated/pageviews.rb
|
240
|
-
- lib/mediawiktory/generated/paraminfo.rb
|
241
|
-
- lib/mediawiktory/generated/parse.rb
|
242
|
-
- lib/mediawiktory/generated/parsoid-batch.rb
|
243
|
-
- lib/mediawiktory/generated/patrol.rb
|
244
|
-
- lib/mediawiktory/generated/prefixsearch.rb
|
245
|
-
- lib/mediawiktory/generated/projectpages.rb
|
246
|
-
- lib/mediawiktory/generated/projects.rb
|
247
|
-
- lib/mediawiktory/generated/protect.rb
|
248
|
-
- lib/mediawiktory/generated/protectedtitles.rb
|
249
|
-
- lib/mediawiktory/generated/purge.rb
|
250
|
-
- lib/mediawiktory/generated/query.rb
|
251
|
-
- lib/mediawiktory/generated/querypage.rb
|
252
|
-
- lib/mediawiktory/generated/random.rb
|
253
|
-
- lib/mediawiktory/generated/recentchanges.rb
|
254
|
-
- lib/mediawiktory/generated/redirects.rb
|
255
|
-
- lib/mediawiktory/generated/references.rb
|
256
|
-
- lib/mediawiktory/generated/refresheducation.rb
|
257
|
-
- lib/mediawiktory/generated/removeauthenticationdata.rb
|
258
|
-
- lib/mediawiktory/generated/resetpassword.rb
|
259
|
-
- lib/mediawiktory/generated/review.rb
|
260
|
-
- lib/mediawiktory/generated/reviewactivity.rb
|
261
|
-
- lib/mediawiktory/generated/revisiondelete.rb
|
262
|
-
- lib/mediawiktory/generated/revisions.rb
|
263
|
-
- lib/mediawiktory/generated/rollback.rb
|
264
|
-
- lib/mediawiktory/generated/rsd.rb
|
265
|
-
- lib/mediawiktory/generated/sanitize-mapdata.rb
|
266
|
-
- lib/mediawiktory/generated/scribunto-console.rb
|
267
|
-
- lib/mediawiktory/generated/search.rb
|
268
|
-
- lib/mediawiktory/generated/setglobalaccountstatus.rb
|
269
|
-
- lib/mediawiktory/generated/setnotificationtimestamp.rb
|
270
|
-
- lib/mediawiktory/generated/setpagelanguage.rb
|
271
|
-
- lib/mediawiktory/generated/shortenurl.rb
|
272
|
-
- lib/mediawiktory/generated/siteinfo.rb
|
273
|
-
- lib/mediawiktory/generated/sitematrix.rb
|
274
|
-
- lib/mediawiktory/generated/siteviews.rb
|
275
|
-
- lib/mediawiktory/generated/spamblacklist.rb
|
276
|
-
- lib/mediawiktory/generated/stabilize.rb
|
277
|
-
- lib/mediawiktory/generated/stashedit.rb
|
278
|
-
- lib/mediawiktory/generated/stashimageinfo.rb
|
279
|
-
- lib/mediawiktory/generated/strikevote.rb
|
280
|
-
- lib/mediawiktory/generated/tag.rb
|
281
|
-
- lib/mediawiktory/generated/tags.rb
|
282
|
-
- lib/mediawiktory/generated/templatedata.rb
|
283
|
-
- lib/mediawiktory/generated/templates.rb
|
284
|
-
- lib/mediawiktory/generated/thank.rb
|
285
|
-
- lib/mediawiktory/generated/titleblacklist.rb
|
286
|
-
- lib/mediawiktory/generated/tokens.rb
|
287
|
-
- lib/mediawiktory/generated/transcludedin.rb
|
288
|
-
- lib/mediawiktory/generated/transcodereset.rb
|
289
|
-
- lib/mediawiktory/generated/transcodestatus.rb
|
290
|
-
- lib/mediawiktory/generated/ulslocalization.rb
|
291
|
-
- lib/mediawiktory/generated/unblock.rb
|
292
|
-
- lib/mediawiktory/generated/undelete.rb
|
293
|
-
- lib/mediawiktory/generated/unlinkaccount.rb
|
294
|
-
- lib/mediawiktory/generated/unreadnotificationpages.rb
|
295
|
-
- lib/mediawiktory/generated/upload.rb
|
296
|
-
- lib/mediawiktory/generated/usercontribs.rb
|
297
|
-
- lib/mediawiktory/generated/userinfo.rb
|
298
|
-
- lib/mediawiktory/generated/userrights.rb
|
299
|
-
- lib/mediawiktory/generated/users.rb
|
300
|
-
- lib/mediawiktory/generated/validatepassword.rb
|
301
|
-
- lib/mediawiktory/generated/videoinfo.rb
|
302
|
-
- lib/mediawiktory/generated/visualeditor.rb
|
303
|
-
- lib/mediawiktory/generated/visualeditoredit.rb
|
304
|
-
- lib/mediawiktory/generated/watch.rb
|
305
|
-
- lib/mediawiktory/generated/watchlist.rb
|
306
|
-
- lib/mediawiktory/generated/watchlistraw.rb
|
307
|
-
- lib/mediawiktory/generated/wbentityusage.rb
|
308
|
-
- lib/mediawiktory/generated/wblistentityusage.rb
|
309
|
-
- lib/mediawiktory/generated/webapp-manifest.rb
|
310
|
-
- lib/mediawiktory/generated/wikibase.rb
|
311
|
-
- lib/mediawiktory/generated/wikilove.rb
|
312
|
-
- lib/mediawiktory/generated/wikisets.rb
|
313
|
-
- lib/mediawiktory/generated/zeroconfig.rb
|
314
|
-
- lib/mediawiktory/mw_module.rb
|
315
|
-
- lib/mediawiktory/page.rb
|
316
|
-
- lib/mediawiktory/query.rb
|
113
|
+
- lib/mediawiktory/generator.rb
|
114
|
+
- lib/mediawiktory/generator/api.rb
|
115
|
+
- lib/mediawiktory/generator/module.rb
|
116
|
+
- lib/mediawiktory/generator/param.rb
|
117
|
+
- lib/mediawiktory/generator/renderable.rb
|
118
|
+
- lib/mediawiktory/generator/templates/_action_method.erb
|
119
|
+
- lib/mediawiktory/generator/templates/_module_in_param_docs.erb
|
120
|
+
- lib/mediawiktory/generator/templates/_param_impl_boolean.erb
|
121
|
+
- lib/mediawiktory/generator/templates/_param_impl_enum.erb
|
122
|
+
- lib/mediawiktory/generator/templates/_param_impl_enum_of_modules.erb
|
123
|
+
- lib/mediawiktory/generator/templates/_param_impl_string.erb
|
124
|
+
- lib/mediawiktory/generator/templates/_param_impl_timestamp.erb
|
125
|
+
- lib/mediawiktory/generator/templates/_param_method.erb
|
126
|
+
- lib/mediawiktory/generator/templates/action.rb.erb
|
127
|
+
- lib/mediawiktory/generator/templates/action_class.rb.erb
|
128
|
+
- lib/mediawiktory/generator/templates/actions.rb.erb
|
129
|
+
- lib/mediawiktory/generator/templates/api.rb.erb
|
130
|
+
- lib/mediawiktory/generator/templates/client.rb.erb
|
131
|
+
- lib/mediawiktory/generator/templates/module_class.rb.erb
|
132
|
+
- lib/mediawiktory/generator/templates/response.rb.erb
|
317
133
|
- lib/mediawiktory/version.rb
|
134
|
+
- lib/mediawiktory/wikipedia/actions.rb
|
135
|
+
- lib/mediawiktory/wikipedia/actions/abusefiltercheckmatch.rb
|
136
|
+
- lib/mediawiktory/wikipedia/actions/abusefilterchecksyntax.rb
|
137
|
+
- lib/mediawiktory/wikipedia/actions/abusefilterevalexpression.rb
|
138
|
+
- lib/mediawiktory/wikipedia/actions/abusefilterunblockautopromote.rb
|
139
|
+
- lib/mediawiktory/wikipedia/actions/addstudents.rb
|
140
|
+
- lib/mediawiktory/wikipedia/actions/antispoof.rb
|
141
|
+
- lib/mediawiktory/wikipedia/actions/base.rb
|
142
|
+
- lib/mediawiktory/wikipedia/actions/block.rb
|
143
|
+
- lib/mediawiktory/wikipedia/actions/bouncehandler.rb
|
144
|
+
- lib/mediawiktory/wikipedia/actions/categorytree.rb
|
145
|
+
- lib/mediawiktory/wikipedia/actions/centralauthtoken.rb
|
146
|
+
- lib/mediawiktory/wikipedia/actions/centralnoticechoicedata.rb
|
147
|
+
- lib/mediawiktory/wikipedia/actions/centralnoticequerycampaign.rb
|
148
|
+
- lib/mediawiktory/wikipedia/actions/changeauthenticationdata.rb
|
149
|
+
- lib/mediawiktory/wikipedia/actions/checktoken.rb
|
150
|
+
- lib/mediawiktory/wikipedia/actions/cirrus-config-dump.rb
|
151
|
+
- lib/mediawiktory/wikipedia/actions/cirrus-mapping-dump.rb
|
152
|
+
- lib/mediawiktory/wikipedia/actions/cirrus-settings-dump.rb
|
153
|
+
- lib/mediawiktory/wikipedia/actions/clearhasmsg.rb
|
154
|
+
- lib/mediawiktory/wikipedia/actions/clientlogin.rb
|
155
|
+
- lib/mediawiktory/wikipedia/actions/compare.rb
|
156
|
+
- lib/mediawiktory/wikipedia/actions/createaccount.rb
|
157
|
+
- lib/mediawiktory/wikipedia/actions/cspreport.rb
|
158
|
+
- lib/mediawiktory/wikipedia/actions/cxconfiguration.rb
|
159
|
+
- lib/mediawiktory/wikipedia/actions/cxdelete.rb
|
160
|
+
- lib/mediawiktory/wikipedia/actions/cxpublish.rb
|
161
|
+
- lib/mediawiktory/wikipedia/actions/cxsave.rb
|
162
|
+
- lib/mediawiktory/wikipedia/actions/cxsuggestionlist.rb
|
163
|
+
- lib/mediawiktory/wikipedia/actions/cxtoken.rb
|
164
|
+
- lib/mediawiktory/wikipedia/actions/delete.rb
|
165
|
+
- lib/mediawiktory/wikipedia/actions/deleteeducation.rb
|
166
|
+
- lib/mediawiktory/wikipedia/actions/deleteglobalaccount.rb
|
167
|
+
- lib/mediawiktory/wikipedia/actions/echomarkread.rb
|
168
|
+
- lib/mediawiktory/wikipedia/actions/echomarkseen.rb
|
169
|
+
- lib/mediawiktory/wikipedia/actions/edit.rb
|
170
|
+
- lib/mediawiktory/wikipedia/actions/editmassmessagelist.rb
|
171
|
+
- lib/mediawiktory/wikipedia/actions/emailuser.rb
|
172
|
+
- lib/mediawiktory/wikipedia/actions/enlist.rb
|
173
|
+
- lib/mediawiktory/wikipedia/actions/expandtemplates.rb
|
174
|
+
- lib/mediawiktory/wikipedia/actions/fancycaptchareload.rb
|
175
|
+
- lib/mediawiktory/wikipedia/actions/featuredfeed.rb
|
176
|
+
- lib/mediawiktory/wikipedia/actions/feedcontributions.rb
|
177
|
+
- lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb
|
178
|
+
- lib/mediawiktory/wikipedia/actions/feedwatchlist.rb
|
179
|
+
- lib/mediawiktory/wikipedia/actions/filerevert.rb
|
180
|
+
- lib/mediawiktory/wikipedia/actions/flagconfig.rb
|
181
|
+
- lib/mediawiktory/wikipedia/actions/globalblock.rb
|
182
|
+
- lib/mediawiktory/wikipedia/actions/globaluserrights.rb
|
183
|
+
- lib/mediawiktory/wikipedia/actions/graph.rb
|
184
|
+
- lib/mediawiktory/wikipedia/actions/help.rb
|
185
|
+
- lib/mediawiktory/wikipedia/actions/imagerotate.rb
|
186
|
+
- lib/mediawiktory/wikipedia/actions/import.rb
|
187
|
+
- lib/mediawiktory/wikipedia/actions/jsonconfig.rb
|
188
|
+
- lib/mediawiktory/wikipedia/actions/jsondata.rb
|
189
|
+
- lib/mediawiktory/wikipedia/actions/languagesearch.rb
|
190
|
+
- lib/mediawiktory/wikipedia/actions/linkaccount.rb
|
191
|
+
- lib/mediawiktory/wikipedia/actions/liststudents.rb
|
192
|
+
- lib/mediawiktory/wikipedia/actions/login.rb
|
193
|
+
- lib/mediawiktory/wikipedia/actions/logout.rb
|
194
|
+
- lib/mediawiktory/wikipedia/actions/managetags.rb
|
195
|
+
- lib/mediawiktory/wikipedia/actions/massmessage.rb
|
196
|
+
- lib/mediawiktory/wikipedia/actions/mergehistory.rb
|
197
|
+
- lib/mediawiktory/wikipedia/actions/mobileview.rb
|
198
|
+
- lib/mediawiktory/wikipedia/actions/move.rb
|
199
|
+
- lib/mediawiktory/wikipedia/actions/oathvalidate.rb
|
200
|
+
- lib/mediawiktory/wikipedia/actions/opensearch.rb
|
201
|
+
- lib/mediawiktory/wikipedia/actions/options.rb
|
202
|
+
- lib/mediawiktory/wikipedia/actions/pagetriageaction.rb
|
203
|
+
- lib/mediawiktory/wikipedia/actions/pagetriagelist.rb
|
204
|
+
- lib/mediawiktory/wikipedia/actions/pagetriagestats.rb
|
205
|
+
- lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb
|
206
|
+
- lib/mediawiktory/wikipedia/actions/pagetriagetemplate.rb
|
207
|
+
- lib/mediawiktory/wikipedia/actions/paraminfo.rb
|
208
|
+
- lib/mediawiktory/wikipedia/actions/parse.rb
|
209
|
+
- lib/mediawiktory/wikipedia/actions/parsoid-batch.rb
|
210
|
+
- lib/mediawiktory/wikipedia/actions/patrol.rb
|
211
|
+
- lib/mediawiktory/wikipedia/actions/protect.rb
|
212
|
+
- lib/mediawiktory/wikipedia/actions/purge.rb
|
213
|
+
- lib/mediawiktory/wikipedia/actions/query.rb
|
214
|
+
- lib/mediawiktory/wikipedia/actions/refresheducation.rb
|
215
|
+
- lib/mediawiktory/wikipedia/actions/removeauthenticationdata.rb
|
216
|
+
- lib/mediawiktory/wikipedia/actions/resetpassword.rb
|
217
|
+
- lib/mediawiktory/wikipedia/actions/review.rb
|
218
|
+
- lib/mediawiktory/wikipedia/actions/reviewactivity.rb
|
219
|
+
- lib/mediawiktory/wikipedia/actions/revisiondelete.rb
|
220
|
+
- lib/mediawiktory/wikipedia/actions/rollback.rb
|
221
|
+
- lib/mediawiktory/wikipedia/actions/rsd.rb
|
222
|
+
- lib/mediawiktory/wikipedia/actions/sanitize-mapdata.rb
|
223
|
+
- lib/mediawiktory/wikipedia/actions/scribunto-console.rb
|
224
|
+
- lib/mediawiktory/wikipedia/actions/setglobalaccountstatus.rb
|
225
|
+
- lib/mediawiktory/wikipedia/actions/setnotificationtimestamp.rb
|
226
|
+
- lib/mediawiktory/wikipedia/actions/setpagelanguage.rb
|
227
|
+
- lib/mediawiktory/wikipedia/actions/shortenurl.rb
|
228
|
+
- lib/mediawiktory/wikipedia/actions/sitematrix.rb
|
229
|
+
- lib/mediawiktory/wikipedia/actions/spamblacklist.rb
|
230
|
+
- lib/mediawiktory/wikipedia/actions/stabilize.rb
|
231
|
+
- lib/mediawiktory/wikipedia/actions/stashedit.rb
|
232
|
+
- lib/mediawiktory/wikipedia/actions/strikevote.rb
|
233
|
+
- lib/mediawiktory/wikipedia/actions/tag.rb
|
234
|
+
- lib/mediawiktory/wikipedia/actions/templatedata.rb
|
235
|
+
- lib/mediawiktory/wikipedia/actions/thank.rb
|
236
|
+
- lib/mediawiktory/wikipedia/actions/titleblacklist.rb
|
237
|
+
- lib/mediawiktory/wikipedia/actions/tokens.rb
|
238
|
+
- lib/mediawiktory/wikipedia/actions/transcodereset.rb
|
239
|
+
- lib/mediawiktory/wikipedia/actions/ulslocalization.rb
|
240
|
+
- lib/mediawiktory/wikipedia/actions/unblock.rb
|
241
|
+
- lib/mediawiktory/wikipedia/actions/undelete.rb
|
242
|
+
- lib/mediawiktory/wikipedia/actions/unlinkaccount.rb
|
243
|
+
- lib/mediawiktory/wikipedia/actions/upload.rb
|
244
|
+
- lib/mediawiktory/wikipedia/actions/userrights.rb
|
245
|
+
- lib/mediawiktory/wikipedia/actions/validatepassword.rb
|
246
|
+
- lib/mediawiktory/wikipedia/actions/visualeditor.rb
|
247
|
+
- lib/mediawiktory/wikipedia/actions/visualeditoredit.rb
|
248
|
+
- lib/mediawiktory/wikipedia/actions/watch.rb
|
249
|
+
- lib/mediawiktory/wikipedia/actions/webapp-manifest.rb
|
250
|
+
- lib/mediawiktory/wikipedia/actions/wikilove.rb
|
251
|
+
- lib/mediawiktory/wikipedia/actions/zeroconfig.rb
|
252
|
+
- lib/mediawiktory/wikipedia/api.rb
|
253
|
+
- lib/mediawiktory/wikipedia/client.rb
|
254
|
+
- lib/mediawiktory/wikipedia/modules/abusefilters.rb
|
255
|
+
- lib/mediawiktory/wikipedia/modules/abuselog.rb
|
256
|
+
- lib/mediawiktory/wikipedia/modules/allcategories.rb
|
257
|
+
- lib/mediawiktory/wikipedia/modules/alldeletedrevisions.rb
|
258
|
+
- lib/mediawiktory/wikipedia/modules/allfileusages.rb
|
259
|
+
- lib/mediawiktory/wikipedia/modules/allimages.rb
|
260
|
+
- lib/mediawiktory/wikipedia/modules/alllinks.rb
|
261
|
+
- lib/mediawiktory/wikipedia/modules/allmessages.rb
|
262
|
+
- lib/mediawiktory/wikipedia/modules/allpages.rb
|
263
|
+
- lib/mediawiktory/wikipedia/modules/allredirects.rb
|
264
|
+
- lib/mediawiktory/wikipedia/modules/allrevisions.rb
|
265
|
+
- lib/mediawiktory/wikipedia/modules/alltransclusions.rb
|
266
|
+
- lib/mediawiktory/wikipedia/modules/allusers.rb
|
267
|
+
- lib/mediawiktory/wikipedia/modules/authmanagerinfo.rb
|
268
|
+
- lib/mediawiktory/wikipedia/modules/babel.rb
|
269
|
+
- lib/mediawiktory/wikipedia/modules/backlinks.rb
|
270
|
+
- lib/mediawiktory/wikipedia/modules/betafeatures.rb
|
271
|
+
- lib/mediawiktory/wikipedia/modules/blocks.rb
|
272
|
+
- lib/mediawiktory/wikipedia/modules/categories.rb
|
273
|
+
- lib/mediawiktory/wikipedia/modules/categoryinfo.rb
|
274
|
+
- lib/mediawiktory/wikipedia/modules/categorymembers.rb
|
275
|
+
- lib/mediawiktory/wikipedia/modules/centralnoticelogs.rb
|
276
|
+
- lib/mediawiktory/wikipedia/modules/checkuser.rb
|
277
|
+
- lib/mediawiktory/wikipedia/modules/checkuserlog.rb
|
278
|
+
- lib/mediawiktory/wikipedia/modules/contenttranslation.rb
|
279
|
+
- lib/mediawiktory/wikipedia/modules/contenttranslationcorpora.rb
|
280
|
+
- lib/mediawiktory/wikipedia/modules/contenttranslationlangtrend.rb
|
281
|
+
- lib/mediawiktory/wikipedia/modules/contenttranslationstats.rb
|
282
|
+
- lib/mediawiktory/wikipedia/modules/contenttranslationsuggestions.rb
|
283
|
+
- lib/mediawiktory/wikipedia/modules/contributors.rb
|
284
|
+
- lib/mediawiktory/wikipedia/modules/coordinates.rb
|
285
|
+
- lib/mediawiktory/wikipedia/modules/cxpublishedtranslations.rb
|
286
|
+
- lib/mediawiktory/wikipedia/modules/cxtranslatorstats.rb
|
287
|
+
- lib/mediawiktory/wikipedia/modules/deletedrevisions.rb
|
288
|
+
- lib/mediawiktory/wikipedia/modules/deletedrevs.rb
|
289
|
+
- lib/mediawiktory/wikipedia/modules/duplicatefiles.rb
|
290
|
+
- lib/mediawiktory/wikipedia/modules/embeddedin.rb
|
291
|
+
- lib/mediawiktory/wikipedia/modules/extlinks.rb
|
292
|
+
- lib/mediawiktory/wikipedia/modules/extracts.rb
|
293
|
+
- lib/mediawiktory/wikipedia/modules/exturlusage.rb
|
294
|
+
- lib/mediawiktory/wikipedia/modules/featureusage.rb
|
295
|
+
- lib/mediawiktory/wikipedia/modules/filearchive.rb
|
296
|
+
- lib/mediawiktory/wikipedia/modules/filerepoinfo.rb
|
297
|
+
- lib/mediawiktory/wikipedia/modules/fileusage.rb
|
298
|
+
- lib/mediawiktory/wikipedia/modules/flagged.rb
|
299
|
+
- lib/mediawiktory/wikipedia/modules/g-allcategories.rb
|
300
|
+
- lib/mediawiktory/wikipedia/modules/g-alldeletedrevisions.rb
|
301
|
+
- lib/mediawiktory/wikipedia/modules/g-allfileusages.rb
|
302
|
+
- lib/mediawiktory/wikipedia/modules/g-allimages.rb
|
303
|
+
- lib/mediawiktory/wikipedia/modules/g-alllinks.rb
|
304
|
+
- lib/mediawiktory/wikipedia/modules/g-allpages.rb
|
305
|
+
- lib/mediawiktory/wikipedia/modules/g-allredirects.rb
|
306
|
+
- lib/mediawiktory/wikipedia/modules/g-allrevisions.rb
|
307
|
+
- lib/mediawiktory/wikipedia/modules/g-alltransclusions.rb
|
308
|
+
- lib/mediawiktory/wikipedia/modules/g-backlinks.rb
|
309
|
+
- lib/mediawiktory/wikipedia/modules/g-categories.rb
|
310
|
+
- lib/mediawiktory/wikipedia/modules/g-categorymembers.rb
|
311
|
+
- lib/mediawiktory/wikipedia/modules/g-contenttranslation.rb
|
312
|
+
- lib/mediawiktory/wikipedia/modules/g-contenttranslationsuggestions.rb
|
313
|
+
- lib/mediawiktory/wikipedia/modules/g-deletedrevisions.rb
|
314
|
+
- lib/mediawiktory/wikipedia/modules/g-duplicatefiles.rb
|
315
|
+
- lib/mediawiktory/wikipedia/modules/g-embeddedin.rb
|
316
|
+
- lib/mediawiktory/wikipedia/modules/g-exturlusage.rb
|
317
|
+
- lib/mediawiktory/wikipedia/modules/g-fileusage.rb
|
318
|
+
- lib/mediawiktory/wikipedia/modules/g-geosearch.rb
|
319
|
+
- lib/mediawiktory/wikipedia/modules/g-gettingstartedgetpages.rb
|
320
|
+
- lib/mediawiktory/wikipedia/modules/g-images.rb
|
321
|
+
- lib/mediawiktory/wikipedia/modules/g-imageusage.rb
|
322
|
+
- lib/mediawiktory/wikipedia/modules/g-iwbacklinks.rb
|
323
|
+
- lib/mediawiktory/wikipedia/modules/g-langbacklinks.rb
|
324
|
+
- lib/mediawiktory/wikipedia/modules/g-links.rb
|
325
|
+
- lib/mediawiktory/wikipedia/modules/g-linkshere.rb
|
326
|
+
- lib/mediawiktory/wikipedia/modules/g-mostviewed.rb
|
327
|
+
- lib/mediawiktory/wikipedia/modules/g-oldreviewedpages.rb
|
328
|
+
- lib/mediawiktory/wikipedia/modules/g-pageswithprop.rb
|
329
|
+
- lib/mediawiktory/wikipedia/modules/g-prefixsearch.rb
|
330
|
+
- lib/mediawiktory/wikipedia/modules/g-projectpages.rb
|
331
|
+
- lib/mediawiktory/wikipedia/modules/g-protectedtitles.rb
|
332
|
+
- lib/mediawiktory/wikipedia/modules/g-querypage.rb
|
333
|
+
- lib/mediawiktory/wikipedia/modules/g-random.rb
|
334
|
+
- lib/mediawiktory/wikipedia/modules/g-recentchanges.rb
|
335
|
+
- lib/mediawiktory/wikipedia/modules/g-redirects.rb
|
336
|
+
- lib/mediawiktory/wikipedia/modules/g-revisions.rb
|
337
|
+
- lib/mediawiktory/wikipedia/modules/g-search.rb
|
338
|
+
- lib/mediawiktory/wikipedia/modules/g-templates.rb
|
339
|
+
- lib/mediawiktory/wikipedia/modules/g-transcludedin.rb
|
340
|
+
- lib/mediawiktory/wikipedia/modules/g-watchlist.rb
|
341
|
+
- lib/mediawiktory/wikipedia/modules/g-watchlistraw.rb
|
342
|
+
- lib/mediawiktory/wikipedia/modules/g-wblistentityusage.rb
|
343
|
+
- lib/mediawiktory/wikipedia/modules/gadgetcategories.rb
|
344
|
+
- lib/mediawiktory/wikipedia/modules/gadgets.rb
|
345
|
+
- lib/mediawiktory/wikipedia/modules/geosearch.rb
|
346
|
+
- lib/mediawiktory/wikipedia/modules/gettingstartedgetpages.rb
|
347
|
+
- lib/mediawiktory/wikipedia/modules/globalallusers.rb
|
348
|
+
- lib/mediawiktory/wikipedia/modules/globalblocks.rb
|
349
|
+
- lib/mediawiktory/wikipedia/modules/globalgroups.rb
|
350
|
+
- lib/mediawiktory/wikipedia/modules/globalusage.rb
|
351
|
+
- lib/mediawiktory/wikipedia/modules/globaluserinfo.rb
|
352
|
+
- lib/mediawiktory/wikipedia/modules/imageinfo.rb
|
353
|
+
- lib/mediawiktory/wikipedia/modules/images.rb
|
354
|
+
- lib/mediawiktory/wikipedia/modules/imageusage.rb
|
355
|
+
- lib/mediawiktory/wikipedia/modules/info.rb
|
356
|
+
- lib/mediawiktory/wikipedia/modules/iwbacklinks.rb
|
357
|
+
- lib/mediawiktory/wikipedia/modules/iwlinks.rb
|
358
|
+
- lib/mediawiktory/wikipedia/modules/json.rb
|
359
|
+
- lib/mediawiktory/wikipedia/modules/jsonfm.rb
|
360
|
+
- lib/mediawiktory/wikipedia/modules/langbacklinks.rb
|
361
|
+
- lib/mediawiktory/wikipedia/modules/langlinks.rb
|
362
|
+
- lib/mediawiktory/wikipedia/modules/links.rb
|
363
|
+
- lib/mediawiktory/wikipedia/modules/linkshere.rb
|
364
|
+
- lib/mediawiktory/wikipedia/modules/logevents.rb
|
365
|
+
- lib/mediawiktory/wikipedia/modules/mapdata.rb
|
366
|
+
- lib/mediawiktory/wikipedia/modules/mmsites.rb
|
367
|
+
- lib/mediawiktory/wikipedia/modules/mostviewed.rb
|
368
|
+
- lib/mediawiktory/wikipedia/modules/mystashedfiles.rb
|
369
|
+
- lib/mediawiktory/wikipedia/modules/none.rb
|
370
|
+
- lib/mediawiktory/wikipedia/modules/notifications.rb
|
371
|
+
- lib/mediawiktory/wikipedia/modules/oath.rb
|
372
|
+
- lib/mediawiktory/wikipedia/modules/oldreviewedpages.rb
|
373
|
+
- lib/mediawiktory/wikipedia/modules/ores.rb
|
374
|
+
- lib/mediawiktory/wikipedia/modules/pageassessments.rb
|
375
|
+
- lib/mediawiktory/wikipedia/modules/pageimages.rb
|
376
|
+
- lib/mediawiktory/wikipedia/modules/pagepropnames.rb
|
377
|
+
- lib/mediawiktory/wikipedia/modules/pageprops.rb
|
378
|
+
- lib/mediawiktory/wikipedia/modules/pageswithprop.rb
|
379
|
+
- lib/mediawiktory/wikipedia/modules/pageterms.rb
|
380
|
+
- lib/mediawiktory/wikipedia/modules/pageviews.rb
|
381
|
+
- lib/mediawiktory/wikipedia/modules/php.rb
|
382
|
+
- lib/mediawiktory/wikipedia/modules/phpfm.rb
|
383
|
+
- lib/mediawiktory/wikipedia/modules/prefixsearch.rb
|
384
|
+
- lib/mediawiktory/wikipedia/modules/projectpages.rb
|
385
|
+
- lib/mediawiktory/wikipedia/modules/projects.rb
|
386
|
+
- lib/mediawiktory/wikipedia/modules/protectedtitles.rb
|
387
|
+
- lib/mediawiktory/wikipedia/modules/querypage.rb
|
388
|
+
- lib/mediawiktory/wikipedia/modules/random.rb
|
389
|
+
- lib/mediawiktory/wikipedia/modules/rawfm.rb
|
390
|
+
- lib/mediawiktory/wikipedia/modules/recentchanges.rb
|
391
|
+
- lib/mediawiktory/wikipedia/modules/redirects.rb
|
392
|
+
- lib/mediawiktory/wikipedia/modules/references.rb
|
393
|
+
- lib/mediawiktory/wikipedia/modules/revisions.rb
|
394
|
+
- lib/mediawiktory/wikipedia/modules/search.rb
|
395
|
+
- lib/mediawiktory/wikipedia/modules/siteinfo.rb
|
396
|
+
- lib/mediawiktory/wikipedia/modules/siteviews.rb
|
397
|
+
- lib/mediawiktory/wikipedia/modules/stashimageinfo.rb
|
398
|
+
- lib/mediawiktory/wikipedia/modules/tags.rb
|
399
|
+
- lib/mediawiktory/wikipedia/modules/templates.rb
|
400
|
+
- lib/mediawiktory/wikipedia/modules/tokens.rb
|
401
|
+
- lib/mediawiktory/wikipedia/modules/transcludedin.rb
|
402
|
+
- lib/mediawiktory/wikipedia/modules/transcodestatus.rb
|
403
|
+
- lib/mediawiktory/wikipedia/modules/unreadnotificationpages.rb
|
404
|
+
- lib/mediawiktory/wikipedia/modules/usercontribs.rb
|
405
|
+
- lib/mediawiktory/wikipedia/modules/userinfo.rb
|
406
|
+
- lib/mediawiktory/wikipedia/modules/users.rb
|
407
|
+
- lib/mediawiktory/wikipedia/modules/videoinfo.rb
|
408
|
+
- lib/mediawiktory/wikipedia/modules/watchlist.rb
|
409
|
+
- lib/mediawiktory/wikipedia/modules/watchlistraw.rb
|
410
|
+
- lib/mediawiktory/wikipedia/modules/wbentityusage.rb
|
411
|
+
- lib/mediawiktory/wikipedia/modules/wblistentityusage.rb
|
412
|
+
- lib/mediawiktory/wikipedia/modules/wikibase.rb
|
413
|
+
- lib/mediawiktory/wikipedia/modules/wikisets.rb
|
414
|
+
- lib/mediawiktory/wikipedia/modules/xml.rb
|
415
|
+
- lib/mediawiktory/wikipedia/modules/xmlfm.rb
|
416
|
+
- lib/mediawiktory/wikipedia/response.rb
|
318
417
|
- lib/nokogiri/more.rb
|
319
418
|
- mediawiktory.gemspec
|
320
|
-
- script/data/api.yaml
|
321
|
-
- script/lib/api.rb
|
322
|
-
- script/lib/module.rb
|
323
|
-
- script/lib/parameter.rb
|
324
|
-
- script/parse_api.rb
|
325
|
-
- test/cache.rb
|
326
419
|
homepage: https://github.com/molybdenum-99/mediawiktory
|
327
420
|
licenses:
|
328
421
|
- MIT
|
329
422
|
metadata: {}
|
330
|
-
post_install_message:
|
423
|
+
post_install_message:
|
331
424
|
rdoc_options: []
|
332
425
|
require_paths:
|
333
426
|
- lib
|
@@ -335,16 +428,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
335
428
|
requirements:
|
336
429
|
- - ">="
|
337
430
|
- !ruby/object:Gem::Version
|
338
|
-
version:
|
431
|
+
version: 2.1.0
|
339
432
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
433
|
requirements:
|
341
434
|
- - ">="
|
342
435
|
- !ruby/object:Gem::Version
|
343
436
|
version: '0'
|
344
437
|
requirements: []
|
345
|
-
rubyforge_project:
|
346
|
-
rubygems_version: 2.6.
|
347
|
-
signing_key:
|
438
|
+
rubyforge_project:
|
439
|
+
rubygems_version: 2.6.8
|
440
|
+
signing_key:
|
348
441
|
specification_version: 4
|
349
442
|
summary: Full-featured MediaWiki client with Arel-like queries
|
350
443
|
test_files: []
|