wee 2.0.0 → 2.1.0
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.
- data/TODO +31 -0
- data/benchmark.rb +37 -0
- data/demo.ru +11 -0
- data/doc/rdoc/classes/Array.html +22 -26
- data/doc/rdoc/classes/Hash.html +22 -26
- data/doc/rdoc/classes/Object.html +21 -26
- data/doc/rdoc/classes/String.html +19 -87
- data/doc/rdoc/classes/Struct.html +22 -26
- data/doc/rdoc/classes/Wee.html +75 -206
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +35 -66
- data/doc/rdoc/classes/Wee/AnswerDecoration/Answer.html +28 -46
- data/doc/rdoc/classes/Wee/Application.html +63 -114
- data/doc/rdoc/classes/Wee/Application/SessionCache.html +30 -44
- data/doc/rdoc/classes/Wee/Brush.html +52 -101
- data/doc/rdoc/classes/Wee/Brush/ActionInputTag.html +29 -51
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +44 -101
- data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +43 -76
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +29 -46
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +48 -110
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +30 -42
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +37 -58
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +93 -210
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +38 -63
- data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +35 -52
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +28 -61
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +34 -107
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +28 -54
- data/doc/rdoc/classes/Wee/Brush/Page.html +39 -73
- data/doc/rdoc/classes/Wee/Brush/PasswordInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +54 -98
- data/doc/rdoc/classes/Wee/Brush/RadioGroup.html +46 -84
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +87 -187
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +29 -56
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +29 -45
- data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +28 -55
- data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +28 -55
- data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +56 -113
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +27 -58
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -140
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +29 -45
- data/doc/rdoc/classes/Wee/CallAnswerMixin.html +51 -79
- data/doc/rdoc/classes/Wee/CallbackMixin.html +44 -77
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +69 -125
- data/doc/rdoc/classes/Wee/Callbacks.html +43 -82
- data/doc/rdoc/classes/Wee/Component.html +142 -292
- data/doc/rdoc/classes/Wee/Decoration.html +85 -141
- data/doc/rdoc/classes/Wee/DecorationMixin.html +111 -118
- data/doc/rdoc/classes/Wee/Delegate.html +72 -115
- data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/ErrorResponse.html +31 -48
- data/doc/rdoc/classes/Wee/FormDecoration.html +32 -46
- data/doc/rdoc/classes/Wee/GenericResponse.html +30 -50
- data/doc/rdoc/classes/Wee/HtmlCanvas.html +209 -562
- data/doc/rdoc/classes/Wee/HtmlDocument.html +51 -91
- data/doc/rdoc/classes/Wee/HtmlWriter.html +76 -156
- data/doc/rdoc/classes/Wee/IdGenerator.html +28 -44
- data/doc/rdoc/classes/Wee/IdGenerator/Secure.html +53 -95
- data/doc/rdoc/classes/Wee/IdGenerator/Sequential.html +37 -63
- data/doc/rdoc/classes/Wee/JQuery.html +36 -64
- data/doc/rdoc/classes/Wee/LRUCache.html +94 -189
- data/doc/rdoc/classes/Wee/LRUCache/Item.html +30 -42
- data/doc/rdoc/classes/Wee/ObjectSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/PageDecoration.html +48 -79
- data/doc/rdoc/classes/Wee/Presenter.html +86 -143
- data/doc/rdoc/classes/Wee/RedirectResponse.html +31 -49
- data/doc/rdoc/classes/Wee/RefreshResponse.html +34 -48
- data/doc/rdoc/classes/Wee/Renderer.html +56 -125
- data/doc/rdoc/classes/Wee/Request.html +57 -115
- data/doc/rdoc/classes/Wee/Response.html +24 -26
- data/doc/rdoc/classes/Wee/Session.html +137 -292
- data/doc/rdoc/classes/Wee/Session/AbortCallbackProcessing.html +29 -46
- data/doc/rdoc/classes/Wee/Session/MutexSerializer.html +29 -42
- data/doc/rdoc/classes/Wee/Session/Page.html +22 -21
- data/doc/rdoc/classes/Wee/Session/ThreadSerializer.html +36 -60
- data/doc/rdoc/classes/Wee/State.html +57 -105
- data/doc/rdoc/classes/Wee/State/Snapshot.html +22 -21
- data/doc/rdoc/classes/Wee/State/SnapshotIVars.html +22 -21
- data/doc/rdoc/classes/Wee/StructSnapshotMixin.html +37 -54
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +42 -68
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README_rdoc.html +26 -17
- data/doc/rdoc/files/lib/wee/application_rb.html +25 -19
- data/doc/rdoc/files/lib/wee/call_answer_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/callback_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/component_rb.html +25 -19
- data/doc/rdoc/files/lib/wee/decoration_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_brushes_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/html_canvas_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_document_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/html_writer_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/id_generator_rb.html +24 -17
- data/doc/rdoc/files/lib/wee/jquery/jquery_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/jquery_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/lru_cache_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/presenter_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/renderer_rb.html +23 -12
- data/doc/rdoc/files/lib/wee/request_rb.html +23 -15
- data/doc/rdoc/files/lib/wee/response_rb.html +24 -17
- data/doc/rdoc/files/lib/wee/session_rb.html +26 -21
- data/doc/rdoc/files/lib/wee/state_rb.html +23 -12
- data/doc/rdoc/files/lib/wee_rb.html +37 -47
- data/doc/rdoc/fr_class_index.html +12 -86
- data/doc/rdoc/fr_file_index.html +12 -30
- data/doc/rdoc/fr_method_index.html +242 -473
- data/doc/rdoc/index.html +8 -5
- data/doc/rdoc/rdoc-style.css +119 -210
- data/examples/ObjectSpaceBrowser.rb +4 -4
- data/examples/TODO +21 -0
- data/examples/ajax.rb +6 -4
- data/examples/blog.rb +42 -0
- data/examples/demo.rb +5 -3
- data/examples/demo/calculator.rb +3 -3
- data/examples/demo/calendar.rb +4 -4
- data/examples/demo/counter.rb +2 -2
- data/examples/demo/editable_counter.rb +2 -2
- data/examples/demo/example.rb +25 -16
- data/examples/demo/window.rb +10 -3
- data/examples/hw2.rb +17 -0
- data/examples/recipe/description.rb +170 -0
- data/examples/recipe/migrations/001_create_recipes.rb +13 -0
- data/examples/recipe/model.rb +27 -0
- data/examples/recipe/models/recipe.rb +18 -0
- data/examples/recipe/recipe_editor.rb +28 -0
- data/lib/wee.rb +1 -7
- data/lib/wee/component.rb +37 -74
- data/lib/wee/decoration.rb +16 -15
- data/lib/wee/html_brushes.rb +16 -17
- data/lib/wee/presenter.rb +2 -1
- data/lib/wee/response.rb +4 -4
- data/lib/wee/session.rb +2 -2
- data/lib/wee/state.rb +2 -2
- data/test/t.rb +67 -0
- data/wee.gemspec +1 -1
- metadata +157 -167
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
3
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
7
|
<head>
|
|
5
|
-
<title>Class: Wee::IdGenerator
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::IdGenerator</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
7
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
8
11
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
9
12
|
<script type="text/javascript">
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
return false;
|
|
23
26
|
|
|
24
27
|
elemStyle = elem.style;
|
|
25
|
-
|
|
28
|
+
|
|
26
29
|
if ( elemStyle.display != "block" ) {
|
|
27
30
|
elemStyle.display = "block"
|
|
28
31
|
} else {
|
|
@@ -31,10 +34,10 @@
|
|
|
31
34
|
|
|
32
35
|
return true;
|
|
33
36
|
}
|
|
34
|
-
|
|
37
|
+
|
|
35
38
|
// Make codeblocks hidden by default
|
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }
|
|
37
|
-
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
38
41
|
// ]]>
|
|
39
42
|
</script>
|
|
40
43
|
|
|
@@ -42,6 +45,7 @@
|
|
|
42
45
|
<body>
|
|
43
46
|
|
|
44
47
|
|
|
48
|
+
|
|
45
49
|
<div id="classHeader">
|
|
46
50
|
<table class="header-table">
|
|
47
51
|
<tr class="top-aligned-row">
|
|
@@ -51,40 +55,29 @@
|
|
|
51
55
|
<tr class="top-aligned-row">
|
|
52
56
|
<td><strong>In:</strong></td>
|
|
53
57
|
<td>
|
|
54
|
-
|
|
55
|
-
|
|
56
58
|
<a href="../../files/lib/wee/id_generator_rb.html">
|
|
57
|
-
|
|
58
59
|
lib/wee/id_generator.rb
|
|
59
|
-
|
|
60
60
|
</a>
|
|
61
|
-
|
|
62
|
-
|
|
63
61
|
<br />
|
|
64
|
-
|
|
65
62
|
</td>
|
|
66
63
|
</tr>
|
|
67
64
|
|
|
68
|
-
|
|
69
65
|
<tr class="top-aligned-row">
|
|
70
66
|
<td><strong>Parent:</strong></td>
|
|
71
67
|
<td>
|
|
72
|
-
|
|
73
68
|
<a href="../Object.html">
|
|
74
|
-
|
|
75
69
|
Object
|
|
76
|
-
|
|
77
70
|
</a>
|
|
78
|
-
|
|
79
71
|
</td>
|
|
80
72
|
</tr>
|
|
81
|
-
|
|
82
73
|
</table>
|
|
83
74
|
</div>
|
|
84
75
|
<!-- banner header -->
|
|
85
76
|
|
|
86
77
|
<div id="bodyContent">
|
|
87
78
|
|
|
79
|
+
|
|
80
|
+
|
|
88
81
|
<div id="contextContent">
|
|
89
82
|
|
|
90
83
|
<div id="description">
|
|
@@ -94,21 +87,20 @@ Abstract base class of all id generators.
|
|
|
94
87
|
|
|
95
88
|
</div>
|
|
96
89
|
|
|
97
|
-
</div>
|
|
98
90
|
|
|
91
|
+
</div>
|
|
99
92
|
|
|
100
93
|
<div id="method-list">
|
|
101
94
|
<h3 class="section-bar">Methods</h3>
|
|
102
95
|
|
|
103
96
|
<div class="name-list">
|
|
104
|
-
|
|
105
|
-
<a href="#M000208">next</a>
|
|
106
|
-
|
|
97
|
+
<a href="#M000065">next</a>
|
|
107
98
|
</div>
|
|
108
99
|
</div>
|
|
109
100
|
|
|
110
101
|
</div>
|
|
111
102
|
|
|
103
|
+
|
|
112
104
|
<!-- if includes -->
|
|
113
105
|
|
|
114
106
|
<div id="section">
|
|
@@ -124,31 +116,26 @@ Class <a href="IdGenerator/Sequential.html" class="link">Wee::IdGenerator::Seque
|
|
|
124
116
|
|
|
125
117
|
|
|
126
118
|
|
|
127
|
-
|
|
119
|
+
|
|
128
120
|
|
|
129
|
-
<div id="methods">
|
|
130
121
|
|
|
122
|
+
<!-- if method_list -->
|
|
123
|
+
<div id="methods">
|
|
131
124
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
132
125
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<a name="M000208"></a>
|
|
126
|
+
<div id="method-M000065" class="method-detail">
|
|
127
|
+
<a name="M000065"></a>
|
|
136
128
|
|
|
137
129
|
<div class="method-heading">
|
|
138
|
-
|
|
139
|
-
<a href="#M000208" class="method-signature">
|
|
140
|
-
|
|
130
|
+
<a href="#M000065" class="method-signature">
|
|
141
131
|
<span class="method-name">next</span><span class="method-args">()</span>
|
|
142
|
-
|
|
143
132
|
</a>
|
|
144
|
-
|
|
145
133
|
</div>
|
|
146
|
-
|
|
134
|
+
|
|
147
135
|
<div class="method-description">
|
|
148
|
-
|
|
149
136
|
<p><a class="source-toggle" href="#"
|
|
150
|
-
onclick="toggleCode('
|
|
151
|
-
<div class="method-source-code" id="
|
|
137
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
|
138
|
+
<div class="method-source-code" id="M000065-source">
|
|
152
139
|
<pre>
|
|
153
140
|
<span class="ruby-comment cmt"># File lib/wee/id_generator.rb, line 7</span>
|
|
154
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">next</span>
|
|
@@ -156,22 +143,19 @@ Class <a href="IdGenerator/Sequential.html" class="link">Wee::IdGenerator::Seque
|
|
|
156
143
|
<span class="ruby-keyword kw">end</span>
|
|
157
144
|
</pre>
|
|
158
145
|
</div>
|
|
159
|
-
|
|
160
146
|
</div>
|
|
161
147
|
</div>
|
|
162
148
|
|
|
163
149
|
|
|
164
|
-
|
|
165
150
|
</div>
|
|
166
151
|
|
|
167
152
|
|
|
168
|
-
|
|
169
|
-
|
|
170
153
|
</div>
|
|
171
154
|
|
|
155
|
+
|
|
172
156
|
<div id="validator-badges">
|
|
173
157
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
174
158
|
</div>
|
|
175
159
|
|
|
176
160
|
</body>
|
|
177
|
-
</html>
|
|
161
|
+
</html>
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
3
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
7
|
<head>
|
|
5
|
-
<title>Class: Wee::IdGenerator::Secure
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
|
8
|
+
<title>Class: Wee::IdGenerator::Secure</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
7
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
8
11
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
9
12
|
<script type="text/javascript">
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
return false;
|
|
23
26
|
|
|
24
27
|
elemStyle = elem.style;
|
|
25
|
-
|
|
28
|
+
|
|
26
29
|
if ( elemStyle.display != "block" ) {
|
|
27
30
|
elemStyle.display = "block"
|
|
28
31
|
} else {
|
|
@@ -31,10 +34,10 @@
|
|
|
31
34
|
|
|
32
35
|
return true;
|
|
33
36
|
}
|
|
34
|
-
|
|
37
|
+
|
|
35
38
|
// Make codeblocks hidden by default
|
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }
|
|
37
|
-
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
38
41
|
// ]]>
|
|
39
42
|
</script>
|
|
40
43
|
|
|
@@ -42,6 +45,7 @@
|
|
|
42
45
|
<body>
|
|
43
46
|
|
|
44
47
|
|
|
48
|
+
|
|
45
49
|
<div id="classHeader">
|
|
46
50
|
<table class="header-table">
|
|
47
51
|
<tr class="top-aligned-row">
|
|
@@ -51,71 +55,54 @@
|
|
|
51
55
|
<tr class="top-aligned-row">
|
|
52
56
|
<td><strong>In:</strong></td>
|
|
53
57
|
<td>
|
|
54
|
-
|
|
55
|
-
|
|
56
58
|
<a href="../../../files/lib/wee/id_generator_rb.html">
|
|
57
|
-
|
|
58
59
|
lib/wee/id_generator.rb
|
|
59
|
-
|
|
60
60
|
</a>
|
|
61
|
-
|
|
62
|
-
|
|
63
61
|
<br />
|
|
64
|
-
|
|
65
62
|
</td>
|
|
66
63
|
</tr>
|
|
67
64
|
|
|
68
|
-
|
|
69
65
|
<tr class="top-aligned-row">
|
|
70
66
|
<td><strong>Parent:</strong></td>
|
|
71
67
|
<td>
|
|
72
|
-
|
|
73
|
-
<a href="../IdGenerator.html">
|
|
74
|
-
|
|
75
|
-
Wee::IdGenerator
|
|
76
|
-
|
|
77
|
-
</a>
|
|
78
|
-
|
|
68
|
+
IdGenerator
|
|
79
69
|
</td>
|
|
80
70
|
</tr>
|
|
81
|
-
|
|
82
71
|
</table>
|
|
83
72
|
</div>
|
|
84
73
|
<!-- banner header -->
|
|
85
74
|
|
|
86
75
|
<div id="bodyContent">
|
|
87
76
|
|
|
77
|
+
|
|
78
|
+
|
|
88
79
|
<div id="contextContent">
|
|
89
80
|
|
|
90
81
|
<div id="description">
|
|
91
82
|
<p>
|
|
92
|
-
Returned ids are unique with a very high probability and it&#
|
|
93
|
-
hard to guess the next or any used id.
|
|
83
|
+
Returned ids are unique with a very high probability and it‘s very
|
|
84
|
+
hard to guess the <a href="Secure.html#M000069">next</a> or any used id.
|
|
94
85
|
</p>
|
|
95
86
|
|
|
96
87
|
</div>
|
|
97
88
|
|
|
98
|
-
</div>
|
|
99
89
|
|
|
90
|
+
</div>
|
|
100
91
|
|
|
101
92
|
<div id="method-list">
|
|
102
93
|
<h3 class="section-bar">Methods</h3>
|
|
103
94
|
|
|
104
95
|
<div class="name-list">
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<a href="#M000212">next_md5</a>
|
|
111
|
-
|
|
112
|
-
<a href="#M000213">next_secure</a>
|
|
113
|
-
|
|
96
|
+
<a href="#M000066">new</a>
|
|
97
|
+
<a href="#M000069">next</a>
|
|
98
|
+
<a href="#M000067">next_md5</a>
|
|
99
|
+
<a href="#M000068">next_secure</a>
|
|
114
100
|
</div>
|
|
115
101
|
</div>
|
|
116
102
|
|
|
117
103
|
</div>
|
|
118
104
|
|
|
105
|
+
|
|
119
106
|
<!-- if includes -->
|
|
120
107
|
|
|
121
108
|
<div id="section">
|
|
@@ -123,31 +110,27 @@ hard to guess the next or any used id.
|
|
|
123
110
|
|
|
124
111
|
|
|
125
112
|
|
|
126
|
-
<!-- if method_list -->
|
|
127
113
|
|
|
128
|
-
|
|
114
|
+
|
|
129
115
|
|
|
130
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
131
116
|
|
|
117
|
+
<!-- if method_list -->
|
|
118
|
+
<div id="methods">
|
|
119
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
132
120
|
|
|
133
|
-
<div id="method-
|
|
134
|
-
<a name="
|
|
121
|
+
<div id="method-M000066" class="method-detail">
|
|
122
|
+
<a name="M000066"></a>
|
|
135
123
|
|
|
136
124
|
<div class="method-heading">
|
|
137
|
-
|
|
138
|
-
<a href="#M000211" class="method-signature">
|
|
139
|
-
|
|
125
|
+
<a href="#M000066" class="method-signature">
|
|
140
126
|
<span class="method-name">new</span><span class="method-args">(salt='wee')</span>
|
|
141
|
-
|
|
142
127
|
</a>
|
|
143
|
-
|
|
144
128
|
</div>
|
|
145
|
-
|
|
129
|
+
|
|
146
130
|
<div class="method-description">
|
|
147
|
-
|
|
148
131
|
<p><a class="source-toggle" href="#"
|
|
149
|
-
onclick="toggleCode('
|
|
150
|
-
<div class="method-source-code" id="
|
|
132
|
+
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
|
133
|
+
<div class="method-source-code" id="M000066-source">
|
|
151
134
|
<pre>
|
|
152
135
|
<span class="ruby-comment cmt"># File lib/wee/id_generator.rb, line 39</span>
|
|
153
136
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">salt</span>=<span class="ruby-value str">'wee'</span>)
|
|
@@ -155,32 +138,24 @@ hard to guess the next or any used id.
|
|
|
155
138
|
<span class="ruby-keyword kw">end</span>
|
|
156
139
|
</pre>
|
|
157
140
|
</div>
|
|
158
|
-
|
|
159
141
|
</div>
|
|
160
142
|
</div>
|
|
161
143
|
|
|
162
|
-
|
|
163
144
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
164
145
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
<a name="M000214"></a>
|
|
146
|
+
<div id="method-M000069" class="method-detail">
|
|
147
|
+
<a name="M000069"></a>
|
|
168
148
|
|
|
169
149
|
<div class="method-heading">
|
|
170
|
-
|
|
171
|
-
<a href="#M000214" class="method-signature">
|
|
172
|
-
|
|
150
|
+
<a href="#M000069" class="method-signature">
|
|
173
151
|
<span class="method-name">next</span><span class="method-args">()</span>
|
|
174
|
-
|
|
175
152
|
</a>
|
|
176
|
-
|
|
177
153
|
</div>
|
|
178
|
-
|
|
154
|
+
|
|
179
155
|
<div class="method-description">
|
|
180
|
-
|
|
181
156
|
<p><a class="source-toggle" href="#"
|
|
182
|
-
onclick="toggleCode('
|
|
183
|
-
<div class="method-source-code" id="
|
|
157
|
+
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
|
158
|
+
<div class="method-source-code" id="M000069-source">
|
|
184
159
|
<pre>
|
|
185
160
|
<span class="ruby-comment cmt"># File lib/wee/id_generator.rb, line 60</span>
|
|
186
161
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">next</span>
|
|
@@ -192,29 +167,22 @@ hard to guess the next or any used id.
|
|
|
192
167
|
<span class="ruby-keyword kw">end</span>
|
|
193
168
|
</pre>
|
|
194
169
|
</div>
|
|
195
|
-
|
|
196
170
|
</div>
|
|
197
171
|
</div>
|
|
198
172
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
<a name="M000212"></a>
|
|
173
|
+
<div id="method-M000067" class="method-detail">
|
|
174
|
+
<a name="M000067"></a>
|
|
202
175
|
|
|
203
176
|
<div class="method-heading">
|
|
204
|
-
|
|
205
|
-
<a href="#M000212" class="method-signature">
|
|
206
|
-
|
|
177
|
+
<a href="#M000067" class="method-signature">
|
|
207
178
|
<span class="method-name">next_md5</span><span class="method-args">()</span>
|
|
208
|
-
|
|
209
179
|
</a>
|
|
210
|
-
|
|
211
180
|
</div>
|
|
212
|
-
|
|
181
|
+
|
|
213
182
|
<div class="method-description">
|
|
214
|
-
|
|
215
183
|
<p><a class="source-toggle" href="#"
|
|
216
|
-
onclick="toggleCode('
|
|
217
|
-
<div class="method-source-code" id="
|
|
184
|
+
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
|
185
|
+
<div class="method-source-code" id="M000067-source">
|
|
218
186
|
<pre>
|
|
219
187
|
<span class="ruby-comment cmt"># File lib/wee/id_generator.rb, line 43</span>
|
|
220
188
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">next_md5</span>
|
|
@@ -229,29 +197,22 @@ hard to guess the next or any used id.
|
|
|
229
197
|
<span class="ruby-keyword kw">end</span>
|
|
230
198
|
</pre>
|
|
231
199
|
</div>
|
|
232
|
-
|
|
233
200
|
</div>
|
|
234
201
|
</div>
|
|
235
202
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
<a name="M000213"></a>
|
|
203
|
+
<div id="method-M000068" class="method-detail">
|
|
204
|
+
<a name="M000068"></a>
|
|
239
205
|
|
|
240
206
|
<div class="method-heading">
|
|
241
|
-
|
|
242
|
-
<a href="#M000213" class="method-signature">
|
|
243
|
-
|
|
207
|
+
<a href="#M000068" class="method-signature">
|
|
244
208
|
<span class="method-name">next_secure</span><span class="method-args">()</span>
|
|
245
|
-
|
|
246
209
|
</a>
|
|
247
|
-
|
|
248
210
|
</div>
|
|
249
|
-
|
|
211
|
+
|
|
250
212
|
<div class="method-description">
|
|
251
|
-
|
|
252
213
|
<p><a class="source-toggle" href="#"
|
|
253
|
-
onclick="toggleCode('
|
|
254
|
-
<div class="method-source-code" id="
|
|
214
|
+
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
|
215
|
+
<div class="method-source-code" id="M000068-source">
|
|
255
216
|
<pre>
|
|
256
217
|
<span class="ruby-comment cmt"># File lib/wee/id_generator.rb, line 54</span>
|
|
257
218
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">next_secure</span>
|
|
@@ -261,22 +222,19 @@ hard to guess the next or any used id.
|
|
|
261
222
|
<span class="ruby-keyword kw">end</span>
|
|
262
223
|
</pre>
|
|
263
224
|
</div>
|
|
264
|
-
|
|
265
225
|
</div>
|
|
266
226
|
</div>
|
|
267
227
|
|
|
268
228
|
|
|
269
|
-
|
|
270
229
|
</div>
|
|
271
230
|
|
|
272
231
|
|
|
273
|
-
|
|
274
|
-
|
|
275
232
|
</div>
|
|
276
233
|
|
|
234
|
+
|
|
277
235
|
<div id="validator-badges">
|
|
278
236
|
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
279
237
|
</div>
|
|
280
238
|
|
|
281
239
|
</body>
|
|
282
|
-
</html>
|
|
240
|
+
</html>
|