dfect 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/CREDITS +2 -2
  2. data/HISTORY +306 -0
  3. data/INSTALL +35 -0
  4. data/README +95 -0
  5. data/USAGE +393 -0
  6. data/doc/api/Dfect.html +3179 -0
  7. data/doc/api/Object.html +107 -0
  8. data/doc/api/_index.html +107 -0
  9. data/doc/api/class_list.html +36 -0
  10. data/doc/api/css/common.css +1 -0
  11. data/doc/api/css/full_list.css +50 -0
  12. data/doc/api/css/style.css +268 -0
  13. data/doc/api/file.LICENSE.html +73 -0
  14. data/doc/api/file_list.html +38 -0
  15. data/doc/api/frames.html +13 -0
  16. data/doc/api/index.html +72 -13
  17. data/doc/api/js/app.js +99 -0
  18. data/doc/api/js/full_list.js +106 -0
  19. data/doc/api/js/{jquery-1.3.2.min.js → jquery.js} +0 -0
  20. data/doc/api/method_list.html +339 -0
  21. data/doc/api/top-level-namespace.html +87 -0
  22. data/doc/index.erb +16 -9
  23. data/doc/index.html +1057 -726
  24. data/lib/dfect.rb +431 -284
  25. data/lib/dfect/auto.rb +2 -6
  26. data/lib/dfect/inochi.rb +48 -0
  27. data/lib/dfect/inochi.yaml +75 -0
  28. data/lib/dfect/mini.rb +1 -5
  29. data/lib/dfect/spec.rb +6 -13
  30. data/lib/dfect/unit.rb +21 -33
  31. data/test/dfect/inochi_test.rb +17 -0
  32. data/test/{dfect.rb → dfect_test.rb} +167 -7
  33. data/test/runner +25 -0
  34. data/test/test_helper.rb +1 -0
  35. metadata +43 -55
  36. data/doc/api/apple-touch-icon.png +0 -0
  37. data/doc/api/classes/Class.html +0 -73
  38. data/doc/api/classes/Dfect.html +0 -1245
  39. data/doc/api/classes/Kernel.html +0 -322
  40. data/doc/api/classes/Object.html +0 -72
  41. data/doc/api/created.rid +0 -1
  42. data/doc/api/css/main.css +0 -263
  43. data/doc/api/css/panel.css +0 -383
  44. data/doc/api/css/reset.css +0 -53
  45. data/doc/api/favicon.ico +0 -0
  46. data/doc/api/files/CREDITS.html +0 -65
  47. data/doc/api/files/LICENSE.html +0 -76
  48. data/doc/api/files/lib/dfect/auto_rb.html +0 -80
  49. data/doc/api/files/lib/dfect/mini_rb.html +0 -77
  50. data/doc/api/files/lib/dfect/spec_rb.html +0 -73
  51. data/doc/api/files/lib/dfect/unit_rb.html +0 -73
  52. data/doc/api/files/lib/dfect_rb.html +0 -74
  53. data/doc/api/i/arrows.png +0 -0
  54. data/doc/api/i/results_bg.png +0 -0
  55. data/doc/api/i/tree_bg.png +0 -0
  56. data/doc/api/js/jquery-effect.js +0 -593
  57. data/doc/api/js/main.js +0 -22
  58. data/doc/api/js/searchdoc.js +0 -628
  59. data/doc/api/panel/index.html +0 -71
  60. data/doc/api/panel/search_index.js +0 -1
  61. data/doc/api/panel/tree.js +0 -1
  62. data/doc/history.erb +0 -161
  63. data/doc/intro.erb +0 -104
  64. data/doc/setup.erb +0 -107
  65. data/doc/usage.erb +0 -310
  66. data/rakefile +0 -21
