ende 0.2.9 → 0.2.10

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.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/assets/javascripts/aura/extensions/devise.js.coffee +2 -2
  3. data/lib/assets/javascripts/widgets/viewer/main.js.coffee +1 -1
  4. data/lib/ende/version.rb +1 -1
  5. data/vendor/assets/components/build.js +638 -133
  6. data/vendor/components/indefinido-indemma/.gitignore +14 -0
  7. data/vendor/components/indefinido-indemma/.gitignore~ +2 -0
  8. data/vendor/components/indefinido-indemma/.ruby-gemset +1 -0
  9. data/vendor/components/indefinido-indemma/.ruby-version +1 -0
  10. data/vendor/components/indefinido-indemma/Gemfile +13 -0
  11. data/vendor/components/indefinido-indemma/Guardfile +39 -0
  12. data/vendor/components/indefinido-indemma/History.md +0 -0
  13. data/vendor/components/indefinido-indemma/Readme.md +447 -0
  14. data/vendor/components/indefinido-indemma/build/development.js +340 -0
  15. data/vendor/components/indefinido-indemma/build/release.js +22039 -0
  16. data/vendor/components/indefinido-indemma/build/test.js +22039 -0
  17. data/vendor/components/indefinido-indemma/component.json +7 -3
  18. data/vendor/components/indefinido-indemma/components/chaijs-assertion-error/component.json +18 -0
  19. data/vendor/components/indefinido-indemma/components/chaijs-assertion-error/index.js +110 -0
  20. data/vendor/components/indefinido-indemma/components/chaijs-chai/component.json +47 -0
  21. data/vendor/components/indefinido-indemma/components/chaijs-chai/index.js +1 -0
  22. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/assertion.js +130 -0
  23. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/core/assertions.js +1270 -0
  24. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/assert.js +1080 -0
  25. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/expect.js +12 -0
  26. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/interface/should.js +76 -0
  27. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addChainableMethod.js +94 -0
  28. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addMethod.js +37 -0
  29. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/addProperty.js +40 -0
  30. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/eql.js +129 -0
  31. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/flag.js +32 -0
  32. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getActual.js +19 -0
  33. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getEnumerableProperties.js +25 -0
  34. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getMessage.js +49 -0
  35. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getName.js +20 -0
  36. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getPathValue.js +102 -0
  37. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/getProperties.js +35 -0
  38. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/index.js +108 -0
  39. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/inspect.js +320 -0
  40. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/objDisplay.js +48 -0
  41. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/overwriteMethod.js +51 -0
  42. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/overwriteProperty.js +54 -0
  43. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/test.js +26 -0
  44. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/transferFlags.js +44 -0
  45. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai/utils/type.js +45 -0
  46. data/vendor/components/indefinido-indemma/components/chaijs-chai/lib/chai.js +80 -0
  47. data/vendor/components/indefinido-indemma/components/component-bind/component.json +14 -0
  48. data/vendor/components/indefinido-indemma/components/component-bind/index.js +24 -0
  49. data/vendor/components/indefinido-indemma/components/component-jquery/component.json +14 -0
  50. data/vendor/components/indefinido-indemma/components/component-jquery/index.js +9601 -0
  51. data/vendor/components/indefinido-indemma/components/component-type/component.json +18 -0
  52. data/vendor/components/indefinido-indemma/components/component-type/index.js +32 -0
  53. data/vendor/components/indefinido-indemma/components/indefinido-advisable/component.json +21 -0
  54. data/vendor/components/indefinido-indemma/components/indefinido-advisable/index.js +1 -0
  55. data/vendor/components/indefinido-indemma/components/indefinido-advisable/lib/advisable.js +60 -0
  56. data/vendor/components/indefinido-indemma/components/indefinido-observable/component.json +25 -0
  57. data/vendor/components/indefinido-indemma/components/indefinido-observable/components/cjohansen-sinon/sinon.js +4290 -0
  58. data/vendor/components/indefinido-indemma/components/indefinido-observable/index.js +1 -0
  59. data/vendor/components/indefinido-indemma/components/indefinido-observable/lib/adapters/rivets.js +26 -0
  60. data/vendor/components/indefinido-indemma/components/indefinido-observable/lib/observable.js +323 -0
  61. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/accessors-legacy.js +92 -0
  62. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/accessors.js +173 -0
  63. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/array.indexOf.js +8 -0
  64. data/vendor/components/indefinido-indemma/components/indefinido-observable/vendor/shims/object.create.js +77 -0
  65. data/vendor/components/indefinido-indemma/components/kapit-observe-utils/component.json +13 -0
  66. data/vendor/components/indefinido-indemma/components/paulmillr-es6-shim/component.json +17 -0
  67. data/vendor/components/indefinido-indemma/components/paulmillr-es6-shim/es6-shim.js +996 -0
  68. data/vendor/components/indefinido-indemma/components/pluma-assimilate/component.json +25 -0
  69. data/vendor/components/indefinido-indemma/components/pluma-assimilate/dist/assimilate.js +127 -0
  70. data/vendor/components/indefinido-indemma/karma.conf.js +86 -0
  71. data/vendor/components/indefinido-indemma/lib/record/associable.js +229 -82
  72. data/vendor/components/indefinido-indemma/lib/record/errors.js +1 -0
  73. data/vendor/components/indefinido-indemma/lib/record/persistable.js +32 -0
  74. data/vendor/components/indefinido-indemma/lib/record/queryable.js +32 -0
  75. data/vendor/components/indefinido-indemma/lib/record/resource.js +12 -4
  76. data/vendor/components/indefinido-indemma/lib/record/rest.js +1 -1
  77. data/vendor/components/indefinido-indemma/lib/record/restfulable.js +38 -27
  78. data/vendor/components/indefinido-indemma/lib/record/scopable.js +15 -2
  79. data/vendor/components/indefinido-indemma/lib/record/storable.js +48 -0
  80. data/vendor/components/indefinido-indemma/lib/record/validatable.js +10 -5
  81. data/vendor/components/indefinido-indemma/lib/record/validations/cpf.js +1 -1
  82. data/vendor/components/indefinido-indemma/lib/record.js +15 -12
  83. data/vendor/components/indefinido-indemma/spec/record/associable_spec.js +137 -0
  84. data/vendor/components/indefinido-indemma/spec/record/persistable_spec.js +36 -0
  85. data/vendor/components/indefinido-indemma/spec/record/queryable_spec.js +33 -0
  86. data/vendor/components/indefinido-indemma/spec/record/resource_spec.js +93 -0
  87. data/vendor/components/indefinido-indemma/spec/record/rest_spec.js +32 -0
  88. data/vendor/components/indefinido-indemma/spec/record/restfulable_spec.js +288 -0
  89. data/vendor/components/indefinido-indemma/spec/record/scopable_spec.js +212 -0
  90. data/vendor/components/indefinido-indemma/spec/record/storable_spec.js +53 -0
  91. data/vendor/components/indefinido-indemma/spec/record/translationable.js +28 -0
  92. data/vendor/components/indefinido-indemma/spec/record/validatable_spec.js +111 -0
  93. data/vendor/components/indefinido-indemma/spec/record/validations/associated_spec.js +43 -0
  94. data/vendor/components/indefinido-indemma/spec/record/validations/confirmation_spec.js +36 -0
  95. data/vendor/components/indefinido-indemma/spec/record/validations/cpf_spec.js +35 -0
  96. data/vendor/components/indefinido-indemma/spec/record/validations/presence_spec.js +28 -0
  97. data/vendor/components/indefinido-indemma/spec/record/validations/remote_spec.js +87 -0
  98. data/vendor/components/indefinido-indemma/spec/record/validations/type_spec.js +48 -0
  99. data/vendor/components/indefinido-indemma/spec/record_spec.js +37 -0
  100. data/vendor/components/indefinido-indemma/spec/spec_helper.js +11 -0
  101. data/vendor/components/indefinido-indemma/spec/support/value_objects/phone.js +45 -0
  102. data/vendor/components/indefinido-indemma/src/lib/extensions/rivets.coffee +17 -0
  103. data/vendor/components/indefinido-indemma/src/lib/record/associable.coffee +342 -0
  104. data/vendor/components/indefinido-indemma/src/lib/record/errors.coffee +20 -0
  105. data/vendor/components/indefinido-indemma/src/lib/record/maid.coffee +16 -0
  106. data/vendor/components/indefinido-indemma/src/lib/record/persistable.coffee +27 -0
  107. data/vendor/components/indefinido-indemma/src/lib/record/queryable.coffee +29 -0
  108. data/vendor/components/indefinido-indemma/src/lib/record/resource.coffee +106 -0
  109. data/vendor/components/indefinido-indemma/src/lib/record/rest.coffee +28 -0
  110. data/vendor/components/indefinido-indemma/src/lib/record/restfulable.coffee +348 -0
  111. data/vendor/components/indefinido-indemma/src/lib/record/scopable.coffee +275 -0
  112. data/vendor/components/indefinido-indemma/src/lib/record/storable.coffee +46 -0
  113. data/vendor/components/indefinido-indemma/src/lib/record/translationable.coffee +18 -0
  114. data/vendor/components/indefinido-indemma/src/lib/record/validatable.coffee +217 -0
  115. data/vendor/components/indefinido-indemma/src/lib/record/validations/associated.coffee +32 -0
  116. data/vendor/components/indefinido-indemma/src/lib/record/validations/confirmation.coffee +19 -0
  117. data/vendor/components/indefinido-indemma/src/lib/record/validations/cpf.coffee +58 -0
  118. data/vendor/components/indefinido-indemma/src/lib/record/validations/presence.coffee +19 -0
  119. data/vendor/components/indefinido-indemma/src/lib/record/validations/remote.coffee +65 -0
  120. data/vendor/components/indefinido-indemma/src/lib/record/validations/type.coffee +32 -0
  121. data/vendor/components/indefinido-indemma/src/lib/record.coffee +136 -0
  122. data/vendor/components/indefinido-indemma/src/spec/record/associable_spec.coffee +130 -0
  123. data/vendor/components/indefinido-indemma/src/spec/record/persistable_spec.coffee +30 -0
  124. data/vendor/components/indefinido-indemma/src/spec/record/queryable_spec.coffee +27 -0
  125. data/vendor/components/indefinido-indemma/src/spec/record/resource_spec.coffee +69 -0
  126. data/vendor/components/indefinido-indemma/src/spec/record/rest_spec.coffee +22 -0
  127. data/vendor/components/indefinido-indemma/src/spec/record/restfulable_spec.coffee +207 -0
  128. data/vendor/components/indefinido-indemma/src/spec/record/scopable_spec.coffee +191 -0
  129. data/vendor/components/indefinido-indemma/src/spec/record/storable_spec.coffee +40 -0
  130. data/vendor/components/indefinido-indemma/src/spec/record/translationable.coffee +19 -0
  131. data/vendor/components/indefinido-indemma/src/spec/record/validatable_spec.coffee +100 -0
  132. data/vendor/components/indefinido-indemma/src/spec/record/validations/associated_spec.coffee +35 -0
  133. data/vendor/components/indefinido-indemma/src/spec/record/validations/confirmation_spec.coffee +25 -0
  134. data/vendor/components/indefinido-indemma/src/spec/record/validations/cpf_spec.coffee +28 -0
  135. data/vendor/components/indefinido-indemma/src/spec/record/validations/presence_spec.coffee +24 -0
  136. data/vendor/components/indefinido-indemma/src/spec/record/validations/remote_spec.coffee +74 -0
  137. data/vendor/components/indefinido-indemma/src/spec/record/validations/type_spec.coffee +33 -0
  138. data/vendor/components/indefinido-indemma/src/spec/record_spec.coffee +23 -0
  139. data/vendor/components/indefinido-indemma/src/spec/spec_helper.coffee +9 -0
  140. data/vendor/components/indefinido-indemma/src/spec/support/value_objects/phone.coffee +30 -0
  141. data/vendor/components/indefinido-indemma/vendor/object/mixin.js +196 -0
  142. data/vendor/components/indefinido-indemma/vendor/owl/pluralize.js +190 -0
  143. metadata +130 -2
