Skip to content

Commit

Permalink
fix(update): update to latest release names
Browse files Browse the repository at this point in the history
Fixes #156 by updating names to latest changes
  • Loading branch information
plwalters committed Oct 13, 2015
1 parent 131f16c commit f8a8729
Show file tree
Hide file tree
Showing 24 changed files with 230 additions and 155 deletions.
90 changes: 58 additions & 32 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,62 +13,88 @@ System.config({
},

map: {
"aurelia-binding": "github:aurelia/binding@0.9.1",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.10.1",
"aurelia-logging": "github:aurelia/logging@0.7.0",
"aurelia-metadata": "github:aurelia/metadata@0.8.0",
"aurelia-templating": "github:aurelia/templating@0.15.3",
"aurelia-binding": "github:aurelia/binding@0.10.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.11.0",
"aurelia-logging": "github:aurelia/logging@0.8.0",
"aurelia-metadata": "github:aurelia/metadata@0.9.0",
"aurelia-pal-browser": "github:aurelia/pal-browser@0.2.0",
"aurelia-templating": "github:aurelia/templating@0.16.0",
"babel": "npm:babel-core@5.8.22",
"babel-runtime": "npm:babel-runtime@5.8.20",
"core-js": "npm:core-js@1.1.0",
"traceur": "github:jmcriffey/bower-traceur@0.0.91",
"traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.91",
"github:aurelia/binding@0.9.1": {
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.10.1",
"aurelia-metadata": "github:aurelia/metadata@0.8.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.7.0",
"github:aurelia/binding@0.10.0": {
"aurelia-metadata": "github:aurelia/metadata@0.9.0",
"aurelia-pal": "github:aurelia/pal@0.2.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.8.0",
"core-js": "npm:core-js@0.9.18"
},
"github:aurelia/dependency-injection@0.10.1": {
"aurelia-logging": "github:aurelia/logging@0.7.0",
"aurelia-metadata": "github:aurelia/metadata@0.8.0",
"github:aurelia/dependency-injection@0.11.0": {
"aurelia-logging": "github:aurelia/logging@0.8.0",
"aurelia-metadata": "github:aurelia/metadata@0.9.0",
"aurelia-pal": "github:aurelia/pal@0.2.0",
"core-js": "npm:core-js@0.9.18"
},
"github:aurelia/loader@0.9.0": {
"aurelia-html-template-element": "github:aurelia/html-template-element@0.3.0",
"aurelia-metadata": "github:aurelia/metadata@0.8.0",
"aurelia-path": "github:aurelia/path@0.9.0",
"core-js": "github:zloirock/core-js@0.8.4"
"github:aurelia/loader@0.10.0": {
"aurelia-metadata": "github:aurelia/metadata@0.9.0",
"aurelia-path": "github:aurelia/path@0.10.0"
},
"github:aurelia/metadata@0.8.0": {
"github:aurelia/metadata@0.9.0": {
"aurelia-pal": "github:aurelia/pal@0.2.0",
"core-js": "npm:core-js@0.9.18"
},
"github:aurelia/templating@0.15.3": {
"aurelia-binding": "github:aurelia/binding@0.9.1",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.10.1",
"aurelia-html-template-element": "github:aurelia/html-template-element@0.3.0",
"aurelia-loader": "github:aurelia/loader@0.9.0",
"aurelia-logging": "github:aurelia/logging@0.7.0",
"aurelia-metadata": "github:aurelia/metadata@0.8.0",
"aurelia-path": "github:aurelia/path@0.9.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.7.0",
"github:aurelia/pal-browser@0.2.0": {
"aurelia-pal": "github:aurelia/pal@0.2.0"
},
"github:aurelia/task-queue@0.8.0": {
"aurelia-pal": "github:aurelia/pal@0.2.0"
},
"github:aurelia/templating@0.16.0": {
"aurelia-binding": "github:aurelia/binding@0.10.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.11.0",
"aurelia-loader": "github:aurelia/loader@0.10.0",
"aurelia-logging": "github:aurelia/logging@0.8.0",
"aurelia-metadata": "github:aurelia/metadata@0.9.0",
"aurelia-pal": "github:aurelia/pal@0.2.0",
"aurelia-path": "github:aurelia/path@0.10.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.8.0",
"core-js": "npm:core-js@0.9.18"
},
"github:jspm/nodelibs-process@0.1.1": {
"process": "npm:process@0.10.1"
"github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:assert@1.3.0"
},
"github:jspm/nodelibs-process@0.1.2": {
"process": "npm:process@0.11.2"
},
"github:jspm/nodelibs-util@0.1.0": {
"util": "npm:util@0.10.3"
},
"npm:assert@1.3.0": {
"util": "npm:util@0.10.3"
},
"npm:babel-runtime@5.8.20": {
"process": "github:jspm/nodelibs-process@0.1.1"
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:core-js@0.9.18": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:core-js@1.1.0": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:inherits@2.0.1": {
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:process@0.11.2": {
"assert": "github:jspm/nodelibs-assert@0.1.0"
},
"npm:util@0.10.3": {
"inherits": "npm:inherits@2.0.1",
"process": "github:jspm/nodelibs-process@0.1.2"
}
}
});
2 changes: 1 addition & 1 deletion dist/amd/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'aurelia-validation' {
import { Metadata } from 'aurelia-metadata';
import { metadata } from 'aurelia-metadata';
import { inject } from 'aurelia-dependency-injection';
import { customAttribute } from 'aurelia-templating';
import { ObserverLocator } from 'aurelia-binding';
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/decorators.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ define(['exports', 'aurelia-metadata'], function (exports, _aureliaMetadata) {

function ensure(setupStep) {
return function (target, propertyName) {
var validationMetadata = _aureliaMetadata.Metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
var validationMetadata = _aureliaMetadata.metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
var property = validationMetadata.getOrCreateProperty(propertyName);
property.addSetupStep(setupStep);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/validation-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define(['exports', 'aurelia-metadata', './validation-group-builder', './validati
this.onDestroy = config.onLocaleChanged(function () {
_this.validate(false, true);
});
validationMetadata = _aureliaMetadata.Metadata.getOwn(_decorators.ValidationMetadata.metadataKey, this.subject);
validationMetadata = _aureliaMetadata.metadata.getOwn(_decorators.ValidationMetadata.metadataKey, this.subject);
if (validationMetadata) {
validationMetadata.setup(this);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/amd/validation-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ define(['exports', './utilities', './validation-locale'], function (exports, _ut
_classCallCheck(this, MinimumLengthValidationRule);

_ValidationRule3.call(this, minimumLength, function (newValue, minLength) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= minLength;
}, null, 'MinimumLengthValidationRule');
}
Expand All @@ -308,6 +309,7 @@ define(['exports', './utilities', './validation-locale'], function (exports, _ut
_classCallCheck(this, MaximumLengthValidationRule);

_ValidationRule4.call(this, maximumLength, function (newValue, maxLength) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length <= maxLength;
}, null, 'MaximumLengthValidationRule');
}
Expand All @@ -324,6 +326,7 @@ define(['exports', './utilities', './validation-locale'], function (exports, _ut
_classCallCheck(this, BetweenLengthValidationRule);

_ValidationRule5.call(this, { minimumLength: minimumLength, maximumLength: maximumLength }, function (newValue, threshold) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= threshold.minimumLength && newValue.length <= threshold.maximumLength;
}, null, 'BetweenLengthValidationRule');
}
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'aurelia-validation' {
import { Metadata } from 'aurelia-metadata';
import { metadata } from 'aurelia-metadata';
import { inject } from 'aurelia-dependency-injection';
import { customAttribute } from 'aurelia-templating';
import { ObserverLocator } from 'aurelia-binding';
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/decorators.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var ValidationPropertyMetadata = (function () {

function ensure(setupStep) {
return function (target, propertyName) {
var validationMetadata = _aureliaMetadata.Metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
var validationMetadata = _aureliaMetadata.metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
var property = validationMetadata.getOrCreateProperty(propertyName);
property.addSetupStep(setupStep);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/validation-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var ValidationGroup = (function () {
this.onDestroy = config.onLocaleChanged(function () {
_this.validate(false, true);
});
validationMetadata = _aureliaMetadata.Metadata.getOwn(_decorators.ValidationMetadata.metadataKey, this.subject);
validationMetadata = _aureliaMetadata.metadata.getOwn(_decorators.ValidationMetadata.metadataKey, this.subject);
if (validationMetadata) {
validationMetadata.setup(this);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/commonjs/validation-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ var MinimumLengthValidationRule = (function (_ValidationRule3) {
_classCallCheck(this, MinimumLengthValidationRule);

_ValidationRule3.call(this, minimumLength, function (newValue, minLength) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= minLength;
}, null, 'MinimumLengthValidationRule');
}
Expand All @@ -311,6 +312,7 @@ var MaximumLengthValidationRule = (function (_ValidationRule4) {
_classCallCheck(this, MaximumLengthValidationRule);

_ValidationRule4.call(this, maximumLength, function (newValue, maxLength) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length <= maxLength;
}, null, 'MaximumLengthValidationRule');
}
Expand All @@ -327,6 +329,7 @@ var BetweenLengthValidationRule = (function (_ValidationRule5) {
_classCallCheck(this, BetweenLengthValidationRule);

_ValidationRule5.call(this, { minimumLength: minimumLength, maximumLength: maximumLength }, function (newValue, threshold) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= threshold.minimumLength && newValue.length <= threshold.maximumLength;
}, null, 'BetweenLengthValidationRule');
}
Expand Down
2 changes: 1 addition & 1 deletion dist/es6/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'aurelia-validation' {
import { Metadata } from 'aurelia-metadata';
import { metadata } from 'aurelia-metadata';
import { inject } from 'aurelia-dependency-injection';
import { customAttribute } from 'aurelia-templating';
import { ObserverLocator } from 'aurelia-binding';
Expand Down
4 changes: 2 additions & 2 deletions dist/es6/decorators.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Metadata} from 'aurelia-metadata';
import {metadata} from 'aurelia-metadata';

export class ValidationMetadata {
static metadataKey = 'aurelia:validation';
Expand Down Expand Up @@ -37,7 +37,7 @@ class ValidationPropertyMetadata {

export function ensure(setupStep) {
return function(target, propertyName) {
let validationMetadata = Metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
let validationMetadata = metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
let property = validationMetadata.getOrCreateProperty(propertyName);
property.addSetupStep(setupStep);
};
Expand Down
4 changes: 2 additions & 2 deletions dist/es6/validation-group.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Metadata} from 'aurelia-metadata';
import {metadata} from 'aurelia-metadata';
import {ValidationGroupBuilder} from './validation-group-builder';
import {ValidationResult} from './validation-result';
import {ValidationMetadata} from './decorators';
Expand Down Expand Up @@ -28,7 +28,7 @@ export class ValidationGroup {
this.onDestroy = config.onLocaleChanged(() => {
this.validate(false, true);
});
validationMetadata = Metadata.getOwn(ValidationMetadata.metadataKey, this.subject);
validationMetadata = metadata.getOwn(ValidationMetadata.metadataKey, this.subject);
if (validationMetadata) {
validationMetadata.setup(this);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/es6/validation-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export class MinimumLengthValidationRule extends ValidationRule {
super(
minimumLength,
(newValue, minLength) => {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= minLength;
},
null,
Expand All @@ -303,6 +304,7 @@ export class MaximumLengthValidationRule extends ValidationRule {
super(
maximumLength,
(newValue, maxLength) => {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length <= maxLength;
},
null,
Expand All @@ -316,6 +318,7 @@ export class BetweenLengthValidationRule extends ValidationRule {
super(
{minimumLength: minimumLength, maximumLength: maximumLength},
(newValue, threshold) => {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined
&& newValue.length >= threshold.minimumLength
&& newValue.length <= threshold.maximumLength;
Expand Down
2 changes: 1 addition & 1 deletion dist/system/aurelia-validation.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'aurelia-validation' {
import { Metadata } from 'aurelia-metadata';
import { metadata } from 'aurelia-metadata';
import { inject } from 'aurelia-dependency-injection';
import { customAttribute } from 'aurelia-templating';
import { ObserverLocator } from 'aurelia-binding';
Expand Down
6 changes: 3 additions & 3 deletions dist/system/decorators.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
System.register(['aurelia-metadata'], function (_export) {
'use strict';

var Metadata, ValidationMetadata, ValidationPropertyMetadata;
var metadata, ValidationMetadata, ValidationPropertyMetadata;

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

Expand All @@ -11,15 +11,15 @@ System.register(['aurelia-metadata'], function (_export) {

function ensure(setupStep) {
return function (target, propertyName) {
var validationMetadata = Metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
var validationMetadata = metadata.getOrCreateOwn(ValidationMetadata.metadataKey, ValidationMetadata, target);
var property = validationMetadata.getOrCreateProperty(propertyName);
property.addSetupStep(setupStep);
};
}

return {
setters: [function (_aureliaMetadata) {
Metadata = _aureliaMetadata.Metadata;
metadata = _aureliaMetadata.metadata;
}],
execute: function () {
ValidationMetadata = (function () {
Expand Down
6 changes: 3 additions & 3 deletions dist/system/validation-group.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
System.register(['aurelia-metadata', './validation-group-builder', './validation-result', './decorators'], function (_export) {
'use strict';

var Metadata, ValidationGroupBuilder, ValidationResult, ValidationMetadata, ValidationGroup;
var metadata, ValidationGroupBuilder, ValidationResult, ValidationMetadata, ValidationGroup;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

return {
setters: [function (_aureliaMetadata) {
Metadata = _aureliaMetadata.Metadata;
metadata = _aureliaMetadata.metadata;
}, function (_validationGroupBuilder) {
ValidationGroupBuilder = _validationGroupBuilder.ValidationGroupBuilder;
}, function (_validationResult) {
Expand All @@ -34,7 +34,7 @@ System.register(['aurelia-metadata', './validation-group-builder', './validation
this.onDestroy = config.onLocaleChanged(function () {
_this.validate(false, true);
});
validationMetadata = Metadata.getOwn(ValidationMetadata.metadataKey, this.subject);
validationMetadata = metadata.getOwn(ValidationMetadata.metadataKey, this.subject);
if (validationMetadata) {
validationMetadata.setup(this);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/system/validation-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ System.register(['./utilities', './validation-locale'], function (_export) {
_classCallCheck(this, MinimumLengthValidationRule);

_ValidationRule3.call(this, minimumLength, function (newValue, minLength) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= minLength;
}, null, 'MinimumLengthValidationRule');
}
Expand All @@ -315,6 +316,7 @@ System.register(['./utilities', './validation-locale'], function (_export) {
_classCallCheck(this, MaximumLengthValidationRule);

_ValidationRule4.call(this, maximumLength, function (newValue, maxLength) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length <= maxLength;
}, null, 'MaximumLengthValidationRule');
}
Expand All @@ -331,6 +333,7 @@ System.register(['./utilities', './validation-locale'], function (_export) {
_classCallCheck(this, BetweenLengthValidationRule);

_ValidationRule5.call(this, { minimumLength: minimumLength, maximumLength: maximumLength }, function (newValue, threshold) {
newValue = typeof newValue === 'number' ? newValue.toString() : newValue;
return newValue.length !== undefined && newValue.length >= threshold.minimumLength && newValue.length <= threshold.maximumLength;
}, null, 'BetweenLengthValidationRule');
}
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
"lib": "dist/amd"
},
"dependencies": {
"aurelia-binding": "github:aurelia/binding@^0.9.1",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@^0.10.1",
"aurelia-logging": "github:aurelia/logging@^0.7.0",
"aurelia-metadata": "github:aurelia/metadata@^0.8.0",
"aurelia-templating": "github:aurelia/templating@^0.15.3"
"aurelia-binding": "github:aurelia/binding@^0.10.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@^0.11.0",
"aurelia-logging": "github:aurelia/logging@^0.8.0",
"aurelia-metadata": "github:aurelia/metadata@^0.9.0",
"aurelia-templating": "github:aurelia/templating@^0.16.0"
},
"devDependencies": {
"aurelia-pal-browser": "github:aurelia/pal-browser@^0.2.0",
"babel": "npm:babel-core@^5.8.22",
"babel-runtime": "npm:babel-runtime@^5.8.20",
"core-js": "npm:core-js@^1.1.0",
Expand Down
Loading

0 comments on commit f8a8729

Please sign in to comment.