@@ -1,322 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>Kernel</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
- <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
10
- <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
- <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
13
- </head>
14
-
15
- <body>
16
- <div class="banner">
17
- <h1>
18
- <span class="type">Module</span>
19
- Kernel
20
-
21
- </h1>
22
- <ul class="files">
23
-
24
- <li><a href="../files/lib/dfect/mini_rb.html">lib/dfect/mini.rb</a></li>
25
-
26
- <li><a href="../files/lib/dfect/unit_rb.html">lib/dfect/unit.rb</a></li>
27
-
28
- <li><a href="../files/lib/dfect/spec_rb.html">lib/dfect/spec.rb</a></li>
29
-
30
- </ul>
31
- </div>
32
- <div id="bodyContent">
33
- <div id="content">
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <div class="sectiontitle">Methods</div>
44
- <dl class="methods">
45
-
46
- <dt>A</dt>
47
- <dd>
48
- <ul>
49
-
50
- <li><a href="#M000006">after</a></li>
51
-
52
- </ul>
53
- </dd>
54
-
55
- <dt>B</dt>
56
- <dd>
57
- <ul>
58
-
59
- <li><a href="#M000005">before</a></li>
60
-
61
- </ul>
62
- </dd>
63
-
64
- <dt>C</dt>
65
- <dd>
66
- <ul>
67
-
68
- <li><a href="#M000003">context</a></li>
69
-
70
- </ul>
71
- </dd>
72
-
73
- <dt>D</dt>
74
- <dd>
75
- <ul>
76
-
77
- <li><a href="#M000002">describe</a></li>
78
-
79
- </ul>
80
- </dd>
81
-
82
- <dt>I</dt>
83
- <dd>
84
- <ul>
85
-
86
- <li><a href="#M000004">it</a></li>
87
-
88
- </ul>
89
- </dd>
90
-
91
- <dt>S</dt>
92
- <dd>
93
- <ul>
94
-
95
- <li><a href="#M000000">setup</a></li>
96
-
97
- </ul>
98
- </dd>
99
-
100
- <dt>T</dt>
101
- <dd>
102
- <ul>
103
-
104
- <li><a href="#M000001">teardown</a></li>
105
-
106
- </ul>
107
- </dd>
108
-
109
- </dl>
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- <div class="sectiontitle">Instance Public methods</div>
124
-
125
- <div class="method">
126
- <div class="title" id="M000006">
127
-
128
- <a name="M000006"></a><b>after</b>(what, &amp;block)
129
-
130
- </div>
131
-
132
-
133
-
134
-
135
- <div class="sourcecode">
136
- <p class="source-link">
137
- Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
138
-
139
- | <a href="http://github.com/sunaku/dfect/blob/2e1421415bd1d89020c636b65c42653c334b0b94/lib/dfect/spec.rb#L28" target="_blank" class="github_url">on GitHub</a>
140
-
141
- </p>
142
- <div id="M000006_source" class="dyn-source">
143
- <pre><span class="ruby-comment cmt"># File lib/dfect/spec.rb, line 28</span>
144
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after</span> <span class="ruby-identifier">what</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
145
- <span class="ruby-identifier">meth</span> =
146
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">what</span>
147
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:each</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:&gt;</span>
148
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:all</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:&gt;&gt;</span>
149
- <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-identifier">what</span>
150
- <span class="ruby-keyword kw">end</span>
151
-
152
- <span class="ruby-constant">Dfect</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">meth</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
153
- <span class="ruby-keyword kw">end</span></pre>
154
- </div>
155
- </div>
156
-
157
- </div>
158
-
159
- <div class="method">
160
- <div class="title" id="M000005">
161
-
162
- <a name="M000005"></a><b>before</b>(what, &amp;block)
163
-
164
- </div>
165
-
166
-
167
-
168
-
169
- <div class="sourcecode">
170
- <p class="source-link">
171
- Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
172
-
173
- | <a href="http://github.com/sunaku/dfect/blob/2e1421415bd1d89020c636b65c42653c334b0b94/lib/dfect/spec.rb#L17" target="_blank" class="github_url">on GitHub</a>
174
-
175
- </p>
176
- <div id="M000005_source" class="dyn-source">
177
- <pre><span class="ruby-comment cmt"># File lib/dfect/spec.rb, line 17</span>
178
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before</span> <span class="ruby-identifier">what</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
179
- <span class="ruby-identifier">meth</span> =
180
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">what</span>
181
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:each</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:&lt;</span>
182
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:all</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">:&lt;&lt;</span>
183
- <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-identifier">what</span>
184
- <span class="ruby-keyword kw">end</span>
185
-
186
- <span class="ruby-constant">Dfect</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">meth</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
187
- <span class="ruby-keyword kw">end</span></pre>
188
- </div>
189
- </div>
190
-
191
- </div>
192
-
193
- <div class="method">
194
- <div class="title" id="M000003">
195
-
196
- <a name="M000003"></a><b>context</b>(*args, &amp;block)
197
-
198
- </div>
199
-
200
- <div class="description">
201
- <p>
202
- Alias for <a href="Kernel.html#M000002">describe</a>
203
- </p>
204
-
205
- </div>
206
-
207
-
208
-
209
- </div>
210
-
211
- <div class="method">
212
- <div class="title" id="M000002">
213
-
214
- <a name="M000002"></a><b>describe</b>(*args, &amp;block)
215
-
216
- </div>
217
-
218
-
219
- <div class="aka">
220
- This method is also aliased as
221
-
222
- <a href="Kernel.html#M000003">context</a>
223
-
224
- <a href="Kernel.html#M000004">it</a>
225
-
226
- </div>
227
-
228
-
229
-
230
- <div class="sourcecode">
231
- <p class="source-link">
232
- Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
233
-
234
- | <a href="http://github.com/sunaku/dfect/blob/2e1421415bd1d89020c636b65c42653c334b0b94/lib/dfect/spec.rb#L10" target="_blank" class="github_url">on GitHub</a>
235
-
236
- </p>
237
- <div id="M000002_source" class="dyn-source">
238
- <pre><span class="ruby-comment cmt"># File lib/dfect/spec.rb, line 10</span>
239
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
240
- <span class="ruby-constant">Dfect</span>.<span class="ruby-constant">D</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>), <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
241
- <span class="ruby-keyword kw">end</span></pre>
242
- </div>
243
- </div>
244
-
245
- </div>
246
-
247
- <div class="method">
248
- <div class="title" id="M000004">
249
-
250
- <a name="M000004"></a><b>it</b>(*args, &amp;block)
251
-
252
- </div>
253
-
254
- <div class="description">
255
- <p>
256
- Alias for <a href="Kernel.html#M000002">describe</a>
257
- </p>
258
-
259
- </div>
260
-
261
-
262
-
263
- </div>
264
-
265
- <div class="method">
266
- <div class="title" id="M000000">
267
-
268
- <a name="M000000"></a><b>setup</b>(&amp;block)
269
-
270
- </div>
271
-
272
-
273
-
274
-
275
- <div class="sourcecode">
276
- <p class="source-link">
277
- Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
278
-
279
- | <a href="http://github.com/sunaku/dfect/blob/fca8da8696b52f21a88edde1d57dd25a484ba551/lib/dfect/unit.rb#L10" target="_blank" class="github_url">on GitHub</a>
280
-
281
- </p>
282
- <div id="M000000_source" class="dyn-source">
283
- <pre><span class="ruby-comment cmt"># File lib/dfect/unit.rb, line 10</span>
284
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
285
- <span class="ruby-constant">Dfect</span>.<span class="ruby-operator">&lt;</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
286
- <span class="ruby-keyword kw">end</span></pre>
287
- </div>
288
- </div>
289
-
290
- </div>
291
-
292
- <div class="method">
293
- <div class="title" id="M000001">
294
-
295
- <a name="M000001"></a><b>teardown</b>(&amp;block)
296
-
297
- </div>
298
-
299
-
300
-
301
-
302
- <div class="sourcecode">
303
- <p class="source-link">
304
- Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
305
-
306
- | <a href="http://github.com/sunaku/dfect/blob/fca8da8696b52f21a88edde1d57dd25a484ba551/lib/dfect/unit.rb#L14" target="_blank" class="github_url">on GitHub</a>
307
-
308
- </p>
309
- <div id="M000001_source" class="dyn-source">
310
- <pre><span class="ruby-comment cmt"># File lib/dfect/unit.rb, line 14</span>
311
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
312
- <span class="ruby-constant">Dfect</span>.<span class="ruby-operator">&gt;</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
313
- <span class="ruby-keyword kw">end</span></pre>
314
- </div>
315
- </div>
316
-
317
- </div>
318
-
319
- </div>
320
- </div>
321
- </body>
322
- </html>
@@ -1,72 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>Object</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
- <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
10
- <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
- <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
13
- </head>
14
-
15
- <body>
16
- <div class="banner">
17
- <h1>
18
- <span class="type">Class</span>
19
- Object
20
-
21
- <span class="parent">&lt;
22
-
23
- <a href="Object.html">Object</a>
24
-
25
- </span>
26
-
27
- </h1>
28
- <ul class="files">
29
-
30
- <li><a href="../files/lib/dfect/auto_rb.html">lib/dfect/auto.rb</a></li>
31
-
32
- </ul>
33
- </div>
34
- <div id="bodyContent">
35
- <div id="content">
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
- <div class="sectiontitle">Included Modules</div>
48
- <ul>
49
-
50
- <li>
51
-
52
- <a href="Kernel.html">Kernel</a>
53
-
54
- START:includes
55
- </li>
56
-
57
- </ul>
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
- </div>
70
- </div>
71
- </body>
72
- </html>
data/doc/api/created.rid DELETED
@@ -1 +0,0 @@
1
- Tue, 27 Oct 2009 00:34:18 -0700
data/doc/api/css/main.css DELETED
@@ -1,263 +0,0 @@
1
- body {
2
- font-family: "Helvetica Neue", Arial, sans-serif;
3
- background: #FFF;
4
- color: #000;
5
- margin: 0px;
6
- font-size: 0.82em;
7
- line-height: 1.25em;
8
- }
9
-
10
- a {
11
- color: #00F;
12
- text-decoration: none;
13
- }
14
-
15
- a:hover {
16
- color: #333;
17
- background: #FE8;
18
- }
19
-
20
- p {
21
- margin-bottom: 1em;
22
- }
23
-
24
- h1 {
25
- font-size: 2.1em;
26
- font-weight: normal;
27
- line-height: 1.2em;
28
- margin: 1.4em 0 0.7em 0;
29
- }
30
-
31
- h2 {
32
- font-size: 1.6em;
33
- margin: 1.8em 0 0.8em 0;
34
- font-weight: normal;
35
- line-height: 1.2em;
36
- }
37
-
38
- h3 {
39
- font-size: 1.4em;
40
- color:#555;
41
- margin: 1.4em 0 0.7em 0;
42
- font-weight: normal;
43
- }
44
-
45
- h4 {
46
- margin: 1.4em 0 0.5em 0;
47
- font-size: 1em;
48
- }
49
-
50
- .clear
51
- {
52
- clear: both;
53
- width: 0; height: 0;
54
- }
55
-
56
- dt
57
- {
58
- margin-bottom: 0.3em;
59
- font-weight: bold;
60
- }
61
-
62
- dd
63
- {
64
- margin-left: 2em;
65
- margin-bottom: 1em;
66
- }
67
-
68
- dd p
69
- {
70
- margin-top: 0.6em;
71
- }
72
-
73
- li
74
- {
75
- margin: 0 0 0.5em 2em;
76
- }
77
-
78
- ul li
79
- {
80
- list-style: disc;
81
- }
82
-
83
- ol li
84
- {
85
- list-style: decimal;
86
- }
87
-
88
- .banner
89
- {
90
- background: #EDF3FE;
91
- border-bottom: 1px solid #ccc;
92
- padding: 1em 2em 0.5em 2em;
93
- }
94
- .banner h1
95
- {
96
- font-size: 1.2em;
97
- margin: 0;
98
- }
99
-
100
- .banner h1 .type
101
- {
102
- font-size: 0.833em;
103
- display:block;
104
- }
105
-
106
- .banner h1 .type,
107
- .banner h1 .parent
108
- {
109
- color: #666;
110
- }
111
-
112
- .banner ul
113
- {
114
- margin-top: 0.3em;
115
- margin-bottom: 0;
116
- font-size: 0.85em;
117
- }
118
-
119
- .banner li
120
- {
121
- list-style: none;
122
- margin-left: 0;
123
- margin-bottom: 0;
124
- }
125
-
126
- pre
127
- {
128
- margin-bottom: 1em;
129
- }
130
-
131
- .methods dt
132
- {
133
- width: 1em;
134
- font-size: 1.5em;
135
- color:#AAA;
136
- position: absolute;
137
- font-weight: normal;
138
- margin: 0;
139
- }
140
-
141
- .methods dd
142
- {
143
- margin-left: 2.5em;
144
- min-height: 1.8em;
145
- -height: 1.8em;
146
- padding-bottom: 0.8em;
147
- }
148
-
149
-
150
- .methods ul li
151
- {
152
- margin-right: 0.7em;
153
- margin-left: 0;
154
- list-style: none;
155
- display: inline;
156
- }
157
-
158
- #content {
159
- margin: 2em;
160
- margin-left: 3.5em;
161
- margin-right: 3.5em;
162
- }
163
-
164
-
165
- .sectiontitle {
166
- margin-top: 2em;
167
- margin-bottom: 1.3em;
168
- margin-left: -1.2em;
169
- font-size: 1.2em;
170
- padding: 0 0 0.25em 0;
171
- font-weight: bold;
172
- border-bottom: 1px solid #000;
173
- }
174
-
175
- .attr-rw {
176
- padding-right: 1em;
177
- text-align: center;
178
- color: #055;
179
- }
180
-
181
- .attr-name {
182
- font-weight: bold;
183
- padding-right: 1em;
184
- }
185
-
186
- .attr-desc {
187
- }
188
-
189
- tt {
190
- font-size: 1.15em;
191
- }
192
-
193
- .attr-value {
194
- font-family: monospace;
195
- padding-left: 1em;
196
- font-size: 1.15em;
197
- }
198
-
199
- .dyn-source {
200
- display: none;
201
- background: #fffde8;
202
- color: #000;
203
- border: #ffe0bb dotted 1px;
204
- margin: 0.5em 2em 0.5em 0;
205
- padding: 0.5em;
206
- }
207
-
208
- .dyn-source .cmt {
209
- color: #00F;
210
- font-style: italic;
211
- }
212
-
213
- .dyn-source .kw {
214
- color: #070;
215
- font-weight: bold;
216
- }
217
-
218
- .description pre {
219
- padding: 0.5em;
220
- border: #ffe0bb dotted 1px;
221
- background: #fffde8;
222
- }
223
-
224
- .method {
225
- margin-bottom: 2em;
226
- }
227
- .method .description,
228
- .method .sourcecode
229
- {
230
- margin-left: 1.2em;
231
- }
232
- .method h4
233
- {
234
- border-bottom: 1px dotted #999;
235
- padding: 0 0 0.2em 0;
236
- margin-bottom: 0.8em;
237
- font-size: 1.1em;
238
- color:#333;
239
- }
240
- .method .title {
241
- border-bottom: 1px dotted #666;
242
- padding: 0 0 0.15em 0;
243
- margin: 0 0 0.5em 0;
244
- font-size: 1.2em;
245
- line-height: 1.25em;
246
- }
247
-
248
- .method .sourcecode p.source-link {
249
- text-indent: 0em;
250
- margin-top: 0.5em;
251
- }
252
-
253
- .method .aka {
254
- margin-top: 0.3em;
255
- margin-left: 1em;
256
- font-style: italic;
257
- text-indent: 2em;
258
- }
259
-
260
- .method .source-link
261
- {
262
- font-size: 0.85em;
263
- }