Sha256: 232cdb0b328858ee4d644faa39610d4e35f7a1fd6d87af5c5da8a27665440aba

Contents?: true

Size: 840 Bytes

Versions: 17

Compression:

Stored size: 840 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_time: now + Almanack::ONE_DAY,
      end_time: now + Almanack::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_time: now + 10 * Almanack::ONE_DAY },
    { title: "Eve of Small Gods", start_time: now + 30 * Almanack::ONE_DAY },
  ]
end

run Almanack::Server

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
almanack-1.3.1 example.ru
almanack-1.3.0 example.ru
almanack-1.3.0.rc1 example.ru
almanack-1.2.1 example.ru
almanack-1.2.0 example.ru
almanack-1.1.5 example.ru
almanack-1.1.3 example.ru
almanack-1.1.3.rc1 example.ru
almanack-1.1.2 example.ru
almanack-1.1.1 example.ru
almanack-1.1.0 example.ru
almanack-1.1.0.beta6 example.ru
almanack-1.1.0.beta5 example.ru
almanack-1.1.0.beta4 example.ru
almanack-1.1.0.beta3 example.ru
almanack-1.1.0.beta2 example.ru
almanack-1.1.0.beta1 example.ru