caricature 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/VERSION +1 -1
  2. data/caricature.gemspec +5 -1
  3. data/doc/Array.html +2 -2
  4. data/doc/Caricature/ArgumentRecording.html +5 -5
  5. data/doc/Caricature/ClrClassDescriptor.html +2 -2
  6. data/doc/Caricature/ClrClassMessenger.html +2 -2
  7. data/doc/Caricature/ClrInterfaceDescriptor.html +4 -4
  8. data/doc/Caricature/ClrInterfaceIsolator.html +9 -9
  9. data/doc/Caricature/ClrInterfaceMessenger.html +2 -2
  10. data/doc/Caricature/ClrIsolator.html +13 -12
  11. data/doc/Caricature/Expectation.html +19 -19
  12. data/doc/Caricature/ExpectationBuilder.html +6 -6
  13. data/doc/Caricature/ExpectationSyntax.html +49 -21
  14. data/doc/Caricature/Expectations.html +7 -7
  15. data/doc/Caricature/Interception/ClassMethods.html +6 -6
  16. data/doc/Caricature/Interception.html +12 -12
  17. data/doc/Caricature/Isolation.html +22 -22
  18. data/doc/Caricature/Isolator.html +12 -12
  19. data/doc/Caricature/MemberDescriptor.html +4 -4
  20. data/doc/Caricature/Messenger.html +8 -8
  21. data/doc/Caricature/MethodCallRecorder.html +8 -8
  22. data/doc/Caricature/MethodCallRecording.html +11 -11
  23. data/doc/Caricature/RubyIsolator.html +8 -8
  24. data/doc/Caricature/RubyMessenger.html +2 -2
  25. data/doc/Caricature/RubyObjectDescriptor.html +4 -4
  26. data/doc/Caricature/TypeDescriptor.html +6 -6
  27. data/doc/Caricature/Verification.html +13 -13
  28. data/doc/Class.html +4 -4
  29. data/doc/Hash.html +2 -2
  30. data/doc/Module.html +4 -4
  31. data/doc/Object.html +93 -6
  32. data/doc/String.html +84 -4
  33. data/doc/System/String.html +4 -4
  34. data/doc/System/Type.html +4 -4
  35. data/doc/created.rid +1 -1
  36. data/doc/index.html +114 -104
  37. data/doc/lib/caricature/clr/aspnet_mvc_rb.html +52 -0
  38. data/doc/lib/caricature/clr/descriptor_rb.html +1 -1
  39. data/doc/lib/caricature/clr/isolation_rb.html +1 -1
  40. data/doc/lib/caricature/clr/isolator_rb.html +1 -1
  41. data/doc/lib/caricature/clr/messenger_rb.html +1 -1
  42. data/doc/lib/caricature/clr_rb.html +1 -1
  43. data/doc/lib/caricature/descriptor_rb.html +1 -1
  44. data/doc/lib/caricature/expectation_rb.html +1 -1
  45. data/doc/lib/caricature/isolation_rb.html +1 -1
  46. data/doc/lib/caricature/isolator_rb.html +1 -1
  47. data/doc/lib/caricature/messenger_rb.html +1 -1
  48. data/doc/lib/caricature/method_call_recorder_rb.html +1 -1
  49. data/doc/lib/caricature/verification_rb.html +1 -1
  50. data/doc/lib/caricature_rb.html +1 -1
  51. data/doc/lib/core_ext/array_rb.html +1 -1
  52. data/doc/lib/core_ext/class_rb.html +1 -1
  53. data/doc/lib/core_ext/core_ext_rb.html +1 -1
  54. data/doc/lib/core_ext/hash_rb.html +1 -1
  55. data/doc/lib/core_ext/module_rb.html +1 -1
  56. data/doc/lib/core_ext/object_rb.html +1 -1
  57. data/doc/lib/core_ext/string_rb.html +1 -1
  58. data/doc/lib/core_ext/system/string_rb.html +1 -1
  59. data/doc/lib/core_ext/system/type_rb.html +1 -1
  60. data/lib/caricature/expectation.rb +18 -3
  61. data/lib/caricature/messenger.rb +1 -0
  62. data/pkg/caricature-0.6.0.gem +0 -0
  63. data/spec/bacon_helper.rb +10 -0
  64. data/spec/models/ClrModels.cs +7 -7
  65. data/spec/sword_spec.rb +40 -0
  66. metadata +5 -1
