ende 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/build/build.css +112 -0
- data/build/build.js +36465 -0
- data/component.json +11 -15
- data/components/chaijs/assertion-error/1.0.0/component.json +18 -0
- data/components/chaijs/chai/1.9.1/.gitignore +22 -0
- data/components/chaijs/chai/1.9.1/.mailmap +1 -0
- data/components/chaijs/chai/1.9.1/.npmignore +14 -0
- data/components/chaijs/chai/1.9.1/.travis.yml +14 -0
- data/components/chaijs/chai/1.9.1/CONTRIBUTING.md +173 -0
- data/components/chaijs/chai/1.9.1/History.md +895 -0
- data/components/chaijs/chai/1.9.1/Makefile +93 -0
- data/components/chaijs/chai/1.9.1/README.md +99 -0
- data/components/chaijs/chai/1.9.1/ReleaseNotes.md +482 -0
- data/components/chaijs/chai/1.9.1/bower.json +27 -0
- data/components/chaijs/chai/1.9.1/chai.js +4782 -0
- data/components/chaijs/chai/1.9.1/component.json +50 -0
- data/components/chaijs/chai/1.9.1/karma.conf.js +28 -0
- data/components/chaijs/chai/1.9.1/karma.sauce.js +41 -0
- data/components/chaijs/chai/1.9.1/lib/chai/assertion.js +130 -0
- data/components/chaijs/chai/1.9.1/lib/chai/config.js +50 -0
- data/components/chaijs/chai/1.9.1/lib/chai/core/assertions.js +1314 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/assert.js +1056 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/expect.js +12 -0
- data/components/chaijs/chai/1.9.1/lib/chai/interface/should.js +78 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addChainableMethod.js +111 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addMethod.js +43 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/addProperty.js +40 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/flag.js +32 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getActual.js +18 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getEnumerableProperties.js +25 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getMessage.js +49 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getName.js +20 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getPathValue.js +102 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/getProperties.js +35 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/index.js +114 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/objDisplay.js +49 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteChainableMethod.js +53 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteMethod.js +51 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/overwriteProperty.js +54 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/test.js +26 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/transferFlags.js +44 -0
- data/components/chaijs/chai/1.9.1/lib/chai/utils/type.js +45 -0
- data/components/chaijs/chai/1.9.1/lib/chai.js +87 -0
- data/components/chaijs/chai/1.9.1/package.json +42 -0
- data/components/chaijs/chai/1.9.1/sauce.browsers.js +128 -0
- data/components/chaijs/chai/1.9.1/support/sauce/sauce_connect_block.sh +7 -0
- data/components/chaijs/chai/1.9.1/support/sauce/sauce_connect_setup.sh +53 -0
- data/components/chaijs/chai/1.9.1/test/assert.js +638 -0
- data/components/chaijs/chai/1.9.1/test/bootstrap/index.js +22 -0
- data/components/chaijs/chai/1.9.1/test/bootstrap/karma.js +22 -0
- data/components/chaijs/chai/1.9.1/test/configuration.js +133 -0
- data/components/chaijs/chai/1.9.1/test/display/errors.js +14 -0
- data/components/chaijs/chai/1.9.1/test/display/message.js +47 -0
- data/components/chaijs/chai/1.9.1/test/expect.js +814 -0
- data/components/chaijs/chai/1.9.1/test/globalShould.js +15 -0
- data/components/chaijs/chai/1.9.1/test/plugins.js +24 -0
- data/components/chaijs/chai/1.9.1/test/should.js +744 -0
- data/components/chaijs/chai/1.9.1/test/utilities.js +309 -0
- data/components/chaijs/deep-eql/0.1.3/component.json +20 -0
- data/components/chaijs/deep-eql/0.1.3/lib/eql.js +257 -0
- data/components/chaijs/type-detect/0.1.1/component.json +18 -0
- data/components/chaijs/type-detect/0.1.1/lib/type.js +142 -0
- data/{vendor/components/indefinido-indemma/components/component-bind → components/component/bind/0.0.1}/component.json +1 -1
- data/{vendor/components/component-classes → components/component/classes/1.1.2}/component.json +1 -1
- data/components/component/classes/1.2.1/component.json +19 -0
- data/components/component/classes/1.2.1/index.js +184 -0
- data/{vendor/components/component-css → components/component/css/0.0.2}/component.json +2 -2
- data/{vendor/components/component-delegate → components/component/delegate/0.1.0}/component.json +2 -2
- data/components/component/dialog/0.2.0/component.json +35 -0
- data/{vendor/components/component-dialog → components/component/dialog/0.2.0}/index.js +74 -40
- data/components/component/dialog/0.2.0/template.html +9 -0
- data/{vendor/components/component-dom → components/component/dom/0.7.1}/component.json +6 -4
- data/{vendor/components/component-domify → components/component/domify/1.0.0}/component.json +6 -4
- data/components/component/domify/1.2.2/component.json +22 -0
- data/components/component/domify/1.2.2/index.js +87 -0
- data/{vendor/components/component-emitter → components/component/emitter/1.0.0}/component.json +1 -1
- data/{vendor/components/component-event → components/component/event/0.1.0}/component.json +3 -3
- data/components/component/event/0.1.0/index.js +40 -0
- data/components/component/event/0.1.3/component.json +13 -0
- data/{vendor/components/component-event → components/component/event/0.1.3}/index.js +3 -5
- data/{vendor/components/component-indexof → components/component/indexof/0.0.1}/component.json +1 -1
- data/{vendor/components/indefinido-indemma/components/component-jquery → components/component/jquery/1.9.1}/component.json +1 -1
- data/{vendor/components/component-matches-selector → components/component/matches-selector/0.1.2}/component.json +6 -4
- data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/component.json +1 -1
- data/{vendor/components/component-query → components/component/query/0.0.1}/component.json +6 -4
- data/components/component/query/0.0.3/component.json +23 -0
- data/components/component/query/0.0.3/index.js +21 -0
- data/{vendor/components/component-querystring → components/component/querystring/1.3.0}/component.json +4 -3
- data/{vendor/components/component-querystring → components/component/querystring/1.3.0}/index.js +26 -2
- data/{vendor/components/component-sort → components/component/sort/0.0.3}/component.json +2 -2
- data/{vendor/components/component-trim → components/component/trim/0.0.1}/component.json +1 -1
- data/{vendor/components/indefinido-indemma/components/component-type → components/component/type/1.0.0}/component.json +4 -2
- data/{vendor/components/component-value → components/component/value/1.1.0}/component.json +6 -4
- data/{vendor/components/components-modernizr → components/components/modernizr/2.6.2}/component.json +2 -3
- data/{vendor/components/indefinido-indemma/components/indefinido-advisable → components/indefinido/advisable/master}/component.json +2 -2
- data/components/indefinido/indemma/master/History.md +0 -0
- data/components/indefinido/indemma/master/build/build.js +26288 -0
- data/components/indefinido/indemma/master/build/development.js +22200 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/build/release.js +264 -273
- data/components/indefinido/indemma/master/build/test.js +22200 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/component.json +6 -6
- data/components/indefinido/indemma/master/components/chaijs-assertion-error/index.js +110 -0
- data/components/indefinido/indemma/master/components/chaijs-chai/index.js +1 -0
- data/components/indefinido/indemma/master/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/associable.js +2 -14
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/rest.js +2 -7
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/restfulable.js +9 -33
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/scopable.js +45 -16
- data/components/indefinido/indemma/master/lib/record/validatable.js +1100 -0
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/associable_spec.js +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/scopable_spec.js +53 -83
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/cpf_spec.js +6 -5
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/associable.coffee +0 -6
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/persistable.coffee +0 -2
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/queryable.coffee +2 -1
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/resource.coffee +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/rest.coffee +1 -7
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/restfulable.coffee +8 -34
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/scopable.coffee +31 -32
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validatable.coffee +1 -12
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/associable_spec.coffee +2 -3
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/scopable_spec.coffee +43 -76
- data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/cpf_spec.coffee +4 -3
- data/{vendor/components/mikeric-rivets → components/mikeric/rivets/v0.5.12}/component.json +2 -2
- data/{vendor/components/paulmillr-es6-shim → components/paulmillr/es6-shim/0.10.1}/component.json +11 -4
- data/components/paulmillr/es6-shim/0.10.1/es6-shim.js +1833 -0
- data/{vendor/components/pluma-assimilate → components/pluma/assimilate/0.3.0}/component.json +3 -3
- data/{vendor/components/segmentio-extend → components/segmentio/extend/1.0.0}/component.json +3 -3
- data/lib/assets/javascripts/aura/extensions/models.js.coffee.erb +14 -14
- data/lib/assets/javascripts/aura/extensions/rivets/accounting.js.coffee +1 -1
- data/lib/assets/javascripts/aura/extensions/rivets.js.coffee +3 -3
- data/lib/assets/javascripts/aura/extensions/stamps/stampit.js +568 -242
- data/lib/assets/javascripts/aura/extensions/widget/#composable.js.coffee# +135 -0
- data/lib/assets/javascripts/aura/extensions/widget/composable.js.coffee +2 -2
- data/lib/assets/javascripts/config/load_components.js.coffee +10 -10
- data/lib/assets/javascripts/ende.js.coffee +21 -18
- data/lib/assets/javascripts/widgets/support/adapters/olark.js +1 -4
- data/lib/assets/javascripts/widgets/viewer/main.js.coffee +8 -4
- data/lib/assets/javascripts/widgets/viewer/plugins/scopable.js.coffee +6 -7
- data/lib/ende/version.rb +1 -1
- data/vendor/assets/components/build.css +4 -3
- data/vendor/assets/components/ende_build.js +29772 -21943
- metadata +284 -217
- data/vendor/components/KapIT-observe-utils/component.json +0 -16
- data/vendor/components/KapIT-observe-utils/lib/observe-utils.js +0 -780
- data/vendor/components/component-dialog/component.json +0 -23
- data/vendor/components/component-dialog/template.js +0 -1
- data/vendor/components/indefinido-indemma/build/development.js +0 -343
- data/vendor/components/indefinido-indemma/build/test.js +0 -343
- data/vendor/components/indefinido-indemma/lib/record/validatable.js +0 -224
- data/vendor/components/indefinido-observable/component.json +0 -24
- data/vendor/components/indefinido-observable/index.js +0 -1
- data/vendor/components/indefinido-observable/lib/adapters/rivets.js +0 -28
- data/vendor/components/indefinido-observable/lib/observable.js +0 -390
- data/vendor/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -92
- data/vendor/components/indefinido-observable/vendor/shims/accessors.js +0 -248
- data/vendor/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -8
- data/vendor/components/indefinido-observable/vendor/shims/object.create.js +0 -77
- data/vendor/components/paulmillr-es6-shim/es6-shim.js +0 -996
- /data/{vendor/components/indefinido-indemma/components/chaijs-assertion-error → components/chaijs/assertion-error/1.0.0}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma/components/chaijs-chai → components/chaijs/chai/1.9.1}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma/components/chaijs-chai → components/chaijs/chai/1.9.1}/lib/chai/utils/inspect.js +0 -0
- /data/{vendor/components/indefinido-indemma/History.md → components/chaijs/chai/1.9.1/test/auth/.gitkeep} +0 -0
- /data/{vendor/components/component-bind → components/component/bind/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-classes → components/component/classes/1.1.2}/index.js +0 -0
- /data/{vendor/components/component-css → components/component/css/0.0.2}/index.js +0 -0
- /data/{vendor/components/component-delegate → components/component/delegate/0.1.0}/index.js +0 -0
- /data/{vendor/components/component-dialog → components/component/dialog/0.2.0}/dialog.css +0 -0
- /data/{vendor/components/component-dom → components/component/dom/0.7.1}/index.js +0 -0
- /data/{vendor/components/component-domify → components/component/domify/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-emitter → components/component/emitter/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-indexof → components/component/indexof/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-jquery → components/component/jquery/1.9.1}/index.js +0 -0
- /data/{vendor/components/component-matches-selector → components/component/matches-selector/0.1.2}/index.js +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/index.js +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/overlay.css +0 -0
- /data/{vendor/components/component-overlay → components/component/overlay/0.1.1}/template.js +0 -0
- /data/{vendor/components/component-query → components/component/query/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-sort → components/component/sort/0.0.3}/index.js +0 -0
- /data/{vendor/components/component-trim → components/component/trim/0.0.1}/index.js +0 -0
- /data/{vendor/components/component-type → components/component/type/1.0.0}/index.js +0 -0
- /data/{vendor/components/component-value → components/component/value/1.1.0}/index.js +0 -0
- /data/{vendor/components/components-modernizr → components/components/modernizr/2.6.2}/modernizr.js +0 -0
- /data/{vendor/components/indefinido-advisable → components/indefinido/advisable/master}/index.js +0 -0
- /data/{vendor/components/indefinido-advisable → components/indefinido/advisable/master}/lib/advisable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.gitignore +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.ruby-gemset +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/.ruby-version +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Gemfile +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Guardfile +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/Readme.md +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-assertion-error/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/assertion.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/core/assertions.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/assert.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/expect.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/interface/should.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/addProperty.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/eql.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/flag.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getActual.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getMessage.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getName.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getPathValue.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/getProperties.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/objDisplay.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/test.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/transferFlags.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai/utils/type.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/chaijs-chai/lib/chai.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-bind/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-bind/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-jquery/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-jquery/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/component-type/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/component-type/index.js +0 -0
- /data/{vendor → components/indefinido/indemma/master}/components/indefinido-advisable/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-advisable/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-advisable/lib/advisable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/components/cjohansen-sinon/sinon.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/lib/adapters/rivets.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/lib/observable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/accessors-legacy.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/accessors.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/array.indexOf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/indefinido-observable/vendor/shims/object.create.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/kapit-observe-utils/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/paulmillr-es6-shim/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/paulmillr-es6-shim/es6-shim.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/pluma-assimilate/component.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/components/pluma-assimilate/dist/assimilate.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/index.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/karma.conf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/extensions/rivets.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/errors.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/maid.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/persistable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/queryable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/resource.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/storable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/translationable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/associated.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/confirmation.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/cpf.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/presence.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/remote.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/type.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record/validations/validatorable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/lib/record.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/package.json +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/persistable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/queryable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/resource_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/rest_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/restfulable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/storable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/translationable.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validatable_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/associated_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/confirmation_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/presence_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/remote_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record/validations/type_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/record_spec.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/spec_helper.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/spec/support/value_objects/phone.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/extensions/rivets.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/errors.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/maid.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/storable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/translationable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/associated.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/confirmation.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/cpf.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/presence.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/remote.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/type.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record/validations/validatorable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/lib/record.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/persistable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/queryable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/resource_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/rest_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/restfulable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/storable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/translationable.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validatable_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/associated_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/confirmation_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/presence_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/remote_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record/validations/type_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/record_spec.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/spec_helper.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/src/spec/support/value_objects/phone.coffee +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/object/mixin.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/owl/pluralize.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/sinon.js +0 -0
- /data/{vendor/components/indefinido-indemma → components/indefinido/indemma/master}/vendor/stampit.js +0 -0
- /data/{vendor/components/mikeric-rivets → components/mikeric/rivets/v0.5.12}/dist/rivets.js +0 -0
- /data/{vendor/components/pluma-assimilate → components/pluma/assimilate/0.3.0}/dist/assimilate.js +0 -0
- /data/{vendor/components/segmentio-extend → components/segmentio/extend/1.0.0}/index.js +0 -0
@@ -1,5 +1,24 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.stampit=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
2
|
+
var forIn = _dereq_('mout/object/forIn');
|
3
|
+
|
4
|
+
function copyProp(val, key){
|
5
|
+
this[key] = val;
|
6
|
+
}
|
7
|
+
|
8
|
+
module.exports = function mixInChain(target, objects){
|
9
|
+
var i = 0,
|
10
|
+
n = arguments.length,
|
11
|
+
obj;
|
12
|
+
while(++i < n){
|
13
|
+
obj = arguments[i];
|
14
|
+
if (obj != null) {
|
15
|
+
forIn(obj, copyProp, target);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
return target;
|
19
|
+
};
|
20
|
+
|
21
|
+
},{"mout/object/forIn":14}],2:[function(_dereq_,module,exports){
|
3
22
|
|
4
23
|
|
5
24
|
/**
|
@@ -24,306 +43,311 @@ return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require
|
|
24
43
|
|
25
44
|
|
26
45
|
|
27
|
-
},{}],
|
46
|
+
},{}],3:[function(_dereq_,module,exports){
|
47
|
+
var forEach = _dereq_('./forEach');
|
48
|
+
var makeIterator = _dereq_('../function/makeIterator_');
|
28
49
|
|
50
|
+
/**
|
51
|
+
* Array map
|
52
|
+
*/
|
53
|
+
function map(arr, callback, thisObj) {
|
54
|
+
callback = makeIterator(callback, thisObj);
|
55
|
+
var results = [];
|
56
|
+
if (arr == null){
|
57
|
+
return results;
|
58
|
+
}
|
59
|
+
|
60
|
+
var i = -1, len = arr.length;
|
61
|
+
while (++i < len) {
|
62
|
+
results[i] = callback(arr[i], i, arr);
|
63
|
+
}
|
29
64
|
|
30
|
-
|
31
|
-
return Array.prototype.slice.call(arr, offset || 0);
|
65
|
+
return results;
|
32
66
|
}
|
33
67
|
|
68
|
+
module.exports = map;
|
69
|
+
|
70
|
+
|
71
|
+
},{"../function/makeIterator_":4,"./forEach":2}],4:[function(_dereq_,module,exports){
|
72
|
+
var prop = _dereq_('./prop');
|
73
|
+
var deepMatches = _dereq_('../object/deepMatches');
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Converts argument into a valid iterator.
|
77
|
+
* Used internally on most array/object/collection methods that receives a
|
78
|
+
* callback/iterator providing a shortcut syntax.
|
79
|
+
*/
|
80
|
+
function makeIterator(src, thisObj){
|
81
|
+
switch(typeof src) {
|
82
|
+
case 'object':
|
83
|
+
// typeof null == "object"
|
84
|
+
return (src != null)? function(val, key, target){
|
85
|
+
return deepMatches(val, src);
|
86
|
+
} : src;
|
87
|
+
case 'string':
|
88
|
+
case 'number':
|
89
|
+
return prop(src);
|
90
|
+
case 'function':
|
91
|
+
if (typeof thisObj === 'undefined') {
|
92
|
+
return src;
|
93
|
+
} else {
|
94
|
+
return function(val, i, arr){
|
95
|
+
return src.call(thisObj, val, i, arr);
|
96
|
+
};
|
97
|
+
}
|
98
|
+
default:
|
99
|
+
return src;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
module.exports = makeIterator;
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
},{"../object/deepMatches":13,"./prop":5}],5:[function(_dereq_,module,exports){
|
108
|
+
|
109
|
+
|
34
110
|
/**
|
35
|
-
*
|
36
|
-
* @param {Function} fn Function.
|
37
|
-
* @param {object} context Execution context.
|
38
|
-
* @param {rest} args Arguments (0...n arguments).
|
39
|
-
* @return {Function} Wrapped Function.
|
111
|
+
* Returns a function that gets a property of the passed object
|
40
112
|
*/
|
41
|
-
function
|
42
|
-
|
43
|
-
|
44
|
-
return fn.apply(context, argsArr.concat(slice(arguments)));
|
113
|
+
function prop(name){
|
114
|
+
return function(obj){
|
115
|
+
return obj[name];
|
45
116
|
};
|
46
117
|
}
|
47
118
|
|
48
|
-
module.exports =
|
119
|
+
module.exports = prop;
|
49
120
|
|
50
121
|
|
51
122
|
|
52
|
-
},{}],
|
53
|
-
var
|
123
|
+
},{}],6:[function(_dereq_,module,exports){
|
124
|
+
var kindOf = _dereq_('./kindOf');
|
125
|
+
var isPlainObject = _dereq_('./isPlainObject');
|
126
|
+
var mixIn = _dereq_('../object/mixIn');
|
54
127
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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;
|
128
|
+
/**
|
129
|
+
* Clone native types.
|
130
|
+
*/
|
131
|
+
function clone(val){
|
132
|
+
switch (kindOf(val)) {
|
133
|
+
case 'Object':
|
134
|
+
return cloneObject(val);
|
135
|
+
case 'Array':
|
136
|
+
return cloneArray(val);
|
137
|
+
case 'RegExp':
|
138
|
+
return cloneRegExp(val);
|
139
|
+
case 'Date':
|
140
|
+
return cloneDate(val);
|
141
|
+
default:
|
142
|
+
return val;
|
85
143
|
}
|
86
144
|
}
|
87
145
|
|
88
|
-
|
146
|
+
function cloneObject(source) {
|
147
|
+
if (isPlainObject(source)) {
|
148
|
+
return mixIn({}, source);
|
149
|
+
} else {
|
150
|
+
return source;
|
151
|
+
}
|
152
|
+
}
|
89
153
|
|
90
|
-
|
154
|
+
function cloneRegExp(r) {
|
155
|
+
var flags = '';
|
156
|
+
flags += r.multiline ? 'm' : '';
|
157
|
+
flags += r.global ? 'g' : '';
|
158
|
+
flags += r.ignorecase ? 'i' : '';
|
159
|
+
return new RegExp(r.source, flags);
|
160
|
+
}
|
91
161
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
**
|
96
|
-
* Create objects from reusable, composable behaviors.
|
97
|
-
**
|
98
|
-
* Copyright (c) 2013 Eric Elliott
|
99
|
-
* http://opensource.org/licenses/MIT
|
100
|
-
**/
|
162
|
+
function cloneDate(date) {
|
163
|
+
return new Date(+date);
|
164
|
+
}
|
101
165
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
var mixIn = require('mout/object/mixIn');
|
106
|
-
var stringify = require('json-stringify-safe');
|
107
|
-
var indexOf = require('./indexof'); // shim indexOf for stringify
|
166
|
+
function cloneArray(arr) {
|
167
|
+
return arr.slice();
|
168
|
+
}
|
108
169
|
|
109
|
-
|
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
|
-
};
|
170
|
+
module.exports = clone;
|
117
171
|
|
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
172
|
|
141
|
-
factory = function factory(properties, enclose) {
|
142
|
-
var instance = mixIn(create(fixed.methods || {}),
|
143
|
-
fixed.state, properties),
|
144
|
-
alt;
|
145
173
|
|
146
|
-
|
147
|
-
|
148
|
-
|
174
|
+
},{"../object/mixIn":18,"./isPlainObject":11,"./kindOf":12}],7:[function(_dereq_,module,exports){
|
175
|
+
var clone = _dereq_('./clone');
|
176
|
+
var forOwn = _dereq_('../object/forOwn');
|
177
|
+
var kindOf = _dereq_('./kindOf');
|
178
|
+
var isPlainObject = _dereq_('./isPlainObject');
|
149
179
|
|
150
|
-
|
151
|
-
|
152
|
-
|
180
|
+
/**
|
181
|
+
* Recursively clone native types.
|
182
|
+
*/
|
183
|
+
function deepClone(val, instanceClone) {
|
184
|
+
switch ( kindOf(val) ) {
|
185
|
+
case 'Object':
|
186
|
+
return cloneObject(val, instanceClone);
|
187
|
+
case 'Array':
|
188
|
+
return cloneArray(val, instanceClone);
|
189
|
+
default:
|
190
|
+
return clone(val);
|
191
|
+
}
|
192
|
+
}
|
153
193
|
|
154
|
-
|
155
|
-
|
194
|
+
function cloneObject(source, instanceClone) {
|
195
|
+
if (isPlainObject(source)) {
|
196
|
+
var out = {};
|
197
|
+
forOwn(source, function(val, key) {
|
198
|
+
this[key] = deepClone(val, instanceClone);
|
199
|
+
}, out);
|
200
|
+
return out;
|
201
|
+
} else if (instanceClone) {
|
202
|
+
return instanceClone(source);
|
203
|
+
} else {
|
204
|
+
return source;
|
205
|
+
}
|
206
|
+
}
|
156
207
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
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;
|
208
|
+
function cloneArray(arr, instanceClone) {
|
209
|
+
var out = [],
|
210
|
+
i = -1,
|
211
|
+
n = arr.length,
|
212
|
+
val;
|
213
|
+
while (++i < n) {
|
214
|
+
out[i] = deepClone(arr[i], instanceClone);
|
215
|
+
}
|
216
|
+
return out;
|
175
217
|
}
|
176
|
-
});
|
177
|
-
};
|
178
218
|
|
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'];
|
219
|
+
module.exports = deepClone;
|
192
220
|
|
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
221
|
|
202
|
-
if (typeof source.fixed.enclose === 'function') {
|
203
|
-
initFunctions.push(source.fixed.enclose);
|
204
|
-
}
|
205
|
-
}
|
206
|
-
});
|
207
222
|
|
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
223
|
|
215
|
-
|
224
|
+
},{"../object/forOwn":15,"./clone":6,"./isPlainObject":11,"./kindOf":12}],8:[function(_dereq_,module,exports){
|
225
|
+
var isKind = _dereq_('./isKind');
|
226
|
+
/**
|
227
|
+
*/
|
228
|
+
var isArray = Array.isArray || function (val) {
|
229
|
+
return isKind(val, 'Array');
|
230
|
+
};
|
231
|
+
module.exports = isArray;
|
216
232
|
|
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
233
|
|
234
|
-
},{"
|
235
|
-
|
234
|
+
},{"./isKind":9}],9:[function(_dereq_,module,exports){
|
235
|
+
var kindOf = _dereq_('./kindOf');
|
236
|
+
/**
|
237
|
+
* Check if value is from a specific "kind".
|
238
|
+
*/
|
239
|
+
function isKind(val, kind){
|
240
|
+
return kindOf(val) === kind;
|
241
|
+
}
|
242
|
+
module.exports = isKind;
|
243
|
+
|
236
244
|
|
237
|
-
function
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
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);
|
245
|
+
},{"./kindOf":12}],10:[function(_dereq_,module,exports){
|
246
|
+
var isKind = _dereq_('./isKind');
|
247
|
+
/**
|
248
|
+
*/
|
249
|
+
function isObject(val) {
|
250
|
+
return isKind(val, 'Object');
|
249
251
|
}
|
250
|
-
|
251
|
-
return ret;
|
252
|
-
}
|
253
|
-
}
|
252
|
+
module.exports = isObject;
|
254
253
|
|
255
|
-
function stringify(obj, fn, spaces, decycle) {
|
256
|
-
return JSON.stringify(obj, getSerialize(fn, decycle), spaces);
|
257
|
-
}
|
258
254
|
|
259
|
-
|
255
|
+
},{"./isKind":9}],11:[function(_dereq_,module,exports){
|
260
256
|
|
261
|
-
},{}],5:[function(require,module,exports){
|
262
|
-
var forOwn = require('./forOwn');
|
263
257
|
|
264
258
|
/**
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
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;
|
259
|
+
* Checks if the value is created by the `Object` constructor.
|
260
|
+
*/
|
261
|
+
function isPlainObject(value) {
|
262
|
+
return (!!value
|
263
|
+
&& typeof value === 'object'
|
264
|
+
&& value.constructor === Object);
|
282
265
|
}
|
283
266
|
|
284
|
-
|
285
|
-
|
286
|
-
}
|
267
|
+
module.exports = isPlainObject;
|
268
|
+
|
287
269
|
|
288
|
-
module.exports = mixIn;
|
289
270
|
|
271
|
+
},{}],12:[function(_dereq_,module,exports){
|
290
272
|
|
291
|
-
|
292
|
-
var
|
293
|
-
|
273
|
+
|
274
|
+
var _rKind = /^\[object (.*)\]$/,
|
275
|
+
_toString = Object.prototype.toString,
|
276
|
+
UNDEF;
|
294
277
|
|
295
278
|
/**
|
296
|
-
*
|
297
|
-
* Enum bug on IE.
|
298
|
-
* based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
|
279
|
+
* Gets the "kind" of value. (e.g. "String", "Number", etc)
|
299
280
|
*/
|
300
|
-
function
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
}
|
281
|
+
function kindOf(val) {
|
282
|
+
if (val === null) {
|
283
|
+
return 'Null';
|
284
|
+
} else if (val === UNDEF) {
|
285
|
+
return 'Undefined';
|
286
|
+
} else {
|
287
|
+
return _rKind.exec( _toString.call(val) )[1];
|
288
|
+
}
|
306
289
|
}
|
290
|
+
module.exports = kindOf;
|
307
291
|
|
308
|
-
module.exports = forOwn;
|
309
292
|
|
293
|
+
},{}],13:[function(_dereq_,module,exports){
|
294
|
+
var forOwn = _dereq_('./forOwn');
|
295
|
+
var isArray = _dereq_('../lang/isArray');
|
310
296
|
|
297
|
+
function containsMatch(array, pattern) {
|
298
|
+
var i = -1, length = array.length;
|
299
|
+
while (++i < length) {
|
300
|
+
if (deepMatches(array[i], pattern)) {
|
301
|
+
return true;
|
302
|
+
}
|
303
|
+
}
|
311
304
|
|
312
|
-
|
305
|
+
return false;
|
306
|
+
}
|
313
307
|
|
308
|
+
function matchArray(target, pattern) {
|
309
|
+
var i = -1, patternLength = pattern.length;
|
310
|
+
while (++i < patternLength) {
|
311
|
+
if (!containsMatch(target, pattern[i])) {
|
312
|
+
return false;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
316
|
+
return true;
|
317
|
+
}
|
318
|
+
|
319
|
+
function matchObject(target, pattern) {
|
320
|
+
var result = true;
|
321
|
+
forOwn(pattern, function(val, key) {
|
322
|
+
if (!deepMatches(target[key], val)) {
|
323
|
+
// Return false to break out of forOwn early
|
324
|
+
return (result = false);
|
325
|
+
}
|
326
|
+
});
|
327
|
+
|
328
|
+
return result;
|
329
|
+
}
|
314
330
|
|
315
331
|
/**
|
316
|
-
*
|
332
|
+
* Recursively check if the objects match.
|
317
333
|
*/
|
318
|
-
|
319
|
-
|
320
|
-
|
334
|
+
function deepMatches(target, pattern){
|
335
|
+
if (target && typeof target === 'object') {
|
336
|
+
if (isArray(target) && isArray(pattern)) {
|
337
|
+
return matchArray(target, pattern);
|
338
|
+
} else {
|
339
|
+
return matchObject(target, pattern);
|
340
|
+
}
|
341
|
+
} else {
|
342
|
+
return target === pattern;
|
343
|
+
}
|
344
|
+
}
|
321
345
|
|
322
|
-
|
346
|
+
module.exports = deepMatches;
|
323
347
|
|
324
348
|
|
325
349
|
|
326
|
-
},{}],
|
350
|
+
},{"../lang/isArray":8,"./forOwn":15}],14:[function(_dereq_,module,exports){
|
327
351
|
|
328
352
|
|
329
353
|
var _hasDontEnumBug,
|
@@ -387,6 +411,308 @@ var forIn = require('./forIn');
|
|
387
411
|
|
388
412
|
|
389
413
|
|
390
|
-
},{}]
|
414
|
+
},{}],15:[function(_dereq_,module,exports){
|
415
|
+
var hasOwn = _dereq_('./hasOwn');
|
416
|
+
var forIn = _dereq_('./forIn');
|
417
|
+
|
418
|
+
/**
|
419
|
+
* Similar to Array/forEach but works over object properties and fixes Don't
|
420
|
+
* Enum bug on IE.
|
421
|
+
* based on: http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
|
422
|
+
*/
|
423
|
+
function forOwn(obj, fn, thisObj){
|
424
|
+
forIn(obj, function(val, key){
|
425
|
+
if (hasOwn(obj, key)) {
|
426
|
+
return fn.call(thisObj, obj[key], key, obj);
|
427
|
+
}
|
428
|
+
});
|
429
|
+
}
|
430
|
+
|
431
|
+
module.exports = forOwn;
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
},{"./forIn":14,"./hasOwn":16}],16:[function(_dereq_,module,exports){
|
436
|
+
|
437
|
+
|
438
|
+
/**
|
439
|
+
* Safer Object.hasOwnProperty
|
440
|
+
*/
|
441
|
+
function hasOwn(obj, prop){
|
442
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
443
|
+
}
|
444
|
+
|
445
|
+
module.exports = hasOwn;
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
},{}],17:[function(_dereq_,module,exports){
|
450
|
+
var hasOwn = _dereq_('./hasOwn');
|
451
|
+
var deepClone = _dereq_('../lang/deepClone');
|
452
|
+
var isObject = _dereq_('../lang/isObject');
|
453
|
+
|
454
|
+
/**
|
455
|
+
* Deep merge objects.
|
456
|
+
*/
|
457
|
+
function merge() {
|
458
|
+
var i = 1,
|
459
|
+
key, val, obj, target;
|
460
|
+
|
461
|
+
// make sure we don't modify source element and it's properties
|
462
|
+
// objects are passed by reference
|
463
|
+
target = deepClone( arguments[0] );
|
464
|
+
|
465
|
+
while (obj = arguments[i++]) {
|
466
|
+
for (key in obj) {
|
467
|
+
if ( ! hasOwn(obj, key) ) {
|
468
|
+
continue;
|
469
|
+
}
|
470
|
+
|
471
|
+
val = obj[key];
|
472
|
+
|
473
|
+
if ( isObject(val) && isObject(target[key]) ){
|
474
|
+
// inception, deep merge objects
|
475
|
+
target[key] = merge(target[key], val);
|
476
|
+
} else {
|
477
|
+
// make sure arrays, regexp, date, objects are cloned
|
478
|
+
target[key] = deepClone(val);
|
479
|
+
}
|
480
|
+
|
481
|
+
}
|
482
|
+
}
|
483
|
+
|
484
|
+
return target;
|
485
|
+
}
|
486
|
+
|
487
|
+
module.exports = merge;
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
},{"../lang/deepClone":7,"../lang/isObject":10,"./hasOwn":16}],18:[function(_dereq_,module,exports){
|
492
|
+
var forOwn = _dereq_('./forOwn');
|
493
|
+
|
494
|
+
/**
|
495
|
+
* Combine properties from all the objects into first one.
|
496
|
+
* - This method affects target object in place, if you want to create a new Object pass an empty object as first param.
|
497
|
+
* @param {object} target Target Object
|
498
|
+
* @param {...object} objects Objects to be combined (0...n objects).
|
499
|
+
* @return {object} Target Object.
|
500
|
+
*/
|
501
|
+
function mixIn(target, objects){
|
502
|
+
var i = 0,
|
503
|
+
n = arguments.length,
|
504
|
+
obj;
|
505
|
+
while(++i < n){
|
506
|
+
obj = arguments[i];
|
507
|
+
if (obj != null) {
|
508
|
+
forOwn(obj, copyProp, target);
|
509
|
+
}
|
510
|
+
}
|
511
|
+
return target;
|
512
|
+
}
|
513
|
+
|
514
|
+
function copyProp(val, key){
|
515
|
+
this[key] = val;
|
516
|
+
}
|
517
|
+
|
518
|
+
module.exports = mixIn;
|
519
|
+
|
520
|
+
|
521
|
+
},{"./forOwn":15}],19:[function(_dereq_,module,exports){
|
522
|
+
/**
|
523
|
+
* Stampit
|
524
|
+
**
|
525
|
+
* Create objects from reusable, composable behaviors.
|
526
|
+
**
|
527
|
+
* Copyright (c) 2013 Eric Elliott
|
528
|
+
* http://opensource.org/licenses/MIT
|
529
|
+
**/
|
530
|
+
'use strict';
|
531
|
+
var forEach = _dereq_('mout/array/forEach');
|
532
|
+
var mixIn = _dereq_('mout/object/mixIn');
|
533
|
+
var merge = _dereq_('mout/object/merge');
|
534
|
+
var map = _dereq_('mout/array/map');
|
535
|
+
var forOwn = _dereq_('mout/object/forOwn');
|
536
|
+
var mixInChain = _dereq_('./mixinchain.js');
|
537
|
+
var slice = [].slice;
|
538
|
+
|
539
|
+
var create = function (o) {
|
540
|
+
if (arguments.length > 1) {
|
541
|
+
throw new Error('Object.create implementation only accepts the first parameter.');
|
542
|
+
}
|
543
|
+
function F() {}
|
544
|
+
F.prototype = o;
|
545
|
+
return new F();
|
546
|
+
};
|
547
|
+
|
548
|
+
if(!Array.isArray) {
|
549
|
+
Array.isArray = function (vArg) {
|
550
|
+
return Object.prototype.toString.call(vArg) === "[object Array]";
|
551
|
+
};
|
552
|
+
}
|
553
|
+
|
554
|
+
var extractFunctions = function extractFunctions(arg) {
|
555
|
+
var arr = [],
|
556
|
+
args = [].slice.call(arguments);
|
557
|
+
|
558
|
+
if (typeof arg === 'function') {
|
559
|
+
arr = map(args, function (fn) {
|
560
|
+
if (typeof fn === 'function') {
|
561
|
+
return fn;
|
562
|
+
}
|
563
|
+
});
|
564
|
+
} else if (typeof arg === 'object') {
|
565
|
+
forEach(args, function (obj) {
|
566
|
+
forOwn(obj, function (fn) {
|
567
|
+
arr.push(fn);
|
568
|
+
});
|
569
|
+
});
|
570
|
+
} else if ( Array.isArray(arg) ) {
|
571
|
+
forEach(arg, function (fn) {
|
572
|
+
arr.push(fn);
|
573
|
+
});
|
574
|
+
}
|
575
|
+
return arr;
|
576
|
+
};
|
577
|
+
|
578
|
+
/**
|
579
|
+
* Return a factory function that will produce new objects using the
|
580
|
+
* prototypes that are passed in or composed.
|
581
|
+
*
|
582
|
+
* @param {Object} [methods] A map of method names and bodies for delegation.
|
583
|
+
* @param {Object} [state] A map of property names and values to clone for each new object.
|
584
|
+
* @param {Function} [enclose] A closure (function) used to create private data and privileged methods.
|
585
|
+
* @return {Function} factory A factory to produce objects using the given prototypes.
|
586
|
+
* @return {Function} factory.create Just like calling the factory function.
|
587
|
+
* @return {Object} factory.fixed An object map containing the fixed prototypes.
|
588
|
+
* @return {Function} factory.methods Add methods to the methods prototype. Chainable.
|
589
|
+
* @return {Function} factory.state Add properties to the state prototype. Chainable.
|
590
|
+
* @return {Function} factory.enclose Add or replace the closure prototype. Not chainable.
|
591
|
+
*/
|
592
|
+
var stampit = function stampit(methods, state, enclose) {
|
593
|
+
var fixed = {
|
594
|
+
methods: methods || {},
|
595
|
+
state: state,
|
596
|
+
enclose: extractFunctions(enclose)
|
597
|
+
},
|
598
|
+
|
599
|
+
factory = function factory(properties) {
|
600
|
+
var state = merge({}, fixed.state),
|
601
|
+
instance = mixIn(create(fixed.methods || {}),
|
602
|
+
state, properties),
|
603
|
+
closures = fixed.enclose,
|
604
|
+
args = slice.call(arguments, 1);
|
605
|
+
|
606
|
+
forEach(closures, function (fn) {
|
607
|
+
if (typeof fn === 'function') {
|
608
|
+
instance = fn.apply(instance, args) || instance;
|
609
|
+
}
|
610
|
+
});
|
611
|
+
|
612
|
+
return instance;
|
613
|
+
};
|
614
|
+
|
615
|
+
return mixIn(factory, {
|
616
|
+
create: factory,
|
617
|
+
fixed: fixed,
|
618
|
+
/**
|
619
|
+
* Take n objects and add them to the methods prototype.
|
620
|
+
* @return {Object} stamp The factory in question (`this`).
|
621
|
+
*/
|
622
|
+
methods: function stampMethods() {
|
623
|
+
var obj = fixed.methods || {},
|
624
|
+
args = [obj].concat([].slice.call(arguments));
|
625
|
+
fixed.methods = mixInChain.apply(this, args);
|
626
|
+
return this;
|
627
|
+
},
|
628
|
+
/**
|
629
|
+
* Take n objects and add them to the state prototype.
|
630
|
+
* @return {Object} stamp The factory in question (`this`).
|
631
|
+
*/
|
632
|
+
state: function stampState() {
|
633
|
+
var obj = fixed.state || {},
|
634
|
+
args = [obj].concat([].slice.call(arguments));
|
635
|
+
fixed.state = mixIn.apply(this, args);
|
636
|
+
return this;
|
637
|
+
},
|
638
|
+
/**
|
639
|
+
* Take n functions, an array of functions, or n objects and add
|
640
|
+
* the functions to the enclose prototype.
|
641
|
+
* @return {Object} stamp The factory in question (`this`).
|
642
|
+
*/
|
643
|
+
enclose: function stampEnclose() {
|
644
|
+
fixed.enclose = fixed.enclose
|
645
|
+
.concat( extractFunctions.apply(null, arguments) );
|
646
|
+
return this;
|
647
|
+
}
|
648
|
+
});
|
649
|
+
};
|
650
|
+
|
651
|
+
/**
|
652
|
+
* Take two or more factories produced from stampit() and
|
653
|
+
* combine them to produce a new factory. Combining overrides
|
654
|
+
* properties with last-in priority.
|
655
|
+
*
|
656
|
+
* @param {...Function} factory A factory produced by stampit().
|
657
|
+
* @return {Function} A new stampit factory composed from arguments.
|
658
|
+
*/
|
659
|
+
var compose = function compose() {
|
660
|
+
var args = [].slice.call(arguments),
|
661
|
+
obj = stampit();
|
662
|
+
|
663
|
+
forEach(args, function (source) {
|
664
|
+
if (source) {
|
665
|
+
if (source.fixed.methods) {
|
666
|
+
obj.fixed.methods = mixInChain({}, obj.fixed.methods,
|
667
|
+
source.fixed.methods);
|
668
|
+
}
|
669
|
+
|
670
|
+
if (source.fixed.state) {
|
671
|
+
obj.fixed.state = mixIn({}, obj.fixed.state,
|
672
|
+
source.fixed.state);
|
673
|
+
}
|
674
|
+
|
675
|
+
if (source.fixed.enclose) {
|
676
|
+
obj.fixed.enclose = obj.fixed.enclose
|
677
|
+
.concat(source.fixed.enclose);
|
678
|
+
}
|
679
|
+
}
|
680
|
+
});
|
681
|
+
|
682
|
+
return stampit(obj.fixed.methods, obj.fixed.state,
|
683
|
+
obj.fixed.enclose);
|
684
|
+
};
|
685
|
+
|
686
|
+
/**
|
687
|
+
* Take an old-fashioned JS constructor and return a stampit stamp
|
688
|
+
* that you can freely compose with other stamps.
|
689
|
+
* @param {Function} Constructor
|
690
|
+
* @return {Function} A composable stampit factory
|
691
|
+
* (aka stamp).
|
692
|
+
*/
|
693
|
+
var convertConstructor = function convertConstructor(Constructor) {
|
694
|
+
return stampit().methods(Constructor.prototype).enclose(Constructor);
|
695
|
+
};
|
696
|
+
|
697
|
+
module.exports = mixIn(stampit, {
|
698
|
+
compose: compose,
|
699
|
+
/**
|
700
|
+
* Alias for mixIn
|
701
|
+
*/
|
702
|
+
extend: mixIn,
|
703
|
+
/**
|
704
|
+
* Take a destination object followed by one or more source objects,
|
705
|
+
* and copy the source object properties to the destination object,
|
706
|
+
* with last in priority overrides.
|
707
|
+
* @param {Object} destination An object to copy properties to.
|
708
|
+
* @param {...Object} source An object to copy properties from.
|
709
|
+
* @returns {Object}
|
710
|
+
*/
|
711
|
+
mixIn: mixIn,
|
712
|
+
|
713
|
+
convertConstructor: convertConstructor
|
391
714
|
});
|
392
|
-
|
715
|
+
|
716
|
+
},{"./mixinchain.js":1,"mout/array/forEach":2,"mout/array/map":3,"mout/object/forOwn":15,"mout/object/merge":17,"mout/object/mixIn":18}]},{},[19])
|
717
|
+
(19)
|
718
|
+
});
|