volatiledb 0.0.3 → 0.0.4

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.
@@ -0,0 +1,279 @@
1
+ <?xml version="1.0" encoding="US-ASCII"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Volatile::Raw</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/volatiledb_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/volatiledb.rb">lib/volatiledb.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ <li><a href="#method-i-get">#get</a></li>
71
+
72
+ <li><a href="#method-i-put">#put</a></li>
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+
79
+ </div>
80
+
81
+ <div id="project-metadata">
82
+
83
+
84
+ <div id="fileindex-section" class="section project-section">
85
+ <h3 class="section-header">Files</h3>
86
+ <ul>
87
+
88
+ <li class="file"><a href="../Gemfile.html">Gemfile</a></li>
89
+
90
+ <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
91
+
92
+ </ul>
93
+ </div>
94
+
95
+
96
+ <div id="classindex-section" class="section project-section">
97
+ <h3 class="section-header">Class/Module Index
98
+ <span class="search-toggle"><img src="../images/find.png"
99
+ height="16" width="16" alt="[+]"
100
+ title="show/hide quicksearch" /></span></h3>
101
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
102
+ <fieldset>
103
+ <legend>Quicksearch</legend>
104
+ <input type="text" name="quicksearch" value=""
105
+ class="quicksearch-field" />
106
+ </fieldset>
107
+ </form>
108
+
109
+ <ul class="link-list">
110
+
111
+ <li><a href="../Volatile.html">Volatile</a></li>
112
+
113
+ <li><a href="../Volatile/DB.html">Volatile::DB</a></li>
114
+
115
+ <li><a href="../Volatile/Raw.html">Volatile::Raw</a></li>
116
+
117
+ </ul>
118
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
119
+ </div>
120
+
121
+
122
+ </div>
123
+ </div>
124
+
125
+ <div id="documentation">
126
+ <h1 class="class">Volatile::Raw</h1>
127
+
128
+ <div id="description" class="description">
129
+
130
+ <p>Implementation detail. Not intended for direct instantiation.</p>
131
+
132
+ </div><!-- description -->
133
+
134
+
135
+ <div id="5Buntitled-5D" class="documentation-section">
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+ <!-- Methods -->
145
+
146
+ <div id="public-class-method-details" class="method-section section">
147
+ <h3 class="section-header">Public Class Methods</h3>
148
+
149
+
150
+ <div id="new-method" class="method-detail ">
151
+ <a name="method-c-new"></a>
152
+
153
+
154
+ <div class="method-heading">
155
+ <span class="method-name">new</span><span
156
+ class="method-args">()</span>
157
+ <span class="method-click-advice">click to toggle source</span>
158
+ </div>
159
+
160
+
161
+ <div class="method-description">
162
+
163
+ <p>Implementation detail.</p>
164
+
165
+
166
+
167
+ <div class="method-source-code" id="new-source">
168
+ <pre>
169
+ <span class="ruby-comment"># File lib/volatiledb.rb, line 126</span>
170
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
171
+ <span class="ruby-ivar">@db</span> <span class="ruby-operator">||=</span> {}
172
+ <span class="ruby-keyword">end</span></pre>
173
+ </div><!-- new-source -->
174
+
175
+ </div>
176
+
177
+
178
+
179
+
180
+ </div><!-- new-method -->
181
+
182
+
183
+ </div><!-- public-class-method-details -->
184
+
185
+ <div id="public-instance-method-details" class="method-section section">
186
+ <h3 class="section-header">Public Instance Methods</h3>
187
+
188
+
189
+ <div id="get-method" class="method-detail ">
190
+ <a name="method-i-get"></a>
191
+
192
+
193
+ <div class="method-heading">
194
+ <span class="method-name">get</span><span
195
+ class="method-args">(key)</span>
196
+ <span class="method-click-advice">click to toggle source</span>
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+ <p>Implementation detail.</p>
203
+
204
+
205
+
206
+ <div class="method-source-code" id="get-source">
207
+ <pre>
208
+ <span class="ruby-comment"># File lib/volatiledb.rb, line 143</span>
209
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>)
210
+ <span class="ruby-identifier">handle</span> = <span class="ruby-ivar">@db</span>[<span class="ruby-identifier">key</span>]
211
+ <span class="ruby-identifier">f</span> = <span class="ruby-node">&quot;/tmp/#{handle}&quot;</span>
212
+ <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-identifier">f</span>)
213
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span> <span class="ruby-identifier">f</span>
214
+ <span class="ruby-keyword">else</span>
215
+ <span class="ruby-keyword">nil</span>
216
+ <span class="ruby-keyword">end</span>
217
+ <span class="ruby-keyword">end</span></pre>
218
+ </div><!-- get-source -->
219
+
220
+ </div>
221
+
222
+
223
+
224
+
225
+ </div><!-- get-method -->
226
+
227
+
228
+ <div id="put-method" class="method-detail ">
229
+ <a name="method-i-put"></a>
230
+
231
+
232
+ <div class="method-heading">
233
+ <span class="method-name">put</span><span
234
+ class="method-args">(key, data)</span>
235
+ <span class="method-click-advice">click to toggle source</span>
236
+ </div>
237
+
238
+
239
+ <div class="method-description">
240
+
241
+ <p>Implementation detail.</p>
242
+
243
+
244
+
245
+ <div class="method-source-code" id="put-source">
246
+ <pre>
247
+ <span class="ruby-comment"># File lib/volatiledb.rb, line 133</span>
248
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">put</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">data</span>)
249
+ <span class="ruby-identifier">handle</span> = <span class="ruby-identifier">handle_from</span> <span class="ruby-identifier">key</span>
250
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-node">&quot;/tmp/#{handle}&quot;</span>, <span class="ruby-string">&quot;w&quot;</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">data</span>}
251
+ <span class="ruby-ivar">@db</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">handle</span>
252
+ <span class="ruby-identifier">key</span>
253
+ <span class="ruby-keyword">end</span></pre>
254
+ </div><!-- put-source -->
255
+
256
+ </div>
257
+
258
+
259
+
260
+
261
+ </div><!-- put-method -->
262
+
263
+
264
+ </div><!-- public-instance-method-details -->
265
+
266
+ </div><!-- 5Buntitled-5D -->
267
+
268
+
269
+ </div><!-- documentation -->
270
+
271
+ <div id="validator-badges">
272
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
273
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
274
+ Rdoc Generator</a> 2</small>.</p>
275
+ </div>
276
+
277
+ </body>
278
+ </html>
279
+
data/doc/Volatile.html ADDED
@@ -0,0 +1,165 @@
1
+ <?xml version="1.0" encoding="US-ASCII"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type" />
7
+
8
+ <title>Module: Volatile</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="module">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="./index.html">Home</a>
25
+ <a href="./index.html#classes">Classes</a>
26
+ <a href="./index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="./lib/volatiledb/version_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/volatiledb/version.rb">lib/volatiledb/version.rb</a></li>
39
+
40
+ <li><a href="./lib/volatiledb_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
41
+ class="thickbox" title="lib/volatiledb.rb">lib/volatiledb.rb</a></li>
42
+
43
+ </ul>
44
+ </div>
45
+ </div>
46
+
47
+
48
+ </div>
49
+
50
+ <div id="class-metadata">
51
+
52
+
53
+
54
+
55
+
56
+ <!-- Namespace Contents -->
57
+ <div id="namespace-list-section" class="section">
58
+ <h3 class="section-header">Namespace</h3>
59
+ <ul class="link-list">
60
+
61
+ <li><span class="type">CLASS</span> <a href="Volatile/DB.html">Volatile::DB</a></li>
62
+
63
+ <li><span class="type">CLASS</span> <a href="Volatile/Raw.html">Volatile::Raw</a></li>
64
+
65
+ </ul>
66
+ </div>
67
+
68
+
69
+
70
+
71
+
72
+ </div>
73
+
74
+ <div id="project-metadata">
75
+
76
+
77
+ <div id="fileindex-section" class="section project-section">
78
+ <h3 class="section-header">Files</h3>
79
+ <ul>
80
+
81
+ <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
82
+
83
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
84
+
85
+ </ul>
86
+ </div>
87
+
88
+
89
+ <div id="classindex-section" class="section project-section">
90
+ <h3 class="section-header">Class/Module Index
91
+ <span class="search-toggle"><img src="./images/find.png"
92
+ height="16" width="16" alt="[+]"
93
+ title="show/hide quicksearch" /></span></h3>
94
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
95
+ <fieldset>
96
+ <legend>Quicksearch</legend>
97
+ <input type="text" name="quicksearch" value=""
98
+ class="quicksearch-field" />
99
+ </fieldset>
100
+ </form>
101
+
102
+ <ul class="link-list">
103
+
104
+ <li><a href="./Volatile.html">Volatile</a></li>
105
+
106
+ <li><a href="./Volatile/DB.html">Volatile::DB</a></li>
107
+
108
+ <li><a href="./Volatile/Raw.html">Volatile::Raw</a></li>
109
+
110
+ </ul>
111
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
112
+ </div>
113
+
114
+
115
+ </div>
116
+ </div>
117
+
118
+ <div id="documentation">
119
+ <h1 class="module">Volatile</h1>
120
+
121
+ <div id="description" class="description">
122
+
123
+ <p>Main module. See <a href="Volatile/DB.html">DB</a> class.</p>
124
+
125
+ </div><!-- description -->
126
+
127
+
128
+ <div id="5Buntitled-5D" class="documentation-section">
129
+
130
+
131
+
132
+
133
+
134
+ <!-- Constants -->
135
+ <div id="constants-list" class="section">
136
+ <h3 class="section-header">Constants</h3>
137
+ <dl>
138
+
139
+ <dt><a name="VERSION">VERSION</a></dt>
140
+
141
+ <dd class="description"><p>Ye olde version number.</p></dd>
142
+
143
+
144
+ </dl>
145
+ </div>
146
+
147
+
148
+
149
+
150
+ <!-- Methods -->
151
+
152
+ </div><!-- 5Buntitled-5D -->
153
+
154
+
155
+ </div><!-- documentation -->
156
+
157
+ <div id="validator-badges">
158
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
159
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
160
+ Rdoc Generator</a> 2</small>.</p>
161
+ </div>
162
+
163
+ </body>
164
+ </html>
165
+
data/doc/created.rid ADDED
@@ -0,0 +1,5 @@
1
+ Tue, 10 Jan 2012 22:16:43 -0800
2
+ ./Gemfile Tue, 03 Jan 2012 20:55:42 -0800
3
+ ./lib/volatiledb/version.rb Tue, 10 Jan 2012 22:11:28 -0800
4
+ ./lib/volatiledb.rb Tue, 10 Jan 2012 22:16:32 -0800
5
+ ./Rakefile Tue, 03 Jan 2012 20:55:42 -0800
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/index.html ADDED
@@ -0,0 +1,78 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type" />
8
+
9
+ <title>RDoc Documentation</title>
10
+
11
+ <link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
16
+ <script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
17
+
18
+ </head>
19
+ <body class="indexpage">
20
+
21
+
22
+ <h1>RDoc Documentation</h1>
23
+
24
+
25
+ <p>This is the API documentation for 'RDoc Documentation'.</p>
26
+
27
+
28
+
29
+
30
+ <h2>Files</h2>
31
+ <ul>
32
+
33
+ <li class="file"><a href="Gemfile.html">Gemfile</a></li>
34
+
35
+ <li class="file"><a href="Rakefile.html">Rakefile</a></li>
36
+
37
+ </ul>
38
+
39
+
40
+ <h2 id="classes">Classes/Modules</h2>
41
+ <ul>
42
+
43
+ <li class="module"><a href="Volatile.html">Volatile</a></li>
44
+
45
+ <li class="class"><a href="Volatile/DB.html">Volatile::DB</a></li>
46
+
47
+ <li class="class"><a href="Volatile/Raw.html">Volatile::Raw</a></li>
48
+
49
+ </ul>
50
+
51
+ <h2 id="methods">Methods</h2>
52
+ <ul>
53
+
54
+ <li><a href="Volatile/DB.html#method-c-new">::new &mdash; Volatile::DB</a></li>
55
+
56
+ <li><a href="Volatile/Raw.html#method-c-new">::new &mdash; Volatile::Raw</a></li>
57
+
58
+ <li><a href="Volatile/DB.html#method-i-fetch">#fetch &mdash; Volatile::DB</a></li>
59
+
60
+ <li><a href="Volatile/DB.html#method-i-get">#get &mdash; Volatile::DB</a></li>
61
+
62
+ <li><a href="Volatile/Raw.html#method-i-get">#get &mdash; Volatile::Raw</a></li>
63
+
64
+ <li><a href="Volatile/DB.html#method-i-pull">#pull &mdash; Volatile::DB</a></li>
65
+
66
+ <li><a href="Volatile/Raw.html#method-i-put">#put &mdash; Volatile::Raw</a></li>
67
+
68
+ <li><a href="Volatile/DB.html#method-i-put">#put &mdash; Volatile::DB</a></li>
69
+
70
+ </ul>
71
+
72
+ <div id="validator-badges">
73
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
74
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
75
+ Rdoc Generator</a> 2</small>.</p>
76
+ </div>
77
+ </body>
78
+ </html>