@@ -59,13 +59,13 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000078">::new</a></li>
62
+ <li><a href="#M000081">::new</a></li>
63
63
 
64
- <li><a href="#M000080">#record_call</a></li>
64
+ <li><a href="#M000082">#record_call</a></li>
65
65
 
66
- <li><a href="#M000083">#size</a></li>
66
+ <li><a href="#M000087">#size</a></li>
67
67
 
68
- <li><a href="#M000082">#was_called?</a></li>
68
+ <li><a href="#M000084">#was_called?</a></li>
69
69
 
70
70
  </ul>
71
71
  </div>
@@ -227,7 +227,7 @@ key
227
227
 
228
228
 
229
229
  <div id="new-method" class="method-detail ">
230
- <a name="M000078"></a>
230
+ <a name="M000081"></a>
231
231
 
232
232
  <div class="method-heading">
233
233
 
@@ -269,7 +269,7 @@ recorder
269
269
 
270
270
 
271
271
  <div id="record-call-method" class="method-detail ">
272
- <a name="M000080"></a>
272
+ <a name="M000082"></a>
273
273
 
274
274
  <div class="method-heading">
275
275
 
@@ -308,7 +308,7 @@ was called.
308
308
 
309
309
 
310
310
  <div id="size-method" class="method-detail ">
311
- <a name="M000083"></a>
311
+ <a name="M000087"></a>
312
312
 
313
313
  <div class="method-heading">
314
314
 
@@ -342,7 +342,7 @@ returns the number of different methods that has been recorderd
342
342
 
343
343
 
344
344
  <div id="was-called--method" class="method-detail ">
345
- <a name="M000082"></a>
345
+ <a name="M000084"></a>
346
346
 
347
347
  <div class="method-heading">
348
348
 
@@ -59,15 +59,15 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000070">::new</a></li>
62
+ <li><a href="#M000072">::new</a></li>
63
63
 
64
- <li><a href="#M000074">#add_argument_variation</a></li>
64
+ <li><a href="#M000077">#add_argument_variation</a></li>
65
65
 
66
- <li><a href="#M000071">#args</a></li>
66
+ <li><a href="#M000073">#args</a></li>
67
67
 
68
- <li><a href="#M000076">#find_argument_variations</a></li>
68
+ <li><a href="#M000079">#find_argument_variations</a></li>
69
69
 
70
- <li><a href="#M000073">#has_argument_variations?</a></li>
70
+ <li><a href="#M000075">#has_argument_variations?</a></li>
71
71
 
72
72
  </ul>
73
73
  </div>
@@ -287,7 +287,7 @@ gets or sets the block for this method call
287
287
 
288
288
 
289
289
  <div id="new-method" class="method-detail ">
290
- <a name="M000070"></a>
290
+ <a name="M000072"></a>
291
291
 
292
292
  <div class="method-heading">
293
293
 
@@ -333,7 +333,7 @@ very least.
333
333
 
334
334
 
335
335
  <div id="add-argument-variation-method" class="method-detail ">
336
- <a name="M000074"></a>
336
+ <a name="M000077"></a>
337
337
 
338
338
  <div class="method-heading">
339
339
 
@@ -368,7 +368,7 @@ add an argument variation
368
368
 
369
369
 
370
370
  <div id="args-method" class="method-detail ">
371
- <a name="M000071"></a>
371
+ <a name="M000073"></a>
372
372
 
