icalendar 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +26 -3
- data/docs/api/classes/Array.html +155 -0
- data/docs/api/classes/Bignum.html +148 -0
- data/docs/api/classes/Date.html +172 -0
- data/docs/api/classes/DateTime.html +200 -0
- data/docs/api/classes/Fixnum.html +148 -0
- data/docs/api/classes/Float.html +148 -0
- data/docs/api/classes/HashAttrs.html +212 -0
- data/docs/api/classes/Icalendar/Alarm.html +228 -0
- data/docs/api/classes/Icalendar/Base.html +179 -0
- data/docs/api/classes/Icalendar/Calendar.html +504 -0
- data/docs/api/classes/Icalendar/Component.html +853 -0
- data/docs/api/classes/Icalendar/DateProp.html +187 -0
- data/docs/api/classes/Icalendar/DateProp/ClassMethods.html +195 -0
- data/docs/api/classes/Icalendar/Daylight.html +156 -0
- data/docs/api/classes/Icalendar/Event.html +671 -0
- data/docs/api/classes/Icalendar/Freebusy.html +266 -0
- data/docs/api/classes/Icalendar/Geo.html +211 -0
- data/docs/api/classes/Icalendar/InvalidPropertyValue.html +117 -0
- data/docs/api/classes/Icalendar/Journal.html +443 -0
- data/docs/api/classes/Icalendar/Parameter.html +166 -0
- data/docs/api/classes/Icalendar/Parser.html +352 -0
- data/docs/api/classes/Icalendar/RRule.html +428 -0
- data/docs/api/classes/Icalendar/RRule/Weekday.html +199 -0
- data/docs/api/classes/Icalendar/Standard.html +156 -0
- data/docs/api/classes/Icalendar/Timezone.html +450 -0
- data/docs/api/classes/Icalendar/Todo.html +480 -0
- data/docs/api/classes/Icalendar/TzidSupport.html +118 -0
- data/docs/api/classes/Icalendar/UnknownComponentClass.html +117 -0
- data/docs/api/classes/Icalendar/UnknownPropertyMethod.html +117 -0
- data/docs/api/classes/Object.html +272 -0
- data/docs/api/classes/String.html +148 -0
- data/docs/api/classes/TZInfo.html +119 -0
- data/docs/api/classes/TZInfo/Timezone.html +153 -0
- data/docs/api/classes/TZInfo/TimezonePeriod.html +200 -0
- data/docs/api/classes/TZInfo/TimezoneTransitionInfo.html +229 -0
- data/docs/api/classes/Time.html +180 -0
- data/docs/api/classes/URI.html +111 -0
- data/docs/api/classes/URI/Generic.html +148 -0
- data/docs/api/created.rid +1 -0
- data/docs/api/files/COPYING.html +163 -0
- data/docs/api/files/GPL.html +531 -0
- data/docs/api/files/README.html +401 -0
- data/docs/api/files/lib/hash_attrs_rb.html +107 -0
- data/docs/api/files/lib/icalendar/base_rb.html +108 -0
- data/docs/api/files/lib/icalendar/calendar_rb.html +101 -0
- data/docs/api/files/lib/icalendar/component/alarm_rb.html +101 -0
- data/docs/api/files/lib/icalendar/component/event_rb.html +101 -0
- data/docs/api/files/lib/icalendar/component/freebusy_rb.html +101 -0
- data/docs/api/files/lib/icalendar/component/journal_rb.html +101 -0
- data/docs/api/files/lib/icalendar/component/timezone_rb.html +101 -0
- data/docs/api/files/lib/icalendar/component/todo_rb.html +101 -0
- data/docs/api/files/lib/icalendar/component_rb.html +108 -0
- data/docs/api/files/lib/icalendar/conversions_rb.html +109 -0
- data/docs/api/files/lib/icalendar/helpers_rb.html +101 -0
- data/docs/api/files/lib/icalendar/parameter_rb.html +101 -0
- data/docs/api/files/lib/icalendar/parser_rb.html +110 -0
- data/docs/api/files/lib/icalendar/rrule_rb.html +110 -0
- data/docs/api/files/lib/icalendar/tzinfo_rb.html +101 -0
- data/docs/api/files/lib/icalendar_rb.html +121 -0
- data/docs/api/files/lib/meta_rb.html +107 -0
- data/docs/api/fr_class_index.html +64 -0
- data/docs/api/fr_file_index.html +47 -0
- data/docs/api/fr_method_index.html +123 -0
- data/docs/api/index.html +24 -0
- data/docs/api/rdoc-style.css +208 -0
- data/lib/icalendar.rb +1 -0
- data/lib/icalendar/component.rb +3 -3
- data/lib/icalendar/component/event.rb +1 -1
- data/lib/icalendar/component/freebusy.rb +1 -0
- data/lib/icalendar/conversions.rb +6 -0
- data/lib/icalendar/conversions.rb.orig +144 -0
- data/lib/icalendar/parser.rb +0 -94
- data/lib/icalendar/rrule.rb +133 -0
- data/test/component/timezone_test.rb +1 -1
- data/test/component_test.rb +10 -0
- data/test/conversions_test.rb +4 -4
- data/test/coverage/index.html +272 -0
- data/test/coverage/lib-hash_attrs_rb.html +235 -0
- data/test/coverage/lib-icalendar-base_rb.html +249 -0
- data/test/coverage/lib-icalendar-calendar_rb.html +324 -0
- data/test/coverage/lib-icalendar-component-alarm_rb.html +250 -0
- data/test/coverage/lib-icalendar-component-event_rb.html +353 -0
- data/test/coverage/lib-icalendar-component-freebusy_rb.html +245 -0
- data/test/coverage/lib-icalendar-component-journal_rb.html +278 -0
- data/test/coverage/lib-icalendar-component-timezone_rb.html +326 -0
- data/test/coverage/lib-icalendar-component-todo_rb.html +277 -0
- data/test/coverage/lib-icalendar-component_rb.html +733 -0
- data/test/coverage/lib-icalendar-conversions_rb.html +358 -0
- data/test/coverage/lib-icalendar-parser_rb.html +671 -0
- data/test/coverage/lib-icalendar-rrule_rb.html +357 -0
- data/test/coverage/lib-icalendar_rb.html +243 -0
- data/test/coverage/lib-meta_rb.html +234 -0
- data/test/fixtures/folding.ics +2 -2
- metadata +113 -36
- data/docs/api/STUB +0 -0
@@ -0,0 +1,278 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
+
<head>
|
4
|
+
<title>
|
5
|
+
lib/icalendar/component/journal.rb - C0 code coverage information
|
6
|
+
</title>
|
7
|
+
<style type='text/css'>
|
8
|
+
body { background-color: rgb(240, 240, 245); }
|
9
|
+
</style>
|
10
|
+
<style type='text/css'>
|
11
|
+
span.cross-ref-title { font-size: 140%; } span.cross-ref a {
|
12
|
+
text-decoration: none; } span.cross-ref { background-color:#f3f7fa;
|
13
|
+
border: 1px dashed #333; margin: 1em; padding: 0.5em; overflow: hidden; }
|
14
|
+
a.crossref-toggle { text-decoration: none; } span.marked0 {
|
15
|
+
background-color: rgb(185, 210, 200); display: block; } span.marked1 {
|
16
|
+
background-color: rgb(190, 215, 205); display: block; } span.inferred0 {
|
17
|
+
background-color: rgb(175, 200, 200); display: block; } span.inferred1 {
|
18
|
+
background-color: rgb(180, 205, 205); display: block; } span.uncovered0 {
|
19
|
+
background-color: rgb(225, 110, 110); display: block; } span.uncovered1 {
|
20
|
+
background-color: rgb(235, 120, 120); display: block; } span.overview {
|
21
|
+
border-bottom: 8px solid black; } div.overview { border-bottom: 8px solid
|
22
|
+
black; } body { font-family: verdana, arial, helvetica; } div.footer {
|
23
|
+
font-size: 68%; margin-top: 1.5em; } h1, h2, h3, h4, h5, h6 {
|
24
|
+
margin-bottom: 0.5em; } h5 { margin-top: 0.5em; } .hidden { display: none;
|
25
|
+
} div.separator { height: 10px; } /* Commented out for better readability,
|
26
|
+
esp. on IE */ /* table tr td, table tr th { font-size: 68%; } td.value
|
27
|
+
table tr td { font-size: 11px; } */ table.percent_graph { height: 12px;
|
28
|
+
border: #808080 1px solid; empty-cells: show; } table.percent_graph
|
29
|
+
td.covered { height: 10px; background: #00f000; } table.percent_graph
|
30
|
+
td.uncovered { height: 10px; background: #e00000; } table.percent_graph
|
31
|
+
td.NA { height: 10px; background: #eaeaea; } table.report {
|
32
|
+
border-collapse: collapse; width: 100%; } table.report td.heading {
|
33
|
+
background: #dcecff; border: #d0d0d0 1px solid; font-weight: bold;
|
34
|
+
text-align: center; } table.report td.heading:hover { background: #c0ffc0;
|
35
|
+
} table.report td.text { border: #d0d0d0 1px solid; } table.report
|
36
|
+
td.value, table.report td.lines_total, table.report td.lines_code {
|
37
|
+
text-align: right; border: #d0d0d0 1px solid; } table.report tr.light {
|
38
|
+
background-color: rgb(240, 240, 245); } table.report tr.dark {
|
39
|
+
background-color: rgb(230, 230, 235); }
|
40
|
+
</style>
|
41
|
+
<script type='text/javascript'>
|
42
|
+
// <![CDATA[ function toggleCode( id ) { if ( document.getElementById )
|
43
|
+
elem = document.getElementById( id ); else if ( document.all ) elem =
|
44
|
+
eval( "document.all." + id ); else return false; elemStyle = elem.style;
|
45
|
+
if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else {
|
46
|
+
elemStyle.display = "none" } return true; } // Make cross-references
|
47
|
+
hidden by default document.writeln( "<style
|
48
|
+
type=\"text/css\">span.cross-ref { display: none }</style>" ) // ]]>
|
49
|
+
</script>
|
50
|
+
<style type='text/css'>
|
51
|
+
span.run0 { background-color: rgb(178, 204, 255); display: block; }
|
52
|
+
span.run1 { background-color: rgb(178, 206, 255); display: block; }
|
53
|
+
span.run2 { background-color: rgb(178, 209, 255); display: block; }
|
54
|
+
span.run3 { background-color: rgb(178, 211, 255); display: block; }
|
55
|
+
span.run4 { background-color: rgb(178, 214, 255); display: block; }
|
56
|
+
span.run5 { background-color: rgb(178, 218, 255); display: block; }
|
57
|
+
span.run6 { background-color: rgb(178, 220, 255); display: block; }
|
58
|
+
span.run7 { background-color: rgb(178, 223, 255); display: block; }
|
59
|
+
span.run8 { background-color: rgb(178, 225, 255); display: block; }
|
60
|
+
span.run9 { background-color: rgb(178, 228, 255); display: block; }
|
61
|
+
span.run10 { background-color: rgb(178, 232, 255); display: block; }
|
62
|
+
span.run11 { background-color: rgb(178, 234, 255); display: block; }
|
63
|
+
span.run12 { background-color: rgb(178, 237, 255); display: block; }
|
64
|
+
span.run13 { background-color: rgb(178, 239, 255); display: block; }
|
65
|
+
span.run14 { background-color: rgb(178, 242, 255); display: block; }
|
66
|
+
span.run15 { background-color: rgb(178, 246, 255); display: block; }
|
67
|
+
span.run16 { background-color: rgb(178, 248, 255); display: block; }
|
68
|
+
span.run17 { background-color: rgb(178, 251, 255); display: block; }
|
69
|
+
span.run18 { background-color: rgb(178, 253, 255); display: block; }
|
70
|
+
span.run19 { background-color: rgb(178, 255, 253); display: block; }
|
71
|
+
span.run20 { background-color: rgb(178, 255, 249); display: block; }
|
72
|
+
span.run21 { background-color: rgb(178, 255, 247); display: block; }
|
73
|
+
span.run22 { background-color: rgb(178, 255, 244); display: block; }
|
74
|
+
span.run23 { background-color: rgb(178, 255, 242); display: block; }
|
75
|
+
span.run24 { background-color: rgb(178, 255, 239); display: block; }
|
76
|
+
span.run25 { background-color: rgb(178, 255, 235); display: block; }
|
77
|
+
span.run26 { background-color: rgb(178, 255, 233); display: block; }
|
78
|
+
span.run27 { background-color: rgb(178, 255, 230); display: block; }
|
79
|
+
span.run28 { background-color: rgb(178, 255, 228); display: block; }
|
80
|
+
span.run29 { background-color: rgb(178, 255, 225); display: block; }
|
81
|
+
span.run30 { background-color: rgb(178, 255, 221); display: block; }
|
82
|
+
span.run31 { background-color: rgb(178, 255, 219); display: block; }
|
83
|
+
span.run32 { background-color: rgb(178, 255, 216); display: block; }
|
84
|
+
span.run33 { background-color: rgb(178, 255, 214); display: block; }
|
85
|
+
span.run34 { background-color: rgb(178, 255, 211); display: block; }
|
86
|
+
span.run35 { background-color: rgb(178, 255, 207); display: block; }
|
87
|
+
span.run36 { background-color: rgb(178, 255, 205); display: block; }
|
88
|
+
span.run37 { background-color: rgb(178, 255, 202); display: block; }
|
89
|
+
span.run38 { background-color: rgb(178, 255, 200); display: block; }
|
90
|
+
span.run39 { background-color: rgb(178, 255, 197); display: block; }
|
91
|
+
span.run40 { background-color: rgb(178, 255, 193); display: block; }
|
92
|
+
span.run41 { background-color: rgb(178, 255, 191); display: block; }
|
93
|
+
span.run42 { background-color: rgb(178, 255, 188); display: block; }
|
94
|
+
span.run43 { background-color: rgb(178, 255, 186); display: block; }
|
95
|
+
span.run44 { background-color: rgb(178, 255, 183); display: block; }
|
96
|
+
span.run45 { background-color: rgb(178, 255, 179); display: block; }
|
97
|
+
span.run46 { background-color: rgb(179, 255, 178); display: block; }
|
98
|
+
span.run47 { background-color: rgb(182, 255, 178); display: block; }
|
99
|
+
span.run48 { background-color: rgb(184, 255, 178); display: block; }
|
100
|
+
span.run49 { background-color: rgb(187, 255, 178); display: block; }
|
101
|
+
span.run50 { background-color: rgb(191, 255, 178); display: block; }
|
102
|
+
span.run51 { background-color: rgb(193, 255, 178); display: block; }
|
103
|
+
span.run52 { background-color: rgb(196, 255, 178); display: block; }
|
104
|
+
span.run53 { background-color: rgb(198, 255, 178); display: block; }
|
105
|
+
span.run54 { background-color: rgb(201, 255, 178); display: block; }
|
106
|
+
span.run55 { background-color: rgb(205, 255, 178); display: block; }
|
107
|
+
span.run56 { background-color: rgb(207, 255, 178); display: block; }
|
108
|
+
span.run57 { background-color: rgb(210, 255, 178); display: block; }
|
109
|
+
span.run58 { background-color: rgb(212, 255, 178); display: block; }
|
110
|
+
span.run59 { background-color: rgb(215, 255, 178); display: block; }
|
111
|
+
span.run60 { background-color: rgb(219, 255, 178); display: block; }
|
112
|
+
span.run61 { background-color: rgb(221, 255, 178); display: block; }
|
113
|
+
span.run62 { background-color: rgb(224, 255, 178); display: block; }
|
114
|
+
span.run63 { background-color: rgb(226, 255, 178); display: block; }
|
115
|
+
span.run64 { background-color: rgb(229, 255, 178); display: block; }
|
116
|
+
span.run65 { background-color: rgb(233, 255, 178); display: block; }
|
117
|
+
span.run66 { background-color: rgb(235, 255, 178); display: block; }
|
118
|
+
span.run67 { background-color: rgb(238, 255, 178); display: block; }
|
119
|
+
span.run68 { background-color: rgb(240, 255, 178); display: block; }
|
120
|
+
span.run69 { background-color: rgb(243, 255, 178); display: block; }
|
121
|
+
span.run70 { background-color: rgb(247, 255, 178); display: block; }
|
122
|
+
span.run71 { background-color: rgb(249, 255, 178); display: block; }
|
123
|
+
span.run72 { background-color: rgb(252, 255, 178); display: block; }
|
124
|
+
span.run73 { background-color: rgb(255, 255, 178); display: block; }
|
125
|
+
span.run74 { background-color: rgb(255, 252, 178); display: block; }
|
126
|
+
span.run75 { background-color: rgb(255, 248, 178); display: block; }
|
127
|
+
span.run76 { background-color: rgb(255, 246, 178); display: block; }
|
128
|
+
span.run77 { background-color: rgb(255, 243, 178); display: block; }
|
129
|
+
span.run78 { background-color: rgb(255, 240, 178); display: block; }
|
130
|
+
span.run79 { background-color: rgb(255, 238, 178); display: block; }
|
131
|
+
span.run80 { background-color: rgb(255, 234, 178); display: block; }
|
132
|
+
span.run81 { background-color: rgb(255, 232, 178); display: block; }
|
133
|
+
span.run82 { background-color: rgb(255, 229, 178); display: block; }
|
134
|
+
span.run83 { background-color: rgb(255, 226, 178); display: block; }
|
135
|
+
span.run84 { background-color: rgb(255, 224, 178); display: block; }
|
136
|
+
span.run85 { background-color: rgb(255, 220, 178); display: block; }
|
137
|
+
span.run86 { background-color: rgb(255, 218, 178); display: block; }
|
138
|
+
span.run87 { background-color: rgb(255, 215, 178); display: block; }
|
139
|
+
span.run88 { background-color: rgb(255, 212, 178); display: block; }
|
140
|
+
span.run89 { background-color: rgb(255, 210, 178); display: block; }
|
141
|
+
span.run90 { background-color: rgb(255, 206, 178); display: block; }
|
142
|
+
span.run91 { background-color: rgb(255, 204, 178); display: block; }
|
143
|
+
span.run92 { background-color: rgb(255, 201, 178); display: block; }
|
144
|
+
span.run93 { background-color: rgb(255, 198, 178); display: block; }
|
145
|
+
span.run94 { background-color: rgb(255, 196, 178); display: block; }
|
146
|
+
span.run95 { background-color: rgb(255, 192, 178); display: block; }
|
147
|
+
span.run96 { background-color: rgb(255, 189, 178); display: block; }
|
148
|
+
span.run97 { background-color: rgb(255, 187, 178); display: block; }
|
149
|
+
span.run98 { background-color: rgb(255, 184, 178); display: block; }
|
150
|
+
span.run99 { background-color: rgb(255, 182, 178); display: block; }
|
151
|
+
span.run100 { background-color: rgb(255, 178, 178); display: block; }
|
152
|
+
</style>
|
153
|
+
</head>
|
154
|
+
<body>
|
155
|
+
<h3>
|
156
|
+
C0 code coverage information
|
157
|
+
</h3>
|
158
|
+
<p>
|
159
|
+
Generated on Sun Mar 29 23:07:04 -0400 2009 with
|
160
|
+
<a href='http://eigenclass.org/hiki/rcov'>
|
161
|
+
rcov 0.8.1.2
|
162
|
+
</a>
|
163
|
+
</p>
|
164
|
+
<hr />
|
165
|
+
<pre><span class='marked0'>Code reported as executed by Ruby looks like
|
166
|
+
this... </span><span class='marked1'>and this: this line is also marked as
|
167
|
+
covered. </span><span class='inferred0'>Lines considered as run by rcov, but
|
168
|
+
not reported by Ruby, look like this, </span><span class='inferred1'>and
|
169
|
+
this: these lines were inferred by rcov (using simple heuristics).
|
170
|
+
</span><span class='uncovered0'>Finally, here's a line marked as not
|
171
|
+
executed. </span></pre>
|
172
|
+
<table class='report'> <thead> <tr> <td class='heading'> Name </td> <td
|
173
|
+
class='heading'> Total lines </td> <td class='heading'> Lines of code </td>
|
174
|
+
<td class='heading'> Total coverage </td> <td class='heading'> Code coverage
|
175
|
+
</td> </tr> </thead> <tbody> <tr class='light'> <td> <a
|
176
|
+
href='lib-icalendar-component-journal_rb.html'>
|
177
|
+
lib/icalendar/component/journal.rb </a> </td> <td class='lines_total'> <tt>
|
178
|
+
61 </tt> </td> <td class='lines_code'> <tt> 35 </tt> </td> <td> <table
|
179
|
+
cellspacing='0' align='right' cellpadding='0'> <tr> <td> <tt
|
180
|
+
class='coverage_total'> 100.0% </tt> </td> <td> <table
|
181
|
+
class='percent_graph' cellspacing='0' width='100' cellpadding='0'> <tr> <td
|
182
|
+
class='covered' width='100' /> <td class='uncovered' width='0' /> </tr>
|
183
|
+
</table> </td> </tr> </table> </td> <td> <table cellspacing='0'
|
184
|
+
align='right' cellpadding='0'> <tr> <td> <tt class='coverage_code'> 100.0%
|
185
|
+
</tt> </td> <td> <table class='percent_graph' cellspacing='0'
|
186
|
+
width='100' cellpadding='0'> <tr> <td class='covered' width='100' /> <td
|
187
|
+
class='uncovered' width='0' /> </tr> </table> </td> </tr> </table> </td>
|
188
|
+
</tr> </tbody> </table><pre><span class="inferred1"><a name="line1"></a> 1
|
189
|
+
=begin </span><span class="inferred0"><a name="line2"></a> 2 Copyright (C)
|
190
|
+
2005 Jeff Rose </span><span class="inferred1"><a name="line3"></a> 3
|
191
|
+
</span><span class="inferred0"><a name="line4"></a> 4 This library is free
|
192
|
+
software; you can redistribute it and/or modify it </span><span
|
193
|
+
class="inferred1"><a name="line5"></a> 5 under the same terms as the ruby
|
194
|
+
language itself, see the file COPYING for </span><span class="inferred0"><a
|
195
|
+
name="line6"></a> 6 details. </span><span class="inferred1"><a
|
196
|
+
name="line7"></a> 7 =end </span><span class="marked0"><a name="line8"></a> 8
|
197
|
+
module Icalendar </span><span class="inferred1"><a name="line9"></a> 9 # A
|
198
|
+
Journal calendar component is a grouping of </span><span
|
199
|
+
class="inferred0"><a name="line10"></a>10 # component properties that
|
200
|
+
represent one or more descriptive text </span><span class="inferred1"><a
|
201
|
+
name="line11"></a>11 # notes associated with a particular calendar date. The
|
202
|
+
"DTSTART" </span><span class="inferred0"><a name="line12"></a>12 #
|
203
|
+
property is used to specify the calendar date that the journal entry
|
204
|
+
</span><span class="inferred1"><a name="line13"></a>13 # is associated with.
|
205
|
+
Generally, it will have a DATE value data type, </span><span
|
206
|
+
class="inferred0"><a name="line14"></a>14 # but it can also be used to
|
207
|
+
specify a DATE-TIME value data type. </span><span class="inferred1"><a
|
208
|
+
name="line15"></a>15 # Examples of a journal entry include a daily record of
|
209
|
+
a legislative </span><span class="inferred0"><a name="line16"></a>16 # body
|
210
|
+
or a journal entry of individual telephone contacts for the day </span><span
|
211
|
+
class="inferred1"><a name="line17"></a>17 # or an ordered list of
|
212
|
+
accomplishments for the day. The Journal </span><span class="inferred0"><a
|
213
|
+
name="line18"></a>18 # calendar component can also be used to associate a
|
214
|
+
document with a </span><span class="inferred1"><a name="line19"></a>19 #
|
215
|
+
calendar date. </span><span class="marked0"><a name="line20"></a>20 class
|
216
|
+
Journal < Component </span><span class="inferred1"><a
|
217
|
+
name="line21"></a>21 </span><span class="inferred0"><a name="line22"></a>22
|
218
|
+
# Single properties </span><span class="marked1"><a name="line23"></a>23
|
219
|
+
ical_property :ip_class </span><span class="marked0"><a name="line24"></a>24
|
220
|
+
ical_property :created </span><span class="marked1"><a name="line25"></a>25
|
221
|
+
ical_property :description </span><span class="marked0"><a
|
222
|
+
name="line26"></a>26 ical_property :dtstart, :start </span><span
|
223
|
+
class="marked1"><a name="line27"></a>27 ical_property :last_modified
|
224
|
+
</span><span class="marked0"><a name="line28"></a>28 ical_property
|
225
|
+
:organizer </span><span class="marked1"><a name="line29"></a>29
|
226
|
+
ical_property :dtstamp, :timestamp </span><span class="marked0"><a
|
227
|
+
name="line30"></a>30 ical_property :sequence, :seq </span><span
|
228
|
+
class="marked1"><a name="line31"></a>31 ical_property :status </span><span
|
229
|
+
class="marked0"><a name="line32"></a>32 ical_property :summary </span><span
|
230
|
+
class="marked1"><a name="line33"></a>33 ical_property :uid, :user_id
|
231
|
+
</span><span class="marked0"><a name="line34"></a>34 ical_property :url
|
232
|
+
</span><span class="marked1"><a name="line35"></a>35 ical_property :recurid,
|
233
|
+
:recurrence_id </span><span class="inferred0"><a name="line36"></a>36
|
234
|
+
</span><span class="inferred1"><a name="line37"></a>37 # Multi-properties
|
235
|
+
</span><span class="marked0"><a name="line38"></a>38 ical_multi_property
|
236
|
+
:attach, :attachment, :attachments </span><span class="marked1"><a
|
237
|
+
name="line39"></a>39 ical_multiline_property :attendee, :attendee,
|
238
|
+
:attendees </span><span class="marked0"><a name="line40"></a>40
|
239
|
+
ical_multi_property :categories, :category, :categories </span><span
|
240
|
+
class="marked1"><a name="line41"></a>41 ical_multi_property :comment,
|
241
|
+
:comment, :comments </span><span class="marked0"><a name="line42"></a>42
|
242
|
+
ical_multi_property :contact, :contact, :contacts </span><span
|
243
|
+
class="marked1"><a name="line43"></a>43 ical_multi_property :exdate,
|
244
|
+
:exception_date, :exception_dates </span><span class="marked0"><a
|
245
|
+
name="line44"></a>44 ical_multi_property :exrule, :exception_rule,
|
246
|
+
:exception_rules </span><span class="marked1"><a name="line45"></a>45
|
247
|
+
ical_multi_property :rstatus, :request_status, :request_statuses
|
248
|
+
</span><span class="marked0"><a name="line46"></a>46 ical_multi_property
|
249
|
+
:related_to, :related_to, :related_tos </span><span class="marked1"><a
|
250
|
+
name="line47"></a>47 ical_multi_property :resources, :resource, :resources
|
251
|
+
</span><span class="marked0"><a name="line48"></a>48 ical_multi_property
|
252
|
+
:rdate, :recurrence_date, :recurrence_dates </span><span class="marked1"><a
|
253
|
+
name="line49"></a>49 ical_multi_property :rrule, :recurrence_rule,
|
254
|
+
:recurrence_rules </span><span class="inferred0"><a name="line50"></a>50
|
255
|
+
</span><span class="marked1"><a name="line51"></a>51 def initialize()
|
256
|
+
</span><span class="marked0"><a name="line52"></a>52
|
257
|
+
super("VJOURNAL") </span><span class="inferred1"><a
|
258
|
+
name="line53"></a>53 </span><span class="marked0"><a name="line54"></a>54
|
259
|
+
sequence 0 </span><span class="marked1"><a name="line55"></a>55 timestamp
|
260
|
+
DateTime.now </span><span class="marked0"><a name="line56"></a>56 uid
|
261
|
+
new_uid </span><span class="inferred1"><a name="line57"></a>57 end
|
262
|
+
</span><span class="inferred0"><a name="line58"></a>58 </span><span
|
263
|
+
class="inferred1"><a name="line59"></a>59 end </span><span
|
264
|
+
class="inferred0"><a name="line60"></a>60 end </span><span
|
265
|
+
class="inferred1"><a name="line61"></a>61 </span></pre>
|
266
|
+
<hr />
|
267
|
+
<p> Generated using the <a href='http://eigenclass.org/hiki.rb?rcov'> rcov
|
268
|
+
code coverage analysis tool for Ruby </a> version 0.8.1.2. </p>
|
269
|
+
<p>
|
270
|
+
<a href='http://validator.w3.org/check/referer'>
|
271
|
+
<img src='http://www.w3.org/Icons/valid-xhtml10' height='31' alt='Valid XHTML 1.0!' width='88' />
|
272
|
+
</a>
|
273
|
+
<a href='http://jigsaw.w3.org/css-validator/check/referer'>
|
274
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Valid CSS!' style='border:0;width:88px;height:31px' />
|
275
|
+
</a>
|
276
|
+
</p>
|
277
|
+
</body>
|
278
|
+
</html>
|
@@ -0,0 +1,326 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
+
<head>
|
4
|
+
<title>
|
5
|
+
lib/icalendar/component/timezone.rb - C0 code coverage information
|
6
|
+
</title>
|
7
|
+
<style type='text/css'>
|
8
|
+
body { background-color: rgb(240, 240, 245); }
|
9
|
+
</style>
|
10
|
+
<style type='text/css'>
|
11
|
+
span.cross-ref-title { font-size: 140%; } span.cross-ref a {
|
12
|
+
text-decoration: none; } span.cross-ref { background-color:#f3f7fa;
|
13
|
+
border: 1px dashed #333; margin: 1em; padding: 0.5em; overflow: hidden; }
|
14
|
+
a.crossref-toggle { text-decoration: none; } span.marked0 {
|
15
|
+
background-color: rgb(185, 210, 200); display: block; } span.marked1 {
|
16
|
+
background-color: rgb(190, 215, 205); display: block; } span.inferred0 {
|
17
|
+
background-color: rgb(175, 200, 200); display: block; } span.inferred1 {
|
18
|
+
background-color: rgb(180, 205, 205); display: block; } span.uncovered0 {
|
19
|
+
background-color: rgb(225, 110, 110); display: block; } span.uncovered1 {
|
20
|
+
background-color: rgb(235, 120, 120); display: block; } span.overview {
|
21
|
+
border-bottom: 8px solid black; } div.overview { border-bottom: 8px solid
|
22
|
+
black; } body { font-family: verdana, arial, helvetica; } div.footer {
|
23
|
+
font-size: 68%; margin-top: 1.5em; } h1, h2, h3, h4, h5, h6 {
|
24
|
+
margin-bottom: 0.5em; } h5 { margin-top: 0.5em; } .hidden { display: none;
|
25
|
+
} div.separator { height: 10px; } /* Commented out for better readability,
|
26
|
+
esp. on IE */ /* table tr td, table tr th { font-size: 68%; } td.value
|
27
|
+
table tr td { font-size: 11px; } */ table.percent_graph { height: 12px;
|
28
|
+
border: #808080 1px solid; empty-cells: show; } table.percent_graph
|
29
|
+
td.covered { height: 10px; background: #00f000; } table.percent_graph
|
30
|
+
td.uncovered { height: 10px; background: #e00000; } table.percent_graph
|
31
|
+
td.NA { height: 10px; background: #eaeaea; } table.report {
|
32
|
+
border-collapse: collapse; width: 100%; } table.report td.heading {
|
33
|
+
background: #dcecff; border: #d0d0d0 1px solid; font-weight: bold;
|
34
|
+
text-align: center; } table.report td.heading:hover { background: #c0ffc0;
|
35
|
+
} table.report td.text { border: #d0d0d0 1px solid; } table.report
|
36
|
+
td.value, table.report td.lines_total, table.report td.lines_code {
|
37
|
+
text-align: right; border: #d0d0d0 1px solid; } table.report tr.light {
|
38
|
+
background-color: rgb(240, 240, 245); } table.report tr.dark {
|
39
|
+
background-color: rgb(230, 230, 235); }
|
40
|
+
</style>
|
41
|
+
<script type='text/javascript'>
|
42
|
+
// <![CDATA[ function toggleCode( id ) { if ( document.getElementById )
|
43
|
+
elem = document.getElementById( id ); else if ( document.all ) elem =
|
44
|
+
eval( "document.all." + id ); else return false; elemStyle = elem.style;
|
45
|
+
if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else {
|
46
|
+
elemStyle.display = "none" } return true; } // Make cross-references
|
47
|
+
hidden by default document.writeln( "<style
|
48
|
+
type=\"text/css\">span.cross-ref { display: none }</style>" ) // ]]>
|
49
|
+
</script>
|
50
|
+
<style type='text/css'>
|
51
|
+
span.run0 { background-color: rgb(178, 204, 255); display: block; }
|
52
|
+
span.run1 { background-color: rgb(178, 206, 255); display: block; }
|
53
|
+
span.run2 { background-color: rgb(178, 209, 255); display: block; }
|
54
|
+
span.run3 { background-color: rgb(178, 211, 255); display: block; }
|
55
|
+
span.run4 { background-color: rgb(178, 214, 255); display: block; }
|
56
|
+
span.run5 { background-color: rgb(178, 218, 255); display: block; }
|
57
|
+
span.run6 { background-color: rgb(178, 220, 255); display: block; }
|
58
|
+
span.run7 { background-color: rgb(178, 223, 255); display: block; }
|
59
|
+
span.run8 { background-color: rgb(178, 225, 255); display: block; }
|
60
|
+
span.run9 { background-color: rgb(178, 228, 255); display: block; }
|
61
|
+
span.run10 { background-color: rgb(178, 232, 255); display: block; }
|
62
|
+
span.run11 { background-color: rgb(178, 234, 255); display: block; }
|
63
|
+
span.run12 { background-color: rgb(178, 237, 255); display: block; }
|
64
|
+
span.run13 { background-color: rgb(178, 239, 255); display: block; }
|
65
|
+
span.run14 { background-color: rgb(178, 242, 255); display: block; }
|
66
|
+
span.run15 { background-color: rgb(178, 246, 255); display: block; }
|
67
|
+
span.run16 { background-color: rgb(178, 248, 255); display: block; }
|
68
|
+
span.run17 { background-color: rgb(178, 251, 255); display: block; }
|
69
|
+
span.run18 { background-color: rgb(178, 253, 255); display: block; }
|
70
|
+
span.run19 { background-color: rgb(178, 255, 253); display: block; }
|
71
|
+
span.run20 { background-color: rgb(178, 255, 249); display: block; }
|
72
|
+
span.run21 { background-color: rgb(178, 255, 247); display: block; }
|
73
|
+
span.run22 { background-color: rgb(178, 255, 244); display: block; }
|
74
|
+
span.run23 { background-color: rgb(178, 255, 242); display: block; }
|
75
|
+
span.run24 { background-color: rgb(178, 255, 239); display: block; }
|
76
|
+
span.run25 { background-color: rgb(178, 255, 235); display: block; }
|
77
|
+
span.run26 { background-color: rgb(178, 255, 233); display: block; }
|
78
|
+
span.run27 { background-color: rgb(178, 255, 230); display: block; }
|
79
|
+
span.run28 { background-color: rgb(178, 255, 228); display: block; }
|
80
|
+
span.run29 { background-color: rgb(178, 255, 225); display: block; }
|
81
|
+
span.run30 { background-color: rgb(178, 255, 221); display: block; }
|
82
|
+
span.run31 { background-color: rgb(178, 255, 219); display: block; }
|
83
|
+
span.run32 { background-color: rgb(178, 255, 216); display: block; }
|
84
|
+
span.run33 { background-color: rgb(178, 255, 214); display: block; }
|
85
|
+
span.run34 { background-color: rgb(178, 255, 211); display: block; }
|
86
|
+
span.run35 { background-color: rgb(178, 255, 207); display: block; }
|
87
|
+
span.run36 { background-color: rgb(178, 255, 205); display: block; }
|
88
|
+
span.run37 { background-color: rgb(178, 255, 202); display: block; }
|
89
|
+
span.run38 { background-color: rgb(178, 255, 200); display: block; }
|
90
|
+
span.run39 { background-color: rgb(178, 255, 197); display: block; }
|
91
|
+
span.run40 { background-color: rgb(178, 255, 193); display: block; }
|
92
|
+
span.run41 { background-color: rgb(178, 255, 191); display: block; }
|
93
|
+
span.run42 { background-color: rgb(178, 255, 188); display: block; }
|
94
|
+
span.run43 { background-color: rgb(178, 255, 186); display: block; }
|
95
|
+
span.run44 { background-color: rgb(178, 255, 183); display: block; }
|
96
|
+
span.run45 { background-color: rgb(178, 255, 179); display: block; }
|
97
|
+
span.run46 { background-color: rgb(179, 255, 178); display: block; }
|
98
|
+
span.run47 { background-color: rgb(182, 255, 178); display: block; }
|
99
|
+
span.run48 { background-color: rgb(184, 255, 178); display: block; }
|
100
|
+
span.run49 { background-color: rgb(187, 255, 178); display: block; }
|
101
|
+
span.run50 { background-color: rgb(191, 255, 178); display: block; }
|
102
|
+
span.run51 { background-color: rgb(193, 255, 178); display: block; }
|
103
|
+
span.run52 { background-color: rgb(196, 255, 178); display: block; }
|
104
|
+
span.run53 { background-color: rgb(198, 255, 178); display: block; }
|
105
|
+
span.run54 { background-color: rgb(201, 255, 178); display: block; }
|
106
|
+
span.run55 { background-color: rgb(205, 255, 178); display: block; }
|
107
|
+
span.run56 { background-color: rgb(207, 255, 178); display: block; }
|
108
|
+
span.run57 { background-color: rgb(210, 255, 178); display: block; }
|
109
|
+
span.run58 { background-color: rgb(212, 255, 178); display: block; }
|
110
|
+
span.run59 { background-color: rgb(215, 255, 178); display: block; }
|
111
|
+
span.run60 { background-color: rgb(219, 255, 178); display: block; }
|
112
|
+
span.run61 { background-color: rgb(221, 255, 178); display: block; }
|
113
|
+
span.run62 { background-color: rgb(224, 255, 178); display: block; }
|
114
|
+
span.run63 { background-color: rgb(226, 255, 178); display: block; }
|
115
|
+
span.run64 { background-color: rgb(229, 255, 178); display: block; }
|
116
|
+
span.run65 { background-color: rgb(233, 255, 178); display: block; }
|
117
|
+
span.run66 { background-color: rgb(235, 255, 178); display: block; }
|
118
|
+
span.run67 { background-color: rgb(238, 255, 178); display: block; }
|
119
|
+
span.run68 { background-color: rgb(240, 255, 178); display: block; }
|
120
|
+
span.run69 { background-color: rgb(243, 255, 178); display: block; }
|
121
|
+
span.run70 { background-color: rgb(247, 255, 178); display: block; }
|
122
|
+
span.run71 { background-color: rgb(249, 255, 178); display: block; }
|
123
|
+
span.run72 { background-color: rgb(252, 255, 178); display: block; }
|
124
|
+
span.run73 { background-color: rgb(255, 255, 178); display: block; }
|
125
|
+
span.run74 { background-color: rgb(255, 252, 178); display: block; }
|
126
|
+
span.run75 { background-color: rgb(255, 248, 178); display: block; }
|
127
|
+
span.run76 { background-color: rgb(255, 246, 178); display: block; }
|
128
|
+
span.run77 { background-color: rgb(255, 243, 178); display: block; }
|
129
|
+
span.run78 { background-color: rgb(255, 240, 178); display: block; }
|
130
|
+
span.run79 { background-color: rgb(255, 238, 178); display: block; }
|
131
|
+
span.run80 { background-color: rgb(255, 234, 178); display: block; }
|
132
|
+
span.run81 { background-color: rgb(255, 232, 178); display: block; }
|
133
|
+
span.run82 { background-color: rgb(255, 229, 178); display: block; }
|
134
|
+
span.run83 { background-color: rgb(255, 226, 178); display: block; }
|
135
|
+
span.run84 { background-color: rgb(255, 224, 178); display: block; }
|
136
|
+
span.run85 { background-color: rgb(255, 220, 178); display: block; }
|
137
|
+
span.run86 { background-color: rgb(255, 218, 178); display: block; }
|
138
|
+
span.run87 { background-color: rgb(255, 215, 178); display: block; }
|
139
|
+
span.run88 { background-color: rgb(255, 212, 178); display: block; }
|
140
|
+
span.run89 { background-color: rgb(255, 210, 178); display: block; }
|
141
|
+
span.run90 { background-color: rgb(255, 206, 178); display: block; }
|
142
|
+
span.run91 { background-color: rgb(255, 204, 178); display: block; }
|
143
|
+
span.run92 { background-color: rgb(255, 201, 178); display: block; }
|
144
|
+
span.run93 { background-color: rgb(255, 198, 178); display: block; }
|
145
|
+
span.run94 { background-color: rgb(255, 196, 178); display: block; }
|
146
|
+
span.run95 { background-color: rgb(255, 192, 178); display: block; }
|
147
|
+
span.run96 { background-color: rgb(255, 189, 178); display: block; }
|
148
|
+
span.run97 { background-color: rgb(255, 187, 178); display: block; }
|
149
|
+
span.run98 { background-color: rgb(255, 184, 178); display: block; }
|
150
|
+
span.run99 { background-color: rgb(255, 182, 178); display: block; }
|
151
|
+
span.run100 { background-color: rgb(255, 178, 178); display: block; }
|
152
|
+
</style>
|
153
|
+
</head>
|
154
|
+
<body>
|
155
|
+
<h3>
|
156
|
+
C0 code coverage information
|
157
|
+
</h3>
|
158
|
+
<p>
|
159
|
+
Generated on Sun Mar 29 23:07:04 -0400 2009 with
|
160
|
+
<a href='http://eigenclass.org/hiki/rcov'>
|
161
|
+
rcov 0.8.1.2
|
162
|
+
</a>
|
163
|
+
</p>
|
164
|
+
<hr />
|
165
|
+
<pre><span class='marked0'>Code reported as executed by Ruby looks like
|
166
|
+
this... </span><span class='marked1'>and this: this line is also marked as
|
167
|
+
covered. </span><span class='inferred0'>Lines considered as run by rcov, but
|
168
|
+
not reported by Ruby, look like this, </span><span class='inferred1'>and
|
169
|
+
this: these lines were inferred by rcov (using simple heuristics).
|
170
|
+
</span><span class='uncovered0'>Finally, here's a line marked as not
|
171
|
+
executed. </span></pre>
|
172
|
+
<table class='report'> <thead> <tr> <td class='heading'> Name </td> <td
|
173
|
+
class='heading'> Total lines </td> <td class='heading'> Lines of code </td>
|
174
|
+
<td class='heading'> Total coverage </td> <td class='heading'> Code coverage
|
175
|
+
</td> </tr> </thead> <tbody> <tr class='light'> <td> <a
|
176
|
+
href='lib-icalendar-component-timezone_rb.html'>
|
177
|
+
lib/icalendar/component/timezone.rb </a> </td> <td class='lines_total'> <tt>
|
178
|
+
105 </tt> </td> <td class='lines_code'> <tt> 55 </tt> </td> <td> <table
|
179
|
+
cellspacing='0' align='right' cellpadding='0'> <tr> <td> <tt
|
180
|
+
class='coverage_total'> 100.0% </tt> </td> <td> <table
|
181
|
+
class='percent_graph' cellspacing='0' width='100' cellpadding='0'> <tr> <td
|
182
|
+
class='covered' width='100' /> <td class='uncovered' width='0' /> </tr>
|
183
|
+
</table> </td> </tr> </table> </td> <td> <table cellspacing='0'
|
184
|
+
align='right' cellpadding='0'> <tr> <td> <tt class='coverage_code'> 100.0%
|
185
|
+
</tt> </td> <td> <table class='percent_graph' cellspacing='0'
|
186
|
+
width='100' cellpadding='0'> <tr> <td class='covered' width='100' /> <td
|
187
|
+
class='uncovered' width='0' /> </tr> </table> </td> </tr> </table> </td>
|
188
|
+
</tr> </tbody> </table><pre><span class="inferred0"><a name="line1"></a> 1
|
189
|
+
=begin </span><span class="inferred1"><a name="line2"></a> 2 Copyright (C)
|
190
|
+
2005 Jeff Rose </span><span class="inferred0"><a name="line3"></a> 3
|
191
|
+
</span><span class="inferred1"><a name="line4"></a> 4 This library is free
|
192
|
+
software; you can redistribute it and/or modify it </span><span
|
193
|
+
class="inferred0"><a name="line5"></a> 5 under the same terms as the ruby
|
194
|
+
language itself, see the file COPYING for </span><span class="inferred1"><a
|
195
|
+
name="line6"></a> 6 details. </span><span class="inferred0"><a
|
196
|
+
name="line7"></a> 7 =end </span><span class="marked1"><a name="line8"></a> 8
|
197
|
+
module Icalendar </span><span class="inferred0"><a name="line9"></a> 9 # A
|
198
|
+
Timezone is unambiguously defined by the set of time </span><span
|
199
|
+
class="inferred1"><a name="line10"></a> 10 # measurement rules determined by
|
200
|
+
the governing body for a given </span><span class="inferred0"><a
|
201
|
+
name="line11"></a> 11 # geographic area. These rules describe at a minimum
|
202
|
+
the base offset </span><span class="inferred1"><a name="line12"></a> 12 #
|
203
|
+
from UTC for the time zone, often referred to as the Standard Time
|
204
|
+
</span><span class="inferred0"><a name="line13"></a> 13 # offset. Many
|
205
|
+
locations adjust their Standard Time forward or backward </span><span
|
206
|
+
class="inferred1"><a name="line14"></a> 14 # by one hour, in order to
|
207
|
+
accommodate seasonal changes in number of </span><span class="inferred0"><a
|
208
|
+
name="line15"></a> 15 # daylight hours, often referred to as Daylight Saving
|
209
|
+
Time. Some </span><span class="inferred1"><a name="line16"></a> 16 #
|
210
|
+
locations adjust their time by a fraction of an hour. Standard Time
|
211
|
+
</span><span class="inferred0"><a name="line17"></a> 17 # is also known as
|
212
|
+
Winter Time. Daylight Saving Time is also known as </span><span
|
213
|
+
class="inferred1"><a name="line18"></a> 18 # Advanced Time, Summer Time, or
|
214
|
+
Legal Time in certain countries. The </span><span class="inferred0"><a
|
215
|
+
name="line19"></a> 19 # following table shows the changes in time zone rules
|
216
|
+
in effect for </span><span class="inferred1"><a name="line20"></a> 20 # New
|
217
|
+
York City starting from 1967. Each line represents a description
|
218
|
+
</span><span class="inferred0"><a name="line21"></a> 21 # or rule for a
|
219
|
+
particular observance. </span><span class="marked1"><a name="line22"></a> 22
|
220
|
+
class Timezone < Component </span><span class="marked0"><a
|
221
|
+
name="line23"></a> 23 ical_component :standard, :daylight </span><span
|
222
|
+
class="inferred1"><a name="line24"></a> 24 </span><span class="inferred0"><a
|
223
|
+
name="line25"></a> 25 # Single properties </span><span class="marked1"><a
|
224
|
+
name="line26"></a> 26 ical_property :dtstart, :start </span><span
|
225
|
+
class="marked0"><a name="line27"></a> 27 ical_property :tzoffsetto,
|
226
|
+
:timezone_offset_to </span><span class="marked1"><a name="line28"></a> 28
|
227
|
+
ical_property :tzoffsetfrom, :timezone_offset_from </span><span
|
228
|
+
class="marked0"><a name="line29"></a> 29 ical_property :tzid, :timezone_id
|
229
|
+
</span><span class="marked1"><a name="line30"></a> 30 ical_property :tzname,
|
230
|
+
:timezone_name </span><span class="inferred0"><a name="line31"></a> 31
|
231
|
+
</span><span class="marked1"><a name="line32"></a> 32 ical_property :created
|
232
|
+
</span><span class="marked0"><a name="line33"></a> 33 ical_property
|
233
|
+
:last_modified </span><span class="marked1"><a name="line34"></a> 34
|
234
|
+
ical_property :timestamp </span><span class="marked0"><a name="line35"></a>
|
235
|
+
35 ical_property :sequence </span><span class="inferred1"><a
|
236
|
+
name="line36"></a> 36 </span><span class="inferred0"><a name="line37"></a>
|
237
|
+
37 # Multi-properties </span><span class="marked1"><a name="line38"></a> 38
|
238
|
+
ical_multi_property :comment, :comment, :comments </span><span
|
239
|
+
class="marked0"><a name="line39"></a> 39 ical_multi_property :rdate,
|
240
|
+
:recurrence_date, :recurrence_dates </span><span class="marked1"><a
|
241
|
+
name="line40"></a> 40 ical_multi_property :rrule, :recurrence_rule,
|
242
|
+
:recurrence_rules </span><span class="inferred0"><a name="line41"></a> 41
|
243
|
+
</span><span class="inferred1"><a name="line42"></a> 42 # Define a custom
|
244
|
+
add component method because standard and daylight </span><span
|
245
|
+
class="inferred0"><a name="line43"></a> 43 # are the only components that
|
246
|
+
can occur just once with their parent. </span><span class="marked1"><a
|
247
|
+
name="line44"></a> 44 def add_component(component) </span><span
|
248
|
+
class="marked0"><a name="line45"></a> 45 key =
|
249
|
+
component.class.to_s.downcase.gsub('icalendar::','').to_sym </span><span
|
250
|
+
class="marked1"><a name="line46"></a> 46 @components[key] = component
|
251
|
+
</span><span class="inferred0"><a name="line47"></a> 47 end </span><span
|
252
|
+
class="inferred1"><a name="line48"></a> 48 </span><span class="inferred0"><a
|
253
|
+
name="line49"></a> 49 # Also need a custom to_ical because typically it
|
254
|
+
iterates over an array </span><span class="inferred1"><a name="line50"></a>
|
255
|
+
50 # of components. </span><span class="marked0"><a name="line51"></a> 51
|
256
|
+
def to_ical </span><span class="marked1"><a name="line52"></a> 52
|
257
|
+
print_component do </span><span class="marked0"><a name="line53"></a> 53 s =
|
258
|
+
"" </span><span class="marked1"><a name="line54"></a> 54
|
259
|
+
@components.each_value do |comp| </span><span class="marked0"><a
|
260
|
+
name="line55"></a> 55 s << comp.to_ical </span><span
|
261
|
+
class="inferred1"><a name="line56"></a> 56 end </span><span
|
262
|
+
class="marked0"><a name="line57"></a> 57 s </span><span class="inferred1"><a
|
263
|
+
name="line58"></a> 58 end </span><span class="inferred0"><a
|
264
|
+
name="line59"></a> 59 end </span><span class="inferred1"><a
|
265
|
+
name="line60"></a> 60 </span><span class="inferred0"><a name="line61"></a>
|
266
|
+
61 </span><span class="marked1"><a name="line62"></a> 62 def initialize(name
|
267
|
+
= "VTIMEZONE") </span><span class="marked0"><a name="line63"></a>
|
268
|
+
63 super(name) </span><span class="inferred1"><a name="line64"></a> 64 end
|
269
|
+
</span><span class="inferred0"><a name="line65"></a> 65 </span><span
|
270
|
+
class="inferred1"><a name="line66"></a> 66 # Allow block syntax for
|
271
|
+
declaration of standard and daylight components of timezone </span><span
|
272
|
+
class="marked0"><a name="line67"></a> 67 def standard(&block)
|
273
|
+
</span><span class="marked1"><a name="line68"></a> 68 e = Standard.new
|
274
|
+
</span><span class="marked0"><a name="line69"></a> 69 self.add_component e
|
275
|
+
</span><span class="inferred1"><a name="line70"></a> 70 </span><span
|
276
|
+
class="marked0"><a name="line71"></a> 71 e.instance_eval &block if block
|
277
|
+
</span><span class="inferred1"><a name="line72"></a> 72 </span><span
|
278
|
+
class="marked0"><a name="line73"></a> 73 e </span><span class="inferred1"><a
|
279
|
+
name="line74"></a> 74 end </span><span class="inferred0"><a
|
280
|
+
name="line75"></a> 75 </span><span class="marked1"><a name="line76"></a> 76
|
281
|
+
def daylight(&block) </span><span class="marked0"><a name="line77"></a>
|
282
|
+
77 e = Daylight.new </span><span class="marked1"><a name="line78"></a> 78
|
283
|
+
self.add_component e </span><span class="inferred0"><a name="line79"></a> 79
|
284
|
+
</span><span class="marked1"><a name="line80"></a> 80 e.instance_eval
|
285
|
+
&block if block </span><span class="inferred0"><a name="line81"></a> 81
|
286
|
+
</span><span class="marked1"><a name="line82"></a> 82 e </span><span
|
287
|
+
class="inferred0"><a name="line83"></a> 83 end </span><span
|
288
|
+
class="inferred1"><a name="line84"></a> 84 end </span><span
|
289
|
+
class="inferred0"><a name="line85"></a> 85 </span><span class="inferred1"><a
|
290
|
+
name="line86"></a> 86 # A Standard component is a sub-component of the
|
291
|
+
Timezone component which </span><span class="inferred0"><a
|
292
|
+
name="line87"></a> 87 # is used to describe the standard time offset.
|
293
|
+
</span><span class="marked1"><a name="line88"></a> 88 class Standard <
|
294
|
+
Timezone </span><span class="inferred0"><a name="line89"></a> 89
|
295
|
+
</span><span class="marked1"><a name="line90"></a> 90 def initialize()
|
296
|
+
</span><span class="marked0"><a name="line91"></a> 91
|
297
|
+
super("STANDARD") </span><span class="inferred1"><a
|
298
|
+
name="line92"></a> 92 end </span><span class="inferred0"><a
|
299
|
+
name="line93"></a> 93 end </span><span class="inferred1"><a
|
300
|
+
name="line94"></a> 94 </span><span class="inferred0"><a name="line95"></a>
|
301
|
+
95 # A Daylight component is a sub-component of the Timezone component which
|
302
|
+
</span><span class="inferred1"><a name="line96"></a> 96 # is used to
|
303
|
+
describe the time offset for what is commonly known as </span><span
|
304
|
+
class="inferred0"><a name="line97"></a> 97 # daylight savings time.
|
305
|
+
</span><span class="marked1"><a name="line98"></a> 98 class Daylight <
|
306
|
+
Timezone </span><span class="inferred0"><a name="line99"></a> 99
|
307
|
+
</span><span class="marked1"><a name="line100"></a>100 def initialize()
|
308
|
+
</span><span class="marked0"><a name="line101"></a>101
|
309
|
+
super("DAYLIGHT") </span><span class="inferred1"><a
|
310
|
+
name="line102"></a>102 end </span><span class="inferred0"><a
|
311
|
+
name="line103"></a>103 end </span><span class="inferred1"><a
|
312
|
+
name="line104"></a>104 </span><span class="inferred0"><a
|
313
|
+
name="line105"></a>105 end </span></pre>
|
314
|
+
<hr />
|
315
|
+
<p> Generated using the <a href='http://eigenclass.org/hiki.rb?rcov'> rcov
|
316
|
+
code coverage analysis tool for Ruby </a> version 0.8.1.2. </p>
|
317
|
+
<p>
|
318
|
+
<a href='http://validator.w3.org/check/referer'>
|
319
|
+
<img src='http://www.w3.org/Icons/valid-xhtml10' height='31' alt='Valid XHTML 1.0!' width='88' />
|
320
|
+
</a>
|
321
|
+
<a href='http://jigsaw.w3.org/css-validator/check/referer'>
|
322
|
+
<img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Valid CSS!' style='border:0;width:88px;height:31px' />
|
323
|
+
</a>
|
324
|
+
</p>
|
325
|
+
</body>
|
326
|
+
</html>
|