Sha256: 596c6082a536aef0f43ed3d0df79d97a6cdd9c8ab90f0fa946425731112b4a76

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

require 'thread'
require 'rake'
require "rubygems/package_task"
require 'rdoc/task'
require 'spec/rake/spectask'
require_relative 'lib/media_wiki'

task :default => ['spec']

desc 'generate API documentation to doc/index.html'

RDoc::Task.new do |rd|
  rd.rdoc_dir = 'doc'
  rd.main = 'README'
  rd.rdoc_files.include "README", "lib/media_wiki/**/*\.rb", "script/**/*\.rb"
  rd.options << '--inline-source'
  rd.options << '--line-numbers'
  rd.options << '--all'
end

desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
  t.spec_files = FileList['spec/**/*.rb']
  t.spec_opts = ['--debugger']
end


begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "mediawiki-gateway"
    gemspec.summary = "Connect to the mediawiki API"
    gemspec.description = ""
    gemspec.email = "jpatokal@iki.fi"
    gemspec.homepage = "http://github.com/jpatokal/mediawiki-gateway"
    gemspec.authors = ["Jani Patokallio"]
    gemspec.version = MediaWiki::VERSION
  end
rescue LoadError
  puts "Jeweler not available. Install it with: gem install jeweler"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mediawiki-gateway-0.6.0 Rakefile