caricature 0.3.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/.gitignore +4 -0
  2. data/Rakefile +100 -0
  3. data/VERSION +1 -0
  4. data/caricature.gemspec +177 -0
  5. data/doc/Array.html +251 -0
  6. data/doc/Caricature/ArgumentRecording.html +366 -0
  7. data/doc/Caricature/ClrClassDescriptor.html +303 -0
  8. data/doc/Caricature/ClrClassMessenger.html +263 -0
  9. data/doc/Caricature/ClrInterfaceDescriptor.html +295 -0
  10. data/doc/Caricature/ClrInterfaceIsolator.html +365 -0
  11. data/doc/Caricature/ClrInterfaceMessenger.html +260 -0
  12. data/doc/Caricature/ClrIsolator.html +424 -0
  13. data/doc/Caricature/Expectation.html +549 -0
  14. data/doc/Caricature/ExpectationBuilder.html +308 -0
  15. data/doc/Caricature/ExpectationSyntax.html +438 -0
  16. data/doc/Caricature/Expectations.html +344 -0
  17. data/doc/Caricature/Interception/ClassMethods.html +246 -0
  18. data/doc/Caricature/Interception.html +416 -0
  19. data/doc/Caricature/Isolation.html +578 -0
  20. data/doc/Caricature/Isolator.html +519 -0
  21. data/doc/Caricature/MemberDescriptor.html +335 -0
  22. data/doc/Caricature/Messenger.html +335 -0
  23. data/doc/Caricature/MethodCallRecorder.html +440 -0
  24. data/doc/Caricature/MethodCallRecording.html +493 -0
  25. data/doc/Caricature/RubyIsolator.html +416 -0
  26. data/doc/Caricature/RubyMessenger.html +260 -0
  27. data/doc/Caricature/RubyObjectDescriptor.html +289 -0
  28. data/doc/Caricature/TypeDescriptor.html +378 -0
  29. data/doc/Caricature/Verification.html +443 -0
  30. data/doc/Caricature.html +358 -0
  31. data/doc/Class.html +287 -0
  32. data/doc/Hash.html +255 -0
  33. data/doc/Module.html +287 -0
  34. data/doc/Object.html +322 -0
  35. data/doc/README_markdown.html +241 -0
  36. data/doc/String.html +289 -0
  37. data/doc/System/String.html +289 -0
  38. data/doc/System/Type.html +289 -0
  39. data/doc/System.html +207 -0
  40. data/doc/created.rid +1 -0
  41. data/doc/images/brick.png +0 -0
  42. data/doc/images/brick_link.png +0 -0
  43. data/doc/images/bug.png +0 -0
  44. data/doc/images/bullet_black.png +0 -0
  45. data/doc/images/bullet_toggle_minus.png +0 -0
  46. data/doc/images/bullet_toggle_plus.png +0 -0
  47. data/doc/images/date.png +0 -0
  48. data/doc/images/find.png +0 -0
  49. data/doc/images/loadingAnimation.gif +0 -0
  50. data/doc/images/macFFBgHack.png +0 -0
  51. data/doc/images/package.png +0 -0
  52. data/doc/images/page_green.png +0 -0
  53. data/doc/images/page_white_text.png +0 -0
  54. data/doc/images/page_white_width.png +0 -0
  55. data/doc/images/plugin.png +0 -0
  56. data/doc/images/ruby.png +0 -0
  57. data/doc/images/tag_green.png +0 -0
  58. data/doc/images/wrench.png +0 -0
  59. data/doc/images/wrench_orange.png +0 -0
  60. data/doc/images/zoom.png +0 -0
  61. data/doc/index.html +312 -0
  62. data/doc/js/darkfish.js +116 -0
  63. data/doc/js/jquery.js +32 -0
  64. data/doc/js/quicksearch.js +114 -0
  65. data/doc/js/thickbox-compressed.js +10 -0
  66. data/doc/lib/caricature/clr/descriptor_rb.html +52 -0
  67. data/doc/lib/caricature/clr/isolation_rb.html +52 -0
  68. data/doc/lib/caricature/clr/isolator_rb.html +52 -0
  69. data/doc/lib/caricature/clr/messenger_rb.html +52 -0
  70. data/doc/lib/caricature/clr_rb.html +52 -0
  71. data/doc/lib/caricature/descriptor_rb.html +52 -0
  72. data/doc/lib/caricature/expectation_rb.html +52 -0
  73. data/doc/lib/caricature/isolation_rb.html +52 -0
  74. data/doc/lib/caricature/isolator_rb.html +52 -0
  75. data/doc/lib/caricature/messaging_rb.html +52 -0
  76. data/doc/lib/caricature/method_call_recorder_rb.html +52 -0
  77. data/doc/lib/caricature/verification_rb.html +52 -0
  78. data/doc/lib/caricature_rb.html +52 -0
  79. data/doc/lib/core_ext/array_rb.html +52 -0
  80. data/doc/lib/core_ext/class_rb.html +52 -0
  81. data/doc/lib/core_ext/core_ext_rb.html +52 -0
  82. data/doc/lib/core_ext/hash_rb.html +52 -0
  83. data/doc/lib/core_ext/module_rb.html +52 -0
  84. data/doc/lib/core_ext/object_rb.html +52 -0
  85. data/doc/lib/core_ext/string_rb.html +52 -0
  86. data/doc/lib/core_ext/system/string_rb.html +52 -0
  87. data/doc/lib/core_ext/system/type_rb.html +52 -0
  88. data/doc/rdoc.css +696 -0
  89. data/irb_init.rb +9 -0
  90. data/lib/bin/Workarounds.dll +0 -0
  91. data/lib/bin/Workarounds.pdb +0 -0
  92. data/lib/caricature/clr/descriptor.rb +55 -0
  93. data/lib/caricature/clr/isolation.rb +33 -0
  94. data/lib/caricature/clr/isolator.rb +112 -0
  95. data/lib/caricature/clr/messenger.rb +46 -0
  96. data/lib/caricature/clr.rb +6 -0
  97. data/lib/caricature/descriptor.rb +74 -0
  98. data/lib/caricature/expectation.rb +159 -0
  99. data/lib/caricature/isolation.rb +146 -0
  100. data/lib/caricature/isolator.rb +287 -0
  101. data/lib/caricature/messenger.rb +57 -0
  102. data/lib/caricature/method_call_recorder.rb +130 -0
  103. data/lib/caricature/verification.rb +43 -0
  104. data/lib/caricature.rb +11 -0
  105. data/lib/core_ext/array.rb +10 -0
  106. data/lib/core_ext/class.rb +15 -0
  107. data/lib/core_ext/core_ext.rb +8 -0
  108. data/lib/core_ext/hash.rb +13 -0
  109. data/lib/core_ext/module.rb +15 -0
  110. data/lib/core_ext/object.rb +19 -0
  111. data/lib/core_ext/string.rb +17 -0
  112. data/lib/core_ext/system/string.rb +21 -0
  113. data/lib/core_ext/system/type.rb +21 -0
  114. data/pkg/.gitignore +0 -0
  115. data/pkg/caricature-0.1.0.gem +0 -0
  116. data/spec/bacon_helper.rb +49 -3
  117. data/spec/bin/.gitignore +0 -0
  118. data/spec/core_ext_spec.rb +9 -0
  119. data/spec/descriptor_spec.rb +142 -0
  120. data/spec/expectation_spec.rb +11 -7
  121. data/spec/integration_spec.rb +94 -2
  122. data/spec/isolation_spec.rb +0 -42
  123. data/spec/isolator_spec.rb +72 -66
  124. data/spec/messaging_spec.rb +172 -0
  125. data/spec/method_call_spec.rb +21 -21
  126. data/spec/models/ClrModels.cs +185 -0
  127. data/spec/verification_spec.rb +1 -1
  128. data/workarounds/ReflectionHelper.cs +30 -0
  129. metadata +133 -2
