Sha256: 1740a56a88aa88da2ac033195bf30cc4d84c809a1f132ab89c5dec90c8dff71c

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "deadweight"
    gem.summary = "RCov for CSS"
    gem.email = "aanand.prasad@gmail.com"
    gem.homepage = "http://github.com/aanand/deadweight"
    gem.authors = ["Aanand Prasad"]

    gem.add_dependency('css_parser')
    gem.add_dependency('hpricot')
  end

rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
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 => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION.yml')
    config = YAML.load(File.read('VERSION.yml'))
    version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
  else
    version = ""
  end

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
aanand-deadweight-0.0.1 Rakefile
aanand-deadweight-0.0.2 Rakefile
aanand-deadweight-0.0.3 Rakefile
aanand-deadweight-0.1.0 Rakefile
mojodna-deadweight-0.0.4 Rakefile