Skip to content

Commit

Permalink
Release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ClickerMonkey committed Nov 22, 2016
1 parent 4ab4ab2 commit bfb9265
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 23 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rekord-migrations",
"version": "1.4.3",
"version": "1.5.0",
"homepage": "https://github.com/Rekord/rekord-migrations",
"authors": [
"Philip Diffenderfer <[email protected]>"
Expand All @@ -23,6 +23,6 @@
"tests"
],
"dependencies": {
"rekord": "~1.4.0"
"rekord": "~1.5.0"
}
}
11 changes: 6 additions & 5 deletions build/rekord-migrations.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* rekord-migrations 1.4.3 - Migrations for rekord by Philip Diffenderfer */
/* rekord-migrations 1.5.0 - Migrations for rekord by Philip Diffenderfer */
// UMD (Universal Module Definition)
(function (root, factory)
{
Expand Down Expand Up @@ -28,6 +28,7 @@
var Collection = Rekord.Collection;
var Promise = Rekord.Promise;
var Events = Rekord.Events;
var Class = Rekord.Class;

var isArray = Rekord.isArray;
var isObject = Rekord.isObject;
Expand All @@ -50,7 +51,7 @@ function ApplicationMigrator(name, dependents, stores, datas)
this.safe = false;
}

ApplicationMigrator.prototype =
Class.create( ApplicationMigrator,
{
create: function(name, creator)
{
Expand Down Expand Up @@ -242,7 +243,7 @@ ApplicationMigrator.prototype =

return exists && empty;
}
};
});

function ModelMigrator(app, name, store, data)
{
Expand All @@ -253,7 +254,7 @@ function ModelMigrator(app, name, store, data)
this.migrateRemovePending = false;
}

ModelMigrator.prototype =
Class.create( ModelMigrator,
{

drop: function(fieldInput)
Expand Down Expand Up @@ -418,7 +419,7 @@ ModelMigrator.prototype =
return this;
}

};
});


// override Rekord.load
Expand Down
4 changes: 2 additions & 2 deletions build/rekord-migrations.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/rekord-migrations.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rekord-migrations",
"version": "1.4.3",
"version": "1.5.0",
"description": "Migrations for rekord",
"author": "Philip Diffenderfer",
"license": "MIT",
Expand Down Expand Up @@ -32,6 +32,6 @@
"jshint": "^2.9.2"
},
"dependencies": {
"rekord": "~1.4.0"
"rekord": "~1.5.0"
}
}
1 change: 1 addition & 0 deletions src/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
var Collection = Rekord.Collection;
var Promise = Rekord.Promise;
var Events = Rekord.Events;
var Class = Rekord.Class;

var isArray = Rekord.isArray;
var isObject = Rekord.isObject;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/ApplicationMigrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function ApplicationMigrator(name, dependents, stores, datas)
this.safe = false;
}

ApplicationMigrator.prototype =
Class.create( ApplicationMigrator,
{
create: function(name, creator)
{
Expand Down Expand Up @@ -199,4 +199,4 @@ ApplicationMigrator.prototype =

return exists && empty;
}
};
});
4 changes: 2 additions & 2 deletions src/lib/ModelMigrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function ModelMigrator(app, name, store, data)
this.migrateRemovePending = false;
}

ModelMigrator.prototype =
Class.create( ModelMigrator,
{

drop: function(fieldInput)
Expand Down Expand Up @@ -172,4 +172,4 @@ ModelMigrator.prototype =
return this;
}

};
});
22 changes: 15 additions & 7 deletions test/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ function TestRest()
this.status = 200;
this.returnValue = false;
this.delay = 0;
this.lastModel = this.lastRecord = this.lastOperation = null;
this.lastModel = this.lastRecord = this.lastOperation = this.lastOptions = null;
}

TestRest.prototype =
Expand Down Expand Up @@ -459,10 +459,11 @@ TestRest.prototype =
if ( failure ) failure( returnedValue, status );
}
},
get: function(model, success, failure)
get: function(model, options, success, failure)
{
this.lastOperation = 'get';
this.lastModel = model;
this.lastOptions = options;

var map = this.map;
function onGet()
Expand All @@ -477,11 +478,12 @@ TestRest.prototype =

this.finishDelayed( onGet, failure, null );
},
create: function(model, encoded, success, failure)
create: function(model, encoded, options, success, failure)
{
this.lastOperation = 'create';
this.lastModel = model;
this.lastRecord = encoded;
this.lastOptions = options;

var map = this.map;
function onCreate()
Expand All @@ -492,11 +494,12 @@ TestRest.prototype =

this.finishDelayed( onCreate, failure, {} );
},
update: function(model, encoded, success, failure)
update: function(model, encoded, options, success, failure)
{
this.lastOperation = 'update';
this.lastModel = model;
this.lastRecord = encoded;
this.lastOptions = options;

var map = this.map;
function onUpdate()
Expand All @@ -508,10 +511,11 @@ TestRest.prototype =

this.finishDelayed( onUpdate, failure, {} );
},
remove: function(model, success, failure)
remove: function(model, options, success, failure)
{
this.lastOperation = 'remove';
this.lastModel = model;
this.lastOptions = options;

var map = this.map;
function onRemove()
Expand All @@ -522,15 +526,19 @@ TestRest.prototype =

this.finishDelayed( onRemove, failure, {} );
},
all: function(success, failure)
all: function(options, success, failure)
{
this.lastOperation = 'all';
this.lastOptions = options;

this.finishDelayed( success, failure, this.map.values );
},
query: function(url, data, success, failure)
query: function(url, data, options, success, failure)
{
this.lastOperation = 'query';
this.lastRecord = data;
this.lastOptions = options;

this.finishDelayed( success, failure, this.queries.get( url ) );
}
};

0 comments on commit bfb9265

Please sign in to comment.