lib/almanack/configuration.rb in almanack-1.0.0 vs lib/almanack/configuration.rb in almanack-1.0.1
- old
+ new
@@ -5,19 +5,21 @@
module Almanack
class Configuration
class ThemeNotFound < StandardError; end
DEFAULT_THEME = "legacy"
+ DEFAULT_DAYS_LOOKAHEAD = 30
attr_reader :event_sources
- attr_accessor :title, :theme, :theme_paths, :theme_root
+ attr_accessor :title, :theme, :theme_paths, :theme_root, :days_lookahead
def initialize
reset!
end
def reset!
@theme = DEFAULT_THEME
+ @days_lookahead = DEFAULT_DAYS_LOOKAHEAD
@event_sources = []
@theme_paths = [
Pathname.pwd.join('themes'),
Pathname(__dir__).join('themes')