Browse Source

Shape into Axxord, step 2.

Herbert Vojčík 7 years ago
parent
commit
ef91544d33
9 changed files with 37 additions and 33 deletions
  1. 2 2
      Gruntfile.js
  2. 6 1
      README.md
  3. 4 5
      bower.json
  4. 1 1
      deploy.js
  5. 2 2
      index.html
  6. 1 1
      local.amd.json
  7. 7 7
      package.json
  8. 10 10
      src/Axxord.js
  9. 4 4
      src/Axxord.st

+ 2 - 2
Gruntfile.js

@@ -41,10 +41,10 @@ module.exports = function (grunt) {
             },
             all: {
                 src: [
-                    'src/Lyst.st' // list all sources in dependency order
+                    'src/Axxord.st' // list all sources in dependency order
                     // list all tests in dependency order
                 ],
-                amd_namespace: 'lyst',
+                amd_namespace: 'axxord',
                 libraries: ['amber_core/SUnit', 'amber/web/Web']
             }
         },

+ 6 - 1
README.md

@@ -1,5 +1,10 @@
-Lyst
+Axxord
 ====
+
+Small blackboard system for Amber Smalltalk.
+
+Legacy Lyst README follows:
+
 Get / set hierarchical data using array-like indexes.
 
 The Lyst index (aka yndex) an array of elements: either strings, numbers

+ 4 - 5
bower.json

@@ -1,6 +1,6 @@
 {
-  "name": "lyst",
-  "description": "Access hierarchical data with array-indexes. For Amber Smalltalk.",
+  "name": "axxord",
+  "description": "Blackboard system",
   "ignore": [
     "**/.*",
     "node_modules",
@@ -16,12 +16,11 @@
       "email": "herby@mailbox.sk"
     }
   ],