373
373
  <div class="method-heading">
374
374
 
@@ -402,7 +402,7 @@ add args
402
402
 
403
403
 
404
404
  <div id="find-argument-variations-method" class="method-detail ">
405
- <a name="M000076"></a>
405
+ <a name="M000079"></a>
406
406
 
407
407
  <div class="method-heading">
408
408
 
@@ -425,7 +425,7 @@ finds an argument variation that matches the provided <tt>args</tt>
425
425
  <pre>
426
426
  <span class="ruby-comment cmt"># File lib/caricature/method_call_recorder.rb, line 79</span>
427
427
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_argument_variations</span>(<span class="ruby-identifier">args</span>)
428
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@variations</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span>
428
+ <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@variations</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span>
429
429
  <span class="ruby-ivar">@variations</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">ar</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ar</span>.<span class="ruby-identifier">args</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">args</span> }
430
430
  <span class="ruby-keyword kw">end</span></pre>
431
431
  </div>
@@ -437,7 +437,7 @@ finds an argument variation that matches the provided <tt>args</tt>
437
437
 
438
438
 
439
439
  <div id="has-argument-variations--method" class="method-detail ">
440
- <a name="M000073"></a>
440
+ <a name="M000075"></a>
441
441
 
442
442
  <div class="method-heading">
443
443
 
@@ -59,13 +59,13 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000075">::new</a></li>
62
+ <li><a href="#M000083">::new</a></li>
63
63
 
64
- <li><a href="#M000081">#___super___</a></li>
64
+ <li><a href="#M000088">#___super___</a></li>
65
65
 
66
- <li><a href="#M000079">#create_isolation_for</a></li>
66
+ <li><a href="#M000086">#create_isolation_for</a></li>
67
67
 
68
- <li><a href="#M000077">#initialize_messenger</a></li>
68
+ <li><a href="#M000085">#initialize_messenger</a></li>
69
69
 
70
70
  </ul>
71
71
  </div>
@@ -214,7 +214,7 @@ instance methods that are defined on the class.
214
214
 
215
215
 
216
216
  <div id="new-method" class="method-detail ">
217
- <a name="M000075"></a>
217
+ <a name="M000083"></a>
218
218
 
219
219
  <div class="method-heading">
220
220
 
@@ -258,7 +258,7 @@ implemented template method for creating Ruby isolations
258
258
 
259
259
 
260
260
  <div id="-super--method" class="method-detail ">
261
- <a name="M000081"></a>
261
+ <a name="M000088"></a>
262
262
 
263
263
  <div class="method-heading">
264
264
 
@@ -292,7 +292,7 @@ access to the proxied subject
292
292
 
293
293
 
294
294
  <div id="create-isolation-for-method" class="method-detail ">
295
- <a name="M000079"></a>
295
+ <a name="M000086"></a>
296
296
 
297
297
  <div class="method-heading">
298
298
 
@@ -360,7 +360,7 @@ creates the ruby isolator for the specified subject
360
360
 
361
361
 
362
362
  <div id="initialize-messenger-method" class="method-detail ">
363
- <a name="M000077"></a>
363
+ <a name="M000085"></a>
364
364
 
365
365
  <div class="method-heading">
366
366
 
@@ -59,7 +59,7 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000061">#internal_deliver</a></li>
62
+ <li><a href="#M000064">#internal_deliver</a></li>
63
63
 
64
64
  </ul>
65
65
  </div>
@@ -196,7 +196,7 @@ Encapsulates sending messages to Ruby isolations
196
196
 
197
197
 
198
198
  <div id="internal-deliver-method" class="method-detail ">
199
- <a name="M000061"></a>
199
+ <a name="M000064"></a>
200
200
 
201
201
  <div class="method-heading">
202
202
 
@@ -59,9 +59,9 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000024">#initialize_class_members_for</a></li>
62
+ <li><a href="#M000027">#initialize_class_members_for</a></li>
63
63
 
