Skip to content

Commit

Permalink
rename v3.1 to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jul 3, 2014
1 parent 58a288e commit a9d6758
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/gl-style-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ var migrated = false;
if (data.version === 2) {
// Migrate to v3
data = require('../migrations/v3')(data);
data = require('../migrations/v3.1')(data);
data = require('../migrations/v4')(data);
migrated = true;
}

if (data.version === 3) {
// Migrate to v3.1
data = require('../migrations/v3.1')(data);
// Migrate to v4
data = require('../migrations/v4')(data);
migrated = true;
}

Expand Down
4 changes: 2 additions & 2 deletions migrations/v3.1.js → migrations/v4.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

//var ref = require('../lib/reference')('v3');
//var ref = require('../lib/reference')('v4');

var vc;

module.exports = function(v3) {
//v3.version = 3.1;
v3.version = 4;
vc = v3.constants;
v3.layers.forEach(convertLayer);
return v3;
Expand Down

0 comments on commit a9d6758

Please sign in to comment.