Sha256: 3bf08a879e10d1a086daf5749cbb6840c39bdaefcb23b45a7cb1e42621c23dc8

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require "rcov/rcovtask"
require "rake/testtask"
require "rake/rdoctask"
require "lib/browser/version"

Rcov::RcovTask.new do |t|
  t.test_files = FileList["test/**/*_test.rb"]
  t.rcov_opts = ["--sort coverage", "--exclude .gem"]

  t.output_dir = "coverage"
  t.libs << "test"
  t.verbose = true
end

Rake::TestTask.new do |t|
  t.libs << "lib"
  t.libs << "test"
  t.test_files = FileList["test/**/*_test.rb"]
  t.verbose = true
  t.ruby_opts = %w[-rubygems]
end

Rake::RDocTask.new do |rdoc|
  rdoc.main = "README.rdoc"
  rdoc.rdoc_dir = "doc"
  rdoc.title = "Browser API"
  rdoc.options += %w[ --line-numbers --inline-source --charset utf-8 ]
  rdoc.rdoc_files.include("README.rdoc")
  rdoc.rdoc_files.include("lib/**/*.rb")
end

begin
  require "jeweler"

  Jeweler::Tasks.new do |gem|
    gem.name = "browser"
    gem.email = "fnando.vieira@gmail.com"
    gem.homepage = "http://github.com/fnando/browser"
    gem.authors = ["Nando Vieira"]
    gem.version = Browser::Version::STRING
    gem.summary = "Do some browser detection with Ruby."
    gem.files =  FileList["README.rdoc", "{lib,test}/**/*", "Rakefile"]
  end

  Jeweler::GemcutterTasks.new
rescue LoadError => e
  puts "You need to install jeweler to build this gem."
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
browser-0.1.0 Rakefile