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.
- data/Rakefile +47 -0
- data/VERSION.yml +2 -2
- data/lib/core_ext/string.rb +6 -0
- data/lib/smoke/cache.rb +38 -23
- data/lib/smoke/request.rb +4 -8
- data/lib/smoke.rb +7 -2
- data/rdoc/classes/Smoke/Origin.html +340 -0
- data/rdoc/classes/Smoke/Source/Data.html +126 -0
- data/rdoc/classes/Smoke/Source/Feed.html +117 -0
- data/rdoc/classes/Smoke/Source/YQL.html +223 -0
- data/rdoc/classes/Smoke.html +260 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/README_markdown.html +180 -0
- data/rdoc/files/lib/core_ext/hash_rb.html +49 -0
- data/rdoc/files/lib/smoke/origin_rb.html +49 -0
- data/rdoc/files/lib/smoke/request_rb.html +49 -0
- data/rdoc/files/lib/smoke/source/data_rb.html +49 -0
- data/rdoc/files/lib/smoke/source/feed_rb.html +49 -0
- data/rdoc/files/lib/smoke/source/join_rb.html +49 -0
- data/rdoc/files/lib/smoke/source/yql_rb.html +49 -0
- data/rdoc/files/lib/smoke_rb.html +65 -0
- data/rdoc/fr_class_index.html +21 -0
- data/rdoc/fr_file_index.html +28 -0
- data/rdoc/fr_method_index.html +4459 -0
- data/rdoc/index.html +15 -0
- data/rdoc/rdoc-style.css +319 -0
- data/spec/smoke/cache_spec.rb +28 -6
- data/vendor/crack/History +15 -0
- data/vendor/crack/LICENSE +20 -0
- data/vendor/crack/README.rdoc +42 -0
- data/vendor/crack/Rakefile +49 -0
- data/vendor/crack/VERSION.yml +4 -0
- data/vendor/crack/crack.gemspec +61 -0
- data/vendor/crack/lib/crack/core_extensions.rb +128 -0
- data/vendor/crack/lib/crack/json.rb +68 -0
- data/vendor/crack/lib/crack/xml.rb +214 -0
- data/vendor/crack/lib/crack.rb +7 -0
- data/vendor/crack/test/crack_test.rb +4 -0
- data/vendor/crack/test/data/twittersearch-firefox.json +1 -0
- data/vendor/crack/test/data/twittersearch-ie.json +1 -0
- data/vendor/crack/test/hash_test.rb +56 -0
- data/vendor/crack/test/json_test.rb +66 -0
- data/vendor/crack/test/string_test.rb +31 -0
- data/vendor/crack/test/test_helper.rb +12 -0
- data/vendor/crack/test/xml_test.rb +489 -0
- data/vendor/dependencies/README.markdown +113 -0
- data/vendor/dependencies/Rakefile +5 -0
- data/vendor/dependencies/bin/dep +83 -0
- data/vendor/dependencies/dependencies.gemspec +15 -0
- data/vendor/dependencies/dependencies.gemspec.erb +27 -0
- data/vendor/dependencies/lib/dependencies/dep.rb +99 -0
- data/vendor/dependencies/lib/dependencies.rb +5 -0
- data/vendor/dependencies/test/dependencies_test.rb +228 -0
- data/vendor/dependencies/test/foobaz-0.3.gem +0 -0
- data/vendor/fakeweb/CHANGELOG +163 -0
- data/vendor/fakeweb/LICENSE.txt +281 -0
- data/vendor/fakeweb/README.rdoc +193 -0
- data/vendor/fakeweb/Rakefile +76 -0
- data/vendor/fakeweb/fakeweb.gemspec +21 -0
- data/vendor/fakeweb/lib/fake_web/ext/net_http.rb +71 -0
- data/vendor/fakeweb/lib/fake_web/registry.rb +103 -0
- data/vendor/fakeweb/lib/fake_web/responder.rb +113 -0
- data/vendor/fakeweb/lib/fake_web/response.rb +10 -0
- data/vendor/fakeweb/lib/fake_web/stub_socket.rb +15 -0
- data/vendor/fakeweb/lib/fake_web/utility.rb +22 -0
- data/vendor/fakeweb/lib/fake_web.rb +172 -0
- data/vendor/fakeweb/lib/fakeweb.rb +2 -0
- data/vendor/fakeweb/test/fixtures/google_response_from_curl +12 -0
- data/vendor/fakeweb/test/fixtures/google_response_with_transfer_encoding +17 -0
- data/vendor/fakeweb/test/fixtures/google_response_without_transfer_encoding +11 -0
- data/vendor/fakeweb/test/fixtures/test_example.txt +1 -0
- data/vendor/fakeweb/test/fixtures/test_txt_file +3 -0
- data/vendor/fakeweb/test/test_allow_net_connect.rb +85 -0
- data/vendor/fakeweb/test/test_deprecations.rb +54 -0
- data/vendor/fakeweb/test/test_fake_authentication.rb +92 -0
- data/vendor/fakeweb/test/test_fake_web.rb +535 -0
- data/vendor/fakeweb/test/test_fake_web_open_uri.rb +58 -0
- data/vendor/fakeweb/test/test_helper.rb +74 -0
- data/vendor/fakeweb/test/test_missing_open_uri.rb +25 -0
- data/vendor/fakeweb/test/test_precedence.rb +51 -0
- data/vendor/fakeweb/test/test_query_string.rb +45 -0
- data/vendor/fakeweb/test/test_regexes.rb +103 -0
- data/vendor/fakeweb/test/test_response_headers.rb +73 -0
- data/vendor/fakeweb/test/test_trailing_slashes.rb +53 -0
- data/vendor/fakeweb/test/test_utility.rb +70 -0
- data/vendor/json-1.1.3/CHANGES +93 -0
- data/vendor/json-1.1.3/GPL +340 -0
- data/vendor/json-1.1.3/README +78 -0
- data/vendor/json-1.1.3/RUBY +58 -0
- data/vendor/json-1.1.3/Rakefile +309 -0
- data/vendor/json-1.1.3/TODO +1 -0
- data/vendor/json-1.1.3/VERSION +1 -0
- data/vendor/json-1.1.3/benchmarks/benchmark.txt +133 -0
- data/vendor/json-1.1.3/benchmarks/benchmark_generator.rb +48 -0
- data/vendor/json-1.1.3/benchmarks/benchmark_parser.rb +26 -0
- data/vendor/json-1.1.3/benchmarks/benchmark_rails.rb +26 -0
- data/vendor/json-1.1.3/bin/edit_json.rb +10 -0
- data/vendor/json-1.1.3/bin/prettify_json.rb +76 -0
- data/vendor/json-1.1.3/data/example.json +1 -0
- data/vendor/json-1.1.3/data/index.html +38 -0
- data/vendor/json-1.1.3/data/prototype.js +4184 -0
- data/vendor/json-1.1.3/ext/json/ext/generator/extconf.rb +9 -0
- data/vendor/json-1.1.3/ext/json/ext/generator/generator.c +875 -0
- data/vendor/json-1.1.3/ext/json/ext/generator/unicode.c +182 -0
- data/vendor/json-1.1.3/ext/json/ext/generator/unicode.h +53 -0
- data/vendor/json-1.1.3/ext/json/ext/parser/extconf.rb +9 -0
- data/vendor/json-1.1.3/ext/json/ext/parser/parser.c +1758 -0
- data/vendor/json-1.1.3/ext/json/ext/parser/parser.rl +638 -0
- data/vendor/json-1.1.3/ext/json/ext/parser/unicode.c +154 -0
- data/vendor/json-1.1.3/ext/json/ext/parser/unicode.h +58 -0
- data/vendor/json-1.1.3/install.rb +26 -0
- data/vendor/json-1.1.3/lib/json/Array.xpm +21 -0
- data/vendor/json-1.1.3/lib/json/FalseClass.xpm +21 -0
- data/vendor/json-1.1.3/lib/json/Hash.xpm +21 -0
- data/vendor/json-1.1.3/lib/json/Key.xpm +73 -0
- data/vendor/json-1.1.3/lib/json/NilClass.xpm +21 -0
- data/vendor/json-1.1.3/lib/json/Numeric.xpm +28 -0
- data/vendor/json-1.1.3/lib/json/String.xpm +96 -0
- data/vendor/json-1.1.3/lib/json/TrueClass.xpm +21 -0
- data/vendor/json-1.1.3/lib/json/add/core.rb +135 -0
- data/vendor/json-1.1.3/lib/json/add/rails.rb +58 -0
- data/vendor/json-1.1.3/lib/json/common.rb +354 -0
- data/vendor/json-1.1.3/lib/json/editor.rb +1362 -0
- data/vendor/json-1.1.3/lib/json/ext.rb +13 -0
- data/vendor/json-1.1.3/lib/json/json.xpm +1499 -0
- data/vendor/json-1.1.3/lib/json/pure/generator.rb +394 -0
- data/vendor/json-1.1.3/lib/json/pure/parser.rb +259 -0
- data/vendor/json-1.1.3/lib/json/pure.rb +75 -0
- data/vendor/json-1.1.3/lib/json/version.rb +9 -0
- data/vendor/json-1.1.3/lib/json.rb +235 -0
- data/vendor/json-1.1.3/tests/fixtures/fail1.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail10.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail11.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail12.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail13.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail14.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail18.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail19.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail2.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail20.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail21.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail22.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail23.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail24.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail25.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail27.json +2 -0
- data/vendor/json-1.1.3/tests/fixtures/fail28.json +2 -0
- data/vendor/json-1.1.3/tests/fixtures/fail3.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail4.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail5.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail6.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail7.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail8.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/fail9.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/pass1.json +56 -0
- data/vendor/json-1.1.3/tests/fixtures/pass15.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/pass16.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/pass17.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/pass2.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/pass26.json +1 -0
- data/vendor/json-1.1.3/tests/fixtures/pass3.json +6 -0
- data/vendor/json-1.1.3/tests/runner.rb +25 -0
- data/vendor/json-1.1.3/tests/test_json.rb +293 -0
- data/vendor/json-1.1.3/tests/test_json_addition.rb +161 -0
- data/vendor/json-1.1.3/tests/test_json_fixtures.rb +30 -0
- data/vendor/json-1.1.3/tests/test_json_generate.rb +100 -0
- data/vendor/json-1.1.3/tests/test_json_rails.rb +118 -0
- data/vendor/json-1.1.3/tests/test_json_unicode.rb +61 -0
- data/vendor/json-1.1.3/tools/fuzz.rb +140 -0
- data/vendor/json-1.1.3/tools/server.rb +62 -0
- data/vendor/moneta/LICENSE +20 -0
- data/vendor/moneta/README +51 -0
- data/vendor/moneta/Rakefile +60 -0
- data/vendor/moneta/TODO +4 -0
- data/vendor/moneta/benchmarks/various.rb +234 -0
- data/vendor/moneta/lib/moneta/basic_file.rb +111 -0
- data/vendor/moneta/lib/moneta/berkeley.rb +53 -0
- data/vendor/moneta/lib/moneta/couch.rb +63 -0
- data/vendor/moneta/lib/moneta/datamapper.rb +117 -0
- data/vendor/moneta/lib/moneta/file.rb +91 -0
- data/vendor/moneta/lib/moneta/lmc.rb +52 -0
- data/vendor/moneta/lib/moneta/memcache.rb +53 -0
- data/vendor/moneta/lib/moneta/memory.rb +11 -0
- data/vendor/moneta/lib/moneta/mongodb.rb +58 -0
- data/vendor/moneta/lib/moneta/redis.rb +49 -0
- data/vendor/moneta/lib/moneta/rufus.rb +41 -0
- data/vendor/moneta/lib/moneta/s3.rb +162 -0
- data/vendor/moneta/lib/moneta/sdbm.rb +33 -0
- data/vendor/moneta/lib/moneta/tyrant.rb +58 -0
- data/vendor/moneta/lib/moneta/xattr.rb +58 -0
- data/vendor/moneta/lib/moneta.rb +76 -0
- data/vendor/moneta/moneta.gemspec +32 -0
- data/vendor/moneta/script/destroy +14 -0
- data/vendor/moneta/script/generate +14 -0
- data/vendor/moneta/spec/moneta_basic_file_spec.rb +50 -0
- data/vendor/moneta/spec/moneta_berkeley_spec.rb +20 -0
- data/vendor/moneta/spec/moneta_couch_spec.rb +22 -0
- data/vendor/moneta/spec/moneta_datamapper_spec.rb +79 -0
- data/vendor/moneta/spec/moneta_file_spec.rb +21 -0
- data/vendor/moneta/spec/moneta_lmc_spec.rb +24 -0
- data/vendor/moneta/spec/moneta_memcache_spec.rb +16 -0
- data/vendor/moneta/spec/moneta_memory_spec.rb +12 -0
- data/vendor/moneta/spec/moneta_mongodb_spec.rb +16 -0
- data/vendor/moneta/spec/moneta_redis_spec.rb +16 -0
- data/vendor/moneta/spec/moneta_rufus_spec.rb +15 -0
- data/vendor/moneta/spec/moneta_s3_spec.rb +19 -0
- data/vendor/moneta/spec/moneta_sdbm_spec.rb +21 -0
- data/vendor/moneta/spec/moneta_tyrant_spec.rb +15 -0
- data/vendor/moneta/spec/moneta_xattr_spec.rb +21 -0
- data/vendor/moneta/spec/shared.rb +122 -0
- data/vendor/moneta/spec/spec_helper.rb +7 -0
- data/vendor/rest-client/README.rdoc +151 -0
- data/vendor/rest-client/Rakefile +58 -0
- data/vendor/rest-client/VERSION +1 -0
- data/vendor/rest-client/bin/restclient +87 -0
- data/vendor/rest-client/lib/rest_client.rb +2 -0
- data/vendor/rest-client/lib/restclient/exceptions.rb +88 -0
- data/vendor/rest-client/lib/restclient/mixin/response.rb +43 -0
- data/vendor/rest-client/lib/restclient/raw_response.rb +30 -0
- data/vendor/rest-client/lib/restclient/request.rb +238 -0
- data/vendor/rest-client/lib/restclient/resource.rb +146 -0
- data/vendor/rest-client/lib/restclient/response.rb +20 -0
- data/vendor/rest-client/lib/restclient.rb +99 -0
- data/vendor/rest-client/rest-client.gemspec +66 -0
- data/vendor/rest-client/spec/base.rb +4 -0
- data/vendor/rest-client/spec/exceptions_spec.rb +65 -0
- data/vendor/rest-client/spec/mixin/response_spec.rb +46 -0
- data/vendor/rest-client/spec/raw_response_spec.rb +17 -0
- data/vendor/rest-client/spec/request_spec.rb +476 -0
- data/vendor/rest-client/spec/resource_spec.rb +75 -0
- data/vendor/rest-client/spec/response_spec.rb +16 -0
- data/vendor/rest-client/spec/restclient_spec.rb +53 -0
- data/vendor/simple-rss/LICENSE +429 -0
- data/vendor/simple-rss/README +43 -0
- data/vendor/simple-rss/Rakefile +212 -0
- data/vendor/simple-rss/install.rb +40 -0
- data/vendor/simple-rss/lib/simple-rss.rb +150 -0
- data/vendor/simple-rss/simple-rss.gemspec +12 -0
- data/vendor/simple-rss/test/base/base_test.rb +51 -0
- data/vendor/simple-rss/test/data/atom.xml +45 -0
- data/vendor/simple-rss/test/data/not-rss.xml +8 -0
- data/vendor/simple-rss/test/data/rss09.rdf +79 -0
- data/vendor/simple-rss/test/data/rss20.xml +818 -0
- data/vendor/simple-rss/test/test_helper.rb +4 -0
- 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 ....

