diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-10-10 20:26:24 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-10-10 20:26:24 +0200 |
commit | d08fa4e375748f0f2232ea75645cb15126155047 (patch) | |
tree | a157b2419601c8abc77ac1b72405a5aab3fcb779 /lib | |
parent | 51ef51bbe3b741a76d1d44b8ce8c1d8a07427e1f (diff) | |
download | ramaskrik-program-d08fa4e375748f0f2232ea75645cb15126155047.tar.gz ramaskrik-program-d08fa4e375748f0f2232ea75645cb15126155047.tar.bz2 ramaskrik-program-d08fa4e375748f0f2232ea75645cb15126155047.zip |
Updates for Ramaskrik 2024
- Don't hardcode year, use todays year instead.
- Move output to separate build dir to make it a bit cleaner.
- Misc fixes to set correct timezone in .ics file (still hardcoded,
though...)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/events.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/events.rb b/lib/events.rb index e647930..de9af64 100644 --- a/lib/events.rb +++ b/lib/events.rb @@ -21,6 +21,10 @@ module Events @start_time.to_date end + def end_time + @start_time + @duration + end + def slug "#{start_time.to_i}-#{title.downcase.gsub(/[^a-z0-9_-]/, '')}" end |