ende 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/component.json +1 -1
  3. data/lib/assets/javascripts/aura/extensions/devise.js.coffee +7 -4
  4. data/lib/assets/javascripts/aura/extensions/routes.js.coffee +16 -8
  5. data/lib/assets/javascripts/aura/extensions/widget/lifecycleable.js.coffee +10 -5
  6. data/lib/assets/javascripts/widgets/authenticator/main.js.coffee +4 -8
  7. data/lib/assets/javascripts/widgets/authenticator/presenter.js.coffee +4 -4
  8. data/lib/assets/javascripts/widgets/authenticator/states/default.html +1 -1
  9. data/lib/assets/javascripts/widgets/tray/main.js.coffee +26 -0
  10. data/lib/ende/version.rb +1 -1
  11. data/lib/tasks/component.thor +1 -1
  12. data/vendor/assets/javascripts/ende/build.js +10008 -8202
  13. data/vendor/components/KapIT-observe-utils/component.json +16 -0
  14. data/vendor/components/KapIT-observe-utils/lib/observe-utils.js +780 -0
  15. data/vendor/components/chaijs-assertion-error/component.json +18 -0
  16. data/vendor/components/chaijs-assertion-error/index.js +110 -0
  17. data/vendor/components/chaijs-chai/component.json +47 -0
  18. data/vendor/components/chaijs-chai/index.js +1 -0
  19. data/vendor/components/chaijs-chai/lib/chai/assertion.js +130 -0
  20. data/vendor/components/chaijs-chai/lib/chai/core/assertions.js +1270 -0
  21. data/vendor/components/chaijs-chai/lib/chai/interface/assert.js +1080 -0
  22. data/vendor/components/chaijs-chai/lib/chai/interface/expect.js +12 -0
  23. data/vendor/components/chaijs-chai/lib/chai/interface/should.js +76 -0
  24. data/vendor/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +94 -0
  25. data/vendor/components/chaijs-chai/lib/chai/utils/addMethod.js +37 -0
  26. data/vendor/components/chaijs-chai/lib/chai/utils/addProperty.js +40 -0
  27. data/vendor/components/chaijs-chai/lib/chai/utils/flag.js +32 -0
  28. data/vendor/components/chaijs-chai/lib/chai/utils/getActual.js +19 -0
  29. data/vendor/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +25 -0
  30. data/vendor/components/chaijs-chai/lib/chai/utils/getMessage.js +49 -0
  31. data/vendor/components/chaijs-chai/lib/chai/utils/getName.js +20 -0
  32. data/vendor/components/chaijs-chai/lib/chai/utils/getPathValue.js +102 -0
  33. data/vendor/components/chaijs-chai/lib/chai/utils/getProperties.js +35 -0
  34. data/vendor/components/chaijs-chai/lib/chai/utils/index.js +108 -0
  35. data/vendor/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
  36. data/vendor/components/chaijs-chai/lib/chai/utils/objDisplay.js +48 -0
  37. data/vendor/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +51 -0
  38. data/vendor/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +54 -0
  39. data/vendor/components/chaijs-chai/lib/chai/utils/test.js +26 -0
  40. data/vendor/components/chaijs-chai/lib/chai/utils/transferFlags.js +44 -0
  41. data/vendor/components/chaijs-chai/lib/chai/utils/type.js +45 -0
  42. data/vendor/components/chaijs-chai/lib/chai.js +80 -0
  43. data/vendor/components/chaijs-deep-eql/component.json +18 -0
  44. data/vendor/components/chaijs-deep-eql/lib/eql.js +257 -0
  45. data/vendor/components/chaijs-type-detect/component.json +16 -0
  46. data/vendor/components/chaijs-type-detect/lib/type.js +142 -0
  47. data/vendor/components/component-bind/component.json +14 -0
  48. data/vendor/components/component-bind/index.js +24 -0
  49. data/vendor/components/component-delegate/component.json +19 -0
  50. data/vendor/components/component-delegate/index.js +42 -0
  51. data/vendor/components/component-event/component.json +13 -0
  52. data/vendor/components/component-event/index.js +40 -0
  53. data/vendor/components/component-jquery/component.json +14 -0
  54. data/vendor/components/component-jquery/index.js +9601 -0
  55. data/vendor/components/component-link-delegate/component.json +23 -0
  56. data/vendor/components/component-link-delegate/index.js +60 -0
  57. data/vendor/components/component-matches-selector/component.json +20 -0
  58. data/vendor/components/component-matches-selector/index.js +45 -0
  59. data/vendor/components/component-query/component.json +21 -0
  60. data/vendor/components/component-query/index.js +21 -0
  61. data/vendor/components/component-type/component.json +18 -0
  62. data/vendor/components/component-type/index.js +32 -0
  63. data/vendor/components/component-url/component.json +17 -0
  64. data/vendor/components/component-url/index.js +63 -0
  65. data/vendor/components/components-modernizr/component.json +18 -0
  66. data/vendor/components/components-modernizr/modernizr.js +1393 -0
  67. data/vendor/components/discore-closest/component.json +14 -0
  68. data/vendor/components/discore-closest/index.js +18 -0
  69. data/vendor/components/indefinido-advisable/component.json +21 -0
  70. data/vendor/components/indefinido-advisable/index.js +1 -0
  71. data/vendor/components/indefinido-advisable/lib/advisable.js +60 -0
  72. data/vendor/components/indefinido-indemma/component.json +40 -0
  73. data/vendor/components/indefinido-indemma/index.js +1 -0
  74. data/vendor/components/indefinido-indemma/lib/extensions/rivets.js +23 -0
  75. data/vendor/components/indefinido-indemma/lib/record/associable.js +217 -0
  76. data/vendor/components/indefinido-indemma/lib/record/maid.js +24 -0
  77. data/vendor/components/indefinido-indemma/lib/record/resource.js +104 -0
  78. data/vendor/components/indefinido-indemma/lib/record/rest.js +36 -0
  79. data/vendor/components/indefinido-indemma/lib/record/restfulable.js +326 -0
  80. data/vendor/components/indefinido-indemma/lib/record/scopable.js +279 -0
  81. data/vendor/components/indefinido-indemma/lib/record/translationable.js +19 -0
  82. data/vendor/components/indefinido-indemma/lib/record/validatable.js +216 -0
  83. data/vendor/components/indefinido-indemma/lib/record/validations/associated.js +30 -0
  84. data/vendor/components/indefinido-indemma/lib/record/validations/confirmation.js +19 -0
  85. data/vendor/components/indefinido-indemma/lib/record/validations/cpf.js +60 -0
  86. data/vendor/components/indefinido-indemma/lib/record/validations/presence.js +19 -0
  87. data/vendor/components/indefinido-indemma/lib/record/validations/remote.js +71 -0
  88. data/vendor/components/indefinido-indemma/lib/record.js +167 -0
  89. data/vendor/components/indefinido-indemma/vendor/sinon.js +4290 -0
  90. data/vendor/components/indefinido-indemma/vendor/stampit.js +392 -0
  91. data/vendor/components/indefinido-observable/component.json +25 -0
  92. data/vendor/components/indefinido-observable/components/cjohansen-sinon/sinon.js +4290 -0
  93. data/vendor/components/indefinido-observable/index.js +1 -0
  94. data/vendor/components/indefinido-observable/lib/adapters/rivets.js +26 -0
  95. data/vendor/components/indefinido-observable/lib/observable.js +320 -0
  96. data/vendor/components/indefinido-observable/vendor/shims/accessors-legacy.js +92 -0
  97. data/vendor/components/indefinido-observable/vendor/shims/accessors.js +173 -0
  98. data/vendor/components/indefinido-observable/vendor/shims/array.indexOf.js +8 -0
  99. data/vendor/components/indefinido-observable/vendor/shims/object.create.js +77 -0
  100. data/vendor/components/mikeric-rivets/component.json +15 -0
  101. data/vendor/components/mikeric-rivets/dist/rivets.js +1239 -0
  102. data/vendor/components/paulmillr-es6-shim/component.json +17 -0
  103. data/vendor/components/paulmillr-es6-shim/es6-shim.js +985 -0
  104. data/vendor/components/pluma-assimilate/component.json +25 -0
  105. data/vendor/components/pluma-assimilate/dist/assimilate.js +87 -0
  106. data/vendor/components/segmentio-extend/component.json +13 -0
  107. data/vendor/components/segmentio-extend/index.js +15 -0
  108. metadata +98 -2
