icalendar 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. data/History.txt +3 -0
  2. data/Manifest.txt +61 -0
  3. data/PostInstall.txt +5 -0
  4. data/{README → README.rdoc} +4 -0
  5. data/Rakefile +28 -133
  6. data/config/website.yml +2 -0
  7. data/icalendar.gemspec +55 -0
  8. data/lib/icalendar/base.rb +2 -0
  9. data/lib/icalendar/component.rb +9 -7
  10. data/script/console +10 -0
  11. data/script/destroy +14 -0
  12. data/script/generate +14 -0
  13. data/script/recur1.ics +38 -0
  14. data/script/tryit.rb +13 -0
  15. data/script/txt2html +71 -0
  16. data/test.ical +33 -0
  17. data/test.ics +33 -0
  18. data/test.rb +48 -0
  19. data/test/component/{event_test.rb → test_event.rb} +0 -0
  20. data/test/component/{timezone_test.rb → test_timezone.rb} +1 -1
  21. data/test/component/{todo_test.rb → test_todo.rb} +0 -0
  22. data/test/fixtures/folding.ics +7 -7
  23. data/test/{calendar_test.rb → test_calendar.rb} +1 -4
  24. data/test/{component_test.rb → test_component.rb} +0 -0
  25. data/test/{conversions_test.rb → test_conversions.rb} +8 -8
  26. data/test/test_helper.rb +3 -0
  27. data/test/{parameter_test.rb → test_parameter.rb} +4 -0
  28. data/test/{parser_test.rb → test_parser.rb} +0 -0
  29. data/test2.rb +28 -0
  30. data/website/index.html +11 -0
  31. data/website/index.txt +79 -0
  32. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  33. data/website/stylesheets/screen.css +159 -0
  34. data/website/template.html.erb +50 -0
  35. metadata +135 -135
  36. data/docs/api/classes/Array.html +0 -155
  37. data/docs/api/classes/Bignum.html +0 -148
  38. data/docs/api/classes/Date.html +0 -172
  39. data/docs/api/classes/DateTime.html +0 -200
  40. data/docs/api/classes/Fixnum.html +0 -148
  41. data/docs/api/classes/Float.html +0 -148
  42. data/docs/api/classes/HashAttrs.html +0 -212
  43. data/docs/api/classes/Icalendar/Alarm.html +0 -228
  44. data/docs/api/classes/Icalendar/Base.html +0 -179
  45. data/docs/api/classes/Icalendar/Calendar.html +0 -504
  46. data/docs/api/classes/Icalendar/Component.html +0 -853
  47. data/docs/api/classes/Icalendar/DateProp.html +0 -187
  48. data/docs/api/classes/Icalendar/DateProp/ClassMethods.html +0 -195
  49. data/docs/api/classes/Icalendar/Daylight.html +0 -156
  50. data/docs/api/classes/Icalendar/Event.html +0 -671
  51. data/docs/api/classes/Icalendar/Freebusy.html +0 -266
  52. data/docs/api/classes/Icalendar/Geo.html +0 -211
  53. data/docs/api/classes/Icalendar/InvalidPropertyValue.html +0 -117
  54. data/docs/api/classes/Icalendar/Journal.html +0 -443
  55. data/docs/api/classes/Icalendar/Parameter.html +0 -166
  56. data/docs/api/classes/Icalendar/Parser.html +0 -352
  57. data/docs/api/classes/Icalendar/RRule.html +0 -428
  58. data/docs/api/classes/Icalendar/RRule/Weekday.html +0 -199
  59. data/docs/api/classes/Icalendar/Standard.html +0 -156
  60. data/docs/api/classes/Icalendar/Timezone.html +0 -450
  61. data/docs/api/classes/Icalendar/Todo.html +0 -480
  62. data/docs/api/classes/Icalendar/TzidSupport.html +0 -118
  63. data/docs/api/classes/Icalendar/UnknownComponentClass.html +0 -117
  64. data/docs/api/classes/Icalendar/UnknownPropertyMethod.html +0 -117
  65. data/docs/api/classes/Object.html +0 -272
  66. data/docs/api/classes/String.html +0 -148
  67. data/docs/api/classes/TZInfo.html +0 -119
  68. data/docs/api/classes/TZInfo/Timezone.html +0 -153
  69. data/docs/api/classes/TZInfo/TimezonePeriod.html +0 -200
  70. data/docs/api/classes/TZInfo/TimezoneTransitionInfo.html +0 -229
  71. data/docs/api/classes/Time.html +0 -180
  72. data/docs/api/classes/URI.html +0 -111
  73. data/docs/api/classes/URI/Generic.html +0 -148
  74. data/docs/api/created.rid +0 -1
  75. data/docs/api/files/COPYING.html +0 -163
  76. data/docs/api/files/GPL.html +0 -531
  77. data/docs/api/files/README.html +0 -401
  78. data/docs/api/files/lib/hash_attrs_rb.html +0 -107
  79. data/docs/api/files/lib/icalendar/base_rb.html +0 -108
  80. data/docs/api/files/lib/icalendar/calendar_rb.html +0 -101
  81. data/docs/api/files/lib/icalendar/component/alarm_rb.html +0 -101
  82. data/docs/api/files/lib/icalendar/component/event_rb.html +0 -101
  83. data/docs/api/files/lib/icalendar/component/freebusy_rb.html +0 -101
  84. data/docs/api/files/lib/icalendar/component/journal_rb.html +0 -101
  85. data/docs/api/files/lib/icalendar/component/timezone_rb.html +0 -101
  86. data/docs/api/files/lib/icalendar/component/todo_rb.html +0 -101
  87. data/docs/api/files/lib/icalendar/component_rb.html +0 -108
  88. data/docs/api/files/lib/icalendar/conversions_rb.html +0 -109
  89. data/docs/api/files/lib/icalendar/helpers_rb.html +0 -101
  90. data/docs/api/files/lib/icalendar/parameter_rb.html +0 -101
  91. data/docs/api/files/lib/icalendar/parser_rb.html +0 -110
  92. data/docs/api/files/lib/icalendar/rrule_rb.html +0 -110
  93. data/docs/api/files/lib/icalendar/tzinfo_rb.html +0 -101
  94. data/docs/api/files/lib/icalendar_rb.html +0 -121
  95. data/docs/api/files/lib/meta_rb.html +0 -107
  96. data/docs/api/fr_class_index.html +0 -64
  97. data/docs/api/fr_file_index.html +0 -47
  98. data/docs/api/fr_method_index.html +0 -123
  99. data/docs/api/index.html +0 -24
  100. data/docs/api/rdoc-style.css +0 -208
  101. data/docs/rfcs/itip_notes.txt +0 -69
  102. data/docs/rfcs/rfc2425.pdf +0 -0
  103. data/docs/rfcs/rfc2426.pdf +0 -0
  104. data/docs/rfcs/rfc2445.pdf +0 -0
  105. data/docs/rfcs/rfc2446.pdf +0 -0
  106. data/docs/rfcs/rfc2447.pdf +0 -0
  107. data/docs/rfcs/rfc3283.txt +0 -738
  108. data/test/coverage/STUB +0 -0
  109. data/test/coverage/index.html +0 -272
  110. data/test/coverage/lib-hash_attrs_rb.html +0 -235
  111. data/test/coverage/lib-icalendar-base_rb.html +0 -249
  112. data/test/coverage/lib-icalendar-calendar_rb.html +0 -324
  113. data/test/coverage/lib-icalendar-component-alarm_rb.html +0 -250
  114. data/test/coverage/lib-icalendar-component-event_rb.html +0 -353
  115. data/test/coverage/lib-icalendar-component-freebusy_rb.html +0 -245
  116. data/test/coverage/lib-icalendar-component-journal_rb.html +0 -278
  117. data/test/coverage/lib-icalendar-component-timezone_rb.html +0 -326
  118. data/test/coverage/lib-icalendar-component-todo_rb.html +0 -277
  119. data/test/coverage/lib-icalendar-component_rb.html +0 -733
  120. data/test/coverage/lib-icalendar-conversions_rb.html +0 -358
  121. data/test/coverage/lib-icalendar-parser_rb.html +0 -671
  122. data/test/coverage/lib-icalendar-rrule_rb.html +0 -357
  123. data/test/coverage/lib-icalendar_rb.html +0 -243
  124. data/test/coverage/lib-meta_rb.html +0 -234
