resin 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. data/README.markdown +52 -0
  2. data/amber/css/amber.css +519 -0
  3. data/amber/css/documentation.css +84 -0
  4. data/amber/css/profstef.css +75 -0
  5. data/amber/css/style.css +313 -0
  6. data/amber/images/amber.png +0 -0
  7. data/amber/images/amber_small.png +0 -0
  8. data/amber/images/off.png +0 -0
  9. data/amber/images/offHover.png +0 -0
  10. data/amber/images/presentation.png +0 -0
  11. data/amber/images/profstef.png +0 -0
  12. data/amber/images/sprite.png +0 -0
  13. data/amber/images/tinylogo.png +0 -0
  14. data/amber/images/twitterwall.png +0 -0
  15. data/amber/js/Additional-Examples.deploy.js +15 -0
  16. data/amber/js/Additional-Examples.js +21 -0
  17. data/amber/js/Benchfib.deploy.js +132 -0
  18. data/amber/js/Benchfib.js +167 -0
  19. data/amber/js/Canvas.deploy.js +1304 -0
  20. data/amber/js/Canvas.js +1885 -0
  21. data/amber/js/Compiler.deploy.js +1871 -0
  22. data/amber/js/Compiler.js +2616 -0
  23. data/amber/js/Documentation.deploy.js +961 -0
  24. data/amber/js/Documentation.js +1376 -0
  25. data/amber/js/Examples.deploy.js +53 -0
  26. data/amber/js/Examples.js +73 -0
  27. data/amber/js/IDE.deploy.js +3468 -0
  28. data/amber/js/IDE.js +4883 -0
  29. data/amber/js/Kernel-Announcements.deploy.js +107 -0
  30. data/amber/js/Kernel-Announcements.js +152 -0
  31. data/amber/js/Kernel-Classes.deploy.js +675 -0
  32. data/amber/js/Kernel-Classes.js +956 -0
  33. data/amber/js/Kernel-Collections.deploy.js +3273 -0
  34. data/amber/js/Kernel-Collections.js +4644 -0
  35. data/amber/js/Kernel-Exceptions.deploy.js +244 -0
  36. data/amber/js/Kernel-Exceptions.js +349 -0
  37. data/amber/js/Kernel-Methods.deploy.js +510 -0
  38. data/amber/js/Kernel-Methods.js +739 -0
  39. data/amber/js/Kernel-Objects.deploy.js +2698 -0
  40. data/amber/js/Kernel-Objects.js +3858 -0
  41. data/amber/js/Kernel-Tests.deploy.js +1419 -0
  42. data/amber/js/Kernel-Tests.js +1929 -0
  43. data/amber/js/Kernel-Transcript.deploy.js +142 -0
  44. data/amber/js/Kernel-Transcript.js +202 -0
  45. data/amber/js/SUnit.deploy.js +351 -0
  46. data/amber/js/SUnit.js +501 -0
  47. data/amber/js/amber.js +250 -0
  48. data/amber/js/boot.js +587 -0
  49. data/amber/js/compat.js +22 -0
  50. data/amber/js/init.js +8 -0
  51. data/amber/js/lib/CodeMirror/LICENSE +19 -0
  52. data/amber/js/lib/CodeMirror/amber.css +21 -0
  53. data/amber/js/lib/CodeMirror/codemirror.css +67 -0
  54. data/amber/js/lib/CodeMirror/codemirror.js +2144 -0
  55. data/amber/js/lib/CodeMirror/smalltalk.js +134 -0
  56. data/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
  57. data/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
  58. data/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
  59. data/amber/js/lib/jQuery/jquery.textarea.js +267 -0
  60. data/amber/js/lib/peg-0.6.2.min.js +2 -0
  61. data/amber/js/lib/showdown.js +419 -0
  62. data/amber/js/parser.js +4005 -0
  63. data/amber/js/parser.pegjs +220 -0
  64. data/amber/st/Benchfib.st +124 -0
  65. data/amber/st/Canvas.st +556 -0
  66. data/amber/st/Compiler.st +1425 -0
  67. data/amber/st/Documentation.st +758 -0
  68. data/amber/st/Examples.st +38 -0
  69. data/amber/st/IDE.st +2336 -0
  70. data/amber/st/Kernel-Announcements.st +61 -0
  71. data/amber/st/Kernel-Classes.st +403 -0
  72. data/amber/st/Kernel-Collections.st +1673 -0
  73. data/amber/st/Kernel-Exceptions.st +124 -0
  74. data/amber/st/Kernel-Methods.st +287 -0
  75. data/amber/st/Kernel-Objects.st +1489 -0
  76. data/amber/st/Kernel-Tests.st +892 -0
  77. data/amber/st/Kernel-Transcript.st +70 -0
  78. data/amber/st/SUnit.st +172 -0
  79. data/bin/runresin +12 -0
  80. data/lib/resin.rb +0 -0
  81. data/lib/resin/app/app.rb +121 -0
  82. data/lib/resin/app/views/index.haml +10 -0
  83. metadata +216 -0