64
- <li><a href="#M000023">#initialize_instance_members_for</a></li>
64
+ <li><a href="#M000026">#initialize_instance_members_for</a></li>
65
65
 
66
66
  </ul>
67
67
  </div>
@@ -198,7 +198,7 @@ Describes a ruby object.
198
198
 
199
199
 
200
200
  <div id="initialize-class-members-for-method" class="method-detail ">
201
- <a name="M000024"></a>
201
+ <a name="M000027"></a>
202
202
 
203
203
  <div class="method-heading">
204
204
 
@@ -233,7 +233,7 @@ Object.singleton_methods
233
233
 
234
234
 
235
235
  <div id="initialize-instance-members-for-method" class="method-detail ">
236
- <a name="M000023"></a>
236
+ <a name="M000026"></a>
237
237
 
238
238
  <div class="method-heading">
239
239
 
@@ -59,11 +59,11 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000015">::new</a></li>
62
+ <li><a href="#M000019">::new</a></li>
63
63
 
64
- <li><a href="#M000019">#initialize_class_members_for</a></li>
64
+ <li><a href="#M000021">#initialize_class_members_for</a></li>
65
65
 
66
- <li><a href="#M000017">#initialize_instance_members_for</a></li>
66
+ <li><a href="#M000020">#initialize_instance_members_for</a></li>
67
67
 
68
68
  </ul>
69
69
  </div>
@@ -242,7 +242,7 @@ Gets the class members for the described type/class
242
242
 
243
243
 
244
244
  <div id="new-method" class="method-detail ">
245
- <a name="M000015"></a>
245
+ <a name="M000019"></a>
246
246
 
247
247
  <div class="method-heading">
248
248
 
@@ -288,7 +288,7 @@ initializes a new instance of a type descriptor
288
288
 
289
289
 
290
290
  <div id="initialize-class-members-for-method" class="method-detail ">
291
- <a name="M000019"></a>
291
+ <a name="M000021"></a>
292
292
 
293
293
  <div class="method-heading">
294
294
 
@@ -322,7 +322,7 @@ collects the class members of the provided type
322
322
 
323
323
 
324
324
  <div id="initialize-instance-members-for-method" class="method-detail ">
325
- <a name="M000017"></a>
325
+ <a name="M000020"></a>
326
326
 
327
327
  <div class="method-heading">
328
328
 
@@ -59,17 +59,17 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000084">::new</a></li>
62
+ <li><a href="#M000089">::new</a></li>
63
63
 
64
- <li><a href="#M000088">#allow_any_arguments</a></li>
64
+ <li><a href="#M000092">#allow_any_arguments</a></li>
65
65
 
66
- <li><a href="#M000085">#any_args?</a></li>
66
+ <li><a href="#M000090">#any_args?</a></li>
67
67
 
68
- <li><a href="#M000089">#matches?</a></li>
68
+ <li><a href="#M000093">#matches?</a></li>
69
69
 
70
- <li><a href="#M000091">#successful?</a></li>
70
+ <li><a href="#M000094">#successful?</a></li>
71
71
 
72
- <li><a href="#M000086">#with</a></li>
72
+ <li><a href="#M000091">#with</a></li>
73
73
 
74
74
  </ul>
75
75
  </div>
@@ -207,7 +207,7 @@ assertion
207
207
 
208
208
 
209
209
  <div id="new-method" class="method-detail ">
210
- <a name="M000084"></a>
210
+ <a name="M000089"></a>
211
211
 
212
212
  <div class="method-heading">
213
213
 
@@ -247,7 +247,7 @@ Initializes a new instance of a <tt>Verification</tt>
247
247
 
248
248
 
249
249
  <div id="allow-any-arguments-method" class="method-detail ">
250
- <a name="M000088"></a>
250
+ <a name="M000092"></a>
251
251
 
252
252
  <div class="method-heading">