-  "homepage": "https://lolg.it/herby/lyst",
+  "homepage": "https://lolg.it/herby/axxord",
   "keywords": [
     "amber",
     "smalltalk",
-    "data",
-    "hierarchy"
+    "blackboard"
   ],
   "license": [
     "MIT"

+ 1 - 1
deploy.js

@@ -1,7 +1,7 @@
 define([
     'amber/deploy',
     // --- packages to be deployed begin here ---
-    "lyst/Lyst"
+    "axxord/Axxord"
     // --- packages to be deployed end here ---
 ], function (amber) {
     return amber;

+ 2 - 2
index.html

@@ -2,7 +2,7 @@
 <html>
 
 <head>
-    <title>Lyst</title>
+    <title>Axxord</title>
     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
     <meta name="author" content="Herbert Vojčík"/>
     <script type='text/javascript' src='the.js'></script>
@@ -14,7 +14,7 @@
         amberPromise.then(function (amber) {
             amber.initialize({
                 //used for all new packages in IDE
-                'transport.defaultAmdNamespace': "lyst"
+                'transport.defaultAmdNamespace': "axxord"
             }).then(function () {
                 require(["amber-ide-starter-dialog"], function (dlg) {
                     dlg.start();

+ 1 - 1
local.amd.json

@@ -1,5 +1,5 @@
 {
     "paths": {
-        "lyst": "src"
+        "axxord": "src"
     }
 }

+ 7 - 7
package.json

@@ -1,9 +1,9 @@
 {
-  "name": "lyst",
-  "title": "Lyst",
+  "name": "axxord",
+  "title": "Axxord",
   "description": "Access hierarchical data with array-indexes. For Amber Smalltalk.",
-  "version": "0.2.0",
-  "homepage": "https://lolg.it/herby/lyst",
+  "version": "0.1.0",
+  "homepage": "https://lolg.it/herby/axxord",
   "author": {
     "name": "Herbert Vojčík",
     "email": "herby@mailbox.sk",
@@ -11,15 +11,15 @@
   },
   "repository": {
     "type": "git",
-    "url": "https://lolg.it/herby/lyst.git"
+    "url": "https://lolg.it/herby/axxord.git"
   },
   "bugs": {
-    "url": "https://lolg.it/herby/lyst/issues"
+    "url": "https://lolg.it/herby/axxord/issues"
   },
   "licenses": [
     {
       "type": "MIT",
-      "url": "https://lolg.it/herby/lyst/blob/master/LICENSE-MIT"
+      "url": "https://lolg.it/herby/axxord/blob/master/LICENSE-MIT"
     }
   ],
   "engines": {

+ 10 - 10
src/Lyst.js → src/Axxord.js

@@ -1164,7 +1164,7 @@ var penultimate;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-penultimate=$self._atLyst_ifAbsent_($recv(aCollection)._allButLast(),aBlock);
+penultimate=$self._atAxes_ifAbsent_($recv(aCollection)._allButLast(),aBlock);
 return $recv($recv(aCollection)._last())._asAxisIn_ifAbsent_put_(penultimate,aBlock,value);
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"atAxes:ifAbsent:put:",{aCollection:aCollection,aBlock:aBlock,value:value,penultimate:penultimate},$globals.Object)});
@@ -1172,10 +1172,10 @@ return $recv($recv(aCollection)._last())._asAxisIn_ifAbsent_put_(penultimate,aBl
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aCollection", "aBlock", "value"],
-source: "atAxes: aCollection ifAbsent: aBlock put: value\x0a\x09| penultimate |\x0a\x09penultimate := self atLyst: aCollection allButLast ifAbsent: aBlock.\x0a\x09^ aCollection last asAxisIn: penultimate ifAbsent: aBlock put: value",
+source: "atAxes: aCollection ifAbsent: aBlock put: value\x0a\x09| penultimate |\x0a\x09penultimate := self atAxes: aCollection allButLast ifAbsent: aBlock.\x0a\x09^ aCollection last asAxisIn: penultimate ifAbsent: aBlock put: value",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: ["atLyst:ifAbsent:", "allButLast", "asAxisIn:ifAbsent:put:", "last"]
+messageSends: ["atAxes:ifAbsent:", "allButLast", "asAxisIn:ifAbsent:put:", "last"]
 }),
 $globals.Object);
 
@@ -1191,7 +1191,7 @@ return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $early={};
 try {
-value=$self._atLyst_ifAbsent_(aCollection,(function(){
+value=$self._atAxes_ifAbsent_(aCollection,(function(){
 throw $early=[self];
 
 }));
@@ -1204,10 +1204,10 @@ catch(e) {if(e===$early)return e[0]; throw e}
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aCollection", "aBlock"],
-source: "axes: aCollection consume: aBlock\x0a\x09| value |\x0a\x09value := self atLyst: aCollection ifAbsent: [ ^self ].\x0a\x09^ aBlock value: value",
+source: "axes: aCollection consume: aBlock\x0a\x09| value |\x0a\x09value := self atAxes: aCollection ifAbsent: [ ^self ].\x0a\x09^ aBlock value: value",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: ["atLyst:ifAbsent:", "value:"]
+messageSends: ["atAxes:ifAbsent:", "value:"]
 }),
 $globals.Object);
 
@@ -1225,12 +1225,12 @@ var $1,$receiver;
 var $early={};
 try {
 $recv(aCollection)._last();
-value=$self._atLyst_ifAbsent_(aCollection,(function(){
+value=$self._atAxes_ifAbsent_(aCollection,(function(){
 throw $early=[self];
 
 }));
 value=$recv(aBlock)._value_(value);
-value=$self._atLyst_ifAbsent_put_(aCollection,(function(){
+value=$self._atAxes_ifAbsent_put_(aCollection,(function(){
 throw $early=[self];
 
 }),value);
@@ -1251,10 +1251,10 @@ catch(e) {if(e===$early)return e[0]; throw e}
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aCollection", "aBlock"],
-source: "axes: aCollection transform: aBlock\x0a\x09| value |\x0a\x09aCollection last. \x22raise if empty\x22\x0a\x09value := self atLyst: aCollection ifAbsent: [ ^self ].\x0a\x09value := aBlock value: value.\x0a\x09value := self atLyst: aCollection ifAbsent: [ ^self ] put: value.\x0a\x09self registeredAxon ifNotNil: [:axon | axon changed: aCollection]",
+source: "axes: aCollection transform: aBlock\x0a\x09| value |\x0a\x09aCollection last. \x22raise if empty\x22\x0a\x09value := self atAxes: aCollection ifAbsent: [ ^self ].\x0a\x09value := aBlock value: value.\x0a\x09value := self atAxes: aCollection ifAbsent: [ ^self ] put: value.\x0a\x09self registeredAxon ifNotNil: [:axon | axon changed: aCollection]",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: ["last", "atLyst:ifAbsent:", "value:", "atLyst:ifAbsent:put:", "ifNotNil:", "registeredAxon", "changed:"]
+messageSends: ["last", "atAxes:ifAbsent:", "value:", "atAxes:ifAbsent:put:", "ifNotNil:", "registeredAxon", "changed:"]
 }),
 $globals.Object);
 

+ 4 - 4
src/Lyst.st → src/Axxord.st

@@ -263,22 +263,22 @@ atAxes: aCollection ifAbsent: aBlock
 
 atAxes: aCollection ifAbsent: aBlock put: value
 	| penultimate |
-	penultimate := self atLyst: aCollection allButLast ifAbsent: aBlock.
+	penultimate := self atAxes: aCollection allButLast ifAbsent: aBlock.
 	^ aCollection last asAxisIn: penultimate ifAbsent: aBlock put: value
 !
 
 axes: aCollection consume: aBlock
 	| value |
-	value := self atLyst: aCollection ifAbsent: [ ^self ].
+	value := self atAxes: aCollection ifAbsent: [ ^self ].
 	^ aBlock value: value
 !
 
 axes: aCollection transform: aBlock
 	| value |
 	aCollection last. "raise if empty"
-	value := self atLyst: aCollection ifAbsent: [ ^self ].
+	value := self atAxes: aCollection ifAbsent: [ ^self ].
 	value := aBlock value: value.
-	value := self atLyst: aCollection ifAbsent: [ ^self ] put: value.
+	value := self atAxes: aCollection ifAbsent: [ ^self ] put: value.
 	self registeredAxon ifNotNil: [:axon | axon changed: aCollection]
 !