rubybreaker 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ABOUT.md +20 -0
- data/NEWS +5 -0
- data/README.md +16 -352
- data/Rakefile +30 -16
- data/TOPICS.md +55 -0
- data/TUTORIAL.md +291 -0
- data/VERSION +1 -1
- data/bin/rubybreaker +32 -14
- data/lib/rubybreaker/runtime/monitor.rb +1 -1
- data/lib/rubybreaker/runtime.rb +41 -21
- data/lib/rubybreaker/task.rb +15 -9
- data/lib/rubybreaker/test/rspec.rb +3 -3
- data/lib/rubybreaker/test/testcase.rb +3 -3
- data/lib/rubybreaker.rb +31 -16
- data/test/integrated/{tc_both_broken_breakable.rb → tc_both_documented_and_undocumented.rb} +3 -4
- data/test/integrated/tc_class_methods.rb +1 -1
- data/test/integrated/tc_inherit_broken.rb +1 -1
- data/test/integrated/tc_method_missing.rb +1 -1
- data/test/integrated/tc_namespace.rb +1 -1
- data/test/integrated/tc_simple1.rb +1 -1
- data/test/testtask/tc_testtask.rb +2 -2
- data/test/ts_integrated.rb +1 -1
- data/test/ts_rspec.rb +1 -1
- data/webpage/about.html +50 -0
- data/webpage/footer.html +6 -1
- data/webpage/header.html +9 -3
- data/webpage/images/logo.png +0 -0
- data/webpage/images/title.png +0 -0
- data/webpage/index.html +31 -367
- data/webpage/rdoc/Object.html +3 -103
- data/webpage/rdoc/Rake/RubyBreakerTestTask.html +80 -18
- data/webpage/rdoc/Rake.html +3 -7
- data/webpage/rdoc/RubyBreaker/Breakable.html +4 -8
- data/webpage/rdoc/RubyBreaker/Broken.html +4 -8
- data/webpage/rdoc/RubyBreaker/Context.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/UserError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors.html +3 -7
- data/webpage/rdoc/RubyBreaker/ObjectPosition.html +3 -7
- data/webpage/rdoc/RubyBreaker/Position.html +3 -7
- data/webpage/rdoc/RubyBreaker/RDocSupport.html +3 -7
- data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +10 -14
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSigUnparser.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime.html +42 -39
- data/webpage/rdoc/RubyBreaker/TypeComparer.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeUnparser.html +3 -7
- data/webpage/rdoc/RubyBreaker/Typing.html +3 -7
- data/webpage/rdoc/RubyBreaker/Util.html +3 -7
- data/webpage/rdoc/RubyBreaker.html +48 -15
- data/webpage/rdoc/Test/Unit.html +3 -7
- data/webpage/rdoc/Test.html +3 -7
- data/webpage/rdoc/created.rid +18 -17
- data/webpage/rdoc/index.html +3 -7
- data/webpage/rdoc/js/search_index.js +1 -1
- data/webpage/rdoc/table_of_contents.html +28 -36
- data/webpage/rubybreaker.css +8 -6
- data/webpage/topics.html +85 -0
- data/webpage/tutorial.html +331 -0
- metadata +14 -8
- data/lib/rubybreaker/doc.rb +0 -3
- data/webpage/rdoc/Kernel.html +0 -286
- data/webpage/rdoc/Test/Unit/TestCase.html +0 -309
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|
@@ -178,17 +178,13 @@
|
|
178
178
|
|
179
179
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
180
180
|
|
181
|
-
<li><a href="../../Test.html">Test</a>
|
182
|
-
|
183
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
184
|
-
|
185
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
186
|
-
|
187
181
|
<li><a href="../../Rake.html">Rake</a>
|
188
182
|
|
189
183
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
190
184
|
|
191
|
-
<li><a href="../../
|
185
|
+
<li><a href="../../Test.html">Test</a>
|
186
|
+
|
187
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
192
188
|
|
193
189
|
<li><a href="../../Object.html">Object</a>
|
194
190
|
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
<ul class="link-list">
|
78
78
|
|
79
|
-
<li><a href="#method-c-
|
79
|
+
<li><a href="#method-c-install_monitor">::install_monitor</a>
|
80
80
|
|
81
81
|
<li><a href="#method-c-is_module-3F">::is_module?</a>
|
82
82
|
|
@@ -184,17 +184,13 @@
|
|
184
184
|
|
185
185
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
186
186
|
|
187
|
-
<li><a href="../../Test.html">Test</a>
|
188
|
-
|
189
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
190
|
-
|
191
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
192
|
-
|
193
187
|
<li><a href="../../Rake.html">Rake</a>
|
194
188
|
|
195
189
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
196
190
|
|
197
|
-
<li><a href="../../
|
191
|
+
<li><a href="../../Test.html">Test</a>
|
192
|
+
|
193
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
198
194
|
|
199
195
|
<li><a href="../../Object.html">Object</a>
|
200
196
|
|
@@ -231,10 +227,10 @@
|
|
231
227
|
<h3 class="section-header">Public Class Methods</h3>
|
232
228
|
|
233
229
|
|
234
|
-
<div id="method-c-
|
230
|
+
<div id="method-c-install_monitor" class="method-detail ">
|
235
231
|
|
236
232
|
<div class="method-heading">
|
237
|
-
<span class="method-name">
|
233
|
+
<span class="method-name">install_monitor</span><span
|
238
234
|
class="method-args">(mod)</span>
|
239
235
|
<span class="method-click-advice">click to toggle source</span>
|
240
236
|
</div>
|
@@ -246,9 +242,9 @@
|
|
246
242
|
|
247
243
|
|
248
244
|
|
249
|
-
<div class="method-source-code" id="
|
245
|
+
<div class="method-source-code" id="install_monitor-source">
|
250
246
|
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime/monitor.rb, line 209</span>
|
251
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">
|
247
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">install_monitor</span>(<span class="ruby-identifier">mod</span>)
|
252
248
|
|
253
249
|
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">log</span>(<span class="ruby-node">"Installing module monitor for #{mod}"</span>)
|
254
250
|
|
@@ -277,14 +273,14 @@
|
|
277
273
|
<span class="ruby-keyword">end</span>
|
278
274
|
|
279
275
|
<span class="ruby-keyword">end</span></pre>
|
280
|
-
</div><!--
|
276
|
+
</div><!-- install_monitor-source -->
|
281
277
|
|
282
278
|
</div>
|
283
279
|
|
284
280
|
|
285
281
|
|
286
282
|
|
287
|
-
</div><!--
|
283
|
+
</div><!-- install_monitor-method -->
|
288
284
|
|
289
285
|
|
290
286
|
<div id="method-c-is_module-3F" class="method-detail ">
|
@@ -180,17 +180,13 @@
|
|
180
180
|
|
181
181
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
182
182
|
|
183
|
-
<li><a href="../../Test.html">Test</a>
|
184
|
-
|
185
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
186
|
-
|
187
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
188
|
-
|
189
183
|
<li><a href="../../Rake.html">Rake</a>
|
190
184
|
|
191
185
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
192
186
|
|
193
|
-
<li><a href="../../
|
187
|
+
<li><a href="../../Test.html">Test</a>
|
188
|
+
|
189
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
194
190
|
|
195
191
|
<li><a href="../../Object.html">Object</a>
|
196
192
|
|
@@ -172,17 +172,13 @@
|
|
172
172
|
|
173
173
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
174
174
|
|
175
|
-
<li><a href="../../Test.html">Test</a>
|
176
|
-
|
177
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
180
|
-
|
181
175
|
<li><a href="../../Rake.html">Rake</a>
|
182
176
|
|
183
177
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
184
178
|
|
185
|
-
<li><a href="../../
|
179
|
+
<li><a href="../../Test.html">Test</a>
|
180
|
+
|
181
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
186
182
|
|
187
183
|
<li><a href="../../Object.html">Object</a>
|
188
184
|
|
@@ -182,17 +182,13 @@
|
|
182
182
|
|
183
183
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
184
184
|
|
185
|
-
<li><a href="../../Test.html">Test</a>
|
186
|
-
|
187
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
|
-
|
189
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
190
|
-
|
191
185
|
<li><a href="../../Rake.html">Rake</a>
|
192
186
|
|
193
187
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
194
188
|
|
195
|
-
<li><a href="../../
|
189
|
+
<li><a href="../../Test.html">Test</a>
|
190
|
+
|
191
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
196
192
|
|
197
193
|
<li><a href="../../Object.html">Object</a>
|
198
194
|
|
@@ -170,17 +170,13 @@
|
|
170
170
|
|
171
171
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
172
172
|
|
173
|
-
<li><a href="../../Test.html">Test</a>
|
174
|
-
|
175
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
176
|
-
|
177
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
178
|
-
|
179
173
|
<li><a href="../../Rake.html">Rake</a>
|
180
174
|
|
181
175
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
182
176
|
|
183
|
-
<li><a href="../../
|
177
|
+
<li><a href="../../Test.html">Test</a>
|
178
|
+
|
179
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
184
180
|
|
185
181
|
<li><a href="../../Object.html">Object</a>
|
186
182
|
|
@@ -168,17 +168,13 @@
|
|
168
168
|
|
169
169
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
170
170
|
|
171
|
-
<li><a href="../../Test.html">Test</a>
|
172
|
-
|
173
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
174
|
-
|
175
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
176
|
-
|
177
171
|
<li><a href="../../Rake.html">Rake</a>
|
178
172
|
|
179
173
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
180
174
|
|
181
|
-
<li><a href="../../
|
175
|
+
<li><a href="../../Test.html">Test</a>
|
176
|
+
|
177
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
182
178
|
|
183
179
|
<li><a href="../../Object.html">Object</a>
|
184
180
|
|
@@ -184,17 +184,13 @@
|
|
184
184
|
|
185
185
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
186
186
|
|
187
|
-
<li><a href="../../Test.html">Test</a>
|
188
|
-
|
189
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
190
|
-
|
191
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
192
|
-
|
193
187
|
<li><a href="../../Rake.html">Rake</a>
|
194
188
|
|
195
189
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
196
190
|
|
197
|
-
<li><a href="../../
|
191
|
+
<li><a href="../../Test.html">Test</a>
|
192
|
+
|
193
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
198
194
|
|
199
195
|
<li><a href="../../Object.html">Object</a>
|
200
196
|
|
@@ -198,17 +198,13 @@
|
|
198
198
|
|
199
199
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
200
200
|
|
201
|
-
<li><a href="../../Test.html">Test</a>
|
202
|
-
|
203
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
204
|
-
|
205
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
206
|
-
|
207
201
|
<li><a href="../../Rake.html">Rake</a>
|
208
202
|
|
209
203
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
210
204
|
|
211
|
-
<li><a href="../../
|
205
|
+
<li><a href="../../Test.html">Test</a>
|
206
|
+
|
207
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
212
208
|
|
213
209
|
<li><a href="../../Object.html">Object</a>
|
214
210
|
|
@@ -73,6 +73,8 @@
|
|
73
73
|
|
74
74
|
<ul class="link-list">
|
75
75
|
|
76
|
+
<li><a href="#method-c-break">::break</a>
|
77
|
+
|
76
78
|
<li><a href="#method-c-breakable">::breakable</a>
|
77
79
|
|
78
80
|
<li><a href="#method-c-instrument">::instrument</a>
|
@@ -179,17 +181,13 @@
|
|
179
181
|
|
180
182
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
181
183
|
|
182
|
-
<li><a href="../Test.html">Test</a>
|
183
|
-
|
184
|
-
<li><a href="../Test/Unit.html">Test::Unit</a>
|
185
|
-
|
186
|
-
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
187
|
-
|
188
184
|
<li><a href="../Rake.html">Rake</a>
|
189
185
|
|
190
186
|
<li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
191
187
|
|
192
|
-
<li><a href="../
|
188
|
+
<li><a href="../Test.html">Test</a>
|
189
|
+
|
190
|
+
<li><a href="../Test/Unit.html">Test::Unit</a>
|
193
191
|
|
194
192
|
<li><a href="../Object.html">Object</a>
|
195
193
|
|
@@ -248,12 +246,6 @@ for module tracking in which case, there isn’t really a way to do this
|
|
248
246
|
unless we track with the process or some unique id for that process.</p>
|
249
247
|
|
250
248
|
|
251
|
-
<dt id="INSTALLED">INSTALLED
|
252
|
-
|
253
|
-
<dd class="description"><p>This set lists modules/classes that are actually instrumented with a
|
254
|
-
monitor.</p>
|
255
|
-
|
256
|
-
|
257
249
|
<dt id="MONITOR_MAP">MONITOR_MAP
|
258
250
|
|
259
251
|
<dd class="description"><p>This hash maps a (breakable) module to a type monitor</p>
|
@@ -289,6 +281,37 @@ non-breakable modules/classes.</p>
|
|
289
281
|
<h3 class="section-header">Public Class Methods</h3>
|
290
282
|
|
291
283
|
|
284
|
+
<div id="method-c-break" class="method-detail ">
|
285
|
+
|
286
|
+
<div class="method-heading">
|
287
|
+
<span class="method-name">break</span><span
|
288
|
+
class="method-args">(*mods)</span>
|
289
|
+
<span class="method-click-advice">click to toggle source</span>
|
290
|
+
</div>
|
291
|
+
|
292
|
+
|
293
|
+
<div class="method-description">
|
294
|
+
|
295
|
+
<p>This method instruments the specified modules/classes at the time of the
|
296
|
+
call.</p>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
<div class="method-source-code" id="break-source">
|
301
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 60</span>
|
302
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-keyword">break</span>(*<span class="ruby-identifier">mods</span>)
|
303
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">install</span>(<span class="ruby-value">:break</span>, *<span class="ruby-identifier">mods</span>)
|
304
|
+
<span class="ruby-keyword">end</span></pre>
|
305
|
+
</div><!-- break-source -->
|
306
|
+
|
307
|
+
</div>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
</div><!-- break-method -->
|
313
|
+
|
314
|
+
|
292
315
|
<div id="method-c-breakable" class="method-detail ">
|
293
316
|
|
294
317
|
<div class="method-heading">
|
@@ -301,34 +324,15 @@ non-breakable modules/classes.</p>
|
|
301
324
|
<div class="method-description">
|
302
325
|
|
303
326
|
<p>This method modifies specified modules/classes at the very moment (instead
|
304
|
-
of registering them for later)
|
327
|
+
of registering them for later). <strong>DEPRECATED</strong>: Use +break()+
|
328
|
+
method instead</p>
|
305
329
|
|
306
330
|
|
307
331
|
|
308
332
|
<div class="method-source-code" id="breakable-source">
|
309
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line
|
333
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 76</span>
|
310
334
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">breakable</span>(*<span class="ruby-identifier">mods</span>)
|
311
|
-
<span class="ruby-
|
312
|
-
<span class="ruby-keyword">case</span> <span class="ruby-identifier">mod</span>
|
313
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Array</span>
|
314
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">breakable</span>(*<span class="ruby-identifier">mod</span>)
|
315
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Module</span>, <span class="ruby-constant">Class</span>
|
316
|
-
<span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">install_module_monitor</span>(<span class="ruby-identifier">mod</span>)
|
317
|
-
<span class="ruby-identifier">eigen_class</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">eigen_class</span>(<span class="ruby-identifier">mod</span>)
|
318
|
-
<span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">install_module_monitor</span>(<span class="ruby-identifier">eigen_class</span>)
|
319
|
-
<span class="ruby-constant">INSTALLED</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">mod</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">eigen_class</span>
|
320
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>, <span class="ruby-constant">Symbol</span>
|
321
|
-
<span class="ruby-keyword">begin</span>
|
322
|
-
<span class="ruby-comment"># Get the actual module and install it right now</span>
|
323
|
-
<span class="ruby-identifier">mod</span> = <span class="ruby-identifier">eval</span>(<span class="ruby-node">"#{mod}"</span>, <span class="ruby-constant">TOPLEVEL_BINDING</span>)
|
324
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">breakable</span>(<span class="ruby-identifier">mod</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">mod</span>
|
325
|
-
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">NameError</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
326
|
-
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">error</span>(<span class="ruby-node">"#{mod} cannot be found."</span>)
|
327
|
-
<span class="ruby-keyword">end</span>
|
328
|
-
<span class="ruby-keyword">else</span>
|
329
|
-
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">error</span>(<span class="ruby-string">"You must specify a module/class or its name."</span>)
|
330
|
-
<span class="ruby-keyword">end</span>
|
331
|
-
<span class="ruby-keyword">end</span>
|
335
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">install</span>(<span class="ruby-value">:break</span>, *<span class="ruby-identifier">mods</span>)
|
332
336
|
<span class="ruby-keyword">end</span></pre>
|
333
337
|
</div><!-- breakable-source -->
|
334
338
|
|
@@ -357,12 +361,11 @@ of registering them for later).</p>
|
|
357
361
|
|
358
362
|
|
359
363
|
<div class="method-source-code" id="instrument-source">
|
360
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line
|
364
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 66</span>
|
361
365
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instrument</span>()
|
362
366
|
<span class="ruby-constant">BREAKABLES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">mod</span><span class="ruby-operator">|</span>
|
363
367
|
<span class="ruby-comment"># Duplicate checks in place in these calls.</span>
|
364
|
-
<span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">
|
365
|
-
<span class="ruby-constant">INSTALLED</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">mod</span>
|
368
|
+
<span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">install_monitor</span>(<span class="ruby-identifier">mod</span>)
|
366
369
|
<span class="ruby-keyword">end</span>
|
367
370
|
<span class="ruby-keyword">end</span></pre>
|
368
371
|
</div><!-- instrument-source -->
|
@@ -180,17 +180,13 @@
|
|
180
180
|
|
181
181
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
182
182
|
|
183
|
-
<li><a href="../Test.html">Test</a>
|
184
|
-
|
185
|
-
<li><a href="../Test/Unit.html">Test::Unit</a>
|
186
|
-
|
187
|
-
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
188
|
-
|
189
183
|
<li><a href="../Rake.html">Rake</a>
|
190
184
|
|
191
185
|
<li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
192
186
|
|
193
|
-
<li><a href="../
|
187
|
+
<li><a href="../Test.html">Test</a>
|
188
|
+
|
189
|
+
<li><a href="../Test/Unit.html">Test::Unit</a>
|
194
190
|
|
195
191
|
<li><a href="../Object.html">Object</a>
|
196
192
|
|
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|
@@ -176,17 +176,13 @@
|
|
176
176
|
|
177
177
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
178
178
|
|
179
|
-
<li><a href="../../Test.html">Test</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
182
|
-
|
183
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
184
|
-
|
185
179
|
<li><a href="../../Rake.html">Rake</a>
|
186
180
|
|
187
181
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
188
182
|
|
189
|
-
<li><a href="../../
|
183
|
+
<li><a href="../../Test.html">Test</a>
|
184
|
+
|
185
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
190
186
|
|
191
187
|
<li><a href="../../Object.html">Object</a>
|
192
188
|
|
@@ -176,17 +176,13 @@
|
|
176
176
|
|
177
177
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
178
178
|
|
179
|
-
<li><a href="../../Test.html">Test</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
182
|
-
|
183
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
184
|
-
|
185
179
|
<li><a href="../../Rake.html">Rake</a>
|
186
180
|
|
187
181
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
188
182
|
|
189
|
-
<li><a href="../../
|
183
|
+
<li><a href="../../Test.html">Test</a>
|
184
|
+
|
185
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
190
186
|
|
191
187
|
<li><a href="../../Object.html">Object</a>
|
192
188
|
|
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|
@@ -174,17 +174,13 @@
|
|
174
174
|
|
175
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
176
176
|
|
177
|
-
<li><a href="../../Test.html">Test</a>
|
178
|
-
|
179
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
180
|
-
|
181
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
182
|
-
|
183
177
|
<li><a href="../../Rake.html">Rake</a>
|
184
178
|
|
185
179
|
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
186
180
|
|
187
|
-
<li><a href="../../
|
181
|
+
<li><a href="../../Test.html">Test</a>
|
182
|
+
|
183
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
188
184
|
|
189
185
|
<li><a href="../../Object.html">Object</a>
|
190
186
|
|