Sha256: 4ff080fb66daadbbd4f74107944a5c952b68dd1d6ba083ba0ee515b38916de25

Contents?: true

Size: 570 Bytes

Versions: 9

Compression:

Stored size: 570 Bytes

Contents

require "rake/testtask"
require "fileutils"


def gemspec_file
  "lanyon.gemspec"
end


task :default => [:test]

Rake::TestTask.new do |t|
  t.pattern = "test/**/test_*.rb"
  t.verbose = true
  t.warning = true
end


desc "Build gem"
task :build do
  sh "gem build #{gemspec_file}"
end


desc "Remove generated files"
task :clean do
  FileUtils.rm_rf("demo/_site")
  FileUtils.rm(Dir.glob("*.gem"))
end


desc "Serve demo site"
task :demo do
  port = 4000
  puts "Starting server: http://localhost:#{port}/"
  Dir.chdir("demo") { sh "rackup -p #{port} -I ../lib" }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lanyon-0.4.0 Rakefile
lanyon-0.3.4 Rakefile
lanyon-0.3.3 Rakefile
lanyon-0.3.2 Rakefile
lanyon-0.3.1 Rakefile
lanyon-0.3.0 Rakefile
lanyon-0.2.3 Rakefile
lanyon-0.2.2 Rakefile
lanyon-0.2.0 Rakefile