Victor Shepelev

Results 136 issues of Victor Shepelev

(Sorry, it's currently not an bug report/feature request, rather a questions. I am currently evaluating Unitwise for my tasks and haven't find another way to communicate.) ### About `#to_hash` methods...

It's not hard to generate some more code, and allow to have things like: ``` ruby client.query.params # => [:titles, :list, :meta, :generator....] puts client.query.help # Prints something like this...

idea

All data-modifying actions require some dance with "tokens". It should be done transparently for user. See https://www.mediawiki.org/wiki/API:Tokens Note, that token management have different behavior in: - versions < 1.20 -...

idea

From [here](https://www.mediawiki.org/wiki/API:Edit): > If you want to protect against edit conflicts (which is wise), you also need to get the timestamp of the last revision MediaWiktory could automate it (check...

idea

`Action` should have method for parameter validation, and call it automatically before perform. Possible validations: - parameter types; - parameter limitations (like "50 or less" for numerical params), including complex...

enhancement
idea

Follow-up of #8 - Not loose information from API: - API response: `{"error"=>{"code"=>"gcmmissingparam", "info"=>"One of the parameters cmtitle, cmpageid is required", "*"=>"See https://en.wikipedia.org/w/api.php for API usage"}}` - `Response::Error` currenty preserves...

enhancement

Follow-up of #8 - `Response#warnings?` (or `Response#has_warnings?`) - Option to print warnings while performing actions: both for entire client and for concrete action

enhancement

Examples of uncovered cases: * To specify all values, use `*`. * ...A "csrf" token retrieved from action=query&meta=tokens * should be probably converted to "Retrieved by `api.query.meta(:tokens)`" * Flags: read/write...

enhancement

For example: https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bgeosearch `gscoord` param is > Format: Latitude and longitude separated by pipe ("|"). Current usage: ```ruby api.query.geosearch('50.004444|36.231389').... ``` Should be: ```ruby api.query.geosearch(50.004444, 36.231389).... ```

enhancement

Docs: https://www.mediawiki.org/wiki/API:Upload Approach to utilize: https://github.com/lostisland/faraday#advanced-middleware-usage

enhancement