From 5eaa9090068ea99676ca081fc177e2a877ef9337 Mon Sep 17 00:00:00 2001 From: Ryan Graham Date: Thu, 5 May 2016 21:52:36 -0700 Subject: [PATCH] update copyright notices and license --- LICENSE | 25 +++++++++++++++++++ LICENSE.md | 9 ------- browser.js | 5 ++++ index.js | 5 ++++ lib/bundler.js | 5 ++++ lib/compiler.js | 5 ++++ lib/config-loader.js | 5 ++++ lib/executor.js | 5 ++++ test/browser.multiapp.test.js | 5 ++++ test/browser.test.js | 5 ++++ test/compiler.test.js | 5 ++++ test/executor.test.js | 5 ++++ test/fixtures/browser-app-2/app.js | 5 ++++ test/fixtures/browser-app-2/models/robot.js | 5 ++++ test/fixtures/browser-app/app.js | 5 ++++ test/fixtures/browser-app/boot/configure.js | 5 ++++ .../browser-app/components/dummy-component.js | 5 ++++ .../browser-app/mixins/time-stamps.js | 5 ++++ test/fixtures/browser-app/models/customer.js | 5 ++++ test/fixtures/env-app/boot/test/bar.js | 5 ++++ test/fixtures/passport.js | 5 ++++ test/fixtures/simple-app/boot/bar.js | 5 ++++ test/fixtures/simple-app/boot/barSync.js | 5 ++++ test/fixtures/simple-app/boot/booting.js | 5 ++++ test/fixtures/simple-app/boot/foo.js | 5 ++++ test/fixtures/simple-app/middleware/index.js | 5 ++++ .../node_modules/my-module/index.js | 5 ++++ test/fixtures/simple-component.js | 5 ++++ test/fixtures/simple-middleware.js | 5 ++++ test/helpers/appdir.js | 5 ++++ test/helpers/browser.js | 5 ++++ test/helpers/browserify.js | 5 ++++ test/helpers/push-name-middleware.js | 5 ++++ test/helpers/sandbox.js | 5 ++++ 34 files changed, 185 insertions(+), 9 deletions(-) create mode 100644 LICENSE delete mode 100644 LICENSE.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..63b1fed --- /dev/null +++ b/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) IBM Corp. 2014,2016. All Rights Reserved. +Node module: loopback-boot +This project is licensed under the MIT License, full text below. + +-------- + +MIT license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index ca2e8c9..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -Copyright (c) 2013-2015 StrongLoop, Inc and other contributors. - -loopback-boot uses a dual license model. - -You may use this library under the terms of the [MIT License][], -or under the terms of the [StrongLoop Subscription Agreement][]. - -[MIT License]: http://opensource.org/licenses/MIT -[StrongLoop Subscription Agreement]: http://strongloop.com/license diff --git a/browser.js b/browser.js index becbec6..98c66c7 100644 --- a/browser.js +++ b/browser.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var execute = require('./lib/executor'); /** diff --git a/index.js b/index.js index 4619e51..9ece35c 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var ConfigLoader = require('./lib/config-loader'); var compile = require('./lib/compiler'); var execute = require('./lib/executor'); diff --git a/lib/bundler.js b/lib/bundler.js index 52e0736..cb0552a 100644 --- a/lib/bundler.js +++ b/lib/bundler.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var fs = require('fs'); var path = require('path'); var commondir = require('commondir'); diff --git a/lib/compiler.js b/lib/compiler.js index d9fee0f..c6d489c 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var assert = require('assert'); var cloneDeep = require('lodash').cloneDeep; var fs = require('fs'); diff --git a/lib/config-loader.js b/lib/config-loader.js index 3f2a5fc..8d8c451 100644 --- a/lib/config-loader.js +++ b/lib/config-loader.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var fs = require('fs'); var path = require('path'); var debug = require('debug')('loopback:boot:config-loader'); diff --git a/lib/executor.js b/lib/executor.js index c22e32e..4059618 100644 --- a/lib/executor.js +++ b/lib/executor.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var assert = require('assert'); var semver = require('semver'); var debug = require('debug')('loopback:boot:executor'); diff --git a/test/browser.multiapp.test.js b/test/browser.multiapp.test.js index 759a9ed..bfcafd4 100644 --- a/test/browser.multiapp.test.js +++ b/test/browser.multiapp.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var boot = require('../'); var exportBrowserifyToFile = require('./helpers/browserify').exportToSandbox; var fs = require('fs'); diff --git a/test/browser.test.js b/test/browser.test.js index 753fcd9..d179aa5 100644 --- a/test/browser.test.js +++ b/test/browser.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var boot = require('../'); var exportBrowserifyToFile = require('./helpers/browserify').exportToSandbox; var fs = require('fs'); diff --git a/test/compiler.test.js b/test/compiler.test.js index eac294f..646d32b 100644 --- a/test/compiler.test.js +++ b/test/compiler.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var boot = require('../'); var fs = require('fs-extra'); var path = require('path'); diff --git a/test/executor.test.js b/test/executor.test.js index 1851395..e051510 100644 --- a/test/executor.test.js +++ b/test/executor.test.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var async = require('async'); var boot = require('../'); var path = require('path'); diff --git a/test/fixtures/browser-app-2/app.js b/test/fixtures/browser-app-2/app.js index 9905979..d6ba5d3 100644 --- a/test/fixtures/browser-app-2/app.js +++ b/test/fixtures/browser-app-2/app.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var loopback = require('loopback'); var boot = require('../../../'); diff --git a/test/fixtures/browser-app-2/models/robot.js b/test/fixtures/browser-app-2/models/robot.js index 545c357..64c7d9b 100644 --- a/test/fixtures/browser-app-2/models/robot.js +++ b/test/fixtures/browser-app-2/models/robot.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(Robot) { Robot.settings._customized = 'Robot'; Robot.base.settings._customized = 'Robot'; diff --git a/test/fixtures/browser-app/app.js b/test/fixtures/browser-app/app.js index 6a9b9cb..f2c4fb6 100644 --- a/test/fixtures/browser-app/app.js +++ b/test/fixtures/browser-app/app.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var loopback = require('loopback'); var boot = require('../../../'); diff --git a/test/fixtures/browser-app/boot/configure.js b/test/fixtures/browser-app/boot/configure.js index b159ba7..96bbc51 100644 --- a/test/fixtures/browser-app/boot/configure.js +++ b/test/fixtures/browser-app/boot/configure.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(app) { app.set('custom-key', 'custom-value'); }; diff --git a/test/fixtures/browser-app/components/dummy-component.js b/test/fixtures/browser-app/components/dummy-component.js index 795a7a9..4a0da4b 100644 --- a/test/fixtures/browser-app/components/dummy-component.js +++ b/test/fixtures/browser-app/components/dummy-component.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(app, options) { app.dummyComponentOptions = options; }; diff --git a/test/fixtures/browser-app/mixins/time-stamps.js b/test/fixtures/browser-app/mixins/time-stamps.js index 6ba0a1a..0ca7ca5 100644 --- a/test/fixtures/browser-app/mixins/time-stamps.js +++ b/test/fixtures/browser-app/mixins/time-stamps.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(Model, options) { Model.timeStampsMixin = true; }; diff --git a/test/fixtures/browser-app/models/customer.js b/test/fixtures/browser-app/models/customer.js index 79a512d..9e0a0b3 100644 --- a/test/fixtures/browser-app/models/customer.js +++ b/test/fixtures/browser-app/models/customer.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(Customer) { Customer.settings._customized = 'Customer'; Customer.base.settings._customized = 'Base'; diff --git a/test/fixtures/env-app/boot/test/bar.js b/test/fixtures/env-app/boot/test/bar.js index d2a1f2f..68316c9 100644 --- a/test/fixtures/env-app/boot/test/bar.js +++ b/test/fixtures/env-app/boot/test/bar.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + process.bootFlags.push('barLoadedInTest'); module.exports = function(app, callback) { callback(); diff --git a/test/fixtures/passport.js b/test/fixtures/passport.js index 35e7060..d1833f2 100644 --- a/test/fixtures/passport.js +++ b/test/fixtures/passport.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var framework = { initialize: function(passport) { return function(req, res, next) { diff --git a/test/fixtures/simple-app/boot/bar.js b/test/fixtures/simple-app/boot/bar.js index 4e732a1..f726ea3 100644 --- a/test/fixtures/simple-app/boot/bar.js +++ b/test/fixtures/simple-app/boot/bar.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + process.bootFlags.push('barLoaded'); module.exports = function(app, callback) { process.bootFlags.push('barStarted'); diff --git a/test/fixtures/simple-app/boot/barSync.js b/test/fixtures/simple-app/boot/barSync.js index 4a38f80..7aca641 100644 --- a/test/fixtures/simple-app/boot/barSync.js +++ b/test/fixtures/simple-app/boot/barSync.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + process.bootFlags.push('barSyncLoaded'); module.exports = function(app) { process.bootFlags.push('barSyncExecuted'); diff --git a/test/fixtures/simple-app/boot/booting.js b/test/fixtures/simple-app/boot/booting.js index b7ec8b8..74f7031 100644 --- a/test/fixtures/simple-app/boot/booting.js +++ b/test/fixtures/simple-app/boot/booting.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(app, cb) { if (app.booting) process.bootingFlagSet = true; diff --git a/test/fixtures/simple-app/boot/foo.js b/test/fixtures/simple-app/boot/foo.js index e2fd7a5..9add48f 100644 --- a/test/fixtures/simple-app/boot/foo.js +++ b/test/fixtures/simple-app/boot/foo.js @@ -1 +1,6 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + process.bootFlags.push('fooLoaded'); diff --git a/test/fixtures/simple-app/middleware/index.js b/test/fixtures/simple-app/middleware/index.js index d2b20d9..df0110d 100644 --- a/test/fixtures/simple-app/middleware/index.js +++ b/test/fixtures/simple-app/middleware/index.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + exports.myMiddleware = function(name) { return function(req, res, next) { req._names = req._names || []; diff --git a/test/fixtures/simple-app/node_modules/my-module/index.js b/test/fixtures/simple-app/node_modules/my-module/index.js index 5b64f75..3ee16e1 100644 --- a/test/fixtures/simple-app/node_modules/my-module/index.js +++ b/test/fixtures/simple-app/node_modules/my-module/index.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + /** * Exporting a middleware as a property of the main module */ diff --git a/test/fixtures/simple-component.js b/test/fixtures/simple-component.js index a09da14..b15b827 100644 --- a/test/fixtures/simple-component.js +++ b/test/fixtures/simple-component.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(loopbackApp, params) { loopbackApp.use('/component', function(req, res, next) { res.send(params); diff --git a/test/fixtures/simple-middleware.js b/test/fixtures/simple-middleware.js index 30079f6..aec19a8 100644 --- a/test/fixtures/simple-middleware.js +++ b/test/fixtures/simple-middleware.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(params) { return function(req, res, next) { res.send(params); diff --git a/test/helpers/appdir.js b/test/helpers/appdir.js index a8955a6..cf1e67f 100644 --- a/test/helpers/appdir.js +++ b/test/helpers/appdir.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var path = require('path'); var fs = require('fs-extra'); var extend = require('util')._extend; diff --git a/test/helpers/browser.js b/test/helpers/browser.js index bbcd0f2..dc21615 100644 --- a/test/helpers/browser.js +++ b/test/helpers/browser.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var vm = require('vm'); function createContext() { diff --git a/test/helpers/browserify.js b/test/helpers/browserify.js index 02e1fbe..aac32d8 100644 --- a/test/helpers/browserify.js +++ b/test/helpers/browserify.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var fs = require('fs'); var sandbox = require('./sandbox'); diff --git a/test/helpers/push-name-middleware.js b/test/helpers/push-name-middleware.js index f7e6d6c..e11a1bd 100644 --- a/test/helpers/push-name-middleware.js +++ b/test/helpers/push-name-middleware.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(name) { return function(req, res, next) { req._names = req._names || []; diff --git a/test/helpers/sandbox.js b/test/helpers/sandbox.js index cdd35bd..9afe701 100644 --- a/test/helpers/sandbox.js +++ b/test/helpers/sandbox.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-boot +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var fs = require('fs-extra'); var path = require('path');