Sha256: ac1904b9b306315948a5bdd2b966c4b2bc10aab67201a89d43ee91cac8821016

Contents?: true

Size: 880 Bytes

Versions: 8

Compression:

Stored size: 880 Bytes

Contents

require "bundler/setup"
require "almanack/server"

now = Time.now

Almanack.config do |calendar|
  calendar.title = 'Discworld Holidays'

  calendar.theme = 'starter'

  calendar.add_events [
    {
      title: "Hogswatch",
      start_date: now + Almanack::Calendar::ONE_DAY,
      end_date: now + Almanack::Calendar::ONE_DAY * 2,
      description: 'The sausages have been strung, the wreaths of oakleaves hung and the stockings dangled. The pork pie, the sherry and the all-important turnip await their festive guests. The poker lent against the fireplace may or may not have been bent over the head of some nightmare creature.',
      location: 'Castle of Bones'
    },
    { title: "Soul Cake Tuesday", start_date: now + 10 * Almanack::Calendar::ONE_DAY },
    { title: "Eve of Small Gods", start_date: now + 30 * Almanack::Calendar::ONE_DAY },
  ]
end

run Almanack::Server

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
almanack-1.0.5 example.ru
almanack-1.0.4 example.ru
almanack-1.0.3 example.ru
almanack-1.0.2 example.ru
almanack-1.0.1 example.ru
almanack-1.0.0 example.ru
almanack-1.0.0.pre1 example.ru
almanack-1.0.0.pre example.ru