253
253
 
@@ -282,7 +282,7 @@ allow any arguments ignore the argument constraint
282
282
 
283
283
 
284
284
  <div id="any-args--method" class="method-detail ">
285
- <a name="M000085"></a>
285
+ <a name="M000090"></a>
286
286
 
287
287
  <div class="method-heading">
288
288
 
@@ -316,7 +316,7 @@ indicates whether this verification can be for any arguments
316
316
 
317
317
 
318
318
  <div id="matches--method" class="method-detail ">
319
- <a name="M000089"></a>
319
+ <a name="M000093"></a>
320
320
 
321
321
  <div class="method-heading">
322
322
 
@@ -350,7 +350,7 @@ figure out if this argument variation matches the provided args.
350
350
 
351
351
 
352
352
  <div id="successful--method" class="method-detail ">
353
- <a name="M000091"></a>
353
+ <a name="M000094"></a>
354
354
 
355
355
  <div class="method-heading">
356
356
 
@@ -385,7 +385,7 @@ indicate that this method verification is successful
385
385
 
386
386
 
387
387
  <div id="with-method" class="method-detail ">
388
- <a name="M000086"></a>
388
+ <a name="M000091"></a>
389
389
 
390
390
  <div class="method-heading">
391
391
 
@@ -408,7 +408,7 @@ constrain this verification to the provided arguments
408
408
  <pre>
409
409
  <span class="ruby-comment cmt"># File lib/caricature/verification.rb, line 18</span>
410
410
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
411
- <span class="ruby-ivar">@any_args</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span>
411
+ <span class="ruby-ivar">@any_args</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:any</span>
412
412
  <span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span>
413
413
  <span class="ruby-keyword kw">self</span>
414
414
  <span class="ruby-keyword kw">end</span></pre>
data/doc/Class.html CHANGED
@@ -59,9 +59,9 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000090">#demodulize</a></li>
62
+ <li><a href="#M000096">#demodulize</a></li>
63
63
 
64
- <li><a href="#M000092">#is_clr_type?</a></li>
64
+ <li><a href="#M000097">#is_clr_type?</a></li>
65
65
 
66
66
  </ul>
67
67
  </div>
@@ -195,7 +195,7 @@
195
195
 
196
196
 
197
197
  <div id="demodulize-method" class="method-detail ">
198
- <a name="M000090"></a>
198
+ <a name="M000096"></a>
199
199
 
200
200
  <div class="method-heading">
201
201
 
@@ -229,7 +229,7 @@ removes all the modules from this class name
229
229
 
230
230
 
231
231
  <div id="is-clr-type--method" class="method-detail ">
232
- <a name="M000092"></a>
232
+ <a name="M000097"></a>
233
233
 
234
234
  <div class="method-heading">
235
235
 
data/doc/Hash.html CHANGED
@@ -59,7 +59,7 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000093">#symbolize_keys!</a></li>
62
+ <li><a href="#M000098">#symbolize_keys!</a></li>
63
63
 
64
64
  </ul>
65
65
  </div>
@@ -193,7 +193,7 @@
193
193
 
194
194
 
195
195
  <div id="symbolize-keys--method" class="method-detail ">
196
- <a name="M000093"></a>
196
+ <a name="M000098"></a>
197
197
 
198
198
  <div class="method-heading">
199
199
 
data/doc/Module.html CHANGED
@@ -59,9 +59,9 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000094">#demodulize</a></li>
62
+ <li><a href="#M000099">#demodulize</a></li>
63
63
 
64
- <li><a href="#M000095">#is_clr_type?</a></li>
64
+ <li><a href="#M000100">#is_clr_type?</a></li>
65
65
 
66
66
  </ul>
67
67
  </div>
@@ -195,7 +195,7 @@
195
195
 
196
196
 
197
197
  <div id="demodulize-method" class="method-detail ">
198
- <a name="M000094"></a>
198
+ <a name="M000099"></a>
199
199
 
