almanack icon indicating copy to clipboard operation
almanack copied to clipboard

feature request. parse

Open steveb85 opened this issue 6 years ago • 2 comments

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.

steveb85 avatar Jun 11 '19 18:06 steveb85

@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.

Aupajo avatar Jun 16 '19 00:06 Aupajo

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

steveb85 avatar Jun 17 '19 02:06 steveb85