Sha256: 623e412d490ec149c1064ac9931c4d4d0cb772cb3b8992acf3d228e3800a65e5
Contents?: true
Size: 785 Bytes
Versions: 4
Compression:
Stored size: 785 Bytes
Contents
Samples for using MediaWiki::Gateway. These expect to be run from the MediaWiki::Gateway root directory with ./config/hosts.yml accessible and configured with real usernames, passwords etc. Remove Logger::DEBUG from samples for less verbose output. All the samples use the local instance of MediaWiki::Gateway in ./lib. To use an installed gem, use this require line instead: require 'media_wiki' Examples: Check syntax for create page sample script ruby samples/create_page.rb Pipe the content of "content.txt" into the page 'Sandbox:MediaWikiGatewayTest' on the English Wikipedia ruby samples/create_page.rb -h en-wp -a Sandbox:MediaWikiGatewayTest <content.txt *or* ruby samples/create_page.rb --host en-wp --article Sandbox:MediaWikiGatewayTest <content.txt
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mediawiki-gateway-0.6.2 | samples/README |
mediawiki-gateway-0.6.1 | samples/README |
mediawiki-gateway-0.6.0 | samples/README |
mediawiki-gateway-0.5.2 | samples/README |