@@ -0,0 +1,392 @@
1
+ (function(e){if("function"==typeof bootstrap)bootstrap("stampit",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeStampit=e}else"undefined"!=typeof window?window.stampit=e():global.stampit=e()})(function(){var define,ses,bootstrap,module,exports;
2
+ return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
3
+
4
+
5
+ /**
6
+ * Array forEach
7
+ */
8
+ function forEach(arr, callback, thisObj) {
9
+ if (arr == null) {
10
+ return;
11
+ }
12
+ var i = -1,
13
+ len = arr.length;
14
+ while (++i < len) {
15
+ // we iterate over sparse items since there is no way to make it
16
+ // work properly on IE 7-8. see #64
17
+ if ( callback.call(thisObj, arr[i], i, arr) === false ) {
18
+ break;
19
+ }
20
+ }
21
+ }
22
+
23
+ module.exports = forEach;
24
+
25
+
26
+
27
+ },{}],2:[function(require,module,exports){
28
+
29
+
30
+ function slice(arr, offset){
31
+ return Array.prototype.slice.call(arr, offset || 0);
32
+ }
33
+
34
+ /**
35
+ * Return a function that will execute in the given context, optionally adding any additional supplied parameters to the beginning of the arguments collection.
36
+ * @param {Function} fn Function.
37
+ * @param {object} context Execution context.
38
+ * @param {rest} args Arguments (0...n arguments).
39
+ * @return {Function} Wrapped Function.
40
+ */
41
+ function bind(fn, context, args){
42
+ var argsArr = slice(arguments, 2); //curried args
43
+ return function(){
44
+ return fn.apply(context, argsArr.concat(slice(arguments)));
45
+ };
46
+ }
47
+
48
+ module.exports = bind;
49
+
50
+
51
+
52
+ },{}],3:[function(require,module,exports){
53
+ var shimIndexOf = function shimIndexOf() {
54
+
55
+ if (!Array.prototype.indexOf) {
56
+ Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
57
+ "use strict";
58
+ if (this == null) {
59
+ throw new TypeError();
60
+ }
61
+ var t = Object(this);
62
+ var len = t.length >>> 0;
63
+ if (len === 0) {
64
+ return -1;
65
+ }
66
+ var n = 0;
67
+ if (arguments.length > 1) {
68
+ n = Number(arguments[1]);
69
+ if (n != n) { // shortcut for verifying if it's NaN
70
+ n = 0;
71
+ } else if (n != 0 && n != Infinity && n != -Infinity) {
72
+ n = (n > 0 || -1) * Math.floor(Math.abs(n));
73
+ }
74
+ }
75
+ if (n >= len) {
76
+ return -1;
77
+ }
78
+ var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
79
+ for (; k < len; k++) {
80
+ if (k in t && t[k] === searchElement) {
81
+ return k;
82
+ }
83
+ }
84
+ return -1;
85
+ }
86
+ }
87
+
88
+ }
89
+
90
+ module.exports = shimIndexOf;
91
+
92
+ },{}],4:[function(require,module,exports){
93
+ /**
94
+ * Stampit
95
+ **
96
+ * Create objects from reusable, composable behaviors.
97
+ **
98
+ * Copyright (c) 2013 Eric Elliott
99
+ * http://opensource.org/licenses/MIT
100
+ **/
101
+
102
+ 'use strict';
103
+ var forEach = require('mout/array/forEach');
104
+ var bind = require('mout/function/bind');
105
+ var mixIn = require('mout/object/mixIn');
106
+ var stringify = require('json-stringify-safe');
107
+ var indexOf = require('./indexof'); // shim indexOf for stringify
108
+
109
+ var create = function (o) {
110
+ if (arguments.length > 1) {
111
+ throw new Error('Object.create implementation only accepts the first parameter.');
112
+ }
113
+ function F() {}
114
+ F.prototype = o;
115
+ return new F();
116
+ };
117
+
118
+ /**
119
+ * Return a factory function that will produce new objects using the
120
+ * prototypes that are passed in or composed.
121
+ *
122
+ * @param {Object} [methods] A map of method names and bodies for delegation.
123
+ * @param {Object} [state] A map of property names and values to clone for each new object.
124
+ * @param {Function} [enclose] A closure (function) used to create private data and privileged methods.
125
+ * @return {Function} factory A factory to produce objects using the given prototypes.
126
+ * @return {Function} factory.create Just like calling the factory function.
127
+ * @return {Object} factory.fixed An object map containing the fixed prototypes.
128
+ * @return {Function} factory.methods Add methods to the methods prototype. Chainable.
129
+ * @return {Function} factory.state Add properties to the state prototype. Chainable.
130
+ * @return {Function} factory.enclose Add or replace the closure prototype. Not chainable.
131
+ */
132
+ var stampit = function stampit(methods, state, enclose) {
133
+ var fixed = {
134
+ methods: methods || {},
135
+ state: state ?
136
+ JSON.parse(stringify(state)) :
137
+ {},
138
+ enclose: enclose
139
+ },
140
+
141
+ factory = function factory(properties, enclose) {
142
+ var instance = mixIn(create(fixed.methods || {}),
143
+ fixed.state, properties),
144
+ alt;
145
+
146
+ if (typeof fixed.enclose === 'function') {
147
+ alt = fixed.enclose.call(instance);
148
+ }
149
+
150
+ if (typeof enclose === 'function') {
151
+ alt = enclose.call(alt || instance);
152
+ }
153
+
154
+ return alt || instance;
155
+ };
156
+
157
+ return mixIn(factory, {
158
+ create: factory,
159
+ fixed: fixed,
160
+ methods: function () {
161
+ var obj = fixed.methods || {},
162
+ args = [obj].concat([].slice.call(arguments));
163
+ fixed.methods = mixIn.apply(this, args);
164
+ return this;
165
+ },
166
+ state: function (state) {
167
+ var obj = fixed.state || {},
168
+ args = [obj].concat([].slice.call(arguments));
169
+ fixed.state = mixIn.apply(this, args);
170
+ return this;
171
+ },
172
+ enclose: function (enclose) {
173
+ fixed.enclose = enclose;
174
+ return this;
175
+ }
176
+ });
177
+ };
178
+
179
+ /**
180
+ * Take two or more factories produced from stampit() and
181
+ * combine them to produce a new factory. Combining overrides
182
+ * properties with last-in priority.
183
+ *
184
+ * @param {...Function} factory A factory produced by stampit().
185
+ * @return {Function} A new stampit factory composed from arguments.
186
+ */
187
+ var compose = function compose() {
188
+ var args = [].slice.call(arguments),
189
+ initFunctions = [],
190
+ obj = stampit(),
191
+ props = ['methods', 'state'];
192
+
193
+ forEach(args, function (source) {
194
+ if (source) {
195
+ forEach(props, function (prop) {
196
+ if (source.fixed[prop]) {
197
+ obj.fixed[prop] = mixIn(obj.fixed[prop],
198
+ source.fixed[prop]);
199
+ }
200
+ });
201
+
202
+ if (typeof source.fixed.enclose === 'function') {
203
+ initFunctions.push(source.fixed.enclose);
204
+ }
205
+ }
206
+ });
207
+
208
+ return stampit(obj.fixed.methods, obj.fixed.state, function () {
209
+ forEach(initFunctions, bind(function (fn) {
210
+ fn.call(this);
211
+ }, this));
212
+ });
213
+ };
214
+
215
+ indexOf();
216
+
217
+ module.exports = mixIn(stampit, {
218
+ compose: compose,
219
+ /**
220
+ * Alias for mixIn
221
+ */
222
+ extend: mixIn,
223
+ /**
224
+ * Take a destination object followed by one or more source objects,
225
+ * and copy the source object properties to the destination object,
226
+ * with last in priority overrides.
227
+ * @param {Object} destination An object to copy properties to.
228
+ * @param {...Object} source An object to copy properties from.
229
+ * @returns {Object}
230
+ */
231
+ mixIn: mixIn
232
+ });
233
+
234
+ },{"mout/array/forEach":1,"mout/function/bind":2,"mout/object/mixIn":5,"./indexof":3,"json-stringify-safe":6}],6:[function(require,module,exports){
235
+ module.exports = stringify;
236
+
237
+ function getSerialize (fn, decycle) {
238
+ var seen = [];
239
+ decycle = decycle || function(key, value) {
240
+ return '[Circular]';
241
+ };
242
+ return function(key, value) {
243
+ var ret = value;
244
+ if (typeof value === 'object' && value) {
245
+ if (seen.indexOf(value) !== -1)
246
+ ret = decycle(key, value);
247
+ else
248
+ seen.push(value);
249
+ }
250
+ if (fn) ret = fn(key, ret);
251
+ return ret;
252
+ }
253
+ }
254
+
255
+ function stringify(obj, fn, spaces, decycle) {
256
+ return JSON.stringify(obj, getSerialize(fn, decycle), spaces);
257
+ }
258
+
259
+ stringify.getSerialize = getSerialize;
260
+
261
+ },{}],5:[function(require,module,exports){
262
+ var forOwn = require('./forOwn');
263
+
264
+ /**
265
+ * Combine properties from all the objects into first one.
266
+ * - This method affects target object in place, if you want to create a new Object pass an empty object as first param.
267
+ * @param {object} target Target Object
268
+ * @param {...object} objects Objects to be combined (0...n objects).
269
+ * @return {object} Target Object.
270
+ */
271
+ function mixIn(target, objects){
272
+ var i = 0,
273
+ n = arguments.length,
274
+ obj;
275
+ while(++i < n){
276
+ obj = arguments[i];
277
+ if (obj != null) {
278
+ forOwn(obj, copyProp, target);
279
+ }
280
+ }
281
+ return target;
282
+ }
283
+
284
+ function copyProp(val, key){
285
+ this[key] = val;
286
+ }
287
+
288
+ module.exports = mixIn;
289
+
290
+
291
+ },{"./forOwn":7}],7:[function(require,module,exports){
292
+ var hasOwn = require('./hasOwn');
293
+ var forIn = require('./forIn');
294
+
295
+ /**
296
+ * Similar to Array/forEach but works over object properties and fixes Don't
297
+ * Enum bug on IE.
298
+ * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
299
+ */
300
+ function forOwn(obj, fn, thisObj){
301
+ forIn(obj, function(val, key){
302
+ if (hasOwn(obj, key)) {
303
+ return fn.call(thisObj, obj[key], key, obj);
304
+ }
305
+ });
306
+ }
307
+
308
+ module.exports = forOwn;
309
+
310
+
311
+
312
+ },{"./hasOwn":8,"./forIn":9}],8:[function(require,module,exports){
313
+
314
+
315
+ /**
316
+ * Safer Object.hasOwnProperty
317
+ */
318
+ function hasOwn(obj, prop){
319
+ return Object.prototype.hasOwnProperty.call(obj, prop);
320
+ }
321
+
322
+ module.exports = hasOwn;
323
+
324
+
325
+
326
+ },{}],9:[function(require,module,exports){
327
+
328
+
329
+ var _hasDontEnumBug,
330
+ _dontEnums;
331
+
332
+ function checkDontEnum(){
333
+ _dontEnums = [
334
+ 'toString',
335
+ 'toLocaleString',
336
+ 'valueOf',
337
+ 'hasOwnProperty',
338
+ 'isPrototypeOf',
339
+ 'propertyIsEnumerable',
340
+ 'constructor'
341
+ ];
342
+
343
+ _hasDontEnumBug = true;
344
+
345
+ for (var key in {'toString': null}) {
346
+ _hasDontEnumBug = false;
347
+ }
348
+ }
349
+
350
+ /**
351
+ * Similar to Array/forEach but works over object properties and fixes Don't
352
+ * Enum bug on IE.
353
+ * based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
354
+ */
355
+ function forIn(obj, fn, thisObj){
356
+ var key, i = 0;
357
+ // no need to check if argument is a real object that way we can use
358
+ // it for arrays, functions, date, etc.
359
+
360
+ //post-pone check till needed
361
+ if (_hasDontEnumBug == null) checkDontEnum();
362
+
363
+ for (key in obj) {
364
+ if (exec(fn, obj, key, thisObj) === false) {
365
+ break;
366
+ }
367
+ }
368
+
369
+ if (_hasDontEnumBug) {
370
+ while (key = _dontEnums[i++]) {
371
+ // since we aren't using hasOwn check we need to make sure the
372
+ // property was overwritten
373
+ if (obj[key] !== Object.prototype[key]) {
374
+ if (exec(fn, obj, key, thisObj) === false) {
375
+ break;
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
+
382
+ function exec(fn, obj, key, thisObj){
383
+ return fn.call(thisObj, obj[key], key, obj);
384
+ }
385
+
386
+ module.exports = forIn;
387
+
388
+
389
+
390
+ },{}]},{},[4])(4)
391
+ });
392
+ ;
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "observable",
3
+ "repo": "indefinido/observable",
4
+ "description": "Observable capabilities built upon observable shim.",
5
+ "version": "0.0.1",
6
+ "keywords": [],
7
+ "dependencies": {
8
+ "kapit/observe-utils": "*",
9
+ "component/jquery": "*"
10
+ },
11
+ "development": {
12
+ "chaijs/chai": "*"
13
+ },
14
+ "license": "WTFPL",
15
+ "scripts": [
16
+ "components/cjohansen-sinon/sinon.js",
17
+ "index.js",
18
+ "lib/observable.js",
19
+ "lib/adapters/rivets.js",
20
+ "vendor/shims/accessors.js",
21
+ "vendor/shims/accessors-legacy.js",
22
+ "vendor/shims/array.indexOf.js",
23
+ "vendor/shims/object.create.js"
24
+ ]
25
+ }