From b92f28d22b1e637f9ef2e142d7db1d17453c1bab Mon Sep 17 00:00:00 2001 From: Christopher - RtF <58520035+christopher-rtf@users.noreply.github.com> Date: Thu, 12 Dec 2019 21:50:41 -0400 Subject: [PATCH 1/6] GPII-4253: Created initial gpii stubs for non-supported OSs --- LICENSE | 18 +++++++----------- gpii.js | 29 +++++++++++++++++++++++++++++ package.json | 31 +++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 11 deletions(-) create mode 100644 gpii.js create mode 100644 package.json diff --git a/LICENSE b/LICENSE index 5427b4e..a9fa260 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,17 @@ -BSD 3-Clause License - -Copyright (c) 2019, Global Public Inclusive Infrastructure +Copyright (c) 2012-2015, Members of the Raising the Floor Consortium. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -1. Redistributions of source code must retain the above copyright notice, this + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. + * Neither the name of OCAD University nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE @@ -26,4 +22,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/gpii.js b/gpii.js new file mode 100644 index 0000000..641d3a5 --- /dev/null +++ b/gpii.js @@ -0,0 +1,29 @@ +/* + * GPII "No OS" Personalization Framework Node.js Bootstrap + * + * Copyright 2019 Raising the Floor -- US Inc. All rights reserved. + * Copyright 2012 OCAD University + * + * Licensed under the New BSD license. You may not use this file except in + * compliance with this License. + * + * You may obtain a copy of the License at + * https://github.com/GPII/universal/blob/master/LICENSE.txt + * + * The R&D leading to these results received funding from the + * Department of Education - Grant H421A150005 (GPII-APCP). However, + * these results do not necessarily represent the policy of the + * Department of Education, and you should not assume endorsement by the + * Federal Government. + * + * The research leading to these results has received funding from the European Union's + * Seventh Framework Programme (FP7/2007-2013) + * under grant agreement no. 289016. + */ + +"use strict"; + +var fluid = require("gpii-universal"), + gpii = fluid.registerNamespace("gpii"); + +gpii.start(); diff --git a/package.json b/package.json new file mode 100644 index 0000000..1b14ee4 --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "gpii-no-os", + "description": "Stub definitions suitable for booting up the GPII Morphic UI implemented in gpii-app without platform-specific support", + "version": "0.3.0", + "author": "Raising the Floor -- US Inc.", + "bugs": { + "url": "http://issues.gpii.net/browse/GPII" + }, + "homepage": "http://gpii.net/", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "dependencies": { + "gpii-universal": "JavierJF/universal#GPII-3810" + }, + "os": [ + "!win32" + ], + "license": "BSD-3-Clause", + "keywords": [ + "gpii" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/GPII/gpii-no-os.git" + }, + "main": "./gpii.js", + "engines": { + "node": ">=6.3.1" + } +} From f975c2bcdf48c1dbababf5660bb096da68764ed0 Mon Sep 17 00:00:00 2001 From: Christopher - RtF <58520035+christopher-rtf@users.noreply.github.com> Date: Thu, 12 Dec 2019 22:23:32 -0400 Subject: [PATCH 2/6] GPII-4253: Added index.js to support dynamic loading in gpii-app --- gpii.js | 2 ++ index.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 index.js diff --git a/gpii.js b/gpii.js index 641d3a5..bbf12a4 100644 --- a/gpii.js +++ b/gpii.js @@ -26,4 +26,6 @@ var fluid = require("gpii-universal"), gpii = fluid.registerNamespace("gpii"); +require("./index.js"); + gpii.start(); diff --git a/index.js b/index.js new file mode 100644 index 0000000..3b49f6c --- /dev/null +++ b/index.js @@ -0,0 +1,28 @@ +/* + * GPII "No OS" Personalization Framework Node.js Bootstrap + * + * Copyright 2019 Raising the Floor -- US Inc. All rights reserved. + * Copyright 2014 Lucendo Development Ltd. + * + * Licensed under the New BSD license. You may not use this file except in + * compliance with this License. + * + * You may obtain a copy of the License at + * https://github.com/GPII/universal/blob/master/LICENSE.txt + * + * The R&D leading to these results received funding from the + * Department of Education - Grant H421A150005 (GPII-APCP). However, + * these results do not necessarily represent the policy of the + * Department of Education, and you should not assume endorsement by the + * Federal Government. + * + * The research leading to these results has received funding from the European Union's + * Seventh Framework Programme (FP7/2007-2013) + * under grant agreement no. 289016. + */ + +"use strict"; + +var fluid = require("gpii-universal"); + +module.exports = fluid; From 03e31570de2f488f01465a7398f26ba46d9739c2 Mon Sep 17 00:00:00 2001 From: Christopher - RtF <58520035+christopher-rtf@users.noreply.github.com> Date: Fri, 13 Dec 2019 11:03:05 -0400 Subject: [PATCH 3/6] GPII-4253: Corrected file description in header comments --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3b49f6c..0f8791d 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ /* - * GPII "No OS" Personalization Framework Node.js Bootstrap + * GPII Universal Personalization Framework GPII "no-os" Index * * Copyright 2019 Raising the Floor -- US Inc. All rights reserved. * Copyright 2014 Lucendo Development Ltd. From d68c03bd13f0508e94f494ac4a60e2561d463370 Mon Sep 17 00:00:00 2001 From: Christopher - RtF <58520035+christopher-rtf@users.noreply.github.com> Date: Fri, 13 Dec 2019 11:03:52 -0400 Subject: [PATCH 4/6] GPII-4253: Made 'npm test' execute a no-op for CI compatibility --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1b14ee4..dde749f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "homepage": "http://gpii.net/", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "exit 0" }, "dependencies": { "gpii-universal": "JavierJF/universal#GPII-3810" From a3cc3b1467a26403898381414a15998fd47da026 Mon Sep 17 00:00:00 2001 From: Christopher - RtF <58520035+christopher-rtf@users.noreply.github.com> Date: Fri, 13 Dec 2019 11:10:46 -0400 Subject: [PATCH 5/6] GPII-4253: Added README to explain the purpose of no-os stubs --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3950b4f --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# GPII "no-os" stubs + +Contains stubs for platform-specific components of the GPII architecture. See [http://gpii.net/](http://gpii.net/) for +overall details of the GPII project. After checkout using git, this project will require node.js and npm to be +installed - please consult [Setting Up Your Development Environment](http://wiki.gpii.net/w/Setting_Up_Your_Development_Environment) +for installation instructions. + +This module exists to support developers who are porting Morphic to new operating systems. When adding support for a new operating +system, this "no-os" module can be used as the basis for that OS's new platform-specific module. + +## Building the "no-os" stubs + +This package depends on node 6.x (LTS). + +To build the no-os stubs for GPII, perform the following: + + git clone https://github.com/GPII/gpii-no-os.git + cd gpii-no-os + npm install + From 036cee4ea36209c0f13094b11ca396fbb9f1cdcb Mon Sep 17 00:00:00 2001 From: Christopher - RtF <58520035+christopher-rtf@users.noreply.github.com> Date: Fri, 13 Dec 2019 15:52:32 -0400 Subject: [PATCH 6/6] GPII-4253: Pulled in official BSD license text; updated copyright year --- LICENSE | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/LICENSE b/LICENSE index a9fa260..e99bec3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,17 +1,19 @@ -Copyright (c) 2012-2015, Members of the Raising the Floor Consortium. -All rights reserved. +Copyright (c) 2012-2019 Members of the Raising the Floor Consortium. +All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - * Neither the name of OCAD University nor the names of its contributors may - be used to endorse or promote products derived from this software without - specific prior written permission. +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may +be used to endorse or promote products derived from this software without +specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE