Sha256: b9da42b75a433304dc883c3e18dbc0d3e6154aa4fb2b5080e633f702b12f849e

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

require 'rubygems'
require 'rake'

require File.join(File.dirname(__FILE__), "lib", "slim")

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "slim"
    gem.version = Slim.version
    gem.rubyforge_project = gem.name
    gem.summary = "Slim is a template language."
    gem.description = "Slim is a template language whose goal is reduce the syntax to the essential parts without becoming cryptic."
    gem.homepage = "http://github.com/stonean/slim"
    gem.authors = ["Andrew Stone", "Fred Wu"]
    gem.email = ["andy@stonean.com", "ifredwu@gmail.com"]
    gem.files = ['*', 'lib/**/*', 'test/**/*']
    gem.add_dependency 'escape_utils'
    gem.add_development_dependency 'rake'
    gem.add_development_dependency 'jeweler'
    gem.add_development_dependency 'haml'
    gem.add_development_dependency 'mustache'
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
end

begin
  require 'yard'
  YARD::Rake::YardocTask.new do |t|
    t.files   = FileList['lib/**/*.rb']
    t.options = ['-r'] # optional
  end
rescue LoadError
  task :yard do
    abort "YARD is not available. In order to run yard, you must: gem install yard"
  end
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: gem install rcov"
  end
end

task :default => 'test'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slim-0.6.0 Rakefile
slim-0.6.0.beta.3 Rakefile
slim-0.6.0.beta.2 Rakefile