Smoke[:ruby]
=> #<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>
26: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">source</span>)
27: <span class="ruby-identifier">active_sources</span>[<span class="ruby-identifier">source</span>]
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>
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>)
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>)
35: <span class="ruby-constant">Smoke</span>.<span class="ruby-identifier">log</span>.<span class="ruby-identifier">warn</span> <span class="ruby-value str">"Smoke source activation: Source with idential name already initialized"</span> 
36: <span class="ruby-keyword kw">end</span>
37: <span class="ruby-identifier">active_sources</span>.<span class="ruby-identifier">update</span>({ <span class="ruby-identifier">name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">source</span> })
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>
41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_sources</span>
42: <span class="ruby-ivar">@@active_sources</span>
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, &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>
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">data</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&</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">&</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, &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>
66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">feed</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&</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">&</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, &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
 name :stream
 path :photos, :photo
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>
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">&</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">&</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 "message"
Smoke.log.debug "message"
Smoke.log.error "message"
Smoke.log.warn "message"</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>
60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>
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>)
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>
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rename</span>(<span class="ruby-identifier">candidates</span>)
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> 
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>
49: <span class="ruby-identifier">active_sources</span>.<span class="ruby-identifier">rename</span>(<span class="ruby-identifier">o</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">n</span>)
50: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">active_sources</span>[<span class="ruby-identifier">n</span>]
51: <span class="ruby-keyword kw">end</span>
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, &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>
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">yql</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&</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">&</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 “data” 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’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
Smoke.yql(:ruby) do
 select :all
 from "search.web"
 where :query, "ruby"

 discard :title, /tuesday/i
end

Smoke.yql(:python) do
 select :all
 from "search.web"
 where :query, "python"
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
 emit do
 sort :title
 rename :shit_name => :title
 end
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
 prepare do
 url "http://feeds.delicious.com/v2/rss/#{username}?count=15"
 end
end</pre>
|
108
|
+
<p>
|
109
|
+
Execution:
|
110
|
+
</p>
|
111
|
+
<pre>Smoke[:delicious].username("bschwarz").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’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 © 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>
|