lib/media_wiki/gateway.rb in mediawiki-gateway-0.2.3 vs lib/media_wiki/gateway.rb in mediawiki-gateway-0.2.4

- old
+ new

@@ -15,10 +15,10 @@ # [loglevel] Log level to use (optional, defaults to Logger::WARN) def initialize(url, loglevel = Logger::WARN) @log = Logger.new(STDERR) @log.level = loglevel @wiki_url = url - @headers = { "User-Agent" => "MediaWiki::Gateway/#{MediaWiki.version}" } + @headers = { "User-Agent" => "MediaWiki::Gateway/#{MediaWiki::VERSION}" } @cookies = {} end attr_reader :base_url