jpatokal / mediawiki-gateway

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

add repository location to the default user-agent #65

Closed fhocutt closed 10 years ago

fhocutt commented 10 years ago

Add https://github.com/jpatokal/mediawiki-gateway/issues/new to the default user-agent for the library, to make traffic analysis easier and comply with the user-agent policy for WMF wikis (https://meta.wikimedia.org/wiki/User-agent_policy)

jpatokal commented 10 years ago

The WMF bot policy requires contact information for the bot operator, not the library used -- it's not my responsibility, nor can I do anything, if somebody uses the library for something evil or stupid.

FWIW, the bot already includes a default User-Agent, which can be customized by overriding it with a custom header: https://github.com/jpatokal/mediawiki-gateway/blob/master/lib/media_wiki/gateway.rb#L44