Json output

Add support for basic JSON generation in Calendars
Got it - so this for performance reasons, then?   Let's sync up offline for
a bit later today.

On Tue, Sep 30, 2014 at 12:33 PM, Rob Cole <notifications@github.com> wrote:

> In lib/simple_icloud_calendar/event_importer.rb:
>
> > +      # TODO: Add Recurring Event Support
> > +      nonrecurring_events.find_all do |event|
> > +        @date_range.cover?(event.dtstart.to_date)
> > +      end.force
> > +    end
> > +
> > +    def date_range
> > +      ((@config.start_date)..(@config.end_date))
> > +    end
> > +
> > +    def occurs_in_range?(event, date_range = self.date_range)
> > +
> > +    end
> > +
> > +    def recurring_events
> > +      self.icalendar_events.lazy.find_all do |event|
>
> Lazyness keeps the find_all/selects from being evaluated until the last
> call (the date range selection in find_events), so I can chain multiple
> calls to Enumerable to refine the results.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/robcole/simple_icloud_calendar/pull/1/files#r18237405>
> .
>