@@ -0,0 +1,510 @@
1
+ smalltalk.addPackage('Kernel-Methods', {});
2
+ smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel-Methods');
3
+ smalltalk.addMethod(
4
+ unescape('_source'),
5
+ smalltalk.method({
6
+ selector: unescape('source'),
7
+ fn: function (){
8
+ var self=this;
9
+ return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
10
+ return self;}
11
+ }),
12
+ smalltalk.CompiledMethod);
13
+
14
+ smalltalk.addMethod(
15
+ unescape('_source_'),
16
+ smalltalk.method({
17
+ selector: unescape('source%3A'),
18
+ fn: function (aString){
19
+ var self=this;
20
+ smalltalk.send(self, "_basicAt_put_", ["source", aString]);
21
+ return self;}
22
+ }),
23
+ smalltalk.CompiledMethod);
24
+
25
+ smalltalk.addMethod(
26
+ unescape('_category'),
27
+ smalltalk.method({
28
+ selector: unescape('category'),
29
+ fn: function (){
30
+ var self=this;
31
+ return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
32
+ return self;}
33
+ }),
34
+ smalltalk.CompiledMethod);
35
+
36
+ smalltalk.addMethod(
37
+ unescape('_category_'),
38
+ smalltalk.method({
39
+ selector: unescape('category%3A'),
40
+ fn: function (aString){
41
+ var self=this;
42
+ smalltalk.send(self, "_basicAt_put_", ["category", aString]);
43
+ return self;}
44
+ }),
45
+ smalltalk.CompiledMethod);
46
+
47
+ smalltalk.addMethod(
48
+ unescape('_selector'),
49
+ smalltalk.method({
50
+ selector: unescape('selector'),
51
+ fn: function (){
52
+ var self=this;
53
+ return smalltalk.send(self, "_basicAt_", ["selector"]);
54
+ return self;}
55
+ }),
56
+ smalltalk.CompiledMethod);
57
+
58
+ smalltalk.addMethod(
59
+ unescape('_selector_'),
60
+ smalltalk.method({
61
+ selector: unescape('selector%3A'),
62
+ fn: function (aString){
63
+ var self=this;
64
+ smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
65
+ return self;}
66
+ }),
67
+ smalltalk.CompiledMethod);
68
+
69
+ smalltalk.addMethod(
70
+ unescape('_fn'),
71
+ smalltalk.method({
72
+ selector: unescape('fn'),
73
+ fn: function (){
74
+ var self=this;
75
+ return smalltalk.send(self, "_basicAt_", ["fn"]);
76
+ return self;}
77
+ }),
78
+ smalltalk.CompiledMethod);
79
+
80
+ smalltalk.addMethod(
81
+ unescape('_fn_'),
82
+ smalltalk.method({
83
+ selector: unescape('fn%3A'),
84
+ fn: function (aBlock){
85
+ var self=this;
86
+ smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
87
+ return self;}
88
+ }),
89
+ smalltalk.CompiledMethod);
90
+
91
+ smalltalk.addMethod(
92
+ unescape('_messageSends'),
93
+ smalltalk.method({
94
+ selector: unescape('messageSends'),
95
+ fn: function (){
96
+ var self=this;
97
+ return smalltalk.send(self, "_basicAt_", ["messageSends"]);
98
+ return self;}
99
+ }),
100
+ smalltalk.CompiledMethod);
101
+
102
+ smalltalk.addMethod(
103
+ unescape('_methodClass'),
104
+ smalltalk.method({
105
+ selector: unescape('methodClass'),
106
+ fn: function (){
107
+ var self=this;
108
+ return smalltalk.send(self, "_basicAt_", ["methodClass"]);
109
+ return self;}
110
+ }),
111
+ smalltalk.CompiledMethod);
112
+
113
+ smalltalk.addMethod(
114
+ unescape('_referencedClasses'),
115
+ smalltalk.method({
116
+ selector: unescape('referencedClasses'),
117
+ fn: function (){
118
+ var self=this;
119
+ return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
120
+ return self;}
121
+ }),
122
+ smalltalk.CompiledMethod);
123
+
124
+ smalltalk.addMethod(
125
+ unescape('_arguments'),
126
+ smalltalk.method({
127
+ selector: unescape('arguments'),
128
+ fn: function (){
129
+ var self=this;
130
+ return self.args || [];
131
+ return self;}
132
+ }),
133
+ smalltalk.CompiledMethod);
134
+
135
+
136
+
137
+ smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel-Methods');
138
+ smalltalk.addMethod(
139
+ unescape('_compiledSource'),
140
+ smalltalk.method({
141
+ selector: unescape('compiledSource'),
142
+ fn: function (){
143
+ var self=this;
144
+ return self.toString();
145
+ return self;}
146
+ }),
147
+ smalltalk.BlockClosure);
148
+
149
+ smalltalk.addMethod(
150
+ unescape('_whileTrue_'),
151
+ smalltalk.method({
152
+ selector: unescape('whileTrue%3A'),
153
+ fn: function (aBlock){
154
+ var self=this;
155
+ while(self()) {aBlock()};
156
+ return self;}
157
+ }),
158
+ smalltalk.BlockClosure);
159
+
160
+ smalltalk.addMethod(
161
+ unescape('_whileFalse_'),
162
+ smalltalk.method({
163
+ selector: unescape('whileFalse%3A'),
164
+ fn: function (aBlock){
165
+ var self=this;
166
+ while(!self()) {aBlock()};
167
+ return self;}
168
+ }),
169
+ smalltalk.BlockClosure);
170
+
171
+ smalltalk.addMethod(
172
+ unescape('_value'),
173
+ smalltalk.method({
174
+ selector: unescape('value'),
175
+ fn: function (){
176
+ var self=this;
177
+ return self();;
178
+ return self;}
179
+ }),
180
+ smalltalk.BlockClosure);
181
+
182
+ smalltalk.addMethod(
183
+ unescape('_value_'),
184
+ smalltalk.method({
185
+ selector: unescape('value%3A'),
186
+ fn: function (anArg){
187
+ var self=this;
188
+ return self(anArg);;
189
+ return self;}
190
+ }),
191
+ smalltalk.BlockClosure);
192
+
193
+ smalltalk.addMethod(
194
+ unescape('_value_value_'),
195
+ smalltalk.method({
196
+ selector: unescape('value%3Avalue%3A'),
197
+ fn: function (firstArg, secondArg){
198
+ var self=this;
199
+ return self(firstArg, secondArg);;
200
+ return self;}
201
+ }),
202
+ smalltalk.BlockClosure);
203
+
204
+ smalltalk.addMethod(
205
+ unescape('_value_value_value_'),
206
+ smalltalk.method({
207
+ selector: unescape('value%3Avalue%3Avalue%3A'),
208
+ fn: function (firstArg, secondArg, thirdArg){
209
+ var self=this;
210
+ return self(firstArg, secondArg, thirdArg);;
211
+ return self;}
212
+ }),
213
+ smalltalk.BlockClosure);
214
+
215
+ smalltalk.addMethod(
216
+ unescape('_valueWithPossibleArguments_'),
217
+ smalltalk.method({
218
+ selector: unescape('valueWithPossibleArguments%3A'),
219
+ fn: function (aCollection){
220
+ var self=this;
221
+ return self.apply(null, aCollection);;
222
+ return self;}
223
+ }),
224
+ smalltalk.BlockClosure);
225
+
226
+ smalltalk.addMethod(
227
+ unescape('_on_do_'),
228
+ smalltalk.method({
229
+ selector: unescape('on%3Ado%3A'),
230
+ fn: function (anErrorClass, aBlock){
231
+ var self=this;
232
+ return smalltalk.send(self, "_try_catch_", [self, (function(error){return ((($receiver = smalltalk.send(error, "_isKindOf_", [anErrorClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value_", [error]);})() : (function(){return smalltalk.send(error, "_signal", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [error]);}), (function(){return smalltalk.send(error, "_signal", []);})]));})]);
233
+ return self;}
234
+ }),
235
+ smalltalk.BlockClosure);
236
+
237
+ smalltalk.addMethod(
238
+ unescape('_valueWithTimeout_'),
239
+ smalltalk.method({
240
+ selector: unescape('valueWithTimeout%3A'),
241
+ fn: function (aNumber){
242
+ var self=this;
243
+ return setTimeout(self, aNumber);
244
+ return self;}
245
+ }),
246
+ smalltalk.BlockClosure);
247
+
248
+ smalltalk.addMethod(
249
+ unescape('_valueWithInterval_'),
250
+ smalltalk.method({
251
+ selector: unescape('valueWithInterval%3A'),
252
+ fn: function (aNumber){
253
+ var self=this;
254
+ return setInterval(self, aNumber);
255
+ return self;}
256
+ }),
257
+ smalltalk.BlockClosure);
258
+
259
+ smalltalk.addMethod(
260
+ unescape('_whileFalse'),
261
+ smalltalk.method({
262
+ selector: unescape('whileFalse'),
263
+ fn: function (){
264
+ var self=this;
265
+ smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
266
+ return self;}
267
+ }),
268
+ smalltalk.BlockClosure);
269
+
270
+ smalltalk.addMethod(
271
+ unescape('_whileTrue'),
272
+ smalltalk.method({
273
+ selector: unescape('whileTrue'),
274
+ fn: function (){
275
+ var self=this;
276
+ smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
277
+ return self;}
278
+ }),
279
+ smalltalk.BlockClosure);
280
+
281
+ smalltalk.addMethod(
282
+ unescape('_new'),
283
+ smalltalk.method({
284
+ selector: unescape('new'),
285
+ fn: function (){
286
+ var self=this;
287
+ return new self();
288
+ return self;}
289
+ }),
290
+ smalltalk.BlockClosure);
291
+
292
+ smalltalk.addMethod(
293
+ unescape('_applyTo_arguments_'),
294
+ smalltalk.method({
295
+ selector: unescape('applyTo%3Aarguments%3A'),
296
+ fn: function (anObject, aCollection){
297
+ var self=this;
298
+ return self.apply(anObject, aCollection);
299
+ return self;}
300
+ }),
301
+ smalltalk.BlockClosure);
302
+
303
+ smalltalk.addMethod(
304
+ unescape('_timeToRun'),
305
+ smalltalk.method({
306
+ selector: unescape('timeToRun'),
307
+ fn: function (){
308
+ var self=this;
309
+ return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
310
+ return self;}
311
+ }),
312
+ smalltalk.BlockClosure);
313
+
314
+ smalltalk.addMethod(
315
+ unescape('_numArgs'),
316
+ smalltalk.method({
317
+ selector: unescape('numArgs'),
318
+ fn: function (){
319
+ var self=this;
320
+ return self.length;
321
+ return self;}
322
+ }),
323
+ smalltalk.BlockClosure);
324
+
325
+ smalltalk.addMethod(
326
+ unescape('_ensure_'),
327
+ smalltalk.method({
328
+ selector: unescape('ensure%3A'),
329
+ fn: function (aBlock){
330
+ var self=this;
331
+ var success=nil;
332
+ (success=false);
333
+ return smalltalk.send((function(){smalltalk.send(self, "_value", []);(success=true);return smalltalk.send(aBlock, "_value", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){((($receiver = success).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);})]));return smalltalk.send(ex, "_signal", []);})]);
334
+ return self;}
335
+ }),
336
+ smalltalk.BlockClosure);
337
+
338
+ smalltalk.addMethod(
339
+ unescape('_newValue_'),
340
+ smalltalk.method({
341
+ selector: unescape('newValue%3A'),
342
+ fn: function (anObject){
343
+ var self=this;
344
+ return new self(anObject);
345
+ return self;}
346
+ }),
347
+ smalltalk.BlockClosure);
348
+
349
+ smalltalk.addMethod(
350
+ unescape('_newValue_value_'),
351
+ smalltalk.method({
352
+ selector: unescape('newValue%3Avalue%3A'),
353
+ fn: function (anObject, anObject2){
354
+ var self=this;
355
+ return new self(anObject, anObject2);
356
+ return self;}
357
+ }),
358
+ smalltalk.BlockClosure);
359
+
360
+ smalltalk.addMethod(
361
+ unescape('_newValue_value_value_'),
362
+ smalltalk.method({
363
+ selector: unescape('newValue%3Avalue%3Avalue%3A'),
364
+ fn: function (anObject, anObject2, anObject3){
365
+ var self=this;
366
+ return new self(anObject, anObject2);
367
+ return self;}
368
+ }),
369
+ smalltalk.BlockClosure);
370
+
371
+
372
+
373
+ smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel-Methods');
374
+ smalltalk.addMethod(
375
+ unescape('_receiver'),
376
+ smalltalk.method({
377
+ selector: unescape('receiver'),
378
+ fn: function (){
379
+ var self=this;
380
+ return self.receiver;
381
+ return self;}
382
+ }),
383
+ smalltalk.MethodContext);
384
+
385
+ smalltalk.addMethod(
386
+ unescape('_selector'),
387
+ smalltalk.method({
388
+ selector: unescape('selector'),
389
+ fn: function (){
390
+ var self=this;
391
+ return smalltalk.convertSelector(self.selector);
392
+ return self;}
393
+ }),
394
+ smalltalk.MethodContext);
395
+
396
+ smalltalk.addMethod(
397
+ unescape('_home'),
398
+ smalltalk.method({
399
+ selector: unescape('home'),
400
+ fn: function (){
401
+ var self=this;
402
+ return self.homeContext;
403
+ return self;}
404
+ }),
405
+ smalltalk.MethodContext);
406
+
407
+ smalltalk.addMethod(
408
+ unescape('_temps'),
409
+ smalltalk.method({
410
+ selector: unescape('temps'),
411
+ fn: function (){
412
+ var self=this;
413
+ return self.temps;
414
+ return self;}
415
+ }),
416
+ smalltalk.MethodContext);
417
+
418
+ smalltalk.addMethod(
419
+ unescape('_printString'),
420
+ smalltalk.method({
421
+ selector: unescape('printString'),
422
+ fn: function (){
423
+ var self=this;
424
+ return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
425
+ return self;}
426
+ }),
427
+ smalltalk.MethodContext);
428
+
429
+ smalltalk.addMethod(
430
+ unescape('_asString'),
431
+ smalltalk.method({
432
+ selector: unescape('asString'),
433
+ fn: function (){
434
+ var self=this;
435
+ return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(self, "_selector", [])]);
436
+ return self;}
437
+ }),
438
+ smalltalk.MethodContext);
439
+
440
+
441
+
442
+ smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel-Methods');
443
+ smalltalk.addMethod(
444
+ unescape('_selector'),
445
+ smalltalk.method({
446
+ selector: unescape('selector'),
447
+ fn: function (){
448
+ var self=this;
449
+ return self['@selector'];
450
+ return self;}
451
+ }),
452
+ smalltalk.Message);
453
+
454
+ smalltalk.addMethod(
455
+ unescape('_selector_'),
456
+ smalltalk.method({
457
+ selector: unescape('selector%3A'),
458
+ fn: function (aString){
459
+ var self=this;
460
+ (self['@selector']=aString);
461
+ return self;}
462
+ }),
463
+ smalltalk.Message);
464
+
465
+ smalltalk.addMethod(
466
+ unescape('_arguments_'),
467
+ smalltalk.method({
468
+ selector: unescape('arguments%3A'),
469
+ fn: function (anArray){
470
+ var self=this;
471
+ (self['@arguments']=anArray);
472
+ return self;}
473
+ }),
474
+ smalltalk.Message);
475
+
476
+ smalltalk.addMethod(
477
+ unescape('_arguments'),
478
+ smalltalk.method({
479
+ selector: unescape('arguments'),
480
+ fn: function (){
481
+ var self=this;
482
+ return self['@arguments'];
483
+ return self;}
484
+ }),
485
+ smalltalk.Message);
486
+
487
+ smalltalk.addMethod(
488
+ unescape('_printString'),
489
+ smalltalk.method({
490
+ selector: unescape('printString'),
491
+ fn: function (){
492
+ var self=this;
493
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Object)]);smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);smalltalk.send($rec, "_nextPutAll_", [self['@selector']]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%29")]);})(aStream);})]);
494
+ return self;}
495
+ }),
496
+ smalltalk.Message);
497
+
498
+
499
+ smalltalk.addMethod(
500
+ unescape('_selector_arguments_'),
501
+ smalltalk.method({
502
+ selector: unescape('selector%3Aarguments%3A'),
503
+ fn: function (aString, anArray){
504
+ var self=this;
505
+ return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
506
+ return self;}
507
+ }),
508
+ smalltalk.Message.klass);
509
+
510
+