200
200
  <div class="method-heading">
201
201
 
@@ -229,7 +229,7 @@ Removes all but the containing modules from this module&#8217;s name
229
229
 
230
230
 
231
231
  <div id="is-clr-type--method" class="method-detail ">
232
- <a name="M000095"></a>
232
+ <a name="M000100"></a>
233
233
 
234
234
  <div class="method-heading">
235
235
 
data/doc/Object.html CHANGED
@@ -59,11 +59,15 @@
59
59
  <h3 class="section-header">Methods</h3>
60
60
  <ul class="link-list">
61
61
 
62
- <li><a href="#M000098">#define_cmethod</a></li>
62
+ <li><a href="#M000103">#define_cmethod</a></li>
63
63
 
64
- <li><a href="#M000096">#is_clr_type?</a></li>
64
+ <li><a href="#M000003">#http_context_isolation</a></li>
65
65
 
66
- <li><a href="#M000097">#to_clr_type</a></li>
66
+ <li><a href="#M000101">#is_clr_type?</a></li>
67
+
68
+ <li><a href="#M000006">#setup_request_url</a></li>
69
+
70
+ <li><a href="#M000102">#to_clr_type</a></li>
67
71
 
68
72
  </ul>
69
73
  </div>
@@ -197,7 +201,7 @@
197
201
 
198
202
 
199
203
  <div id="define-cmethod-method" class="method-detail ">
200
- <a name="M000098"></a>
204
+ <a name="M000103"></a>
201
205
 
202
206
  <div class="method-heading">
203
207
 
@@ -230,8 +234,54 @@ defines a class method on an object
230
234
  </div>
231
235
 
232
236
 
