FTB-Gamepedia / MediaWiki-Butt-Ruby

A Ruby library for the MediaWiki API
https://rubygems.org/gems/mediawiki-butt
MIT License
9 stars 2 forks source link

Strange get_contrib_count (and probably others) behavior with slightly incorrect names #55

Closed elifoster closed 7 years ago

elifoster commented 7 years ago

For example (FTB), get_contrib_count('ImmortalPharaoh7') returns the expected data, get_contrib_count('ImmortalPharaoh7 ') throws an error. get_userlists('editcount', 'ImmortalPharaoh7 ') returns the expected data. However, because get_contrib_count, and likely others, check for username equality its find call does not return anything. I'm not sure how we could handle this without sacrificing data accuracy.