atom-tools 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. data/Rakefile +1 -1
  2. data/doc/classes/Atom/AttrEl.html +163 -0
  3. data/doc/classes/Atom/Author.html +113 -0
  4. data/doc/classes/Atom/AutodiscoveryFailure.html +111 -0
  5. data/doc/classes/Atom/Categories.html +168 -0
  6. data/doc/classes/Atom/Category.html +137 -0
  7. data/doc/classes/Atom/Collection.html +425 -0
  8. data/doc/classes/Atom/Content.html +170 -0
  9. data/doc/classes/Atom/Contributor.html +113 -0
  10. data/doc/classes/Atom/Control.html +126 -0
  11. data/doc/classes/Atom/Converters.html +571 -0
  12. data/doc/classes/Atom/DigestAuth.html +285 -0
  13. data/doc/classes/Atom/Element.html +892 -0
  14. data/doc/classes/Atom/FileCache.html +287 -0
  15. data/doc/classes/Atom/HTTP.html +490 -0
  16. data/doc/classes/Atom/HTTPResponse.html +190 -0
  17. data/doc/classes/Atom/HasCategories.html +187 -0
  18. data/doc/classes/Atom/HasLinks.html +168 -0
  19. data/doc/classes/Atom/Link.html +214 -0
  20. data/doc/classes/Atom/NilCache.html +202 -0
  21. data/doc/classes/Atom/ParseError.html +111 -0
  22. data/doc/classes/Atom/Parsers.html +311 -0
  23. data/doc/classes/Atom/Person.html +130 -0
  24. data/doc/classes/Atom/Rights.html +113 -0
  25. data/doc/classes/Atom/Service.html +298 -0
  26. data/doc/classes/Atom/Source.html +111 -0
  27. data/doc/classes/Atom/Subtitle.html +113 -0
  28. data/doc/classes/Atom/Summary.html +113 -0
  29. data/doc/classes/Atom/Text.html +372 -0
  30. data/doc/classes/Atom/Title.html +113 -0
  31. data/doc/classes/Atom/Tools.html +525 -0
  32. data/doc/classes/Atom/Workspace.html +121 -0
  33. data/doc/classes/Object.html +204 -0
  34. data/doc/classes/XHTML.html +118 -0
  35. data/doc/created.rid +1 -0
  36. data/doc/files/README.html +173 -0
  37. data/doc/files/lib/atom/cache_rb.html +302 -0
  38. data/doc/files/lib/atom/collection_rb.html +109 -0
  39. data/doc/files/lib/atom/element_rb.html +110 -0
  40. data/doc/files/lib/atom/entry_rb.html +111 -0
  41. data/doc/files/lib/atom/feed_rb.html +111 -0
  42. data/doc/files/lib/atom/http_rb.html +114 -0
  43. data/doc/files/lib/atom/service_rb.html +112 -0
  44. data/doc/files/lib/atom/text_rb.html +109 -0
  45. data/doc/files/lib/atom/tools_rb.html +108 -0
  46. data/doc/fr_class_index.html +59 -0
  47. data/doc/fr_file_index.html +36 -0
  48. data/doc/fr_method_index.html +137 -0
  49. data/doc/index.html +24 -0
  50. data/doc/rdoc-style.css +208 -0
  51. data/lib/atom/cache.rb +1 -1
  52. data/lib/atom/http.rb +2 -2
  53. data/lib/atom/text.rb +15 -6
  54. data/spec/entry_spec.rb +12 -1
  55. data/spec/feed_spec.rb +20 -1
  56. data/spec/fixtures/contacts-feed.xml +34 -0
  57. data/spec/fixtures/entry-w-xml.xml +24 -0
  58. metadata +68 -5