237
+ <div id="http-context-isolation-method" class="method-detail ">
238
+ <a name="M000003"></a>
239
+
240
+ <div class="method-heading">
241
+
242
+ <span class="method-name">http_context_isolation</span><span
243
+ class="method-args">(url="")</span>
244
+ <span class="method-click-advice">click to toggle source</span>
245
+
246
+ </div>
247
+
248
+ <div class="method-description">
249
+
250
+ <p class="missing-docs">(Not documented)</p>
251
+
252
+
253
+
254
+ <div class="method-source-code"
255
+ id="http-context-isolation-source">
256
+ <pre>
257
+ <span class="ruby-comment cmt"># File lib/caricature/clr/aspnet_mvc.rb, line 26</span>
258
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">http_context_isolation</span>(<span class="ruby-identifier">url</span>=<span class="ruby-value str">&quot;&quot;</span>)
259
+
260
+ <span class="ruby-identifier">context</span> = <span class="ruby-constant">Caricature</span><span class="ruby-operator">::</span><span class="ruby-constant">Isolation</span>.<span class="ruby-identifier">for</span>(<span class="ruby-constant">HttpContextBase</span>)
261
+ <span class="ruby-identifier">request</span> = <span class="ruby-constant">Caricature</span><span class="ruby-operator">::</span><span class="ruby-constant">Isolation</span>.<span class="ruby-identifier">for</span>(<span class="ruby-constant">HttpRequestBase</span>)
262
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">Caricature</span><span class="ruby-operator">::</span><span class="ruby-constant">Isolation</span>.<span class="ruby-identifier">for</span>(<span class="ruby-constant">HttpResponseBase</span>)
263
+ <span class="ruby-identifier">session</span> = <span class="ruby-constant">Caricature</span><span class="ruby-operator">::</span><span class="ruby-constant">Isolation</span>.<span class="ruby-identifier">for</span>(<span class="ruby-constant">HttpSessionStateBase</span>)
264
+ <span class="ruby-identifier">server</span> = <span class="ruby-constant">Caricature</span><span class="ruby-operator">::</span><span class="ruby-constant">Isolation</span>.<span class="ruby-identifier">for</span>(<span class="ruby-constant">HttpServerUtilityBase</span>)
265
+
266
+ <span class="ruby-identifier">context</span>.<span class="ruby-identifier">when_receiving</span>(<span class="ruby-identifier">:request</span>).<span class="ruby-identifier">return</span>(<span class="ruby-identifier">request</span>)
267
+ <span class="ruby-identifier">context</span>.<span class="ruby-identifier">when_receiving</span>(<span class="ruby-identifier">:response</span>).<span class="ruby-identifier">return</span>(<span class="ruby-identifier">response</span>)
268
+ <span class="ruby-identifier">context</span>.<span class="ruby-identifier">when_receiving</span>(<span class="ruby-identifier">:session</span>).<span class="ruby-identifier">return</span>(<span class="ruby-identifier">session</span>)
269
+ <span class="ruby-identifier">context</span>.<span class="ruby-identifier">when_receiving</span>(<span class="ruby-identifier">:server</span>).<span class="ruby-identifier">return</span>(<span class="ruby-identifier">server</span>)
270
+
271
+ <span class="ruby-identifier">setup_request_url</span>(<span class="ruby-identifier">context</span>.<span class="ruby-identifier">request</span>, <span class="ruby-identifier">url</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">empty?</span>
272
+
273
+ <span class="ruby-identifier">context</span>
274
+ <span class="ruby-keyword kw">end</span></pre>
275
+ </div>
276
+
277
+ </div>
278
+
279
+
280
+ </div>
281
+
282
+
233
283
  <div id="is-clr-type--method" class="method-detail ">
234
- <a name="M000096"></a>
284
+ <a name="M000101"></a>
235
285
 
236
286
  <div class="method-heading">
237
287
 
@@ -265,8 +315,45 @@ its ancestors
265
315
  </div>
266
316
 
267
317
 
318
+ <div id="setup-request-url-method" class="method-detail ">
319
+ <a name="M000006"></a>
320
+
321
+ <div class="method-heading">
322
+
323
+ <span class="method-name">setup_request_url</span><span
324
+ class="method-args">(request, url)</span>
325
+ <span class="method-click-advice">click to toggle source</span>
326
+
327
+ </div>
328
+
329
+ <div class="method-description">
330
+
331
+ <p class="missing-docs">(Not documented)</p>
332
+
333
+
334
+
335
+ <div class="method-source-code"
336
+ id="setup-request-url-source">
337
+ <pre>
338
+ <span class="ruby-comment cmt"># File lib/caricature/clr/aspnet_mvc.rb, line 44</span>
339
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_request_url</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">url</span>)
340
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;url should not be nil&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">empty?</span>
341
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;we expect a url to start with '~/'.&quot;</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^~\//</span>
342
+
343
+ <span class="ruby-identifier">request</span>.<span class="ruby-identifier">when_receiving</span>(<span class="ruby-identifier">:query_string</span>).<span class="ruby-identifier">return</span>(<span class="ruby-identifier">url</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_qs_parameters</span>)
344
+ <span class="ruby-identifier">request</span>.<span class="ruby-identifier">when_receiving</span>(<span class="ruby-identifier">:app_relative_current_execution_file_path</span>).<span class="ruby-identifier">return</span>(<span class="ruby-identifier">url</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_url_filename</span>)
345
+ <span class="ruby-identifier">request</span>.<span class="ruby-identifier">when_receiving</span>(<span class="ruby-identifier">:path_info</span>).<span class="ruby-identifier">return</span>(<span class="ruby-value str">&quot;&quot;</span>)
346
+ <span class="ruby-keyword kw">end</span></pre>
347
+ </div>
348
+
349
+ </div>
350
+
351
+
352
+ </div>
353
+
354
+
268
355
  <div id="to-clr-type-method" class="method-detail ">
269
- <a name="M000097"></a>
356
+ <a name="M000102"></a>
270
357
 
271
358
  <div class="method-heading">
272
359