Sha256: 9beda6aee84300021df6c5f48e5b380c203c4a125cf60d240f49bf743828552b

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

require 'rake'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'spec/rake/spectask'

task :default => ['spec']

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

Rake::RDocTask.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']
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec,gems']
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/media_wiki_gateway"
    gemspec.authors = ["Jani Patokallio"]
    gemspec.add_dependency 'rest_client'
  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.1.1 Rakefile