benschwarz-smoke 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) hide show
  1. data/Rakefile +47 -0
  2. data/VERSION.yml +2 -2
  3. data/lib/core_ext/string.rb +6 -0
  4. data/lib/smoke/cache.rb +38 -23
  5. data/lib/smoke/request.rb +4 -8
  6. data/lib/smoke.rb +7 -2
  7. data/rdoc/classes/Smoke/Origin.html +340 -0
  8. data/rdoc/classes/Smoke/Source/Data.html +126 -0
  9. data/rdoc/classes/Smoke/Source/Feed.html +117 -0
  10. data/rdoc/classes/Smoke/Source/YQL.html +223 -0
  11. data/rdoc/classes/Smoke.html +260 -0
  12. data/rdoc/created.rid +1 -0
  13. data/rdoc/files/README_markdown.html +180 -0
  14. data/rdoc/files/lib/core_ext/hash_rb.html +49 -0
  15. data/rdoc/files/lib/smoke/origin_rb.html +49 -0
  16. data/rdoc/files/lib/smoke/request_rb.html +49 -0
  17. data/rdoc/files/lib/smoke/source/data_rb.html +49 -0
  18. data/rdoc/files/lib/smoke/source/feed_rb.html +49 -0
  19. data/rdoc/files/lib/smoke/source/join_rb.html +49 -0
  20. data/rdoc/files/lib/smoke/source/yql_rb.html +49 -0
  21. data/rdoc/files/lib/smoke_rb.html +65 -0
  22. data/rdoc/fr_class_index.html +21 -0
  23. data/rdoc/fr_file_index.html +28 -0
  24. data/rdoc/fr_method_index.html +4459 -0
  25. data/rdoc/index.html +15 -0
  26. data/rdoc/rdoc-style.css +319 -0
  27. data/spec/smoke/cache_spec.rb +28 -6
  28. data/vendor/crack/History +15 -0
  29. data/vendor/crack/LICENSE +20 -0
  30. data/vendor/crack/README.rdoc +42 -0
  31. data/vendor/crack/Rakefile +49 -0
  32. data/vendor/crack/VERSION.yml +4 -0
  33. data/vendor/crack/crack.gemspec +61 -0
  34. data/vendor/crack/lib/crack/core_extensions.rb +128 -0
  35. data/vendor/crack/lib/crack/json.rb +68 -0
  36. data/vendor/crack/lib/crack/xml.rb +214 -0
  37. data/vendor/crack/lib/crack.rb +7 -0
  38. data/vendor/crack/test/crack_test.rb +4 -0
  39. data/vendor/crack/test/data/twittersearch-firefox.json +1 -0
  40. data/vendor/crack/test/data/twittersearch-ie.json +1 -0
  41. data/vendor/crack/test/hash_test.rb +56 -0
  42. data/vendor/crack/test/json_test.rb +66 -0
  43. data/vendor/crack/test/string_test.rb +31 -0
  44. data/vendor/crack/test/test_helper.rb +12 -0
  45. data/vendor/crack/test/xml_test.rb +489 -0
  46. data/vendor/dependencies/README.markdown +113 -0
  47. data/vendor/dependencies/Rakefile +5 -0
  48. data/vendor/dependencies/bin/dep +83 -0
  49. data/vendor/dependencies/dependencies.gemspec +15 -0
  50. data/vendor/dependencies/dependencies.gemspec.erb +27 -0
  51. data/vendor/dependencies/lib/dependencies/dep.rb +99 -0
  52. data/vendor/dependencies/lib/dependencies.rb +5 -0
  53. data/vendor/dependencies/test/dependencies_test.rb +228 -0
  54. data/vendor/dependencies/test/foobaz-0.3.gem +0 -0
  55. data/vendor/fakeweb/CHANGELOG +163 -0
  56. data/vendor/fakeweb/LICENSE.txt +281 -0
  57. data/vendor/fakeweb/README.rdoc +193 -0
  58. data/vendor/fakeweb/Rakefile +76 -0
  59. data/vendor/fakeweb/fakeweb.gemspec +21 -0
  60. data/vendor/fakeweb/lib/fake_web/ext/net_http.rb +71 -0
  61. data/vendor/fakeweb/lib/fake_web/registry.rb +103 -0
  62. data/vendor/fakeweb/lib/fake_web/responder.rb +113 -0
  63. data/vendor/fakeweb/lib/fake_web/response.rb +10 -0
  64. data/vendor/fakeweb/lib/fake_web/stub_socket.rb +15 -0
  65. data/vendor/fakeweb/lib/fake_web/utility.rb +22 -0
  66. data/vendor/fakeweb/lib/fake_web.rb +172 -0
  67. data/vendor/fakeweb/lib/fakeweb.rb +2 -0
  68. data/vendor/fakeweb/test/fixtures/google_response_from_curl +12 -0
  69. data/vendor/fakeweb/test/fixtures/google_response_with_transfer_encoding +17 -0
  70. data/vendor/fakeweb/test/fixtures/google_response_without_transfer_encoding +11 -0
  71. data/vendor/fakeweb/test/fixtures/test_example.txt +1 -0
  72. data/vendor/fakeweb/test/fixtures/test_txt_file +3 -0
  73. data/vendor/fakeweb/test/test_allow_net_connect.rb +85 -0
  74. data/vendor/fakeweb/test/test_deprecations.rb +54 -0
  75. data/vendor/fakeweb/test/test_fake_authentication.rb +92 -0
  76. data/vendor/fakeweb/test/test_fake_web.rb +535 -0
  77. data/vendor/fakeweb/test/test_fake_web_open_uri.rb +58 -0
  78. data/vendor/fakeweb/test/test_helper.rb +74 -0
  79. data/vendor/fakeweb/test/test_missing_open_uri.rb +25 -0
  80. data/vendor/fakeweb/test/test_precedence.rb +51 -0
  81. data/vendor/fakeweb/test/test_query_string.rb +45 -0
  82. data/vendor/fakeweb/test/test_regexes.rb +103 -0
  83. data/vendor/fakeweb/test/test_response_headers.rb +73 -0
  84. data/vendor/fakeweb/test/test_trailing_slashes.rb +53 -0
  85. data/vendor/fakeweb/test/test_utility.rb +70 -0
  86. data/vendor/json-1.1.3/CHANGES +93 -0
  87. data/vendor/json-1.1.3/GPL +340 -0
  88. data/vendor/json-1.1.3/README +78 -0
  89. data/vendor/json-1.1.3/RUBY +58 -0
  90. data/vendor/json-1.1.3/Rakefile +309 -0
  91. data/vendor/json-1.1.3/TODO +1 -0
  92. data/vendor/json-1.1.3/VERSION +1 -0
  93. data/vendor/json-1.1.3/benchmarks/benchmark.txt +133 -0
  94. data/vendor/json-1.1.3/benchmarks/benchmark_generator.rb +48 -0
  95. data/vendor/json-1.1.3/benchmarks/benchmark_parser.rb +26 -0
  96. data/vendor/json-1.1.3/benchmarks/benchmark_rails.rb +26 -0
  97. data/vendor/json-1.1.3/bin/edit_json.rb +10 -0
  98. data/vendor/json-1.1.3/bin/prettify_json.rb +76 -0
  99. data/vendor/json-1.1.3/data/example.json +1 -0
  100. data/vendor/json-1.1.3/data/index.html +38 -0
  101. data/vendor/json-1.1.3/data/prototype.js +4184 -0
  102. data/vendor/json-1.1.3/ext/json/ext/generator/extconf.rb +9 -0
  103. data/vendor/json-1.1.3/ext/json/ext/generator/generator.c +875 -0
  104. data/vendor/json-1.1.3/ext/json/ext/generator/unicode.c +182 -0
  105. data/vendor/json-1.1.3/ext/json/ext/generator/unicode.h +53 -0
  106. data/vendor/json-1.1.3/ext/json/ext/parser/extconf.rb +9 -0
  107. data/vendor/json-1.1.3/ext/json/ext/parser/parser.c +1758 -0
  108. data/vendor/json-1.1.3/ext/json/ext/parser/parser.rl +638 -0
  109. data/vendor/json-1.1.3/ext/json/ext/parser/unicode.c +154 -0
  110. data/vendor/json-1.1.3/ext/json/ext/parser/unicode.h +58 -0
  111. data/vendor/json-1.1.3/install.rb +26 -0
  112. data/vendor/json-1.1.3/lib/json/Array.xpm +21 -0
  113. data/vendor/json-1.1.3/lib/json/FalseClass.xpm +21 -0
  114. data/vendor/json-1.1.3/lib/json/Hash.xpm +21 -0
  115. data/vendor/json-1.1.3/lib/json/Key.xpm +73 -0
  116. data/vendor/json-1.1.3/lib/json/NilClass.xpm +21 -0
  117. data/vendor/json-1.1.3/lib/json/Numeric.xpm +28 -0
  118. data/vendor/json-1.1.3/lib/json/String.xpm +96 -0
  119. data/vendor/json-1.1.3/lib/json/TrueClass.xpm +21 -0
  120. data/vendor/json-1.1.3/lib/json/add/core.rb +135 -0
  121. data/vendor/json-1.1.3/lib/json/add/rails.rb +58 -0
  122. data/vendor/json-1.1.3/lib/json/common.rb +354 -0
  123. data/vendor/json-1.1.3/lib/json/editor.rb +1362 -0
  124. data/vendor/json-1.1.3/lib/json/ext.rb +13 -0
  125. data/vendor/json-1.1.3/lib/json/json.xpm +1499 -0
  126. data/vendor/json-1.1.3/lib/json/pure/generator.rb +394 -0
  127. data/vendor/json-1.1.3/lib/json/pure/parser.rb +259 -0
  128. data/vendor/json-1.1.3/lib/json/pure.rb +75 -0
  129. data/vendor/json-1.1.3/lib/json/version.rb +9 -0
  130. data/vendor/json-1.1.3/lib/json.rb +235 -0
  131. data/vendor/json-1.1.3/tests/fixtures/fail1.json +1 -0
  132. data/vendor/json-1.1.3/tests/fixtures/fail10.json +1 -0
  133. data/vendor/json-1.1.3/tests/fixtures/fail11.json +1 -0
  134. data/vendor/json-1.1.3/tests/fixtures/fail12.json +1 -0
  135. data/vendor/json-1.1.3/tests/fixtures/fail13.json +1 -0
  136. data/vendor/json-1.1.3/tests/fixtures/fail14.json +1 -0
  137. data/vendor/json-1.1.3/tests/fixtures/fail18.json +1 -0
  138. data/vendor/json-1.1.3/tests/fixtures/fail19.json +1 -0
  139. data/vendor/json-1.1.3/tests/fixtures/fail2.json +1 -0
  140. data/vendor/json-1.1.3/tests/fixtures/fail20.json +1 -0
  141. data/vendor/json-1.1.3/tests/fixtures/fail21.json +1 -0
  142. data/vendor/json-1.1.3/tests/fixtures/fail22.json +1 -0
  143. data/vendor/json-1.1.3/tests/fixtures/fail23.json +1 -0
  144. data/vendor/json-1.1.3/tests/fixtures/fail24.json +1 -0
  145. data/vendor/json-1.1.3/tests/fixtures/fail25.json +1 -0
  146. data/vendor/json-1.1.3/tests/fixtures/fail27.json +2 -0
  147. data/vendor/json-1.1.3/tests/fixtures/fail28.json +2 -0
  148. data/vendor/json-1.1.3/tests/fixtures/fail3.json +1 -0
  149. data/vendor/json-1.1.3/tests/fixtures/fail4.json +1 -0
  150. data/vendor/json-1.1.3/tests/fixtures/fail5.json +1 -0
  151. data/vendor/json-1.1.3/tests/fixtures/fail6.json +1 -0
  152. data/vendor/json-1.1.3/tests/fixtures/fail7.json +1 -0
  153. data/vendor/json-1.1.3/tests/fixtures/fail8.json +1 -0
  154. data/vendor/json-1.1.3/tests/fixtures/fail9.json +1 -0
  155. data/vendor/json-1.1.3/tests/fixtures/pass1.json +56 -0
  156. data/vendor/json-1.1.3/tests/fixtures/pass15.json +1 -0
  157. data/vendor/json-1.1.3/tests/fixtures/pass16.json +1 -0
  158. data/vendor/json-1.1.3/tests/fixtures/pass17.json +1 -0
  159. data/vendor/json-1.1.3/tests/fixtures/pass2.json +1 -0
  160. data/vendor/json-1.1.3/tests/fixtures/pass26.json +1 -0
  161. data/vendor/json-1.1.3/tests/fixtures/pass3.json +6 -0
  162. data/vendor/json-1.1.3/tests/runner.rb +25 -0
  163. data/vendor/json-1.1.3/tests/test_json.rb +293 -0
  164. data/vendor/json-1.1.3/tests/test_json_addition.rb +161 -0
  165. data/vendor/json-1.1.3/tests/test_json_fixtures.rb +30 -0
  166. data/vendor/json-1.1.3/tests/test_json_generate.rb +100 -0
  167. data/vendor/json-1.1.3/tests/test_json_rails.rb +118 -0
  168. data/vendor/json-1.1.3/tests/test_json_unicode.rb +61 -0
  169. data/vendor/json-1.1.3/tools/fuzz.rb +140 -0
  170. data/vendor/json-1.1.3/tools/server.rb +62 -0
  171. data/vendor/moneta/LICENSE +20 -0
  172. data/vendor/moneta/README +51 -0
  173. data/vendor/moneta/Rakefile +60 -0
  174. data/vendor/moneta/TODO +4 -0
  175. data/vendor/moneta/benchmarks/various.rb +234 -0
  176. data/vendor/moneta/lib/moneta/basic_file.rb +111 -0
  177. data/vendor/moneta/lib/moneta/berkeley.rb +53 -0
  178. data/vendor/moneta/lib/moneta/couch.rb +63 -0
  179. data/vendor/moneta/lib/moneta/datamapper.rb +117 -0
  180. data/vendor/moneta/lib/moneta/file.rb +91 -0
  181. data/vendor/moneta/lib/moneta/lmc.rb +52 -0
  182. data/vendor/moneta/lib/moneta/memcache.rb +53 -0
  183. data/vendor/moneta/lib/moneta/memory.rb +11 -0
  184. data/vendor/moneta/lib/moneta/mongodb.rb +58 -0
  185. data/vendor/moneta/lib/moneta/redis.rb +49 -0
  186. data/vendor/moneta/lib/moneta/rufus.rb +41 -0
  187. data/vendor/moneta/lib/moneta/s3.rb +162 -0
  188. data/vendor/moneta/lib/moneta/sdbm.rb +33 -0
  189. data/vendor/moneta/lib/moneta/tyrant.rb +58 -0
  190. data/vendor/moneta/lib/moneta/xattr.rb +58 -0
  191. data/vendor/moneta/lib/moneta.rb +76 -0
  192. data/vendor/moneta/moneta.gemspec +32 -0
  193. data/vendor/moneta/script/destroy +14 -0
  194. data/vendor/moneta/script/generate +14 -0
  195. data/vendor/moneta/spec/moneta_basic_file_spec.rb +50 -0
  196. data/vendor/moneta/spec/moneta_berkeley_spec.rb +20 -0
  197. data/vendor/moneta/spec/moneta_couch_spec.rb +22 -0
  198. data/vendor/moneta/spec/moneta_datamapper_spec.rb +79 -0
  199. data/vendor/moneta/spec/moneta_file_spec.rb +21 -0
  200. data/vendor/moneta/spec/moneta_lmc_spec.rb +24 -0
  201. data/vendor/moneta/spec/moneta_memcache_spec.rb +16 -0
  202. data/vendor/moneta/spec/moneta_memory_spec.rb +12 -0
  203. data/vendor/moneta/spec/moneta_mongodb_spec.rb +16 -0
  204. data/vendor/moneta/spec/moneta_redis_spec.rb +16 -0
  205. data/vendor/moneta/spec/moneta_rufus_spec.rb +15 -0
  206. data/vendor/moneta/spec/moneta_s3_spec.rb +19 -0
  207. data/vendor/moneta/spec/moneta_sdbm_spec.rb +21 -0
  208. data/vendor/moneta/spec/moneta_tyrant_spec.rb +15 -0
  209. data/vendor/moneta/spec/moneta_xattr_spec.rb +21 -0
  210. data/vendor/moneta/spec/shared.rb +122 -0
  211. data/vendor/moneta/spec/spec_helper.rb +7 -0
  212. data/vendor/rest-client/README.rdoc +151 -0
  213. data/vendor/rest-client/Rakefile +58 -0
  214. data/vendor/rest-client/VERSION +1 -0
  215. data/vendor/rest-client/bin/restclient +87 -0
  216. data/vendor/rest-client/lib/rest_client.rb +2 -0
  217. data/vendor/rest-client/lib/restclient/exceptions.rb +88 -0
  218. data/vendor/rest-client/lib/restclient/mixin/response.rb +43 -0
  219. data/vendor/rest-client/lib/restclient/raw_response.rb +30 -0
  220. data/vendor/rest-client/lib/restclient/request.rb +238 -0
  221. data/vendor/rest-client/lib/restclient/resource.rb +146 -0
  222. data/vendor/rest-client/lib/restclient/response.rb +20 -0
  223. data/vendor/rest-client/lib/restclient.rb +99 -0
  224. data/vendor/rest-client/rest-client.gemspec +66 -0
  225. data/vendor/rest-client/spec/base.rb +4 -0
  226. data/vendor/rest-client/spec/exceptions_spec.rb +65 -0
  227. data/vendor/rest-client/spec/mixin/response_spec.rb +46 -0
  228. data/vendor/rest-client/spec/raw_response_spec.rb +17 -0
  229. data/vendor/rest-client/spec/request_spec.rb +476 -0
  230. data/vendor/rest-client/spec/resource_spec.rb +75 -0
  231. data/vendor/rest-client/spec/response_spec.rb +16 -0
  232. data/vendor/rest-client/spec/restclient_spec.rb +53 -0
  233. data/vendor/simple-rss/LICENSE +429 -0
  234. data/vendor/simple-rss/README +43 -0
  235. data/vendor/simple-rss/Rakefile +212 -0
  236. data/vendor/simple-rss/install.rb +40 -0
  237. data/vendor/simple-rss/lib/simple-rss.rb +150 -0
  238. data/vendor/simple-rss/simple-rss.gemspec +12 -0
  239. data/vendor/simple-rss/test/base/base_test.rb +51 -0
  240. data/vendor/simple-rss/test/data/atom.xml +45 -0
  241. data/vendor/simple-rss/test/data/not-rss.xml +8 -0
  242. data/vendor/simple-rss/test/data/rss09.rdf +79 -0
  243. data/vendor/simple-rss/test/data/rss20.xml +818 -0
  244. data/vendor/simple-rss/test/test_helper.rb +4 -0
  245. metadata +314 -40
