Module: Almanack

Defined in:
lib/almanack/cli.rb,
lib/almanack/base.rb,
lib/almanack/event.rb,
lib/almanack/server.rb,
lib/almanack/version.rb,
lib/almanack/calendar.rb,
lib/almanack/configuration.rb,
lib/almanack/server/helpers.rb,
lib/almanack/event_source/ical.rb,
lib/almanack/server/environment.rb,
lib/almanack/event_source/static.rb,
lib/almanack/event_source/ical_feed.rb,
lib/almanack/representation/ical_feed.rb,
lib/almanack/representation/json_feed.rb,
lib/almanack/serialized_transformation.rb,
lib/almanack/representation/built_ical_event.rb

Defined Under Namespace

Modules: EventSource, Representation, ServerContext Classes: CLI, Calendar, Configuration, Event, SerializedTransformation, Server

Constant Summary collapse

ONE_HOUR =
60 * 60
ONE_DAY =
24 * ONE_HOUR
ONE_MONTH =
30 * ONE_DAY
ONE_YEAR =
365 * ONE_DAY
CODENAME =
"Garlick"
VERSION =
"1.3.1"
HOMEPAGE =
"https://github.com/Aupajo/almanack"
ISSUES =
"https://github.com/Aupajo/almanack/issues"

Class Method Summary collapse

Class Method Details

.calendarObject



14
15
16
# File 'lib/almanack/base.rb', line 14

def calendar
  @calendar ||= Calendar.new(config)
end

.config {|@config| ... } ⇒ Object

Yields:



8
9
10
11
12
# File 'lib/almanack/base.rb', line 8

def config(&block)
  @config ||= Configuration.new
  yield @config if block_given?
  @config
end

.reset!Object



18
19
20
# File 'lib/almanack/base.rb', line 18

def reset!
  config.reset!
end