ende 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/component.json +1 -1
- data/lib/assets/javascripts/aura/extensions/devise.js.coffee +7 -4
- data/lib/assets/javascripts/aura/extensions/routes.js.coffee +16 -8
- data/lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee +10 -5
- data/lib/assets/javascripts/widgets/authenticator/main.js.coffee +4 -8
- data/lib/assets/javascripts/widgets/authenticator/presenter.js.coffee +4 -4
- data/lib/assets/javascripts/widgets/authenticator/states/default.html +1 -1
- data/lib/assets/javascripts/widgets/tray/main.js.coffee +26 -0
- data/lib/ende/version.rb +1 -1
- data/lib/tasks/component.thor +1 -1
- data/vendor/assets/javascripts/ende/build.js +10008 -8202
- data/vendor/components/KapIT-observe-utils/component.json +16 -0
- data/vendor/components/KapIT-observe-utils/lib/observe-utils.js +780 -0
- data/vendor/components/chaijs-assertion-error/component.json +18 -0
- data/vendor/components/chaijs-assertion-error/index.js +110 -0
- data/vendor/components/chaijs-chai/component.json +47 -0
- data/vendor/components/chaijs-chai/index.js +1 -0
- data/vendor/components/chaijs-chai/lib/chai/assertion.js +130 -0
- data/vendor/components/chaijs-chai/lib/chai/core/assertions.js +1270 -0
- data/vendor/components/chaijs-chai/lib/chai/interface/assert.js +1080 -0
- data/vendor/components/chaijs-chai/lib/chai/interface/expect.js +12 -0
- data/vendor/components/chaijs-chai/lib/chai/interface/should.js +76 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +94 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/addMethod.js +37 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/addProperty.js +40 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/flag.js +32 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/getActual.js +19 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +25 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/getMessage.js +49 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/getName.js +20 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/getPathValue.js +102 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/getProperties.js +35 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/index.js +108 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/objDisplay.js +48 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +51 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +54 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/test.js +26 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/transferFlags.js +44 -0
- data/vendor/components/chaijs-chai/lib/chai/utils/type.js +45 -0
- data/vendor/components/chaijs-chai/lib/chai.js +80 -0
- data/vendor/components/chaijs-deep-eql/component.json +18 -0
- data/vendor/components/chaijs-deep-eql/lib/eql.js +257 -0
- data/vendor/components/chaijs-type-detect/component.json +16 -0
- data/vendor/components/chaijs-type-detect/lib/type.js +142 -0
- data/vendor/components/component-bind/component.json +14 -0
- data/vendor/components/component-bind/index.js +24 -0
- data/vendor/components/component-delegate/component.json +19 -0
- data/vendor/components/component-delegate/index.js +42 -0
- data/vendor/components/component-event/component.json +13 -0
- data/vendor/components/component-event/index.js +40 -0
- data/vendor/components/component-jquery/component.json +14 -0
- data/vendor/components/component-jquery/index.js +9601 -0
- data/vendor/components/component-link-delegate/component.json +23 -0
- data/vendor/components/component-link-delegate/index.js +60 -0
- data/vendor/components/component-matches-selector/component.json +20 -0
- data/vendor/components/component-matches-selector/index.js +45 -0
- data/vendor/components/component-query/component.json +21 -0
- data/vendor/components/component-query/index.js +21 -0
- data/vendor/components/component-type/component.json +18 -0
- data/vendor/components/component-type/index.js +32 -0
- data/vendor/components/component-url/component.json +17 -0
- data/vendor/components/component-url/index.js +63 -0
- data/vendor/components/components-modernizr/component.json +18 -0
- data/vendor/components/components-modernizr/modernizr.js +1393 -0
- data/vendor/components/discore-closest/component.json +14 -0
- data/vendor/components/discore-closest/index.js +18 -0
- data/vendor/components/indefinido-advisable/component.json +21 -0
- data/vendor/components/indefinido-advisable/index.js +1 -0
- data/vendor/components/indefinido-advisable/lib/advisable.js +60 -0
- data/vendor/components/indefinido-indemma/component.json +40 -0
- data/vendor/components/indefinido-indemma/index.js +1 -0
- data/vendor/components/indefinido-indemma/lib/extensions/rivets.js +23 -0
- data/vendor/components/indefinido-indemma/lib/record/associable.js +217 -0
- data/vendor/components/indefinido-indemma/lib/record/maid.js +24 -0
- data/vendor/components/indefinido-indemma/lib/record/resource.js +104 -0
- data/vendor/components/indefinido-indemma/lib/record/rest.js +36 -0
- data/vendor/components/indefinido-indemma/lib/record/restfulable.js +326 -0
- data/vendor/components/indefinido-indemma/lib/record/scopable.js +279 -0
- data/vendor/components/indefinido-indemma/lib/record/translationable.js +19 -0
- data/vendor/components/indefinido-indemma/lib/record/validatable.js +216 -0
- data/vendor/components/indefinido-indemma/lib/record/validations/associated.js +30 -0
- data/vendor/components/indefinido-indemma/lib/record/validations/confirmation.js +19 -0
- data/vendor/components/indefinido-indemma/lib/record/validations/cpf.js +60 -0
- data/vendor/components/indefinido-indemma/lib/record/validations/presence.js +19 -0
- data/vendor/components/indefinido-indemma/lib/record/validations/remote.js +71 -0
- data/vendor/components/indefinido-indemma/lib/record.js +167 -0
- data/vendor/components/indefinido-indemma/vendor/sinon.js +4290 -0
- data/vendor/components/indefinido-indemma/vendor/stampit.js +392 -0
- data/vendor/components/indefinido-observable/component.json +25 -0
- data/vendor/components/indefinido-observable/components/cjohansen-sinon/sinon.js +4290 -0
- data/vendor/components/indefinido-observable/index.js +1 -0
- data/vendor/components/indefinido-observable/lib/adapters/rivets.js +26 -0
- data/vendor/components/indefinido-observable/lib/observable.js +320 -0
- data/vendor/components/indefinido-observable/vendor/shims/accessors-legacy.js +92 -0
- data/vendor/components/indefinido-observable/vendor/shims/accessors.js +173 -0
- data/vendor/components/indefinido-observable/vendor/shims/array.indexOf.js +8 -0
- data/vendor/components/indefinido-observable/vendor/shims/object.create.js +77 -0
- data/vendor/components/mikeric-rivets/component.json +15 -0
- data/vendor/components/mikeric-rivets/dist/rivets.js +1239 -0
- data/vendor/components/paulmillr-es6-shim/component.json +17 -0
- data/vendor/components/paulmillr-es6-shim/es6-shim.js +985 -0
- data/vendor/components/pluma-assimilate/component.json +25 -0
- data/vendor/components/pluma-assimilate/dist/assimilate.js +87 -0
- data/vendor/components/segmentio-extend/component.json +13 -0
- data/vendor/components/segmentio-extend/index.js +15 -0
- metadata +98 -2
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"name": "assertion-error",
|
3
|
+
"repo": "chaijs/assertion-error",
|
4
|
+
"version": "1.0.0",
|
5
|
+
"description": "Error constructor for test and validation frameworks that implements standardized AssertionError specification.",
|
6
|
+
"license": "MIT",
|
7
|
+
"keywords": [
|
8
|
+
"test",
|
9
|
+
"assertion",
|
10
|
+
"assertion-error"
|
11
|
+
],
|
12
|
+
"main": "index.js",
|
13
|
+
"scripts": [
|
14
|
+
"index.js"
|
15
|
+
],
|
16
|
+
"dependencies": {},
|
17
|
+
"development": {}
|
18
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
/*!
|
2
|
+
* assertion-error
|
3
|
+
* Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
|
4
|
+
* MIT Licensed
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*!
|
8
|
+
* Return a function that will copy properties from
|
9
|
+
* one object to another excluding any originally
|
10
|
+
* listed. Returned function will create a new `{}`.
|
11
|
+
*
|
12
|
+
* @param {String} excluded properties ...
|
13
|
+
* @return {Function}
|
14
|
+
*/
|
15
|
+
|
16
|
+
function exclude () {
|
17
|
+
var excludes = [].slice.call(arguments);
|
18
|
+
|
19
|
+
function excludeProps (res, obj) {
|
20
|
+
Object.keys(obj).forEach(function (key) {
|
21
|
+
if (!~excludes.indexOf(key)) res[key] = obj[key];
|
22
|
+
});
|
23
|
+
}
|
24
|
+
|
25
|
+
return function extendExclude () {
|
26
|
+
var args = [].slice.call(arguments)
|
27
|
+
, i = 0
|
28
|
+
, res = {};
|
29
|
+
|
30
|
+
for (; i < args.length; i++) {
|
31
|
+
excludeProps(res, args[i]);
|
32
|
+
}
|
33
|
+
|
34
|
+
return res;
|
35
|
+
};
|
36
|
+
};
|
37
|
+
|
38
|
+
/*!
|
39
|
+
* Primary Exports
|
40
|
+
*/
|
41
|
+
|
42
|
+
module.exports = AssertionError;
|
43
|
+
|
44
|
+
/**
|
45
|
+
* ### AssertionError
|
46
|
+
*
|
47
|
+
* An extension of the JavaScript `Error` constructor for
|
48
|
+
* assertion and validation scenarios.
|
49
|
+
*
|
50
|
+
* @param {String} message
|
51
|
+
* @param {Object} properties to include (optional)
|
52
|
+
* @param {callee} start stack function (optional)
|
53
|
+
*/
|
54
|
+
|
55
|
+
function AssertionError (message, _props, ssf) {
|
56
|
+
var extend = exclude('name', 'message', 'stack', 'constructor', 'toJSON')
|
57
|
+
, props = extend(_props || {});
|
58
|
+
|
59
|
+
// default values
|
60
|
+
this.message = message || 'Unspecified AssertionError';
|
61
|
+
this.showDiff = false;
|
62
|
+
|
63
|
+
// copy from properties
|
64
|
+
for (var key in props) {
|
65
|
+
this[key] = props[key];
|
66
|
+
}
|
67
|
+
|
68
|
+
// capture stack trace
|
69
|
+
ssf = ssf || arguments.callee;
|
70
|
+
if (ssf && Error.captureStackTrace) {
|
71
|
+
Error.captureStackTrace(this, ssf);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
/*!
|
76
|
+
* Inherit from Error.prototype
|
77
|
+
*/
|
78
|
+
|
79
|
+
AssertionError.prototype = Object.create(Error.prototype);
|
80
|
+
|
81
|
+
/*!
|
82
|
+
* Statically set name
|
83
|
+
*/
|
84
|
+
|
85
|
+
AssertionError.prototype.name = 'AssertionError';
|
86
|
+
|
87
|
+
/*!
|
88
|
+
* Ensure correct constructor
|
89
|
+
*/
|
90
|
+
|
91
|
+
AssertionError.prototype.constructor = AssertionError;
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Allow errors to be converted to JSON for static transfer.
|
95
|
+
*
|
96
|
+
* @param {Boolean} include stack (default: `true`)
|
97
|
+
* @return {Object} object that can be `JSON.stringify`
|
98
|
+
*/
|
99
|
+
|
100
|
+
AssertionError.prototype.toJSON = function (stack) {
|
101
|
+
var extend = exclude('constructor', 'toJSON', 'stack')
|
102
|
+
, props = extend({ name: this.name }, this);
|
103
|
+
|
104
|
+
// include stack if exists and not turned off
|
105
|
+
if (false !== stack && this.stack) {
|
106
|
+
props.stack = this.stack;
|
107
|
+
}
|
108
|
+
|
109
|
+
return props;
|
110
|
+
};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
{
|
2
|
+
"name": "chai",
|
3
|
+
"repo": "chaijs/chai",
|
4
|
+
"version": "1.8.1",
|
5
|
+
"description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.",
|
6
|
+
"license": "MIT",
|
7
|
+
"keywords": [
|
8
|
+
"test",
|
9
|
+
"assertion",
|
10
|
+
"assert",
|
11
|
+
"testing",
|
12
|
+
"chai"
|
13
|
+
],
|
14
|
+
"main": "index.js",
|
15
|
+
"scripts": [
|
16
|
+
"index.js",
|
17
|
+
"lib/chai.js",
|
18
|
+
"lib/chai/assertion.js",
|
19
|
+
"lib/chai/core/assertions.js",
|
20
|
+
"lib/chai/interface/assert.js",
|
21
|
+
"lib/chai/interface/expect.js",
|
22
|
+
"lib/chai/interface/should.js",
|
23
|
+
"lib/chai/utils/addChainableMethod.js",
|
24
|
+
"lib/chai/utils/addMethod.js",
|
25
|
+
"lib/chai/utils/addProperty.js",
|
26
|
+
"lib/chai/utils/flag.js",
|
27
|
+
"lib/chai/utils/getActual.js",
|
28
|
+
"lib/chai/utils/getEnumerableProperties.js",
|
29
|
+
"lib/chai/utils/getMessage.js",
|
30
|
+
"lib/chai/utils/getName.js",
|
31
|
+
"lib/chai/utils/getPathValue.js",
|
32
|
+
"lib/chai/utils/getProperties.js",
|
33
|
+
"lib/chai/utils/index.js",
|
34
|
+
"lib/chai/utils/inspect.js",
|
35
|
+
"lib/chai/utils/objDisplay.js",
|
36
|
+
"lib/chai/utils/overwriteMethod.js",
|
37
|
+
"lib/chai/utils/overwriteProperty.js",
|
38
|
+
"lib/chai/utils/test.js",
|
39
|
+
"lib/chai/utils/transferFlags.js",
|
40
|
+
"lib/chai/utils/type.js"
|
41
|
+
],
|
42
|
+
"dependencies": {
|
43
|
+
"chaijs/assertion-error": "1.0.0",
|
44
|
+
"chaijs/deep-eql": "0.1.3"
|
45
|
+
},
|
46
|
+
"development": {}
|
47
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('./lib/chai');
|
@@ -0,0 +1,130 @@
|
|
1
|
+
/*!
|
2
|
+
* chai
|
3
|
+
* http://chaijs.com
|
4
|
+
* Copyright(c) 2011-2013 Jake Luer <jake@alogicalparadox.com>
|
5
|
+
* MIT Licensed
|
6
|
+
*/
|
7
|
+
|
8
|
+
module.exports = function (_chai, util) {
|
9
|
+
/*!
|
10
|
+
* Module dependencies.
|
11
|
+
*/
|
12
|
+
|
13
|
+
var AssertionError = _chai.AssertionError
|
14
|
+
, flag = util.flag;
|
15
|
+
|
16
|
+
/*!
|
17
|
+
* Module export.
|
18
|
+
*/
|
19
|
+
|
20
|
+
_chai.Assertion = Assertion;
|
21
|
+
|
22
|
+
/*!
|
23
|
+
* Assertion Constructor
|
24
|
+
*
|
25
|
+
* Creates object for chaining.
|
26
|
+
*
|
27
|
+
* @api private
|
28
|
+
*/
|
29
|
+
|
30
|
+
function Assertion (obj, msg, stack) {
|
31
|
+
flag(this, 'ssfi', stack || arguments.callee);
|
32
|
+
flag(this, 'object', obj);
|
33
|
+
flag(this, 'message', msg);
|
34
|
+
}
|
35
|
+
|
36
|
+
/*!
|
37
|
+
* ### Assertion.includeStack
|
38
|
+
*
|
39
|
+
* User configurable property, influences whether stack trace
|
40
|
+
* is included in Assertion error message. Default of false
|
41
|
+
* suppresses stack trace in the error message
|
42
|
+
*
|
43
|
+
* Assertion.includeStack = true; // enable stack on error
|
44
|
+
*
|
45
|
+
* @api public
|
46
|
+
*/
|
47
|
+
|
48
|
+
Assertion.includeStack = false;
|
49
|
+
|
50
|
+
/*!
|
51
|
+
* ### Assertion.showDiff
|
52
|
+
*
|
53
|
+
* User configurable property, influences whether or not
|
54
|
+
* the `showDiff` flag should be included in the thrown
|
55
|
+
* AssertionErrors. `false` will always be `false`; `true`
|
56
|
+
* will be true when the assertion has requested a diff
|
57
|
+
* be shown.
|
58
|
+
*
|
59
|
+
* @api public
|
60
|
+
*/
|
61
|
+
|
62
|
+
Assertion.showDiff = true;
|
63
|
+
|
64
|
+
Assertion.addProperty = function (name, fn) {
|
65
|
+
util.addProperty(this.prototype, name, fn);
|
66
|
+
};
|
67
|
+
|
68
|
+
Assertion.addMethod = function (name, fn) {
|
69
|
+
util.addMethod(this.prototype, name, fn);
|
70
|
+
};
|
71
|
+
|
72
|
+
Assertion.addChainableMethod = function (name, fn, chainingBehavior) {
|
73
|
+
util.addChainableMethod(this.prototype, name, fn, chainingBehavior);
|
74
|
+
};
|
75
|
+
|
76
|
+
Assertion.overwriteProperty = function (name, fn) {
|
77
|
+
util.overwriteProperty(this.prototype, name, fn);
|
78
|
+
};
|
79
|
+
|
80
|
+
Assertion.overwriteMethod = function (name, fn) {
|
81
|
+
util.overwriteMethod(this.prototype, name, fn);
|
82
|
+
};
|
83
|
+
|
84
|
+
/*!
|
85
|
+
* ### .assert(expression, message, negateMessage, expected, actual)
|
86
|
+
*
|
87
|
+
* Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
|
88
|
+
*
|
89
|
+
* @name assert
|
90
|
+
* @param {Philosophical} expression to be tested
|
91
|
+
* @param {String} message to display if fails
|
92
|
+
* @param {String} negatedMessage to display if negated expression fails
|
93
|
+
* @param {Mixed} expected value (remember to check for negation)
|
94
|
+
* @param {Mixed} actual (optional) will default to `this.obj`
|
95
|
+
* @api private
|
96
|
+
*/
|
97
|
+
|
98
|
+
Assertion.prototype.assert = function (expr, msg, negateMsg, expected, _actual, showDiff) {
|
99
|
+
var ok = util.test(this, arguments);
|
100
|
+
if (true !== showDiff) showDiff = false;
|
101
|
+
if (true !== Assertion.showDiff) showDiff = false;
|
102
|
+
|
103
|
+
if (!ok) {
|
104
|
+
var msg = util.getMessage(this, arguments)
|
105
|
+
, actual = util.getActual(this, arguments);
|
106
|
+
throw new AssertionError(msg, {
|
107
|
+
actual: actual
|
108
|
+
, expected: expected
|
109
|
+
, showDiff: showDiff
|
110
|
+
}, (Assertion.includeStack) ? this.assert : flag(this, 'ssfi'));
|
111
|
+
}
|
112
|
+
};
|
113
|
+
|
114
|
+
/*!
|
115
|
+
* ### ._obj
|
116
|
+
*
|
117
|
+
* Quick reference to stored `actual` value for plugin developers.
|
118
|
+
*
|
119
|
+
* @api private
|
120
|
+
*/
|
121
|
+
|
122
|
+
Object.defineProperty(Assertion.prototype, '_obj',
|
123
|
+
{ get: function () {
|
124
|
+
return flag(this, 'object');
|
125
|
+
}
|
126
|
+
, set: function (val) {
|
127
|
+
flag(this, 'object', val);
|
128
|
+
}
|
129
|
+
});
|
130
|
+
};
|