Sha256: 76ab0b30ff57ea41f77fd8f9da9c1141bde304b55ab1d161f10e34d057619180

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

desc 'Run a dummy server'
task :server do
  require "almanack"

  today = DateTime.now

  Almanack.config.add_events [
    { title: "Hogswatch", start_date: today },
    { title: "Soul Cake Tuesday", start_date: today + 10 },
    { title: "Eve of Small Gods", start_date: today + 30 },
  ]

  Rack::Handler::WEBrick.run(Almanack::Server)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
almanack-0.0.1.alpha2 Rakefile
almanack-0.0.1.alpha1 Rakefile