Skip to content

Commit dfc1bce

Browse files
author
Erwan Carriou
committed
work in progress for version 0.7.0
- rename test folder
1 parent 0ff217c commit dfc1bce

18 files changed

+161
-161
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ node_js:
44
before_script:
55
- npm install jasmine-node -g
66
script:
7-
- istanbul cover jasmine-node --captureExceptions spec/ && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
7+
- istanbul cover jasmine-node --captureExceptions test/ && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function (grunt) {
3838
files: [
3939
'src/*.js',
4040
'build/system/*.js',
41-
'spec/*.js'
41+
'test/*.js'
4242
],
4343
options: {
4444
jshintrc: true
@@ -81,8 +81,8 @@ module.exports = function (grunt) {
8181
},
8282
monoco: {
8383
specs: [
84-
"spec/module/**",
85-
"spec/monoco/**"
84+
"test/module/**",
85+
"test/monoco/**"
8686
]
8787
}
8888
},

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monoco",
3-
"version": "0.6.0",
3+
"version": "0.7.0",
44
"description": "A Model and a NoSQL Database for Components",
55
"license": "GPL-3.0",
66
"homepage": "https://github.com/monocojs/monoco.git",
@@ -26,7 +26,7 @@
2626
"doc",
2727
"example",
2828
"node_modules",
29-
"spec",
29+
"test",
3030
"src",
3131
"build/monoco.json",
3232
"Gruntfile.js",

build/monoco-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/monoco.js

Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/monoco.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monoco",
3-
"version": "0.6.0",
3+
"version": "0.7.0",
44
"description": "A Model and a NoSQL Database for Components",
55
"_id": "e89c617b6b15d24",
66
"schemas": {
@@ -778,173 +778,173 @@
778778
"action": "function main() { var systems = [], system = null, i = 0, length = 0; if (typeof document !== 'undefined') { systems = document.querySelectorAll('link[rel=system]'); length = systems.length; for (i = 0; i < length; i++) { system = systems[i]; if (system.getAttribute('async') === 'true') { this.require('monoco').load(system.href, true); } else { this.require('monoco').load(system.href, false); } } if (length === 0) { this.require('monoco').ready(); } }}",
779779
"core": true
780780
},
781-
"1a4f816ae5131c4": {
782-
"_id": "1a4f816ae5131c4",
781+
"1a353110ae1c178": {
782+
"_id": "1a353110ae1c178",
783783
"component": "Monoco",
784784
"state": "error",
785785
"action": "function error(data) { console.error('monoco: ' + data.message, data.error); }",
786786
"core": true
787787
},
788-
"15512147b21a02a": {
789-
"_id": "15512147b21a02a",
788+
"19b1e14e4f1c02f": {
789+
"_id": "19b1e14e4f1c02f",
790790
"component": "Monoco",
791791
"state": "find",
792792
"action": "function find(Class, query) { return $component.find(Class, query);}",
793793
"core": true,
794794
"useCoreAPI": true
795795
},
796-
"169e715e2f1d656": {
797-
"_id": "169e715e2f1d656",
796+
"1f0a41dfb915731": {
797+
"_id": "1f0a41dfb915731",
798798
"component": "Monoco",
799799
"state": "system",
800800
"action": "function system(name) { var System = null, system = {}, result = [], conf = {}; if (name) { conf.master = true; conf.name = name; System = this.require('MonocoSystem'); system = new System(conf); } else { result = this.find('MonocoSystem', {'master': true}); if (result.length) { system = result[0]; } } return system; }",
801801
"core": true
802802
},
803-
"12ad815f9b142ad": {
804-
"_id": "12ad815f9b142ad",
803+
"1def21b0011358a": {
804+
"_id": "1def21b0011358a",
805805
"component": "Monoco",
806806
"state": "warning",
807807
"action": "function warning(message) { console.warn('monoco: ' + message); }",
808808
"core": true
809809
},
810-
"15935192ac1600b": {
811-
"_id": "15935192ac1600b",
810+
"1c05d1bd2a1888c": {
811+
"_id": "1c05d1bd2a1888c",
812812
"component": "MonocoChannel",
813813
"state": "listen",
814814
"action": "function listen(event, action) { $channel.listen(event, action); }",
815815
"core": true,
816816
"useCoreAPI": true
817817
},
818-
"19a101ead71c76b": {
819-
"_id": "19a101ead71c76b",
818+
"1c5ca11d9c1b342": {
819+
"_id": "1c5ca11d9c1b342",
820820
"component": "MonocoChannel",
821821
"state": "send",
822822
"action": "function send(message) { return $channel.send(message); }",
823823
"core": true,
824824
"useCoreAPI": true
825825
},
826-
"17e0515a7f1a642": {
827-
"_id": "17e0515a7f1a642",
826+
"142431e25e1ea17": {
827+
"_id": "142431e25e1ea17",
828828
"component": "MonocoClassInfo",
829829
"state": "collection",
830830
"action": "function collection(name) { var result = {}; if (this.metamodel()[name] === 'collection') { result = this.model()[name]; } return result; }",
831831
"core": true
832832
},
833-
"1663d1d6781a7f9": {
834-
"_id": "1663d1d6781a7f9",
833+
"152d416f991cf11": {
834+
"_id": "152d416f991cf11",
835835
"component": "MonocoClassInfo",
836836
"state": "collections",
837837
"action": "function collections() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'collection') { result.push(item); } } return result; }",
838838
"core": true
839839
},
840-
"1f02516fda11a8f": {
841-
"_id": "1f02516fda11a8f",
840+
"14b8e13c8a14b5b": {
841+
"_id": "14b8e13c8a14b5b",
842842
"component": "MonocoClassInfo",
843843
"state": "event",
844844
"action": "function event(name) { var result = {}; if (this.metamodel()[name] === 'event') { result = this.model()[name]; } return result; }",
845845
"core": true
846846
},
847-
"1d85f15c66188fa": {
848-
"_id": "1d85f15c66188fa",
847+
"1db5c1b6de11947": {
848+
"_id": "1db5c1b6de11947",
849849
"component": "MonocoClassInfo",
850850
"state": "events",
851851
"action": "function events() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'event') { result.push(item); } } return result; }",
852852
"core": true
853853
},
854-
"1567d1968e185eb": {
855-
"_id": "1567d1968e185eb",
854+
"177e41b07010bdd": {
855+
"_id": "177e41b07010bdd",
856856
"component": "MonocoClassInfo",
857857
"state": "method",
858858
"action": "function method(name) { var result = {}; if (this.metamodel()[name] === 'method') { result = this.model()[name]; } return result; }",
859859
"core": true
860860
},
861-
"1150517f3c1df98": {
862-
"_id": "1150517f3c1df98",
861+
"1faef160dd144b4": {
862+
"_id": "1faef160dd144b4",
863863
"component": "MonocoClassInfo",
864864
"state": "methods",
865865
"action": "function methods() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'method') { result.push(item); } } return result; }",
866866
"core": true
867867
},
868-
"1041117fc912b4b": {
869-
"_id": "1041117fc912b4b",
868+
"10f361d09e1e21b": {
869+
"_id": "10f361d09e1e21b",
870870
"component": "MonocoClassInfo",
871871
"state": "properties",
872872
"action": "function properties() { var keys = Object.keys(this.metamodel()), item = '', result = [], i = 0, length = 0; length = keys.length; for (i = 0; i < length; i++) { item = keys[i]; if (this.metamodel()[item] === 'property') { result.push(item); } } return result; }",
873873
"core": true
874874
},
875-
"1580c1bc9e1626a": {
876-
"_id": "1580c1bc9e1626a",
875+
"163651eb5017506": {
876+
"_id": "163651eb5017506",
877877
"component": "MonocoClassInfo",
878878
"state": "property",
879879
"action": "function property(name) { var result = {}; if (this.metamodel()[name] === 'property') { result = this.model()[name]; } return result; }",
880880
"core": true
881881
},
882-
"1e4c114f9119cb9": {
883-
"_id": "1e4c114f9119cb9",
882+
"142e21264312709": {
883+
"_id": "142e21264312709",
884884
"component": "MonocoComponent",
885885
"state": "destroy",
886886
"action": "function destroy() { $component.destroy(this.id()); }",
887887
"core": true,
888888
"useCoreAPI": true
889889
},
890-
"1c7481a5fa1714a": {
891-
"_id": "1c7481a5fa1714a",
890+
"154141727613027": {
891+
"_id": "154141727613027",
892892
"component": "MonocoComponent",
893893
"state": "off",
894894
"action": "function off(state, behaviorId) { var args = [], i = 0, length = 0; length = arguments.length; for (i = 0; i < length - 7; i++) { args.push(arguments[i]); } if ($workflow.checkParams({\"component\": this, \"methodName\": \"off\", \"args\": args})) { if ($metamodel.isValidState(state, this.constructor.name)) {$behavior.remove({\"behaviorId\": behaviorId, \"componentId\": this.id(), \"state\": state}); } else { $helper.getMonoco().warning({ \"message\":\"invoke 'off' method of component '\" + this.id() + \"' with an invalid state '\" + state + \"'\"}); } } }",
895895
"core": true,
896896
"useCoreAPI": true
897897
},
898-
"1a1511b6471eee1": {
899-
"_id": "1a1511b6471eee1",
898+
"12fb11367e1a50a": {
899+
"_id": "12fb11367e1a50a",
900900
"component": "MonocoComponent",
901901
"state": "require",
902902
"action": "function require(id) { return $component.get(id); }",
903903
"core": true,
904904
"useCoreAPI": true
905905
},
906-
"11d1318bce12329": {
907-
"_id": "11d1318bce12329",
906+
"15dfb1671f1c5f3": {
907+
"_id": "15dfb1671f1c5f3",
908908
"component": "MonocoDatabase",
909909
"state": "subsystem",
910910
"action": "function subsystem(params) { return $db.subsystem(params); }",
911911
"core": true,
912912
"useCoreAPI": true
913913
},
914-
"1d8841afd11d18f": {
915-
"_id": "1d8841afd11d18f",
914+
"182d314e241bc1e": {
915+
"_id": "182d314e241bc1e",
916916
"component": "MonocoDatabase",
917917
"state": "system",
918918
"action": "function system(system) { return $db.system(system); }",
919919
"core": true,
920920
"useCoreAPI": true
921921
},
922-
"1413415b2210810": {
923-
"_id": "1413415b2210810",
922+
"1af271633a1dfd0": {
923+
"_id": "1af271633a1dfd0",
924924
"component": "MonocoMetamodel",
925925
"state": "create",
926926
"action": "function create() { $metamodel.create(); }",
927927
"core": true,
928928
"useCoreAPI": true
929929
},
930-
"197791f61811153": {
931-
"_id": "197791f61811153",
930+
"1997a13ba1169cc": {
931+
"_id": "1997a13ba1169cc",
932932
"component": "MonocoMetamodel",
933933
"state": "schema",
934934
"action": "function schema(schema) { $metamodel.schema(schema); }",
935935
"core": true,
936936
"useCoreAPI": true
937937
},
938-
"1da1115c45155f2": {
939-
"_id": "1da1115c45155f2",
938+
"1baec164eb19e29": {
939+
"_id": "1baec164eb19e29",
940940
"component": "MonocoMetamodel",
941941
"state": "type",
942942
"action": "function type(type) { $metamodel.type(type); }",
943943
"core": true,
944944
"useCoreAPI": true
945945
},
946-
"1c86c1fce21b783": {
947-
"_id": "1c86c1fce21b783",
946+
"168ac1894514354": {
947+
"_id": "168ac1894514354",
948948
"component": "MonocoSystem",
949949
"state": "sync",
950950
"action": "function sync() { var dump = $db.dump(); this.schemas(dump.schemas); this.types(dump.types); this.behaviors(dump.behaviors); this.components(dump.components); }",
@@ -956,7 +956,7 @@
956956
"Monoco": {
957957
"monoco": {
958958
"_id": "monoco",
959-
"version": "0.6.0"
959+
"version": "0.7.0"
960960
}
961961
},
962962
"MonocoChannel": {

0 commit comments

Comments
 (0)