Sha256: 7451251a800d78c98dea651257f17b0c9ca14c74bed535ab70aab6e71d8b545a

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 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 in Liquid, Markdown and Textile.}
    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 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.3 Rakefile