Sha256: e6dd5c26d4c6938f1abd844b0c29abcc4901c5a10608902694f35d7655c6a414

Contents?: true

Size: 982 Bytes

Versions: 7

Compression:

Stored size: 982 Bytes

Contents

$:.push File.expand_path("../lib", __FILE__)
require 'rubygems'
require 'rake'

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/test_*.rb'
  test.verbose = true
end


desc 'Test the wikipedia plugin.'
task :spec do
  spec_path = File.expand_path(File.dirname(__FILE__) + '/spec/**/*.rb')
  system("rspec -cfs #{spec_path}")
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/test_*.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :default => :spec

require 'rdoc/task'
require "wikipedia/version"
Rake::RDocTask.new do |rdoc|
  version = Wikipedia::VERSION

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "wikipedia-client #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wikipedia-client-1.6.3 Rakefile
wikipedia-client-1.6.2 Rakefile
wikipedia-client-1.6.1 Rakefile
wikipedia-client-1.5.0 Rakefile
wikipedia-client-1.4.0 Rakefile
wikipedia-client-1.3.3 Rakefile
wikipedia-client-1.3.2 Rakefile