Skip to content
This repository was archived by the owner on Sep 6, 2018. It is now read-only.

Commit 919b779

Browse files
Monkeypatching rubyredrick/ri_cal#5 to fix X-Properties
1 parent 578433e commit 919b779

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/mta-status-ical.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ def titleize
1313
end
1414
end
1515

16+
class RiCal::Component::Calendar
17+
def export_x_properties_to(export_stream) #:nodoc:
18+
x_properties.each do |name, props|
19+
props.each do | prop |
20+
export_stream.puts("#{name}#{prop}")
21+
end
22+
end
23+
end
24+
end
25+
1626
def douchebag(name)
1727
name =~ /\s|[a-z]|SIR/
1828
end

0 commit comments

Comments
 (0)