data/doc/rdoc.css ADDED
@@ -0,0 +1,696 @@
1
+ /*
2
+ * "Darkfish" Rdoc CSS
3
+ * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
4
+ *
5
+ * Author: Michael Granger <ged@FaerieMUD.org>
6
+ *
7
+ */
8
+
9
+ /* Base Green is: #6C8C22 */
10
+
11
+ *{ padding: 0; margin: 0; }
12
+
13
+ body {
14
+ background: #efefef;
15
+ font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
16
+ }
17
+ body.class, body.module, body.file {
18
+ margin-left: 40px;
19
+ }
20
+ body.file-popup {
21
+ font-size: 90%;
22
+ margin-left: 0;
23
+ }
24
+
25
+ h1 {
26
+ font-size: 300%;
27
+ text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
28
+ color: #6C8C22;
29
+ }
30
+ h2,h3,h4 { margin-top: 1.5em; }
31
+
32
+ a {
33
+ color: #6C8C22;
34
+ text-decoration: none;
35
+ }
36
+ a:hover {
37
+ border-bottom: 1px dotted #6C8C22;
38
+ }
39
+
40
+ pre {
41
+ background: #ddd;
42
+ padding: 0.5em 0;
43
+ }
44
+
45
+
46
+ /* @group Generic Classes */
47
+
48
+ .initially-hidden {
49
+ display: none;
50
+ }
51
+
52
+ .quicksearch-field {
53
+ width: 98%;
54
+ background: #ddd;
55
+ border: 1px solid #aaa;
56
+ height: 1.5em;
57
+ -webkit-border-radius: 4px;
58
+ }
59
+ .quicksearch-field:focus {
60
+ background: #f1edba;
61
+ }
62
+
63
+ .missing-docs {
64
+ font-size: 120%;
65
+ background: white url(images/wrench_orange.png) no-repeat 4px center;
66
+ color: #ccc;
67
+ line-height: 2em;
68
+ border: 1px solid #d00;
69
+ opacity: 1;
70
+ padding-left: 20px;
71
+ text-indent: 24px;
72
+ letter-spacing: 3px;
73
+ font-weight: bold;
74
+ -webkit-border-radius: 5px;
75
+ -moz-border-radius: 5px;
76
+ }
77
+
78
+ .target-section {
79
+ border: 2px solid #dcce90;
80
+ border-left-width: 8px;
81
+ padding: 0 1em;
82
+ background: #fff3c2;
83
+ }
84
+
85
+ /* @end */
86
+
87
+
88
+ /* @group Index Page, Standalone file pages */
89
+ body.indexpage {
90
+ margin: 1em 3em;
91
+ }
92
+ body.indexpage p,
93
+ body.indexpage div,
94
+ body.file p {
95
+ margin: 1em 0;
96
+ }
97
+
98
+ .indexpage ul,
99
+ .file #documentation ul {
100
+ line-height: 160%;
101
+ list-style: none;
102
+ }
103
+ .indexpage ul a,
104
+ .file #documentation ul a {
105
+ font-size: 16px;
106
+ }
107
+
108
+ .indexpage li,
109
+ .file #documentation li {
110
+ padding-left: 20px;
111
+ background: url(images/bullet_black.png) no-repeat left 4px;
112
+ }
113
+ .indexpage li.module {
114
+ background: url(images/package.png) no-repeat left 4px;
115
+ }
116
+ .indexpage li.class {
117
+ background: url(images/ruby.png) no-repeat left 4px;
118
+ }
119
+ .indexpage li.file {
120
+ background: url(images/page_white_text.png) no-repeat left 4px;
121
+ }
122
+
123
+ /* @end */
124
+
125
+ /* @group Top-Level Structure */
126
+
127
+ .class #metadata,
128
+ .file #metadata,
129
+ .module #metadata {
130
+ float: left;
131
+ width: 260px;
132
+ }
133
+
134
+ .class #documentation,
135
+ .file #documentation,
136
+ .module #documentation {
137
+ margin: 2em 1em 5em 300px;
138
+ min-width: 340px;
139
+ }
140
+
141
+ .file #metadata {
142
+ margin: 0.8em;
143
+ }
144
+
145
+ #validator-badges {
146
+ clear: both;
147
+ margin: 1em 1em 2em;
148
+ }
149
+
150
+ /* @end */
151
+
152
+ /* @group Metadata Section */
153
+ #metadata .section {
154
+ background-color: #dedede;
155
+ -moz-border-radius: 5px;
156
+ -webkit-border-radius: 5px;
157
+ border: 1px solid #aaa;
158
+ margin: 0 8px 16px;
159
+ font-size: 90%;
160
+ overflow: hidden;
161
+ }
162
+ #metadata h3.section-header {
163
+ margin: 0;
164
+ padding: 2px 8px;
165
+ background: #ccc;
166
+ color: #666;
167
+ -moz-border-radius-topleft: 4px;
168
+ -moz-border-radius-topright: 4px;
169
+ -webkit-border-top-left-radius: 4px;
170
+ -webkit-border-top-right-radius: 4px;
171
+ border-bottom: 1px solid #aaa;
172
+ }
173
+ #metadata ul,
174
+ #metadata dl,
175
+ #metadata p {
176
+ padding: 8px;
177
+ list-style: none;
178
+ }
179
+
180
+ #file-metadata ul {
181
+ padding-left: 28px;
182
+ list-style-image: url(images/page_green.png);
183
+ }
184
+
185
+ dl.svninfo {
186
+ color: #666;
187
+ margin: 0;
188
+ }
189
+ dl.svninfo dt {
190
+ font-weight: bold;
191
+ }
192
+
193
+ ul.link-list li {
194
+ white-space: nowrap;
195
+ }
196
+ ul.link-list .type {
197
+ font-size: 8px;
198
+ text-transform: uppercase;
199
+ color: white;
200
+ background: #969696;
201
+ padding: 2px 4px;
202
+ -webkit-border-radius: 5px;
203
+ }
204
+
205
+ /* @end */
206
+
207
+
208
+ /* @group Project Metadata Section */
209
+ #project-metadata {
210
+ margin-top: 3em;
211
+ }
212
+
213
+ .file #project-metadata {
214
+ margin-top: 0em;
215
+ }
216
+
217
+ #project-metadata .section {
218
+ border: 1px solid #aaa;
219
+ }
220
+ #project-metadata h3.section-header {
221
+ border-bottom: 1px solid #aaa;
222
+ position: relative;
223
+ }
224
+ #project-metadata h3.section-header .search-toggle {
225
+ position: absolute;
226
+ right: 5px;
227
+ }
228
+
229
+
230
+ #project-metadata form {
231
+ color: #777;
232
+ background: #ccc;
233
+ padding: 8px 8px 16px;
234
+ border-bottom: 1px solid #bbb;
235
+ }
236
+ #project-metadata fieldset {
237
+ border: 0;
238
+ }
239
+
240
+ #no-class-search-results {
241
+ margin: 0 auto 1em;
242
+ text-align: center;
243
+ font-size: 14px;
244
+ font-weight: bold;
245
+ color: #aaa;
246
+ }
247
+
248
+ /* @end */
249
+
250
+
251
+ /* @group Documentation Section */
252
+ #description {
253
+ font-size: 100%;
254
+ color: #333;
255
+ }
256
+
257
+ #description p {
258
+ margin: 1em 0.4em;
259
+ }
260
+
261
+ #description ul {
262
+ margin-left: 2em;
263
+ }
264
+ #description ul li {
265
+ line-height: 1.4em;
266
+ }
267
+
268
+ #description dl,
269
+ #documentation dl {
270
+ margin: 8px 1.5em;
271
+ border: 1px solid #ccc;
272
+ }
273
+ #description dl {
274
+ font-size: 14px;
275
+ }
276
+
277
+ #description dt,
278
+ #documentation dt {
279
+ padding: 2px 4px;
280
+ font-weight: bold;
281
+ background: #ddd;
282
+ }
283
+ #description dd,
284
+ #documentation dd {
285
+ padding: 2px 12px;
286
+ }
287
+ #description dd + dt,
288
+ #documentation dd + dt {
289
+ margin-top: 0.7em;
290
+ }
291
+
292
+ #documentation .section {
293
+ font-size: 90%;
294
+ }
295
+ #documentation h3.section-header {
296
+ margin-top: 2em;
297
+ padding: 0.75em 0.5em;
298
+ background-color: #dedede;
299
+ color: #333;
300
+ font-size: 150%;
301
+ border: 1px solid #bbb;
302
+ -moz-border-radius: 3px;
303
+ -webkit-border-radius: 3px;
304
+ }
305
+
306
+ #constants-list > dl,
307
+ #attributes-list > dl {
308
+ margin: 1em 0 2em;
309
+ border: 0;
310
+ }
311
+ #constants-list > dl dt,
312
+ #attributes-list > dl dt {
313
+ padding-left: 0;
314
+ font-weight: bold;
315
+ font-family: Monaco, "Andale Mono";
316
+ background: inherit;
317
+ }
318
+ #constants-list > dl dt a,
319
+ #attributes-list > dl dt a {
320
+ color: inherit;
321
+ }
322
+ #constants-list > dl dd,
323
+ #attributes-list > dl dd {
324
+ margin: 0 0 1em 0;
325
+ padding: 0;
326
+ color: #666;
327
+ }
328
+
329
+ /* @group Method Details */
330
+
331
+ #documentation .method-source-code {
332
+ display: none;
333
+ }
334
+
335
+ #documentation .method-detail {
336
+ margin: 0.5em 0;
337
+ padding: 0.5em 0;
338
+ cursor: pointer;
339
+ }
340
+ #documentation .method-detail:hover {
341
+ background-color: #f1edba;
342
+ }
343
+ #documentation .method-alias {
344
+ font-style: oblique;
345
+ }
346
+ #documentation .method-heading {
347
+ position: relative;
348
+ padding: 2px 4px 0 20px;
349
+ font-size: 125%;
350
+ font-weight: bold;
351
+ color: #333;
352
+ background: url(images/brick.png) no-repeat left bottom;
353
+ }
354
+ #documentation .method-heading a {
355
+ color: inherit;
356
+ }
357
+ #documentation .method-click-advice {
358
+ position: absolute;
359
+ top: 2px;
360
+ right: 5px;
361
+ font-size: 10px;
362
+ color: #9b9877;
363
+ visibility: hidden;
364
+ padding-right: 20px;
365
+ line-height: 20px;
366
+ background: url(images/zoom.png) no-repeat right top;
367
+ }
368
+ #documentation .method-detail:hover .method-click-advice {
369
+ visibility: visible;
370
+ }
371
+
372
+ #documentation .method-alias .method-heading {
373
+ color: #666;
374
+ background: url(images/brick_link.png) no-repeat left bottom;
375
+ }
376
+
377
+ #documentation .method-description,
378
+ #documentation .aliases {
379
+ margin: 0 20px;
380
+ line-height: 1.2em;
381
+ color: #666;
382
+ }
383
+ #documentation .aliases {
384
+ padding-top: 4px;
385
+ font-style: italic;
386
+ cursor: default;
387
+ }
388
+ #documentation .method-description p {
389
+ padding: 0;
390
+ }
391
+ #documentation .method-description p + p {
392
+ margin-bottom: 0.5em;
393
+ }
394
+
395
+ #documentation .attribute-method-heading {
396
+ background: url(images/tag_green.png) no-repeat left bottom;
397
+ }
398
+ #documentation #attribute-method-details .method-detail:hover {
399
+ background-color: transparent;
400
+ cursor: default;
401
+ }
402
+ #documentation .attribute-access-type {
403
+ font-size: 60%;
404
+ text-transform: uppercase;
405
+ vertical-align: super;
406
+ padding: 0 2px;
407
+ }
408
+ /* @end */
409
+
410
+ /* @end */
411
+
412
+
413
+
414
+ /* @group Source Code */
415
+
416
+ a.source-toggle {
417
+ font-size: 90%;
418
+ }
419
+ a.source-toggle img {
420
+
421
+ }
422
+
423
+ div.method-source-code {
424
+ background: #262626;
425
+ color: #efefef;
426
+ margin: 1em;
427
+ padding: 0.5em;
428
+ border: 1px dashed #999;
429
+ overflow: hidden;
430
+ }
431
+
432
+ div.method-source-code pre {
433
+ background: inherit;
434
+ padding: 0;
435
+ color: white;
436
+ overflow: hidden;
437
+ }
438
+
439
+ /* @group Ruby keyword styles */
440
+
441
+ .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
442
+
443
+ .ruby-constant { color: #7fffd4; background: transparent; }
444
+ .ruby-keyword { color: #00ffff; background: transparent; }
445
+ .ruby-ivar { color: #eedd82; background: transparent; }
446
+ .ruby-operator { color: #00ffee; background: transparent; }
447
+ .ruby-identifier { color: #ffdead; background: transparent; }
448
+ .ruby-node { color: #ffa07a; background: transparent; }
449
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
450
+ .ruby-regexp { color: #ffa07a; background: transparent; }
451
+ .ruby-value { color: #7fffd4; background: transparent; }
452
+
453
+ /* @end */
454
+ /* @end */
455
+
456
+
457
+ /* @group File Popup Contents */
458
+
459
+ .file #metadata,
460
+ .file-popup #metadata {
461
+ }
462
+
463
+ .file-popup dl {
464
+ font-size: 80%;
465
+ padding: 0.75em;
466
+ background-color: #dedede;
467
+ color: #333;
468
+ border: 1px solid #bbb;
469
+ -moz-border-radius: 3px;
470
+ -webkit-border-radius: 3px;
471
+ }
472
+ .file dt {
473
+ font-weight: bold;
474
+ padding-left: 22px;
475
+ line-height: 20px;
476
+ background: url(images/page_white_width.png) no-repeat left top;
477
+ }
478
+ .file dt.modified-date {
479
+ background: url(images/date.png) no-repeat left top;
480
+ }
481
+ .file dt.requires {
482
+ background: url(images/plugin.png) no-repeat left top;
483
+ }
484
+ .file dt.scs-url {
485
+ background: url(images/wrench.png) no-repeat left top;
486
+ }
487
+
488
+ .file dl dd {
489
+ margin: 0 0 1em 0;
490
+ }
491
+ .file #metadata dl dd ul {
492
+ list-style: circle;
493
+ margin-left: 20px;
494
+ padding-top: 0;
495
+ }
496
+ .file #metadata dl dd ul li {
497
+ }
498
+
499
+
500
+ .file h2 {
501
+ margin-top: 2em;
502
+ padding: 0.75em 0.5em;
503
+ background-color: #dedede;
504
+ color: #333;
505
+ font-size: 120%;
506
+ border: 1px solid #bbb;
507
+ -moz-border-radius: 3px;
508
+ -webkit-border-radius: 3px;
509
+ }
510
+
511
+ /* @end */
512
+
513
+
514
+
515
+
516
+ /* @group ThickBox Styles */
517
+ #TB_window {
518
+ font: 12px Arial, Helvetica, sans-serif;
519
+ color: #333333;
520
+ }
521
+
522
+ #TB_secondLine {
523
+ font: 10px Arial, Helvetica, sans-serif;
524
+ color:#666666;
525
+ }
526
+
527
+ #TB_window a:link {color: #666666;}
528
+ #TB_window a:visited {color: #666666;}
529
+ #TB_window a:hover {color: #000;}
530
+ #TB_window a:active {color: #666666;}
531
+ #TB_window a:focus{color: #666666;}
532
+
533
+ #TB_overlay {
534
+ position: fixed;
535
+ z-index:100;
536
+ top: 0px;
537
+ left: 0px;
538
+ height:100%;
539
+ width:100%;
540
+ }
541
+
542
+ .TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;}
543
+ .TB_overlayBG {
544
+ background-color:#000;
545
+ filter:alpha(opacity=75);
546
+ -moz-opacity: 0.75;
547
+ opacity: 0.75;
548
+ }
549
+
550
+ * html #TB_overlay { /* ie6 hack */
551
+ position: absolute;
552
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
553
+ }
554
+
555
+ #TB_window {
556
+ position: fixed;
557
+ background: #ffffff;
558
+ z-index: 102;
559
+ color:#000000;
560
+ display:none;
561
+ border: 4px solid #525252;
562
+ text-align:left;
563
+ top:50%;
564
+ left:50%;
565
+ }
566
+
567
+ * html #TB_window { /* ie6 hack */
568
+ position: absolute;
569
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
570
+ }
571
+
572
+ #TB_window img#TB_Image {
573
+ display:block;
574
+ margin: 15px 0 0 15px;
575
+ border-right: 1px solid #ccc;
576
+ border-bottom: 1px solid #ccc;
577
+ border-top: 1px solid #666;
578
+ border-left: 1px solid #666;
579
+ }
580
+
581
+ #TB_caption{
582
+ height:25px;
583
+ padding:7px 30px 10px 25px;
584
+ float:left;
585
+ }
586
+
587
+ #TB_closeWindow{
588
+ height:25px;
589
+ padding:11px 25px 10px 0;
590
+ float:right;
591
+ }
592
+
593
+ #TB_closeAjaxWindow{
594
+ padding:7px 10px 5px 0;
595
+ margin-bottom:1px;
596
+ text-align:right;
597
+ float:right;
598
+ }
599
+
600
+ #TB_ajaxWindowTitle{
601
+ float:left;
602
+ padding:7px 0 5px 10px;
603
+ margin-bottom:1px;
604
+ font-size: 22px;
605
+ }
606
+
607
+ #TB_title{
608
+ background-color: #6C8C22;
609
+ color: #dedede;
610
+ height:40px;
611
+ }
612
+ #TB_title a {
613
+ color: white !important;
614
+ border-bottom: 1px dotted #dedede;
615
+ }
616
+
617
+ #TB_ajaxContent{
618
+ clear:both;
619
+ padding:2px 15px 15px 15px;
620
+ overflow:auto;
621
+ text-align:left;
622
+ line-height:1.4em;
623
+ }
624
+
625
+ #TB_ajaxContent.TB_modal{
626
+ padding:15px;
627
+ }
628
+
629
+ #TB_ajaxContent p{
630
+ padding:5px 0px 5px 0px;
631
+ }
632
+
633
+ #TB_load{
634
+ position: fixed;
635
+ display:none;
636
+ height:13px;
637
+ width:208px;
638
+ z-index:103;
639
+ top: 50%;
640
+ left: 50%;
641
+ margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
642
+ }
643
+
644
+ * html #TB_load { /* ie6 hack */
645
+ position: absolute;
646
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
647
+ }
648
+
649
+ #TB_HideSelect{
650
+ z-index:99;
651
+ position:fixed;
652
+ top: 0;
653
+ left: 0;
654
+ background-color:#fff;
655
+ border:none;
656
+ filter:alpha(opacity=0);
657
+ -moz-opacity: 0;
658
+ opacity: 0;
659
+ height:100%;
660
+ width:100%;
661
+ }
662
+
663
+ * html #TB_HideSelect { /* ie6 hack */
664
+ position: absolute;
665
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
666
+ }
667
+
668
+ #TB_iframeContent{
669
+ clear:both;
670
+ border:none;
671
+ margin-bottom:-1px;
672
+ margin-top:1px;
673
+ _margin-bottom:1px;
674
+ }
675
+
676
+ /* @end */
677
+
678
+ /* @group Debugging Section */
679
+
680
+ #debugging-toggle {
681
+ text-align: center;
682
+ }
683
+ #debugging-toggle img {
684
+ cursor: pointer;
685
+ }
686
+
687
+ #rdoc-debugging-section-dump {
688
+ display: none;
689
+ margin: 0 2em 2em;
690
+ background: #ccc;
691
+ border: 1px solid #999;
692
+ }
693
+
694
+
695
+
696
+ /* @end */
data/irb_init.rb ADDED
@@ -0,0 +1,9 @@
1
+ require File.dirname(__FILE__) + "/spec/bin/ClrModels.dll"
2
+ require File.dirname(__FILE__) + "/lib/caricature.rb"
3
+ require File.dirname(__FILE__) + "/lib/caricature/clr.rb"
4
+
5
+ #w = Caricature::Isolation.for(ClrModels::IWeapon)
6
+ #w.when_receiving(:damage).return(5)
7
+ #puts w
8
+ #puts w.damage
9
+
Binary file
Binary file