@@ -0,0 +1,302 @@
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>File: cache.rb</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="fileHeader">
50
+ <h1>cache.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/atom/cache.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Tue Aug 31 08:59:45 -0600 2010</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ portions of this ported from httplib2 &lt;<a
74
+ href="http://code.google.com/p/httplib2">code.google.com/p/httplib2</a>/&gt;
75
+ copyright 2006, Joe Gregorio
76
+ </p>
77
+ <p>
78
+ used under the terms of the MIT license
79
+ </p>
80
+
81
+ </div>
82
+
83
+ <div id="requires-list">
84
+ <h3 class="section-bar">Required files</h3>
85
+
86
+ <div class="name-list">
87
+ digest/md5&nbsp;&nbsp;
88
+ </div>
89
+ </div>
90
+
91
+ </div>
92
+
93
+ <div id="method-list">
94
+ <h3 class="section-bar">Methods</h3>
95
+
96
+ <div class="name-list">
97
+ <a href="#M000004">_entry_disposition</a>&nbsp;&nbsp;
98
+ <a href="#M000002">_parse_cache_control</a>&nbsp;&nbsp;
99
+ <a href="#M000003">_updateCache</a>&nbsp;&nbsp;
100
+ <a href="#M000001">normalize_header_names</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
+
116
+
117
+
118
+ <!-- if method_list -->
119
+ <div id="methods">
120
+ <h3 class="section-bar">Public Instance methods</h3>
121
+
122
+ <div id="method-M000004" class="method-detail">
123
+ <a name="M000004"></a>
124
+
125
+ <div class="method-heading">
126
+ <a href="#M000004" class="method-signature">
127
+ <span class="method-name">_entry_disposition</span><span class="method-args">(response_headers, request_headers)</span>
128
+ </a>
129
+ </div>
130
+
131
+ <div class="method-description">
132
+ <p><a class="source-toggle" href="#"
133
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
134
+ <div class="method-source-code" id="M000004-source">
135
+ <pre>
136
+ <span class="ruby-comment cmt"># File lib/atom/cache.rb, line 79</span>
137
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_entry_disposition</span>(<span class="ruby-identifier">response_headers</span>, <span class="ruby-identifier">request_headers</span>)
138
+ <span class="ruby-identifier">request_headers</span> = <span class="ruby-identifier">normalize_header_names</span>(<span class="ruby-identifier">request_headers</span>)
139
+
140
+ <span class="ruby-identifier">cc</span> = <span class="ruby-identifier">_parse_cache_control</span>(<span class="ruby-identifier">request_headers</span>)
141
+ <span class="ruby-identifier">cc_response</span> = <span class="ruby-identifier">_parse_cache_control</span>(<span class="ruby-identifier">response_headers</span>)
142
+
143
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">request_headers</span>[<span class="ruby-value str">'pragma'</span>] <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">request_headers</span>[<span class="ruby-value str">'pragma'</span>].<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/no-cache/</span>)
144
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">request_headers</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'cache-control'</span>
145
+ <span class="ruby-identifier">request_headers</span>[<span class="ruby-value str">'cache-control'</span>] = <span class="ruby-value str">'no-cache'</span>
146
+ <span class="ruby-keyword kw">end</span>
147
+ <span class="ruby-identifier">:TRANSPARENT</span>
148
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">cc</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'no-cache'</span>
149
+ <span class="ruby-identifier">:TRANSPARENT</span>
150
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">cc_response</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'no-cache'</span>
151
+ <span class="ruby-identifier">:STALE</span>
152
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">cc</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'only-if-cached'</span>
153
+ <span class="ruby-identifier">:FRESH</span>
154
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">response_headers</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'date'</span>
155
+ <span class="ruby-identifier">date</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">rfc2822</span>(<span class="ruby-identifier">response_headers</span>[<span class="ruby-value str">'date'</span>])
156
+ <span class="ruby-identifier">diff</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">date</span>
157
+ <span class="ruby-identifier">current_age</span> = (<span class="ruby-identifier">diff</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">diff</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
158
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cc_response</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'max-age'</span>
159
+ <span class="ruby-identifier">freshness_lifetime</span> = <span class="ruby-identifier">cc_response</span>[<span class="ruby-value str">'max-age'</span>].<span class="ruby-identifier">to_i</span>
160
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">response_headers</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'expires'</span>
161
+ <span class="ruby-identifier">expires</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">rfc2822</span>(<span class="ruby-identifier">response_headers</span>[<span class="ruby-value str">'expires'</span>])
162
+ <span class="ruby-identifier">diff</span> = <span class="ruby-identifier">expires</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">date</span>
163
+ <span class="ruby-identifier">freshness_lifetime</span> = (<span class="ruby-identifier">diff</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">diff</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>
164
+ <span class="ruby-keyword kw">else</span>
165
+ <span class="ruby-identifier">freshness_lifetime</span> = <span class="ruby-value">0</span>
166
+ <span class="ruby-keyword kw">end</span>
167
+
168
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cc</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'max-age'</span>
169
+ <span class="ruby-identifier">freshness_lifetime</span> = <span class="ruby-identifier">cc</span>[<span class="ruby-value str">'max-age'</span>].<span class="ruby-identifier">to_i</span>
170
+ <span class="ruby-keyword kw">end</span>
171
+
172
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cc</span>.<span class="ruby-identifier">key?</span> <span class="ruby-value str">'min-fresh'</span>
173
+ <span class="ruby-identifier">min_fresh</span> = <span class="ruby-identifier">cc</span>[<span class="ruby-value str">'min-fresh'</span>].<span class="ruby-identifier">to_i</span>
174
+ <span class="ruby-identifier">current_age</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">min_fresh</span>
175
+ <span class="ruby-keyword kw">end</span>
176
+
177
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">freshness_lifetime</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">current_age</span>
178
+ <span class="ruby-identifier">:FRESH</span>
179
+ <span class="ruby-keyword kw">else</span>
180
+ <span class="ruby-identifier">:STALE</span>
181
+ <span class="ruby-keyword kw">end</span>
182
+ <span class="ruby-keyword kw">end</span>
183
+ <span class="ruby-keyword kw">end</span>
184
+ </pre>
185
+ </div>
186
+ </div>
187
+ </div>
188
+
189
+ <div id="method-M000002" class="method-detail">
190
+ <a name="M000002"></a>
191
+
192
+ <div class="method-heading">
193
+ <a href="#M000002" class="method-signature">
194
+ <span class="method-name">_parse_cache_control</span><span class="method-args">(headers)</span>
195
+ </a>
196
+ </div>
197
+
198
+ <div class="method-description">
199
+ <p><a class="source-toggle" href="#"
200
+ onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
201
+ <div class="method-source-code" id="M000002-source">
202
+ <pre>
203
+ <span class="ruby-comment cmt"># File lib/atom/cache.rb, line 14</span>
204
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_parse_cache_control</span> <span class="ruby-identifier">headers</span>
205
+ <span class="ruby-identifier">retval</span> = {}
206
+ <span class="ruby-identifier">headers</span> = <span class="ruby-identifier">normalize_header_names</span>(<span class="ruby-identifier">headers</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">headers</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hash</span>
207
+
208
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'cache-control'</span>]
209
+ <span class="ruby-identifier">parts</span> = <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'cache-control'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">','</span>)
210
+ <span class="ruby-identifier">parts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">part</span><span class="ruby-operator">|</span>
211
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">part</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp re">/=/</span>)
212
+ <span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span> = <span class="ruby-identifier">part</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'='</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">strip</span> }
213
+ <span class="ruby-identifier">retval</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span>
214
+ <span class="ruby-keyword kw">else</span>
215
+ <span class="ruby-identifier">retval</span>[<span class="ruby-identifier">part</span>.<span class="ruby-identifier">strip</span>] = <span class="ruby-value">1</span>
216
+ <span class="ruby-keyword kw">end</span>
217
+ <span class="ruby-keyword kw">end</span>
218
+ <span class="ruby-keyword kw">end</span>
219
+
220
+ <span class="ruby-identifier">retval</span>
221
+ <span class="ruby-keyword kw">end</span>
222
+ </pre>
223
+ </div>
224
+ </div>
225
+ </div>
226
+
227
+ <div id="method-M000003" class="method-detail">
228
+ <a name="M000003"></a>
229
+
230
+ <div class="method-heading">
231
+ <a href="#M000003" class="method-signature">
232
+ <span class="method-name">_updateCache</span><span class="method-args">(request_headers, response, cache, cachekey)</span>
233
+ </a>
234
+ </div>
235
+
236
+ <div class="method-description">
237
+ <p><a class="source-toggle" href="#"
238
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
239
+ <div class="method-source-code" id="M000003-source">
240
+ <pre>
241
+ <span class="ruby-comment cmt"># File lib/atom/cache.rb, line 33</span>
242
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_updateCache</span> <span class="ruby-identifier">request_headers</span>, <span class="ruby-identifier">response</span>, <span class="ruby-identifier">cache</span>, <span class="ruby-identifier">cachekey</span>
243
+ <span class="ruby-identifier">cc</span> = <span class="ruby-identifier">_parse_cache_control</span> <span class="ruby-identifier">request_headers</span>
244
+ <span class="ruby-identifier">cc_response</span> = <span class="ruby-identifier">_parse_cache_control</span> <span class="ruby-identifier">response</span>
245
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cc</span>[<span class="ruby-value str">'no-store'</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">cc_response</span>[<span class="ruby-value str">'no-store'</span>]
246
+ <span class="ruby-identifier">cache</span>.<span class="ruby-identifier">delete</span> <span class="ruby-identifier">cachekey</span>
247
+ <span class="ruby-keyword kw">else</span>
248
+ <span class="ruby-identifier">result</span> = <span class="ruby-node">&quot;HTTP/#{response.http_version} #{response.code} #{response.message}\r\n&quot;</span>
249
+
250
+ <span class="ruby-identifier">response</span>.<span class="ruby-identifier">each_capitalized_name</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">field</span><span class="ruby-operator">|</span>
251
+ <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> [<span class="ruby-value str">'status'</span>, <span class="ruby-value str">'content-encoding'</span>, <span class="ruby-value str">'transfer-encoding'</span>].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">field</span>.<span class="ruby-identifier">downcase</span>
252
+ <span class="ruby-identifier">response</span>.<span class="ruby-identifier">get_fields</span>(<span class="ruby-identifier">field</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
253
+ <span class="ruby-identifier">result</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;#{field}: #{value}\r\n&quot;</span>
254
+ <span class="ruby-keyword kw">end</span>
255
+ <span class="ruby-keyword kw">end</span>
256
+
257
+ <span class="ruby-identifier">cache</span>[<span class="ruby-identifier">cachekey</span>] = <span class="ruby-identifier">result</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\r\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>
258
+ <span class="ruby-keyword kw">end</span>
259
+ <span class="ruby-keyword kw">end</span>
260
+ </pre>
261
+ </div>
262
+ </div>
263
+ </div>
264
+
265
+ <div id="method-M000001" class="method-detail">
266
+ <a name="M000001"></a>
267
+
268
+ <div class="method-heading">
269
+ <a href="#M000001" class="method-signature">
270
+ <span class="method-name">normalize_header_names</span><span class="method-args">(_headers)</span>
271
+ </a>
272
+ </div>
273
+
274
+ <div class="method-description">
275
+ <p><a class="source-toggle" href="#"
276
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
277
+ <div class="method-source-code" id="M000001-source">
278
+ <pre>
279
+ <span class="ruby-comment cmt"># File lib/atom/cache.rb, line 8</span>
280
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">normalize_header_names</span> <span class="ruby-identifier">_headers</span>
281
+ <span class="ruby-identifier">headers</span> = {}
282
+ <span class="ruby-identifier">_headers</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">headers</span>[<span class="ruby-identifier">k</span>.<span class="ruby-identifier">downcase</span>] = <span class="ruby-identifier">v</span> }
283
+ <span class="ruby-identifier">headers</span>
284
+ <span class="ruby-keyword kw">end</span>
285
+ </pre>
286
+ </div>
287
+ </div>
288
+ </div>
289
+
290
+
291
+ </div>
292
+
293
+
294
+ </div>
295
+
296
+
297
+ <div id="validator-badges">
298
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
299
+ </div>
300
+
301
+ </body>
302
+ </html>
@@ -0,0 +1,109 @@
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>File: collection.rb</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="fileHeader">
50
+ <h1>collection.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/atom/collection.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri May 01 08:04:57 -0600 2009</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+
72
+ <div id="requires-list">
73
+ <h3 class="section-bar">Required files</h3>
74
+
75
+ <div class="name-list">
76
+ atom/http&nbsp;&nbsp;
77
+ atom/feed&nbsp;&nbsp;
78
+ </div>
79
+ </div>
80
+
81
+ </div>
82
+
83
+
84
+ </div>
85
+
86
+
87
+ <!-- if includes -->
88
+
89
+ <div id="section">
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <!-- if method_list -->
99
+
100
+
101
+ </div>
102
+
103
+
104
+ <div id="validator-badges">
105
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
106
+ </div>
107
+
108
+ </body>
109
+ </html>
@@ -0,0 +1,110 @@
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>File: element.rb</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="fileHeader">
50
+ <h1>element.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/atom/element.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Sat Aug 15 14:46:40 -0600 2009</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+
72
+ <div id="requires-list">
73
+ <h3 class="section-bar">Required files</h3>
74
+
75
+ <div class="name-list">
76
+ time&nbsp;&nbsp;
77
+ rexml/element&nbsp;&nbsp;
78
+ uri&nbsp;&nbsp;
79
+ </div>
80
+ </div>
81
+
82
+ </div>
83
+
84
+
85
+ </div>
86
+
87
+
88
+ <!-- if includes -->
89
+
90
+ <div id="section">
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ <!-- if method_list -->
100
+
101
+
102
+ </div>
103
+
104
+
105
+ <div id="validator-badges">
106
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
107
+ </div>
108
+
109
+ </body>
110
+ </html>