@@ -2,10 +2,10 @@
2
2
  "name": "indemma",
3
3
  "repo": "indefinido/indemma",
4
4
  "description": "Indemma (mind picture = memory), client side ES5 observable REST model",
5
- "version": "0.1.2",
5
+ "version": "0.1.5",
6
6
  "keywords": [],
7
7
  "dependencies": {
8
- "pluma/assimilate": "*",
8
+ "pluma/assimilate": "0.3.0",
9
9
  "component/type": "*",
10
10
  "component/bind": "*",
11
11
  "component/jquery": "*",
@@ -18,8 +18,12 @@
18
18
  "index.js",
19
19
  "vendor/stampit.js",
20
20
  "vendor/sinon.js",
21
+ "vendor/owl/pluralize.js",
21
22
  "lib/record.js",
22
23
  "lib/record/associable.js",
24
+ "lib/record/persistable.js",
25
+ "lib/record/storable.js",
26
+ "lib/record/queryable.js",
23
27
  "lib/record/resource.js",
24
28
  "lib/record/rest.js",
25
29
  "lib/record/restfulable.js",
@@ -35,4 +39,4 @@
35
39
  "lib/record/validatable.js",
36
40
  "lib/extensions/rivets.js"
37
41
  ]
38
- }
42
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "assertion-error",
3
+ "repo": "chaijs/assertion-error",
4
+ "version": "1.0.0",
5
+ "description": "Error constructor for test and validation frameworks that implements standardized AssertionError specification.",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "test",
9
+ "assertion",
10
+ "assertion-error"
11
+ ],
12
+ "main": "index.js",
13
+ "scripts": [
14
+ "index.js"
15
+ ],
16
+ "dependencies": {},
17
+ "development": {}
18
+ }
@@ -0,0 +1,110 @@
1
+ /*!
2
+ * assertion-error
3
+ * Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
4
+ * MIT Licensed
5
+ */
6
+
7
+ /*!
8
+ * Return a function that will copy properties from
9
+ * one object to another excluding any originally
10
+ * listed. Returned function will create a new `{}`.
11
+ *
12
+ * @param {String} excluded properties ...
13
+ * @return {Function}
14
+ */
15
+
16
+ function exclude () {
17
+ var excludes = [].slice.call(arguments);
18
+
19
+ function excludeProps (res, obj) {
20
+ Object.keys(obj).forEach(function (key) {
21
+ if (!~excludes.indexOf(key)) res[key] = obj[key];
22
+ });
23
+ }
24
+
25
+ return function extendExclude () {
26
+ var args = [].slice.call(arguments)
27
+ , i = 0
28
+ , res = {};
29
+
30
+ for (; i < args.length; i++) {
31
+ excludeProps(res, args[i]);
32
+ }
33
+
34
+ return res;
35
+ };
36
+ };
37
+
38
+ /*!
39
+ * Primary Exports
40
+ */
41
+
42
+ module.exports = AssertionError;
43
+
44
+ /**
45
+ * ### AssertionError
46
+ *
47
+ * An extension of the JavaScript `Error` constructor for
48
+ * assertion and validation scenarios.
49
+ *
50
+ * @param {String} message
51
+ * @param {Object} properties to include (optional)
52
+ * @param {callee} start stack function (optional)
53
+ */
54
+
55
+ function AssertionError (message, _props, ssf) {
56
+ var extend = exclude('name', 'message', 'stack', 'constructor', 'toJSON')
57
+ , props = extend(_props || {});
58
+
59
+ // default values
60
+ this.message = message || 'Unspecified AssertionError';
61
+ this.showDiff = false;
62
+
63
+ // copy from properties
64
+ for (var key in props) {
65
+ this[key] = props[key];
66
+ }
67
+
68
+ // capture stack trace
69
+ ssf = ssf || arguments.callee;
70
+ if (ssf && Error.captureStackTrace) {
71
+ Error.captureStackTrace(this, ssf);
72
+ }
73
+ }
74
+
75
+ /*!
76
+ * Inherit from Error.prototype
77
+ */
78
+
79
+ AssertionError.prototype = Object.create(Error.prototype);
80
+
81
+ /*!
82
+ * Statically set name
83
+ */
84
+
85
+ AssertionError.prototype.name = 'AssertionError';
86
+
87
+ /*!
88
+ * Ensure correct constructor
89
+ */
90
+
91
+ AssertionError.prototype.constructor = AssertionError;
92
+
93
+ /**
94
+ * Allow errors to be converted to JSON for static transfer.
95
+ *
96
+ * @param {Boolean} include stack (default: `true`)
97
+ * @return {Object} object that can be `JSON.stringify`
98
+ */
99
+
100
+ AssertionError.prototype.toJSON = function (stack) {
101
+ var extend = exclude('constructor', 'toJSON', 'stack')
102
+ , props = extend({ name: this.name }, this);
103
+
104
+ // include stack if exists and not turned off
105
+ if (false !== stack && this.stack) {
106
+ props.stack = this.stack;
107
+ }
108
+
109
+ return props;
110
+ };
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "chai",
3
+ "repo": "chaijs/chai",
4
+ "version": "1.7.2",
5
+ "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "test",
9
+ "assertion",
10
+ "assert",
11
+ "testing",
12
+ "chai"
13
+ ],
14
+ "main": "index.js",
15
+ "scripts": [
16
+ "index.js",
17
+ "lib/chai.js",
18
+ "lib/chai/assertion.js",
19
+ "lib/chai/core/assertions.js",
20
+ "lib/chai/interface/assert.js",
21
+ "lib/chai/interface/expect.js",
22
+ "lib/chai/interface/should.js",
23
+ "lib/chai/utils/addChainableMethod.js",
24
+ "lib/chai/utils/addMethod.js",
25
+ "lib/chai/utils/addProperty.js",
26
+ "lib/chai/utils/eql.js",
27
+ "lib/chai/utils/flag.js",
28
+ "lib/chai/utils/getActual.js",
29
+ "lib/chai/utils/getEnumerableProperties.js",
30
+ "lib/chai/utils/getMessage.js",
31
+ "lib/chai/utils/getName.js",
32
+ "lib/chai/utils/getPathValue.js",
33
+ "lib/chai/utils/getProperties.js",
34
+ "lib/chai/utils/index.js",
35
+ "lib/chai/utils/inspect.js",
36
+ "lib/chai/utils/objDisplay.js",
37
+ "lib/chai/utils/overwriteMethod.js",
38
+ "lib/chai/utils/overwriteProperty.js",
39
+ "lib/chai/utils/test.js",
40
+ "lib/chai/utils/transferFlags.js",
41
+ "lib/chai/utils/type.js"
42
+ ],
43
+ "dependencies": {
44
+ "chaijs/assertion-error": "1.0.0"
45
+ },
46
+ "development": {}
47
+ }
@@ -0,0 +1 @@
1
+ module.exports = require('./lib/chai');
@@ -0,0 +1,130 @@
1
+ /*!
2
+ * chai
3
+ * http://chaijs.com
4
+ * Copyright(c) 2011-2013 Jake Luer <jake@alogicalparadox.com>
5
+ * MIT Licensed
6
+ */
7
+
8
+ module.exports = function (_chai, util) {
9
+ /*!
10
+ * Module dependencies.
11
+ */
12
+
13
+ var AssertionError = _chai.AssertionError
14
+ , flag = util.flag;
15
+
16
+ /*!
17
+ * Module export.
18
+ */
19
+
20
+ _chai.Assertion = Assertion;
21
+
22
+ /*!
23
+ * Assertion Constructor
24
+ *
25
+ * Creates object for chaining.
26
+ *
27
+ * @api private
28
+ */
29
+
30
+ function Assertion (obj, msg, stack) {
31
+ flag(this, 'ssfi', stack || arguments.callee);
32
+ flag(this, 'object', obj);
33
+ flag(this, 'message', msg);
34
+ }
35
+
36
+ /*!
37
+ * ### Assertion.includeStack
38
+ *
39
+ * User configurable property, influences whether stack trace
40
+ * is included in Assertion error message. Default of false
41
+ * suppresses stack trace in the error message
42
+ *
43
+ * Assertion.includeStack = true; // enable stack on error
44
+ *
45
+ * @api public
46
+ */
47
+
48
+ Assertion.includeStack = false;
49
+
50
+ /*!
51
+ * ### Assertion.showDiff
52
+ *
53
+ * User configurable property, influences whether or not
54
+ * the `showDiff` flag should be included in the thrown
55
+ * AssertionErrors. `false` will always be `false`; `true`
56
+ * will be true when the assertion has requested a diff
57
+ * be shown.
58
+ *
59
+ * @api public
60
+ */
61
+
62
+ Assertion.showDiff = true;
63
+
64
+ Assertion.addProperty = function (name, fn) {
65
+ util.addProperty(this.prototype, name, fn);
66
+ };
67
+
68
+ Assertion.addMethod = function (name, fn) {
69
+ util.addMethod(this.prototype, name, fn);
70
+ };
71
+
72
+ Assertion.addChainableMethod = function (name, fn, chainingBehavior) {
73
+ util.addChainableMethod(this.prototype, name, fn, chainingBehavior);
74
+ };
75
+
76
+ Assertion.overwriteProperty = function (name, fn) {
77
+ util.overwriteProperty(this.prototype, name, fn);
78
+ };
79
+
80
+ Assertion.overwriteMethod = function (name, fn) {
81
+ util.overwriteMethod(this.prototype, name, fn);
82
+ };
83
+
84
+ /*!
85
+ * ### .assert(expression, message, negateMessage, expected, actual)
86
+ *
87
+ * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.
88
+ *
89
+ * @name assert
90
+ * @param {Philosophical} expression to be tested
91
+ * @param {String} message to display if fails
92
+ * @param {String} negatedMessage to display if negated expression fails
93
+ * @param {Mixed} expected value (remember to check for negation)
94
+ * @param {Mixed} actual (optional) will default to `this.obj`
95
+ * @api private
96
+ */
97
+
98
+ Assertion.prototype.assert = function (expr, msg, negateMsg, expected, _actual, showDiff) {
99
+ var ok = util.test(this, arguments);
100
+ if (true !== showDiff) showDiff = false;
101
+ if (true !== Assertion.showDiff) showDiff = false;
102
+
103
+ if (!ok) {
104
+ var msg = util.getMessage(this, arguments)
105
+ , actual = util.getActual(this, arguments);
106
+ throw new AssertionError(msg, {
107
+ actual: actual
108
+ , expected: expected
109
+ , showDiff: showDiff
110
+ }, (Assertion.includeStack) ? this.assert : flag(this, 'ssfi'));
111
+ }
112
+ };
113
+
114
+ /*!
115
+ * ### ._obj
116
+ *
117
+ * Quick reference to stored `actual` value for plugin developers.
118
+ *
119
+ * @api private
120
+ */
121
+
122
+ Object.defineProperty(Assertion.prototype, '_obj',
123
+ { get: function () {
124
+ return flag(this, 'object');
125
+ }
126
+ , set: function (val) {
127
+ flag(this, 'object', val);
128
+ }
129
+ });
130
+ };