-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathchurch_calendar.rb
More file actions
30 lines (25 loc) · 1001 Bytes
/
Copy pathchurch_calendar.rb
File metadata and controls
30 lines (25 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module ChurchCalendar
# year of promulgation of the implemented calendar system
CALENDAR_PROMULGATED = 1969
CALENDAR_START = CalendariumRomanum::Calendar::EFFECTIVE_FROM.year
CALENDAR_SYSTEM_DESC = {
promulgated: CALENDAR_PROMULGATED,
effective_since: CALENDAR_START,
desc: "promulgated by motu proprio Mysterii Paschalis of Paul VI. (AAS 61 (1969), pp. 222-226)."
}
APP_ROOT = File.expand_path '../../..', File.dirname(__FILE__)
CALENDARS_CONFIG = File.join APP_ROOT, 'config', 'calendars.yml'
DATA_PATH = File.join APP_ROOT, 'data'
# languages supported
LANGS = [:cs, :en, :fr, :it, :la, :es]
@@calendars_repository =
CalendarRepository.load_from CALENDARS_CONFIG, DATA_PATH
def self.calendars
@@calendars_repository
end
@@parameters =
YAML.load File.read File.join(APP_ROOT, 'config', 'parameters.yml')
def self.parameters
@@parameters
end
end