app/models/calagator/source/parser/ical.rb in koalagator-2.0.0 vs app/models/calagator/source/parser/ical.rb in koalagator-2.1.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require 'calagator/vcalendar'
+require "calagator/vcalendar"
# == Source::Parser::Ical
#
# Reads iCalendar events.
#
@@ -16,10 +16,10 @@
class Source::Parser::Ical < Source::Parser
self.label = :iCalendar
# Override Source::Parser.read_url to handle "webcal" scheme addresses.
def self.read_url(url)
- url = url.gsub(/^webcal:/, 'http:')
+ url = url.gsub(/^webcal:/, "http:")
super
end
def to_events
return false unless vcalendars