@ambers/contrib-legacy
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -5,3 +5,3 @@ { | ||
"description": "Legacy IDE and a few other old non-core packages", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"homepage": "https://lolg.it/amber/amber-contrib-legacy", | ||
@@ -26,4 +26,4 @@ "repository": { | ||
"reset": "npm run clean && npm run init", | ||
"clean": "(rm -rf bower_components || rd /s/q bower_components) && (rm -rf node_modules || rd /s/q node_modules)", | ||
"init": "npm install && bower install && grunt default devel", | ||
"clean": "rm -rf node_modules || rd /s/q node_modules", | ||
"init": "npm install && grunt default devel", | ||
"test": "grunt test" | ||
@@ -33,3 +33,3 @@ }, | ||
"@ambers/contrib-web": ">=0.6.0", | ||
"@ambers/lang": ">0.22.6", | ||
"@ambers/lang": ">0.23.0", | ||
"codemirror": ">=5.39.2 <5.43.0", | ||
@@ -36,0 +36,0 @@ "jquery-ui-dist": ">=1.9.2", |
@@ -23,3 +23,3 @@ define(["amber/boot", "require", "amber/core/Kernel-Objects"], function($boot,requirejs){"use strict"; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"main",{result:result},$globals.Benchfib.a$cls)}); | ||
}, function($ctx1) {$ctx1.fill(self,"main",{result:result})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -32,2 +32,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["tinyBenchmarks", "log:", ","] | ||
@@ -66,3 +67,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"benchFib",{},$globals.Number)}); | ||
}, function($ctx1) {$ctx1.fill(self,"benchFib",{})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -75,2 +76,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["ifTrue:ifFalse:", "<", "+", "benchFib", "-"] | ||
@@ -159,3 +161,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"benchmark",{size:size,flags:flags,prime:prime,k:k,count:count},$globals.Number)}); | ||
}, function($ctx1) {$ctx1.fill(self,"benchmark",{size:size,flags:flags,prime:prime,k:k,count:count})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -168,2 +170,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["to:do:", "new", "timesRepeat:", "add:", "ifTrue:", "at:", "+", "whileTrue:", "<=", "at:put:"] | ||
@@ -188,3 +191,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"jsbenchFib",{},$globals.Number)}); | ||
}, function($ctx1) {$ctx1.fill(self,"jsbenchFib",{})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -197,2 +200,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [["inlineJS:", ["if (this < 2) {\x0areturn 1;\x0a} else {\x0areturn (this-1)._jsbenchFib() + (this-2)._jsbenchFib() + 1;}"]]], | ||
messageSends: [] | ||
@@ -235,3 +239,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"jsbenchmark",{},$globals.Number)}); | ||
}, function($ctx1) {$ctx1.fill(self,"jsbenchmark",{})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -244,2 +248,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [["inlineJS:", ["\x0avar size = 8190;\x0avar count;\x0afor (var z=0;z<this;z++) {\x0a\x09count = 0;\x0a\x09var flags = new Array();\x0a\x09for (var p=0; p<size; p++) {\x0a\x09flags[p] = true;\x0a\x09}\x0a\x09for (var i=1;i<=size;i++) {\x0a\x09\x09if (flags[i-1]) {\x0a\x09\x09\x09var prime = i+1;\x0a\x09\x09\x09var k = i + prime;\x0a\x09\x09\x09while (k <= size) {\x0a\x09\x09\x09\x09flags[k-1] = false;\x0a\x09\x09\x09\x09k = k + prime;\x0a\x09\x09\x09}\x0a\x09\x09\x09count = count + 1;\x0a\x09\x09}\x0a\x09}\x0a}\x0areturn count"]]], | ||
messageSends: [] | ||
@@ -356,3 +361,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"jstinyBenchmarks",{t1:t1,t2:t2,r:r,n1:n1,n2:n2},$globals.Number)}); | ||
}, function($ctx1) {$ctx1.fill(self,"jstinyBenchmarks",{t1:t1,t2:t2,r:r,n1:n1,n2:n2})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -365,2 +370,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["whileTrue:", "millisecondsToRun:", "jsbenchmark", "<", "*", "jsbenchFib", "+", ",", "printString", "/"] | ||
@@ -477,3 +483,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"tinyBenchmarks",{t1:t1,t2:t2,r:r,n1:n1,n2:n2},$globals.Number)}); | ||
}, function($ctx1) {$ctx1.fill(self,"tinyBenchmarks",{t1:t1,t2:t2,r:r,n1:n1,n2:n2})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -486,2 +492,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["whileTrue:", "millisecondsToRun:", "benchmark", "<", "*", "benchFib", "+", ",", "printString", "/"] | ||
@@ -488,0 +495,0 @@ }), |
@@ -32,3 +32,3 @@ define(["amber/boot", "require", "amber/web/Web"], function($boot,requirejs){"use strict"; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"decrease",{},$globals.Counter)}); | ||
}, function($ctx1) {$ctx1.fill(self,"decrease",{})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -41,2 +41,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["-", "contents:", "with:", "asString"] | ||
@@ -67,3 +68,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"increase",{},$globals.Counter)}); | ||
}, function($ctx1) {$ctx1.fill(self,"increase",{})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -76,2 +77,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["+", "contents:", "with:", "asString"] | ||
@@ -101,3 +103,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"initialize",{},$globals.Counter)}); | ||
}, function($ctx1) {$ctx1.fill(self,"initialize",{})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -110,2 +112,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["initialize"] | ||
@@ -124,3 +127,3 @@ }), | ||
//>>excludeEnd("ctx"); | ||
var $1,$2,$3,$4; | ||
var $1,$2,$3; | ||
$1=$recv(html)._h1(); | ||
@@ -140,3 +143,3 @@ $recv($1)._with_($recv($self.count)._asString()); | ||
//>>excludeEnd("ctx"); | ||
$3=$recv($2)._onClick_((function(){ | ||
$recv($2)._onClick_((function(){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -153,5 +156,5 @@ return $core.withContext(function($ctx2) { | ||
//>>excludeEnd("ctx"); | ||
$4=$recv(html)._button(); | ||
$recv($4)._with_("--"); | ||
$recv($4)._onClick_((function(){ | ||
$3=$recv(html)._button(); | ||
$recv($3)._with_("--"); | ||
$recv($3)._onClick_((function(){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -167,3 +170,3 @@ return $core.withContext(function($ctx2) { | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},$globals.Counter)}); | ||
}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -176,2 +179,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["with:", "h1", "asString", "yourself", "button", "onClick:", "increase", "decrease"] | ||
@@ -194,3 +198,3 @@ }), | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
}, function($ctx1) {$ctx1.fill(self,"tryExample",{},$globals.Counter.a$cls)}); | ||
}, function($ctx1) {$ctx1.fill(self,"tryExample",{})}); | ||
//>>excludeEnd("ctx"); | ||
@@ -203,2 +207,3 @@ }, | ||
//>>excludeEnd("ide"); | ||
pragmas: [], | ||
messageSends: ["appendToJQuery:", "new", "asJQuery"] | ||
@@ -205,0 +210,0 @@ }), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
11541
461285
Updated@ambers/lang@>0.23.0