diff --git a/MigratorConfig.js b/MigratorConfig.js index c36d337442..13c4b24502 100644 --- a/MigratorConfig.js +++ b/MigratorConfig.js @@ -1,5 +1,5 @@ var config = require('./core/server/config'), - ghostVersion = require('./core/server/utils/ghost-version'); + ghostVersion = require('./core/server/lib/ghost-version'); /** * knex-migrator can be used via CLI or within the application diff --git a/core/server/api/configuration.js b/core/server/api/configuration.js index e7455d0607..2dd9d76fc4 100644 --- a/core/server/api/configuration.js +++ b/core/server/api/configuration.js @@ -6,7 +6,7 @@ var Promise = require('bluebird'), models = require('../models'), config = require('../config'), settingsCache = require('../services/settings/cache'), - ghostVersion = require('../utils/ghost-version'), + ghostVersion = require('../lib/ghost-version'), configuration; function fetchAvailableTimezones() { diff --git a/core/server/data/export/index.js b/core/server/data/export/index.js index 9702e3de29..abfa51448a 100644 --- a/core/server/data/export/index.js +++ b/core/server/data/export/index.js @@ -2,7 +2,7 @@ var _ = require('lodash'), Promise = require('bluebird'), db = require('../../data/db'), commands = require('../schema').commands, - ghostVersion = require('../../utils/ghost-version'), + ghostVersion = require('../../lib/ghost-version'), common = require('../../lib/common'), security = require('../../lib/security'), models = require('../../models'), diff --git a/core/server/utils/ghost-version.js b/core/server/lib/ghost-version.js similarity index 100% rename from core/server/utils/ghost-version.js rename to core/server/lib/ghost-version.js diff --git a/core/server/update-check.js b/core/server/update-check.js index 2afe2b0b32..3065a08fdf 100644 --- a/core/server/update-check.js +++ b/core/server/update-check.js @@ -32,7 +32,7 @@ var crypto = require('crypto'), urlService = require('./services/url'), common = require('./lib/common'), request = require('./lib/request'), - currentVersion = require('./utils/ghost-version').full, + currentVersion = require('./lib/ghost-version').full, internal = {context: {internal: true}}, checkEndpoint = config.get('updateCheckUrl') || 'https://updates.ghost.org'; diff --git a/core/server/web/middleware/ghost-locals.js b/core/server/web/middleware/ghost-locals.js index 4556d49a26..89b0c5350f 100644 --- a/core/server/web/middleware/ghost-locals.js +++ b/core/server/web/middleware/ghost-locals.js @@ -1,4 +1,4 @@ -var ghostVersion = require('../../utils/ghost-version'); +var ghostVersion = require('../../lib/ghost-version'); // ### GhostLocals Middleware // Expose the standard locals that every request will need to have available diff --git a/core/test/integration/export_spec.js b/core/test/integration/export_spec.js index e58716e81b..45a622617c 100644 --- a/core/test/integration/export_spec.js +++ b/core/test/integration/export_spec.js @@ -5,7 +5,7 @@ var should = require('should'), // Stuff we are testing exporter = require('../../server/data/export'), - ghostVersion = require('../../server/utils/ghost-version'), + ghostVersion = require('../../server/lib/ghost-version'), sandbox = sinon.sandbox.create();