@@ -0,0 +1,260 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>: Smoke [smoke]</title>
5
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
6
+ <link href='../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='class' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>
29
+ <span class='type'>Module</span>
30
+ Smoke
31
+ </h1>
32
+ <ol class='paths'>
33
+ <li>
34
+ <a href="../files/lib/smoke/request_rb.html">lib/smoke/request.rb</a>
35
+ </li>
36
+ <li class='other'>
37
+ <a href="../files/lib/smoke/origin_rb.html">lib/smoke/origin.rb</a>
38
+ </li>
39
+ <li class='other'>
40
+ <a href="../files/lib/smoke/source/data_rb.html">lib/smoke/source/data.rb</a>
41
+ </li>
42
+ <li class='other'>
43
+ <a href="../files/lib/smoke/source/feed_rb.html">lib/smoke/source/feed.rb</a>
44
+ </li>
45
+ <li class='other'>
46
+ <a href="../files/lib/smoke/source/join_rb.html">lib/smoke/source/join.rb</a>
47
+ </li>
48
+ <li class='other'>
49
+ <a href="../files/lib/smoke/source/yql_rb.html">lib/smoke/source/yql.rb</a>
50
+ </li>
51
+ <li class='other'>
52
+ <a href="../files/lib/smoke_rb.html">lib/smoke.rb</a>
53
+ </li>
54
+ <li>
55
+ <a class='show' href='#' onclick='this.parentNode.parentNode.className += " expanded"; this.parentNode.removeChild(this); return false'>show all</a>
56
+ </li>
57
+ </ol>
58
+ </div>
59
+ <div id='content'>
60
+ <div id='text'>
61
+ <div id='method-list'>
62
+ <h2>Methods</h2>
63
+ <h3>public class</h3>
64
+ <ol>
65
+ <li><a href="#M000001">[]</a></li>
66
+ <li><a href="#M000002">activate</a></li>
67
+ <li><a href="#M000003">active_sources</a></li>
68
+ <li><a href="#M000007">data</a></li>
69
+ <li><a href="#M000008">feed</a></li>
70
+ <li><a href="#M000009">join</a></li>
71
+ <li><a href="#M000005">log</a></li>
72
+ <li><a href="#M000004">rename</a></li>
73
+ <li><a href="#M000006">yql</a></li>
74
+ </ol>
75
+ </div>
76
+ <div id='section'>
77
+ <div id='class-list'>
78
+ <h2>Classes and Modules</h2>
79
+ Class <a href="Smoke/Origin.html" class="link">Smoke::Origin</a><br />
80
+ </div>
81
+ <div id='attribute-list'>
82
+ <h2 class='section-bar'>Attributes</h2>
83
+ <div class='name-list'>
84
+ <table>
85
+ <tr class='top-aligned-row context-row'>
86
+ <td class='context-item-name'>active_sources</td>
87
+ <td class='context-item-value'>[R]</td>
88
+ <td class='context-item-desc'></td>
89
+ </tr>
90
+ </table>
91
+ </div>
92
+ </div>
93
+ <div id='methods'>
94
+ <h2>Public class methods</h2>
95
+ <div class='public-class method' id='method-M000001'>
96
+ <a name='M000001'> </a>
97
+ <div class='synopsis'>
98
+ <span class='name'>[]</span>
99
+ <span class='arguments'>(source)</span>
100
+ </div>
101
+ <div class='description'>
102
+ <p>
103
+ Access registered smoke source instances
104
+ </p>
105
+ <p>
106
+ Usage:
107
+ </p>
108
+ <pre>Smoke.yql(:ruby) do ....&#x000A;&#x000A;Smoke[:ruby]&#x000A;=&gt; #&lt;Smoke::Source::YQL::0x18428d4...</pre>
109
+ </div>
110
+ <div class='source'>
111
+ <a class='source-toggle' href='#' onclick="toggleCode('M000001-source'); return false">
112
+ [show source]
113
+ </a>
114
+ <pre id='M000001-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 26</span>&#x000A;26: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">source</span>)&#x000A;27: <span class="ruby-identifier">active_sources</span>[<span class="ruby-identifier">source</span>]&#x000A;28: <span class="ruby-keyword kw">end</span></pre>
115
+ </div>
116
+ </div>
117
+ <div class='public-class method' id='method-M000002'>
118
+ <a name='M000002'> </a>
119
+ <div class='synopsis'>
120
+ <span class='name'>activate</span>
121
+ <span class='arguments'>(name, source)</span>
122
+ </div>
123
+ <div class='description'>
124
+ <p>
125
+ Activates new instances of sources Source instances are stored within the
126
+ @@<a href="Smoke.html#M000003">active_sources</a> class variable for later
127
+ use
128
+ </p>
129
+ </div>
130
+ <div class='source'>
131
+ <a class='source-toggle' href='#' onclick="toggleCode('M000002-source'); return false">
132
+ [show source]
133
+ </a>
134
+ <pre id='M000002-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 33</span>&#x000A;33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">activate</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">source</span>)&#x000A;34: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">active_sources</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>)&#x000A;35: <span class="ruby-constant">Smoke</span>.<span class="ruby-identifier">log</span>.<span class="ruby-identifier">warn</span> <span class="ruby-value str">&quot;Smoke source activation: Source with idential name already initialized&quot;</span> &#x000A;36: <span class="ruby-keyword kw">end</span>&#x000A;37: <span class="ruby-identifier">active_sources</span>.<span class="ruby-identifier">update</span>({ <span class="ruby-identifier">name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">source</span> })&#x000A;38: <span class="ruby-keyword kw">end</span></pre>
135
+ </div>
136
+ </div>
137
+ <div class='public-class method' id='method-M000003'>
138
+ <a name='M000003'> </a>
139
+ <div class='synopsis'>
140
+ <span class='name'>active_sources</span>
141
+ <span class='arguments'>()</span>
142
+ </div>
143
+ <div class='description'>
144
+ <p>
145
+ Returns all activated smoke sources
146
+ </p>
147
+ </div>
148
+ <div class='source'>
149
+ <a class='source-toggle' href='#' onclick="toggleCode('M000003-source'); return false">
150
+ [show source]
151
+ </a>
152
+ <pre id='M000003-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 41</span>&#x000A;41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_sources</span>&#x000A;42: <span class="ruby-ivar">@@active_sources</span>&#x000A;43: <span class="ruby-keyword kw">end</span></pre>
153
+ </div>
154
+ </div>
155
+ <div class='public-class method' id='method-M000007'>
156
+ <a name='M000007'> </a>
157
+ <div class='synopsis'>
158
+ <span class='name'>data</span>
159
+ <span class='arguments'>(name, &amp;block)</span>
160
+ </div>
161
+ <div class='source'>
162
+ <a class='source-toggle' href='#' onclick="toggleCode('M000007-source'); return false">
163
+ [show source]
164
+ </a>
165
+ <pre id='M000007-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 65</span>&#x000A;65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">data</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-constant">Smoke</span><span class="ruby-operator">::</span><span class="ruby-constant">Source</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-keyword kw">end</span></pre>
166
+ </div>
167
+ </div>
168
+ <div class='public-class method' id='method-M000008'>
169
+ <a name='M000008'> </a>
170
+ <div class='synopsis'>
171
+ <span class='name'>feed</span>
172
+ <span class='arguments'>(name, &amp;block)</span>
173
+ </div>
174
+ <div class='source'>
175
+ <a class='source-toggle' href='#' onclick="toggleCode('M000008-source'); return false">
176
+ [show source]
177
+ </a>
178
+ <pre id='M000008-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 66</span>&#x000A;66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">feed</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-constant">Smoke</span><span class="ruby-operator">::</span><span class="ruby-constant">Source</span><span class="ruby-operator">::</span><span class="ruby-constant">Feed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-keyword kw">end</span></pre>
179
+ </div>
180
+ </div>
181
+ <div class='public-class method' id='method-M000009'>
182
+ <a name='M000009'> </a>
183
+ <div class='synopsis'>
184
+ <span class='name'>join</span>
185
+ <span class='arguments'>(*names, &amp;block)</span>
186
+ </div>
187
+ <div class='description'>
188
+ <p>
189
+ Join multiple sources together into a single feed Usage:
190
+ </p>
191
+ <pre>Smoke.join(:delicious, :twitter, :flickr) do&#x000A; name :stream&#x000A; path :photos, :photo&#x000A;end</pre>
192
+ </div>
193
+ <div class='source'>
194
+ <a class='source-toggle' href='#' onclick="toggleCode('M000009-source'); return false">
195
+ [show source]
196
+ </a>
197
+ <pre id='M000009-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 74</span>&#x000A;74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">join</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">names</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-constant">Smoke</span><span class="ruby-operator">::</span><span class="ruby-constant">Source</span><span class="ruby-operator">::</span><span class="ruby-constant">Join</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">names</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-keyword kw">end</span></pre>
198
+ </div>
199
+ </div>
200
+ <div class='public-class method' id='method-M000005'>
201
+ <a name='M000005'> </a>
202
+ <div class='synopsis'>
203
+ <span class='name'>log</span>
204
+ <span class='arguments'>()</span>
205
+ </div>
206
+ <div class='description'>
207
+ <p>
208
+ Log for info, debug, error and warn with:
209
+ </p>
210
+ <pre>Smoke.log.info &quot;message&quot;&#x000A;Smoke.log.debug &quot;message&quot;&#x000A;Smoke.log.error &quot;message&quot;&#x000A;Smoke.log.warn &quot;message&quot;</pre>
211
+ </div>
212
+ <div class='source'>
213
+ <a class='source-toggle' href='#' onclick="toggleCode('M000005-source'); return false">
214
+ [show source]
215
+ </a>
216
+ <pre id='M000005-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 60</span>&#x000A;60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>&#x000A;61: <span class="ruby-ivar">@@log</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">$stdout</span>)&#x000A;62: <span class="ruby-keyword kw">end</span></pre>
217
+ </div>
218
+ </div>
219
+ <div class='public-class method' id='method-M000004'>
220
+ <a name='M000004'> </a>
221
+ <div class='synopsis'>
222
+ <span class='name'>rename</span>
223
+ <span class='arguments'>(candidates)</span>
224
+ </div>
225
+ <div class='description'>
226
+ <p>
227
+ Rename a source
228
+ </p>
229
+ </div>
230
+ <div class='source'>
231
+ <a class='source-toggle' href='#' onclick="toggleCode('M000004-source'); return false">
232
+ [show source]
233
+ </a>
234
+ <pre id='M000004-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 46</span>&#x000A;46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rename</span>(<span class="ruby-identifier">candidates</span>)&#x000A;47: <span class="ruby-identifier">candidates</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">o</span>, <span class="ruby-identifier">n</span><span class="ruby-operator">|</span> &#x000A;48: <span class="ruby-identifier">active_sources</span>[<span class="ruby-identifier">o</span>].<span class="ruby-identifier">name</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">to_s</span>&#x000A;49: <span class="ruby-identifier">active_sources</span>.<span class="ruby-identifier">rename</span>(<span class="ruby-identifier">o</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">n</span>)&#x000A;50: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">active_sources</span>[<span class="ruby-identifier">n</span>]&#x000A;51: <span class="ruby-keyword kw">end</span>&#x000A;52: <span class="ruby-keyword kw">end</span></pre>
235
+ </div>
236
+ </div>
237
+ <div class='public-class method' id='method-M000006'>
238
+ <a name='M000006'> </a>
239
+ <div class='synopsis'>
240
+ <span class='name'>yql</span>
241
+ <span class='arguments'>(name, &amp;block)</span>
242
+ </div>
243
+ <div class='source'>
244
+ <a class='source-toggle' href='#' onclick="toggleCode('M000006-source'); return false">
245
+ [show source]
246
+ </a>
247
+ <pre id='M000006-source'> <span class="ruby-comment cmt"># File lib/smoke.rb, line 64</span>&#x000A;64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">yql</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-constant">Smoke</span><span class="ruby-operator">::</span><span class="ruby-constant">Source</span><span class="ruby-operator">::</span><span class="ruby-constant">YQL</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>); <span class="ruby-keyword kw">end</span></pre>
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ <div id='footer-push'></div>
255
+ </div>
256
+ <div id='footer'>
257
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
258
+ </div>
259
+ </body>
260
+ </html>
data/rdoc/created.rid ADDED
@@ -0,0 +1 @@
1
+ Mon, 08 Jun 2009 23:18:27 +1000
@@ -0,0 +1,180 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: README.markdown [smoke]</title>
5
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
6
+ <link href='../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>README.markdown</h1>
29
+ <div class='paths'>
30
+ README.markdown
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Mon Jun 08 19:58:40 +1000 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='description'>
40
+ <p>
41
+ # smoke
42
+ </p>
43
+ <p>
44
+ smoke is a Ruby based DSL that allows you to take data from YQL, RSS / Atom
45
+ (and more, if you think of a useful source). This &#8220;data&#8221; can
46
+ then be re-represented, sorted and filtered. You can collect data from a
47
+ multiude of sources, sort them on a common property and return a plain old
48
+ ruby object or json (You could add in something to output XML too)
49
+ </p>
50
+ <p>
51
+ ## Media
52
+ </p>
53
+ <ul>
54
+ <li>[Presentation from Melbourne roro](<a
55
+ href="http://www.slideshare.net/benschwarz/smoke-1371124">www.slideshare.net/benschwarz/smoke-1371124</a>)
56
+
57
+ </li>
58
+ <li>Early [screencast](<a
59
+ href="http://vimeo.com/4272804">vimeo.com/4272804</a>) to get developer /
60
+ peer feedback
61
+
62
+ </li>
63
+ </ul>
64
+ <p>
65
+ ## The concept
66
+ </p>
67
+ <p>
68
+ The concept comes from using [Yahoo Pipes](<a
69
+ href="http://pipes.yahoo.com">pipes.yahoo.com</a>) to make little mash ups,
70
+ get a list of tv shows for my torrent client, compile a recipe book or make
71
+ tools to give me a list of albums that artists in my music library are
72
+ about to be release.
73
+ </p>
74
+ <p>
75
+ ## How or what to contribute
76
+ </p>
77
+ <ul>
78
+ <li>Test everything you do
79
+
80
+ </li>
81
+ <li>Add a way to output (XML, anyone?)
82
+
83
+ </li>
84
+ <li>Examples of queries you&#8217;d like to be able to do (email / github
85
+ message them to me)
86
+
87
+ </li>
88
+ </ul>
89
+ <p>
90
+ ## API Examples ### YQL
91
+ </p>
92
+ <pre># This will use yahoo search to get an array of search results about Ruby&#x000A;Smoke.yql(:ruby) do&#x000A; select :all&#x000A; from &quot;search.web&quot;&#x000A; where :query, &quot;ruby&quot;&#x000A;&#x000A; discard :title, /tuesday/i&#x000A;end&#x000A;&#x000A;Smoke.yql(:python) do&#x000A; select :all&#x000A; from &quot;search.web&quot;&#x000A; where :query, &quot;python&quot;&#x000A;end</pre>
93
+ <p>
94
+ ### Join sources and use them together
95
+ </p>
96
+ <pre>Smoke.join(:ruby, :python)</pre>
97
+ <p>
98
+ or even
99
+ </p>
100
+ <pre>Smoke.join(:python, :ruby) do&#x000A; emit do&#x000A; sort :title&#x000A; rename :shit_name =&gt; :title&#x000A; end&#x000A;end</pre>
101
+ <p>
102
+ ### Define a source allowing for variables to be injected later
103
+ </p>
104
+ <p>
105
+ Source definition:
106
+ </p>
107
+ <pre>Smoke.feed :delicious do&#x000A; prepare do&#x000A; url &quot;http://feeds.delicious.com/v2/rss/#{username}?count=15&quot;&#x000A; end&#x000A;end</pre>
108
+ <p>
109
+ Execution:
110
+ </p>
111
+ <pre>Smoke[:delicious].username(&quot;bschwarz&quot;).output</pre>
112
+ <p>
113
+ ### CI
114
+ </p>
115
+ <p>
116
+ Integrity [is running for smoke](<a
117
+ href="http://integrity.ffolio.net/smoke">integrity.ffolio.net/smoke</a>)
118
+ </p>
119
+ <p>
120
+ ### TODO (working on, just mental notes)
121
+ </p>
122
+ <ul>
123
+ <li>Joined sources require a call to dispatch when their parent calls output
124
+
125
+ </li>
126
+ <li>Sources that are renamed also need their @name&#8217;s renaming
127
+
128
+ </li>
129
+ <li>Implement a disaptch / request method that will actually thread property
130
+ (event-machine)
131
+
132
+ </li>
133
+ <li>Checkout experimental fakeweb version to stub out the yql specs
134
+
135
+ </li>
136
+ </ul>
137
+ <p>
138
+ #### Later / maybe
139
+ </p>
140
+ <ul>
141
+ <li>Allow for sources to explicitly set the content type being returned for
142
+ those stupid content providers
143
+
144
+ </li>
145
+ <li>YQL w/oAuth
146
+
147
+ </li>
148
+ <li>YQL Subqueries?
149
+
150
+ </li>
151
+ </ul>
152
+ <p>
153
+ #### For wiki pages (docs, later)
154
+ </p>
155
+ <ul>
156
+ <li>How to use `path`
157
+
158
+ </li>
159
+ <li>YQL Definitions
160
+
161
+ </li>
162
+ </ul>
163
+ <p>
164
+ ### Copyright
165
+ </p>
166
+ <p>
167
+ Copyright &#169; 2009 Ben Schwarz. See LICENSE for details.
168
+ </p>
169
+ </div>
170
+ <div id='section'>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ <div id='footer-push'></div>
175
+ </div>
176
+ <div id='footer'>
177
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
178
+ </div>
179
+ </body>
180
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: hash.rb [smoke]</title>
5
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
6
+ <link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>hash.rb</h1>
29
+ <div class='paths'>
30
+ lib/core_ext/hash.rb
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Wed Apr 08 15:45:49 +1000 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='section'>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div id='footer-push'></div>
44
+ </div>
45
+ <div id='footer'>
46
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
47
+ </div>
48
+ </body>
49
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: origin.rb [smoke]</title>
5
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
6
+ <link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>origin.rb</h1>
29
+ <div class='paths'>
30
+ lib/smoke/origin.rb
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Mon Jun 08 21:45:08 +1000 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='section'>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div id='footer-push'></div>
44
+ </div>
45
+ <div id='footer'>
46
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
47
+ </div>
48
+ </body>
49
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: request.rb [smoke]</title>
5
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
6
+ <link href='../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>request.rb</h1>
29
+ <div class='paths'>
30
+ lib/smoke/request.rb
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Wed Jun 03 21:40:58 +1000 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='section'>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div id='footer-push'></div>
44
+ </div>
45
+ <div id='footer'>
46
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
47
+ </div>
48
+ </body>
49
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html lang='en'>
3
+ <head>
4
+ <title>File: data.rb [smoke]</title>
5
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
6
+ <link href='../../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
+ <script type='text/javascript'>
8
+ //<![CDATA[
9
+ function popupCode(url) {
10
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
+ }
12
+
13
+ function toggleCode(id) {
14
+ var code = document.getElementById(id)
15
+
16
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
+ return true
18
+ }
19
+
20
+ // Make codeblocks hidden by default
21
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
+ //]]>
23
+ </script>
24
+ </head>
25
+ <body class='page'>
26
+ <div class='file' id='wrapper'>
27
+ <div class='header'>
28
+ <h1 class='name'>data.rb</h1>
29
+ <div class='paths'>
30
+ lib/smoke/source/data.rb
31
+ </div>
32
+ <div class='last-update'>
33
+ Last Update:
34
+ <span class='datetime'>Mon Jun 08 19:58:40 +1000 2009</span>
35
+ </div>
36
+ </div>
37
+ <div id='content'>
38
+ <div id='text'>
39
+ <div id='section'>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div id='footer-push'></div>
44
+ </div>
45
+ <div id='footer'>
46
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
47
+ </div>
48
+ </body>
49
+ </html>