jpatokal / mediawiki-gateway

Ruby framework for MediaWiki API manipulation
Other
133 stars 50 forks source link

Allow page edit to not overwrite existing page #90

Closed MusikAnimal closed 8 years ago

MusikAnimal commented 8 years ago

Setup Pages#edit to allow modifying pages and not overwriting them completely. This is very useful when you only want to edit a particular section. I think this is backwards compatible, only difference being now there's the potential for an edit conflict.

jpatokal commented 8 years ago

I don't object in principle, but way too much code duplication going on there, you'll need to DRY that up.

MusikAnimal commented 8 years ago

Alright I'm baffled. This code does nothing different than what was there before... that is, just do create without the form_data['createonly']. I swear I was having issues editing only a section within a page, which is how I ended up forking this repo (https://github.com/MusikAnimal/mediawiki-gateway). I now wanted to submit some PRs of the work I've added, and I guess this one isn't much of a contribution. Closing!