Sha256: bdd0550c9d6bee3cb3912e62ba3de25b6be585ad6d2a74242d2c5dd702e3c7b1

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "stack"
    gem.summary = %Q{Simple static site generator.}
    gem.description = %Q{Generates a static site from template files with YAML and Liquid. Stack supports template transformation through Markdown, Textile and Less CSS.}
    gem.email = "dev@sixones.com"
    gem.homepage = "http://github.com/sixones/stack"
    gem.authors = ["sixones"]
    
    gem.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
    
    gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
    
    gem.add_dependency "liquid", ">= 1.9.0"
    gem.add_dependency "RedCloth", ">= 4.2.1"
    gem.add_dependency "maruku", ">= 0.5.9"
    gem.add_dependency "less", ">= 1.0.0"

    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  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 :test => :check_dependencies

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 = "stack #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc "provide a console like merb -i or script/console"
task :console do
  exec "irb -r irb/completion -r lib/stack.rb"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stack-0.0.5 Rakefile