@@ -1,228 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Icalendar::Alarm</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Icalendar::Alarm</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/icalendar/component/alarm_rb.html">
59
- lib/icalendar/component/alarm.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Component.html">
69
- Component
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- An <a href="Alarm.html">Alarm</a> calendar component is a grouping of
86
- component properties that is a reminder or alarm for an event or a to-do.
87
- For example, it may be used to define a reminder for a pending <a
88
- href="Event.html">Event</a> or an overdue <a href="Todo.html">Todo</a>.
89
- </p>
90
-
91
- </div>
92
-
93
-
94
- </div>
95
-
96
- <div id="method-list">
97
- <h3 class="section-bar">Methods</h3>
98
-
99
- <div class="name-list">
100
- <a href="#M000035">new</a>&nbsp;&nbsp;
101
- </div>
102
- </div>
103
-
104
- </div>
105
-
106
-
107
- <!-- if includes -->
108
-
109
- <div id="section">
110
-
111
-
112
-
113
-
114
-
115
- <div id="attribute-list">
116
- <h3 class="section-bar">Attributes</h3>
117
-
118
- <div class="name-list">
119
- <table>
120
- <tr class="top-aligned-row context-row">
121
- <td class="context-item-name">action</td>
122
- <td class="context-item-value">&nbsp;&nbsp;</td>
123
- <td class="context-item-desc">
124
- Single properties
125
-
126
- </td>
127
- </tr>
128
- <tr class="top-aligned-row context-row">
129
- <td class="context-item-name">created</td>
130
- <td class="context-item-value">&nbsp;&nbsp;</td>
131
- <td class="context-item-desc">
132
- Single and only occurring once
133
-
134
- </td>
135
- </tr>
136
- <tr class="top-aligned-row context-row">
137
- <td class="context-item-name">description</td>
138
- <td class="context-item-value">&nbsp;&nbsp;</td>
139
- <td class="context-item-desc"></td>
140
- </tr>
141
- <tr class="top-aligned-row context-row">
142
- <td class="context-item-name">duration</td>
143
- <td class="context-item-value">&nbsp;&nbsp;</td>
144
- <td class="context-item-desc">
145
- Single but must appear together
146
-
147
- </td>
148
- </tr>
149
- <tr class="top-aligned-row context-row">
150
- <td class="context-item-name">last_modified</td>
151
- <td class="context-item-value">&nbsp;&nbsp;</td>
152
- <td class="context-item-desc"></td>
153
- </tr>
154
- <tr class="top-aligned-row context-row">
155
- <td class="context-item-name">repeat</td>
156
- <td class="context-item-value">&nbsp;&nbsp;</td>
157
- <td class="context-item-desc"></td>
158
- </tr>
159
- <tr class="top-aligned-row context-row">
160
- <td class="context-item-name">sequence</td>
161
- <td class="context-item-value">&nbsp;&nbsp;</td>
162
- <td class="context-item-desc"></td>
163
- </tr>
164
- <tr class="top-aligned-row context-row">
165
- <td class="context-item-name">summary</td>
166
- <td class="context-item-value">&nbsp;&nbsp;</td>
167
- <td class="context-item-desc"></td>
168
- </tr>
169
- <tr class="top-aligned-row context-row">
170
- <td class="context-item-name">timestamp</td>
171
- <td class="context-item-value">&nbsp;&nbsp;</td>
172
- <td class="context-item-desc"></td>
173
- </tr>
174
- <tr class="top-aligned-row context-row">
175
- <td class="context-item-name">trigger</td>
176
- <td class="context-item-value">&nbsp;&nbsp;</td>
177
- <td class="context-item-desc"></td>
178
- </tr>
179
- </table>
180
- </div>
181
- </div>
182
-
183
-
184
-
185
- <!-- if method_list -->
186
- <div id="methods">
187
- <h3 class="section-bar">Public Class methods</h3>
188
-
189
- <div id="method-M000035" class="method-detail">
190
- <a name="M000035"></a>
191
-
192
- <div class="method-heading">
193
- <a href="#M000035" class="method-signature">
194
- <span class="method-name">new</span><span class="method-args">()</span>
195
- </a>
196
- </div>
197
-
198
- <div class="method-description">
199
- <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000035-source">
202
- <pre>
203
- <span class="ruby-comment cmt"># File lib/icalendar/component/alarm.rb, line 36</span>
204
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
205
- <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">&quot;VALARM&quot;</span>)
206
-
207
- <span class="ruby-comment cmt"># Almost everyone just wants to display so I make it the </span>
208
- <span class="ruby-comment cmt"># default so it works for most people right away...</span>
209
- <span class="ruby-identifier">action</span> <span class="ruby-value str">&quot;DISPLAY&quot;</span>
210
- <span class="ruby-keyword kw">end</span>
211
- </pre>
212
- </div>
213
- </div>
214
- </div>
215
-
216
-
217
- </div>
218
-
219
-
220
- </div>
221
-
222
-
223
- <div id="validator-badges">
224
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
225
- </div>
226
-
227
- </body>
228
- </html>
@@ -1,179 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Icalendar::Base</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Icalendar::Base</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/icalendar/base_rb.html">
59
- lib/icalendar/base.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- This class serves as the base class for just about everything in the
86
- library so that the logging system can be configured in one place.
87
- </p>
88
-
89
- </div>
90
-
91
-
92
- </div>
93
-
94
- <div id="method-list">
95
- <h3 class="section-bar">Methods</h3>
96
-
97
- <div class="name-list">
98
- <a href="#M000031">debug</a>&nbsp;&nbsp;
99
- <a href="#M000032">quiet</a>&nbsp;&nbsp;
100
- </div>
101
- </div>
102
-
103
- </div>
104
-
105
-
106
- <!-- if includes -->
107
-
108
- <div id="section">
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- <!-- if method_list -->
118
- <div id="methods">
119
- <h3 class="section-bar">Public Class methods</h3>
120
-
121
- <div id="method-M000031" class="method-detail">
122
- <a name="M000031"></a>
123
-
124
- <div class="method-heading">
125
- <a href="#M000031" class="method-signature">
126
- <span class="method-name">debug</span><span class="method-args">()</span>
127
- </a>
128
- </div>
129
-
130
- <div class="method-description">
131
- <p><a class="source-toggle" href="#"
132
- onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
133
- <div class="method-source-code" id="M000031-source">
134
- <pre>
135
- <span class="ruby-comment cmt"># File lib/icalendar/base.rb, line 35</span>
136
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">debug</span>
137
- <span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
138
- <span class="ruby-keyword kw">end</span>
139
- </pre>
140
- </div>
141
- </div>
142
- </div>
143
-
144
- <div id="method-M000032" class="method-detail">
145
- <a name="M000032"></a>
146
-
147
- <div class="method-heading">
148
- <a href="#M000032" class="method-signature">
149
- <span class="method-name">quiet</span><span class="method-args">()</span>
150
- </a>
151
- </div>
152
-
153
- <div class="method-description">
154
- <p><a class="source-toggle" href="#"
155
- onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
156
- <div class="method-source-code" id="M000032-source">
157
- <pre>
158
- <span class="ruby-comment cmt"># File lib/icalendar/base.rb, line 39</span>
159
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">quiet</span>
160
- <span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">FATAL</span>
161
- <span class="ruby-keyword kw">end</span>
162
- </pre>
163
- </div>
164
- </div>
165
- </div>
166
-
167
-
168
- </div>
169
-
170
-
171
- </div>
172
-
173
-
174
- <div id="validator-badges">
175
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
176
- </div>
177
-
178
- </body>
179
- </html>
@@ -1,504 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Icalendar::Calendar</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Icalendar::Calendar</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/icalendar/calendar_rb.html">
59
- lib/icalendar/calendar.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Component.html">
69
- Component
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000060">event</a>&nbsp;&nbsp;
92
- <a href="#M000061">find_event</a>&nbsp;&nbsp;
93
- <a href="#M000067">find_freebusy</a>&nbsp;&nbsp;
94
- <a href="#M000065">find_journal</a>&nbsp;&nbsp;
95
- <a href="#M000063">find_todo</a>&nbsp;&nbsp;
96
- <a href="#M000066">freebusy</a>&nbsp;&nbsp;
97
- <a href="#M000064">journal</a>&nbsp;&nbsp;
98
- <a href="#M000059">new</a>&nbsp;&nbsp;
99
- <a href="#M000069">publish</a>&nbsp;&nbsp;
100
- <a href="#M000068">timezone</a>&nbsp;&nbsp;
101
- <a href="#M000062">todo</a>&nbsp;&nbsp;
102
- </div>
103
- </div>
104
-
105
- </div>
106
-
107
-
108
- <!-- if includes -->
109
-
110
- <div id="section">
111
-
112
-
113
-
114
-
115
-
116
- <div id="attribute-list">
117
- <h3 class="section-bar">Attributes</h3>
118
-
119
- <div class="name-list">
120
- <table>
121
- <tr class="top-aligned-row context-row">
122
- <td class="context-item-name">calendar_scale</td>
123
- <td class="context-item-value">&nbsp;&nbsp;</td>
124
- <td class="context-item-desc"></td>
125
- </tr>
126
- <tr class="top-aligned-row context-row">
127
- <td class="context-item-name">calscale</td>
128
- <td class="context-item-value">&nbsp;&nbsp;</td>
129
- <td class="context-item-desc"></td>
130
- </tr>
131
- <tr class="top-aligned-row context-row">
132
- <td class="context-item-name">events</td>
133
- <td class="context-item-value">&nbsp;&nbsp;</td>
134
- <td class="context-item-desc"></td>
135
- </tr>
136
- <tr class="top-aligned-row context-row">
137
- <td class="context-item-name">freebusys</td>
138
- <td class="context-item-value">&nbsp;&nbsp;</td>
139
- <td class="context-item-desc"></td>
140
- </tr>
141
- <tr class="top-aligned-row context-row">
142
- <td class="context-item-name">ip_method</td>
143
- <td class="context-item-value">&nbsp;&nbsp;</td>
144
- <td class="context-item-desc"></td>
145
- </tr>
146
- <tr class="top-aligned-row context-row">
147
- <td class="context-item-name">journals</td>
148
- <td class="context-item-value">&nbsp;&nbsp;</td>
149
- <td class="context-item-desc"></td>
150
- </tr>
151
- <tr class="top-aligned-row context-row">
152
- <td class="context-item-name">prodid</td>
153
- <td class="context-item-value">&nbsp;&nbsp;</td>
154
- <td class="context-item-desc"></td>
155
- </tr>
156
- <tr class="top-aligned-row context-row">
157
- <td class="context-item-name">product_id</td>
158
- <td class="context-item-value">&nbsp;&nbsp;</td>
159
- <td class="context-item-desc"></td>
160
- </tr>
161
- <tr class="top-aligned-row context-row">
162
- <td class="context-item-name">timezones</td>
163
- <td class="context-item-value">&nbsp;&nbsp;</td>
164
- <td class="context-item-desc"></td>
165
- </tr>
166
- <tr class="top-aligned-row context-row">
167
- <td class="context-item-name">todos</td>
168
- <td class="context-item-value">&nbsp;&nbsp;</td>
169
- <td class="context-item-desc"></td>
170
- </tr>
171
- <tr class="top-aligned-row context-row">
172
- <td class="context-item-name">version</td>
173
- <td class="context-item-value">&nbsp;&nbsp;</td>
174
- <td class="context-item-desc"></td>
175
- </tr>
176
- </table>
177
- </div>
178
- </div>
179
-
180
-
181
-
182
- <!-- if method_list -->
183
- <div id="methods">
184
- <h3 class="section-bar">Public Class methods</h3>
185
-
186
- <div id="method-M000059" class="method-detail">
187
- <a name="M000059"></a>
188
-
189
- <div class="method-heading">
190
- <a href="#M000059" class="method-signature">
191
- <span class="method-name">new</span><span class="method-args">()</span>
192
- </a>
193
- </div>
194
-
195
- <div class="method-description">
196
- <p><a class="source-toggle" href="#"
197
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
198
- <div class="method-source-code" id="M000059-source">
199
- <pre>
200
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 19</span>
201
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
202
- <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">&quot;VCALENDAR&quot;</span>)
203
-
204
- <span class="ruby-comment cmt"># Set some defaults</span>
205
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">calscale</span> = <span class="ruby-value str">&quot;GREGORIAN&quot;</span> <span class="ruby-comment cmt"># Who knows, but this is the only one in the spec.</span>
206
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">prodid</span> = <span class="ruby-value str">&quot;iCalendar-Ruby&quot;</span> <span class="ruby-comment cmt"># Current product... Should be overwritten by apps that use the library</span>
207
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">version</span> = <span class="ruby-value str">&quot;2.0&quot;</span> <span class="ruby-comment cmt"># Version of the specification</span>
208
- <span class="ruby-keyword kw">end</span>
209
- </pre>
210
- </div>
211
- </div>
212
- </div>
213
-
214
- <h3 class="section-bar">Public Instance methods</h3>
215
-
216
- <div id="method-M000060" class="method-detail">
217
- <a name="M000060"></a>
218
-
219
- <div class="method-heading">
220
- <a href="#M000060" class="method-signature">
221
- <span class="method-name">event</span><span class="method-args">(&amp;block)</span>
222
- </a>
223
- </div>
224
-
225
- <div class="method-description">
226
- <p><a class="source-toggle" href="#"
227
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
228
- <div class="method-source-code" id="M000060-source">
229
- <pre>
230
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 28</span>
231
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">event</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
232
- <span class="ruby-identifier">e</span> = <span class="ruby-constant">Event</span>.<span class="ruby-identifier">new</span>
233
- <span class="ruby-comment cmt"># Note: I'm not sure this is the best way to pass this down, but it works</span>
234
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">timezones</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">tzid</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">timezones</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
235
-
236
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
237
-
238
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
239
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
240
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span>
241
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">dtstart</span>.<span class="ruby-identifier">ical_params</span> = { <span class="ruby-value str">&quot;TZID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span> }
242
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">dtend</span>.<span class="ruby-identifier">ical_params</span> = { <span class="ruby-value str">&quot;TZID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span> }
243
- <span class="ruby-keyword kw">end</span>
244
- <span class="ruby-keyword kw">end</span>
245
-
246
- <span class="ruby-identifier">e</span>
247
- <span class="ruby-keyword kw">end</span>
248
- </pre>
249
- </div>
250
- </div>
251
- </div>
252
-
253
- <div id="method-M000061" class="method-detail">
254
- <a name="M000061"></a>
255
-
256
- <div class="method-heading">
257
- <a href="#M000061" class="method-signature">
258
- <span class="method-name">find_event</span><span class="method-args">(uid)</span>
259
- </a>
260
- </div>
261
-
262
- <div class="method-description">
263
- <p><a class="source-toggle" href="#"
264
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
265
- <div class="method-source-code" id="M000061-source">
266
- <pre>
267
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 46</span>
268
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_event</span>(<span class="ruby-identifier">uid</span>)
269
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">events</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
270
- <span class="ruby-keyword kw">end</span>
271
- </pre>
272
- </div>
273
- </div>
274
- </div>
275
-
276
- <div id="method-M000067" class="method-detail">
277
- <a name="M000067"></a>
278
-
279
- <div class="method-heading">
280
- <a href="#M000067" class="method-signature">
281
- <span class="method-name">find_freebusy</span><span class="method-args">(uid)</span>
282
- </a>
283
- </div>
284
-
285
- <div class="method-description">
286
- <p><a class="source-toggle" href="#"
287
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
288
- <div class="method-source-code" id="M000067-source">
289
- <pre>
290
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 85</span>
291
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_freebusy</span>(<span class="ruby-identifier">uid</span>)
292
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">freebusys</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
293
- <span class="ruby-keyword kw">end</span>
294
- </pre>
295
- </div>
296
- </div>
297
- </div>
298
-
299
- <div id="method-M000065" class="method-detail">
300
- <a name="M000065"></a>
301
-
302
- <div class="method-heading">
303
- <a href="#M000065" class="method-signature">
304
- <span class="method-name">find_journal</span><span class="method-args">(uid)</span>
305
- </a>
306
- </div>
307
-
308
- <div class="method-description">
309
- <p><a class="source-toggle" href="#"
310
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
311
- <div class="method-source-code" id="M000065-source">
312
- <pre>
313
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 72</span>
314
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_journal</span>(<span class="ruby-identifier">uid</span>)
315
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">journals</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">j</span><span class="ruby-operator">|</span> <span class="ruby-identifier">j</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
316
- <span class="ruby-keyword kw">end</span>
317
- </pre>
318
- </div>
319
- </div>
320
- </div>
321
-
322
- <div id="method-M000063" class="method-detail">
323
- <a name="M000063"></a>
324
-
325
- <div class="method-heading">
326
- <a href="#M000063" class="method-signature">
327
- <span class="method-name">find_todo</span><span class="method-args">(uid)</span>
328
- </a>
329
- </div>
330
-
331
- <div class="method-description">
332
- <p><a class="source-toggle" href="#"
333
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
334
- <div class="method-source-code" id="M000063-source">
335
- <pre>
336
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 59</span>
337
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_todo</span>(<span class="ruby-identifier">uid</span>)
338
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">todos</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
339
- <span class="ruby-keyword kw">end</span>
340
- </pre>
341
- </div>
342
- </div>
343
- </div>
344
-
345
- <div id="method-M000066" class="method-detail">
346
- <a name="M000066"></a>
347
-
348
- <div class="method-heading">
349
- <a href="#M000066" class="method-signature">
350
- <span class="method-name">freebusy</span><span class="method-args">(&amp;block)</span>
351
- </a>
352
- </div>
353
-
354
- <div class="method-description">
355
- <p><a class="source-toggle" href="#"
356
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
357
- <div class="method-source-code" id="M000066-source">
358
- <pre>
359
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 76</span>
360
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">freebusy</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
361
- <span class="ruby-identifier">e</span> = <span class="ruby-constant">Freebusy</span>.<span class="ruby-identifier">new</span>
362
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
363
-
364
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
365
-
366
- <span class="ruby-identifier">e</span>
367
- <span class="ruby-keyword kw">end</span>
368
- </pre>
369
- </div>
370
- </div>
371
- </div>
372
-
373
- <div id="method-M000064" class="method-detail">
374
- <a name="M000064"></a>
375
-
376
- <div class="method-heading">
377
- <a href="#M000064" class="method-signature">
378
- <span class="method-name">journal</span><span class="method-args">(&amp;block)</span>
379
- </a>
380
- </div>
381
-
382
- <div class="method-description">
383
- <p><a class="source-toggle" href="#"
384
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
385
- <div class="method-source-code" id="M000064-source">
386
- <pre>
387
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 63</span>
388
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">journal</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
389
- <span class="ruby-identifier">e</span> = <span class="ruby-constant">Journal</span>.<span class="ruby-identifier">new</span>
390
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
391
-
392
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
393
-
394
- <span class="ruby-identifier">e</span>
395
- <span class="ruby-keyword kw">end</span>
396
- </pre>
397
- </div>
398
- </div>
399
- </div>
400
-
401
- <div id="method-M000069" class="method-detail">
402
- <a name="M000069"></a>
403
-
404
- <div class="method-heading">
405
- <a href="#M000069" class="method-signature">
406
- <span class="method-name">publish</span><span class="method-args">()</span>
407
- </a>
408
- </div>
409
-
410
- <div class="method-description">
411
- <p>
412
- The &quot;PUBLISH&quot; method in a &quot;VEVENT&quot; calendar component
413
- is an unsolicited posting of an iCalendar object. Any CU may add published
414
- components to their calendar. The &quot;Organizer&quot; MUST be present in
415
- a published iCalendar component. &quot;Attendees&quot; MUST NOT be present.
416
- Its expected usage is for encapsulating an arbitrary <a
417
- href="Calendar.html#M000060">event</a> as an iCalendar object. The
418
- &quot;Organizer&quot; may subsequently update (with another
419
- &quot;PUBLISH&quot; method), add instances to (with an &quot;ADD&quot;
420
- method), or cancel (with a &quot;CANCEL&quot; method) a previously
421
- published &quot;VEVENT&quot; calendar component.
422
- </p>
423
- <p><a class="source-toggle" href="#"
424
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
425
- <div class="method-source-code" id="M000069-source">
426
- <pre>
427
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 107</span>
428
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">publish</span>
429
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ip_method</span> = <span class="ruby-value str">&quot;PUBLISH&quot;</span>
430
- <span class="ruby-keyword kw">end</span>
431
- </pre>
432
- </div>
433
- </div>
434
- </div>
435
-
436
- <div id="method-M000068" class="method-detail">
437
- <a name="M000068"></a>
438
-
439
- <div class="method-heading">
440
- <a href="#M000068" class="method-signature">
441
- <span class="method-name">timezone</span><span class="method-args">(&amp;block)</span>
442
- </a>
443
- </div>
444
-
445
- <div class="method-description">
446
- <p><a class="source-toggle" href="#"
447
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
448
- <div class="method-source-code" id="M000068-source">
449
- <pre>
450
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 89</span>
451
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">timezone</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
452
- <span class="ruby-identifier">e</span> = <span class="ruby-constant">Timezone</span>.<span class="ruby-identifier">new</span>
453
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
454
-
455
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
456
-
457
- <span class="ruby-identifier">e</span>
458
- <span class="ruby-keyword kw">end</span>
459
- </pre>
460
- </div>
461
- </div>
462
- </div>
463
-
464
- <div id="method-M000062" class="method-detail">
465
- <a name="M000062"></a>
466
-
467
- <div class="method-heading">
468
- <a href="#M000062" class="method-signature">
469
- <span class="method-name">todo</span><span class="method-args">(&amp;block)</span>
470
- </a>
471
- </div>
472
-
473
- <div class="method-description">
474
- <p><a class="source-toggle" href="#"
475
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
476
- <div class="method-source-code" id="M000062-source">
477
- <pre>
478
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 50</span>
479
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">todo</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
480
- <span class="ruby-identifier">e</span> = <span class="ruby-constant">Todo</span>.<span class="ruby-identifier">new</span>
481
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
482
-
483
- <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
484
-
485
- <span class="ruby-identifier">e</span>
486
- <span class="ruby-keyword kw">end</span>
487
- </pre>
488
- </div>
489
- </div>
490
- </div>
491
-
492
-
493
- </div>
494
-
495
-
496
- </div>
497
-
498
-
499
- <div id="validator-badges">
500
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
501
- </div>
502
-
503
- </body>
504
- </html>