ende 0.4.25 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/component.json +0 -1
- data/lib/assets/javascripts/aura/extensions/domain.js.coffee +55 -0
- data/lib/assets/javascripts/aura/extensions/models.js.coffee.erb +13 -4
- data/lib/assets/javascripts/aura/extensions/platform.js.coffee +8 -2
- data/lib/assets/javascripts/aura/extensions/rivets.js.coffee +10 -21
- data/lib/assets/javascripts/aura/extensions/stamps/stampit.js +242 -568
- data/lib/assets/javascripts/aura/extensions/widget/composable.js.coffee +18 -35
- data/lib/assets/javascripts/config/load_components.js.coffee +7 -5
- data/lib/assets/javascripts/widgets/attachable/main.js.coffee +77 -0
- data/lib/assets/javascripts/widgets/list/presenter.js.coffee +4 -5
- data/lib/assets/javascripts/widgets/support/adapters/olark.js +1 -1
- data/lib/assets/javascripts/widgets/tray/main.js.coffee +22 -16
- data/lib/assets/javascripts/widgets/viewer/main.js.coffee +4 -8
- data/lib/assets/javascripts/widgets/viewer/plugins/scopable.js.coffee +1 -7
- data/lib/ende/version.rb +1 -1
- data/vendor/assets/components/ende_build.js +463 -5150
- data/vendor/components/indefinido-indemma/build/development.js +2 -2
- data/vendor/components/indefinido-indemma/build/release.js +4 -5
- data/vendor/components/indefinido-indemma/build/test.js +2 -2
- data/vendor/components/indefinido-indemma/component.json +1 -0
- data/vendor/components/indefinido-indemma/lib/record/restfulable.js +2 -3
- data/vendor/components/indefinido-indemma/lib/record/validatable.js +2 -2
- data/vendor/components/indefinido-indemma/src/lib/record/restfulable.coffee +3 -9
- data/vendor/components/indefinido-indemma/src/lib/record/validatable.coffee +3 -3
- data/vendor/components/indefinido-observable/component.json +3 -7
- data/vendor/components/indefinido-observable/lib/observable.js +19 -9
- metadata +4 -60
- data/build/build.css +0 -111
- data/vendor/assets/javascripts/stampit/stampit.js +0 -392
- data/vendor/components/indefinido-observable/.gitignore +0 -15
- data/vendor/components/indefinido-observable/.ruby-gemset +0 -1
- data/vendor/components/indefinido-observable/.ruby-version +0 -1
- data/vendor/components/indefinido-observable/Gemfile +0 -13
- data/vendor/components/indefinido-observable/Guardfile +0 -39
- data/vendor/components/indefinido-observable/History.md +0 -0
- data/vendor/components/indefinido-observable/Readme.md +0 -116
- data/vendor/components/indefinido-observable/build/build.js +0 -14798
- data/vendor/components/indefinido-observable/build/development.js +0 -339
- data/vendor/components/indefinido-observable/build/release.js +0 -14937
- data/vendor/components/indefinido-observable/build/test.js +0 -339
- data/vendor/components/indefinido-observable/components/chaijs-chai/component.json +0 -46
- data/vendor/components/indefinido-observable/components/chaijs-chai/index.js +0 -1
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/assertion.js +0 -132
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/core/assertions.js +0 -1270
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/error.js +0 -60
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/interface/assert.js +0 -1060
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/interface/expect.js +0 -12
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/interface/should.js +0 -76
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -94
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -37
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -40
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/eql.js +0 -124
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/flag.js +0 -32
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getActual.js +0 -19
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -25
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -49
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getName.js +0 -20
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -102
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -35
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/index.js +0 -108
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/inspect.js +0 -316
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -48
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -51
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -54
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js +0 -26
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -44
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/type.js +0 -45
- data/vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js +0 -79
- data/vendor/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -4290
- data/vendor/components/indefinido-observable/components/component-jquery/component.json +0 -14
- data/vendor/components/indefinido-observable/components/component-jquery/index.js +0 -9601
- data/vendor/components/indefinido-observable/components/kapit-observe-shim/component.json +0 -11
- data/vendor/components/indefinido-observable/components/kapit-observe-utils/component.json +0 -13
- data/vendor/components/indefinido-observable/karma.conf.js +0 -92
- data/vendor/components/indefinido-observable/spec/legacy/observable_spec.js +0 -126
- data/vendor/components/indefinido-observable/spec/observable_spec.js +0 -92
- data/vendor/components/indefinido-observable/spec/spec_helper.js +0 -8
- data/vendor/components/indefinido-observable/spec/vendor/accessors_spec.js +0 -63
- data/vendor/components/indefinido-observable/src/lib/adapters/rivets.js.coffee +0 -15
- data/vendor/components/indefinido-observable/src/spec/legacy/observable_spec.coffee +0 -132
- data/vendor/components/indefinido-observable/src/spec/observable_spec.coffee +0 -85
- data/vendor/components/indefinido-observable/src/spec/spec_helper.coffee +0 -5
- data/vendor/components/indefinido-observable/src/spec/vendor/accessors_spec.coffee +0 -59
- data/vendor/components/indefinido-observable/vendor/spec/boot.js +0 -104
- data/vendor/components/indefinido-observable/vendor/spec/jasmine.js +0 -2054
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ende
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heitor Salazar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -67,11 +67,11 @@ files:
|
|
67
67
|
- README.md
|
68
68
|
- Rakefile
|
69
69
|
- WTFP-LICENSE
|
70
|
-
- build/build.css
|
71
70
|
- component.json
|
72
71
|
- ende.gemspec
|
73
72
|
- lib/assets/.gitkeep
|
74
73
|
- lib/assets/javascripts/aura/extensions/devise.js.coffee
|
74
|
+
- lib/assets/javascripts/aura/extensions/domain.js.coffee
|
75
75
|
- lib/assets/javascripts/aura/extensions/loader.js.coffee
|
76
76
|
- lib/assets/javascripts/aura/extensions/mask.js.coffee
|
77
77
|
- lib/assets/javascripts/aura/extensions/mediator.js
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- lib/assets/javascripts/config/load_components.js.coffee
|
99
99
|
- lib/assets/javascripts/ende.js.coffee
|
100
100
|
- lib/assets/javascripts/value_objects/phone.js.coffee
|
101
|
+
- lib/assets/javascripts/widgets/attachable/main.js.coffee
|
101
102
|
- lib/assets/javascripts/widgets/authenticator/main.js.coffee
|
102
103
|
- lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
|
103
104
|
- lib/assets/javascripts/widgets/authenticator/states/default.html
|
@@ -159,7 +160,6 @@ files:
|
|
159
160
|
- vendor/assets/javascripts/polyfills/es5-shim.js
|
160
161
|
- vendor/assets/javascripts/polyfills/es6-map-shim.js
|
161
162
|
- vendor/assets/javascripts/spin/spin.js
|
162
|
-
- vendor/assets/javascripts/stampit/stampit.js
|
163
163
|
- vendor/components/KapIT-observe-utils/component.json
|
164
164
|
- vendor/components/KapIT-observe-utils/lib/observe-utils.js
|
165
165
|
- vendor/components/component-bind/component.json
|
@@ -359,70 +359,14 @@ files:
|
|
359
359
|
- vendor/components/indefinido-indemma/vendor/owl/pluralize.js
|
360
360
|
- vendor/components/indefinido-indemma/vendor/sinon.js
|
361
361
|
- vendor/components/indefinido-indemma/vendor/stampit.js
|
362
|
-
- vendor/components/indefinido-observable/.gitignore
|
363
|
-
- vendor/components/indefinido-observable/.ruby-gemset
|
364
|
-
- vendor/components/indefinido-observable/.ruby-version
|
365
|
-
- vendor/components/indefinido-observable/Gemfile
|
366
|
-
- vendor/components/indefinido-observable/Guardfile
|
367
|
-
- vendor/components/indefinido-observable/History.md
|
368
|
-
- vendor/components/indefinido-observable/Readme.md
|
369
|
-
- vendor/components/indefinido-observable/build/build.js
|
370
|
-
- vendor/components/indefinido-observable/build/development.js
|
371
|
-
- vendor/components/indefinido-observable/build/release.js
|
372
|
-
- vendor/components/indefinido-observable/build/test.js
|
373
362
|
- vendor/components/indefinido-observable/component.json
|
374
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/component.json
|
375
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/index.js
|
376
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai.js
|
377
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/assertion.js
|
378
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/core/assertions.js
|
379
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/error.js
|
380
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/interface/assert.js
|
381
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/interface/expect.js
|
382
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/interface/should.js
|
383
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/addChainableMethod.js
|
384
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/addMethod.js
|
385
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/addProperty.js
|
386
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/eql.js
|
387
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/flag.js
|
388
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getActual.js
|
389
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js
|
390
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getMessage.js
|
391
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getName.js
|
392
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getPathValue.js
|
393
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/getProperties.js
|
394
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/index.js
|
395
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/inspect.js
|
396
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/objDisplay.js
|
397
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/overwriteMethod.js
|
398
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/overwriteProperty.js
|
399
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/test.js
|
400
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/transferFlags.js
|
401
|
-
- vendor/components/indefinido-observable/components/chaijs-chai/lib/chai/utils/type.js
|
402
|
-
- vendor/components/indefinido-observable/components/cjohansen-sinon/sinon.js
|
403
|
-
- vendor/components/indefinido-observable/components/component-jquery/component.json
|
404
|
-
- vendor/components/indefinido-observable/components/component-jquery/index.js
|
405
|
-
- vendor/components/indefinido-observable/components/kapit-observe-shim/component.json
|
406
|
-
- vendor/components/indefinido-observable/components/kapit-observe-utils/component.json
|
407
363
|
- vendor/components/indefinido-observable/index.js
|
408
|
-
- vendor/components/indefinido-observable/karma.conf.js
|
409
364
|
- vendor/components/indefinido-observable/lib/adapters/rivets.js
|
410
365
|
- vendor/components/indefinido-observable/lib/observable.js
|
411
|
-
- vendor/components/indefinido-observable/spec/legacy/observable_spec.js
|
412
|
-
- vendor/components/indefinido-observable/spec/observable_spec.js
|
413
|
-
- vendor/components/indefinido-observable/spec/spec_helper.js
|
414
|
-
- vendor/components/indefinido-observable/spec/vendor/accessors_spec.js
|
415
|
-
- vendor/components/indefinido-observable/src/lib/adapters/rivets.js.coffee
|
416
|
-
- vendor/components/indefinido-observable/src/spec/legacy/observable_spec.coffee
|
417
|
-
- vendor/components/indefinido-observable/src/spec/observable_spec.coffee
|
418
|
-
- vendor/components/indefinido-observable/src/spec/spec_helper.coffee
|
419
|
-
- vendor/components/indefinido-observable/src/spec/vendor/accessors_spec.coffee
|
420
366
|
- vendor/components/indefinido-observable/vendor/shims/accessors-legacy.js
|
421
367
|
- vendor/components/indefinido-observable/vendor/shims/accessors.js
|
422
368
|
- vendor/components/indefinido-observable/vendor/shims/array.indexOf.js
|
423
369
|
- vendor/components/indefinido-observable/vendor/shims/object.create.js
|
424
|
-
- vendor/components/indefinido-observable/vendor/spec/boot.js
|
425
|
-
- vendor/components/indefinido-observable/vendor/spec/jasmine.js
|
426
370
|
- vendor/components/mikeric-rivets/component.json
|
427
371
|
- vendor/components/mikeric-rivets/dist/rivets.js
|
428
372
|
- vendor/components/paulmillr-es6-shim/component.json
|
data/build/build.css
DELETED
@@ -1,111 +0,0 @@
|
|
1
|
-
.overlay {
|
2
|
-
position: absolute;
|
3
|
-
top: 0;
|
4
|
-
left: 0;
|
5
|
-
opacity: 1;
|
6
|
-
width: 100%;
|
7
|
-
height: 100%;
|
8
|
-
background: rgba(0,0,0,.75);
|
9
|
-
-webkit-transition: opacity 300ms;
|
10
|
-
-moz-transition: opacity 300ms;
|
11
|
-
transition: opacity 300ms;
|
12
|
-
z-index: 500;
|
13
|
-
}
|
14
|
-
|
15
|
-
.overlay.hide {
|
16
|
-
pointer-events: none;
|
17
|
-
opacity: 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
#dialog {
|
21
|
-
position: fixed;
|
22
|
-
left: 50%;
|
23
|
-
top: 150px;
|
24
|
-
max-width: 600px;
|
25
|
-
min-width: 250px;
|
26
|
-
border: 1px solid #eee;
|
27
|
-
background: white;
|
28
|
-
z-index: 1000;
|
29
|
-
}
|
30
|
-
|
31
|
-
#dialog .content {
|
32
|
-
padding: 15px 20px;
|
33
|
-
}
|
34
|
-
|
35
|
-
#dialog h1 {
|
36
|
-
margin: 0 0 5px 0;
|
37
|
-
font-size: 16px;
|
38
|
-
font-weight: normal;
|
39
|
-
}
|
40
|
-
|
41
|
-
#dialog p {
|
42
|
-
margin: 0;
|
43
|
-
padding: 0;
|
44
|
-
font-size: .9em;
|
45
|
-
}
|
46
|
-
|
47
|
-
/* close */
|
48
|
-
|
49
|
-
#dialog .close {
|
50
|
-
position: absolute;
|
51
|
-
top: 3px;
|
52
|
-
right: 10px;
|
53
|
-
text-decoration: none;
|
54
|
-
color: #888;
|
55
|
-
font-size: 16px;
|
56
|
-
font-weight: bold;
|
57
|
-
display: none;
|
58
|
-
}
|
59
|
-
|
60
|
-
#dialog .close em {
|
61
|
-
display: none;
|
62
|
-
}
|
63
|
-
|
64
|
-
#dialog.closable .close {
|
65
|
-
display: block;
|
66
|
-
}
|
67
|
-
|
68
|
-
#dialog .close:hover {
|
69
|
-
color: black;
|
70
|
-
}
|
71
|
-
|
72
|
-
#dialog .close:active {
|
73
|
-
margin-top: 1px;
|
74
|
-
}
|
75
|
-
|
76
|
-
/* slide */
|
77
|
-
|
78
|
-
#dialog.slide {
|
79
|
-
-webkit-transition: opacity 300ms, top 300ms;
|
80
|
-
-moz-transition: opacity 300ms, top 300ms;
|
81
|
-
}
|
82
|
-
|
83
|
-
#dialog.slide.hide {
|
84
|
-
opacity: 0;
|
85
|
-
top: -500px;
|
86
|
-
}
|
87
|
-
|
88
|
-
/* fade */
|
89
|
-
|
90
|
-
#dialog.fade {
|
91
|
-
-webkit-transition: opacity 300ms;
|
92
|
-
-moz-transition: opacity 300ms;
|
93
|
-
}
|
94
|
-
|
95
|
-
#dialog.fade.hide {
|
96
|
-
opacity: 0;
|
97
|
-
}
|
98
|
-
|
99
|
-
/* scale */
|
100
|
-
|
101
|
-
#dialog.scale {
|
102
|
-
-webkit-transition: -webkit-transform 300ms;
|
103
|
-
-moz-transition: -moz-transform 300ms;
|
104
|
-
-webkit-transform: scale(1);
|
105
|
-
-moz-transform: scale(1);
|
106
|
-
}
|
107
|
-
|
108
|
-
#dialog.scale.hide {
|
109
|
-
-webkit-transform: scale(0);
|
110
|
-
-moz-transform: scale(0);
|
111
|
-
}
|
@@ -1,392 +0,0 @@
|
|
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
|
-
;
|
@@ -1 +0,0 @@
|
|
1
|
-
global
|
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.0.0-p195
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
guard 'bundler' do
|
5
|
-
watch('Gemfile')
|
6
|
-
# Uncomment next line if Gemfile contain `gemspec' command
|
7
|
-
# watch(/^.+\.gemspec/)
|
8
|
-
end
|
9
|
-
|
10
|
-
guard 'coffeescript', :input => 'src', :output => '.', :bare => true
|
11
|
-
# Add files and commands to this file, like the example:
|
12
|
-
# watch(%r{file/path}) { `command(s)` }
|
13
|
-
#
|
14
|
-
guard 'shell' do
|
15
|
-
watch(/(.*).coffee/) { |m|
|
16
|
-
puts ' Building release component'
|
17
|
-
puts `component-build --verbose --name release`
|
18
|
-
|
19
|
-
puts ' Building development component'
|
20
|
-
puts `component-build --verbose --name development --dev`
|
21
|
-
|
22
|
-
puts ' Building tests component'
|
23
|
-
puts `component-build --verbose --name test --dev`
|
24
|
-
}
|
25
|
-
|
26
|
-
watch(/component.json|lib\/observable/) { |m|
|
27
|
-
puts ' Installing possible new components'
|
28
|
-
puts `component install`
|
29
|
-
|
30
|
-
puts ' Building release component'
|
31
|
-
puts `component-build --verbose --name release`
|
32
|
-
|
33
|
-
puts ' Building development component'
|
34
|
-
puts `component-build --verbose --name development --dev`
|
35
|
-
|
36
|
-
puts ' Building tests component'
|
37
|
-
puts `component-build --verbose --name test --dev`
|
38
|
-
}
|
39
|
-
end
|
File without changes
|