Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

feature request. parse #29

Open
steveb85 opened this issue Jun 11, 2019 · 2 comments
Open

feature request. parse #29

steveb85 opened this issue Jun 11, 2019 · 2 comments

Comments

@steveb85
Copy link

steveb85 commented Jun 11, 2019

Would it be hard to modify, so that all event details are parsed, leaving only the title "Busy" and the time, no location, details, invites etc etc. I know that Google and Exchange servers support this, but iCloud doesn't have this feature anymore. I can do it in the styling, but that doesn't actually change the ics file which is sync'd by external calendar programs.

@Aupajo
Copy link
Owner

Aupajo commented Jun 16, 2019

@steveb85 No, I don't think it would be too hard to do.

You could monkey-patch the Event class:

# config.ru
require 'almanack/server'

class Almanack::Event < OpenStruct
  def initialize(**attrs)
    attrs.merge!(title: "Busy", location: nil, description: nil)
    super
  end
end

Almanack.configure do |c|
# ...

This is a brittle solution, as I might change how event construction works in future releases but would solve your immediate issue.

@steveb85
Copy link
Author

This is perfect!! thanks @Aupajo got it up and running already! appreciate it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants