From 148a1ebc07ad047d21ec20c790734cd5c6e55eb8 Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Sun, 26 Jan 2025 18:08:11 -0800 Subject: [PATCH] Add license and update copyright --- .swiftlint.yml | 7 ++- LICENSE | 46 +++++++++++++++++++ Makefile | 2 +- README.md | 14 ++++++ Sources/NodesSocketIO/DebugSocket+UIKit.swift | 7 ++- Sources/NodesSocketIO/DebugSocket.swift | 7 ++- .../NodesSocketIO/DebugSocketConstants.swift | 7 ++- Sources/NodesSocketIO/Node.swift | 7 ++- Sources/NodesSocketIO/String.swift | 7 ++- .../NodesSocketIOTests.swift | 5 ++ 10 files changed, 102 insertions(+), 7 deletions(-) create mode 100644 LICENSE diff --git a/.swiftlint.yml b/.swiftlint.yml index 94e6336..c2a3db9 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -10,7 +10,12 @@ empty_count: file_header: required_pattern: | \/\/ - \/\/ {2}Copyright © \d{4} Tinder \(Match Group, LLC\) + \/\/ {2}All Contributions by Match Group + \/\/ + \/\/ {2}Copyright © \d{4}(-\d{4})? Tinder \(Match Group, LLC\) + \/\/ + \/\/ {2}Licensed under the Match Group Modified 3-Clause BSD License. + \/\/ {2}See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information. \/\/ private_over_fileprivate: diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b2da94d --- /dev/null +++ b/LICENSE @@ -0,0 +1,46 @@ +Modified 3-Clause BSD License + +Copyright © 2025 Match Group, LLC + +This license is based on the 3-Clause BSD license, modified for +clarity and to add the following requirements: Modifications must +be identified in any redistributions, any implied warranty of non +infringement is disclaimed, implied licenses are disclaimed, and you +agree that you are responsible for any claims that may arise out of +your use of the software. + +The copyright holder grants you permission to and use or redistribute +this software in source and binary forms, with or without modification, +conditioned on your acceptance of, and adherence to, the following +conditions: + +1. Redistributions of source code, whether or not modified, must + retain the above copyright notice, this list of conditions, and the + following disclaimer. If modified, the source code must identify + the modifications (identification in general terms is acceptable). + +2. Redistributions in binary or application form must reproduce the + above copyright notice, this list of conditions, and the following + disclaimer in the documentation or other materials provided with + the binary or application. + +3. You may not use the name of the copyright holder nor the names of + the contributors 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 ALL EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE, AND NON INFRINGEMENT ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 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. YOU AGREE TO INDEMNIFY AND HOLD HARMLESS +THE COPYRIGHT HOLDER AND ALL CONTRIBUTORS AGAINST ANY CLAIMS THAT +ARISE BASED ON YOUR USE, MODIFICATION, OR REDISTRIBUTION OF THIS +SOFTWARE. NO ADDITIONAL LICENSE BEYOND THOSE EXPRESSLY GRANTED ABOVE +ARE IMPLIED. diff --git a/Makefile b/Makefile index c4d61ee..2ccccb6 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ fix: @/usr/libexec/PlistBuddy -c \ "Delete :FILEHEADER" \ "$(XCSHAREDDATA)/IDETemplateMacros.plist" >/dev/null 2>&1 || true - @header=$$'\n// Copyright © ___YEAR___ Tinder \(Match Group, LLC\)\n//'; \ + @header=$$'\n// All Contributions by Match Group\n//\n// Copyright © ___YEAR___ Tinder \(Match Group, LLC\)\n//\n// Licensed under the Match Group Modified 3-Clause BSD License.\n// See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information.\n//'; \ /usr/libexec/PlistBuddy -c \ "Add :FILEHEADER string $$header" \ "$(XCSHAREDDATA)/IDETemplateMacros.plist" >/dev/null 2>&1 diff --git a/README.md b/README.md index 628b255..be09b94 100644 --- a/README.md +++ b/README.md @@ -209,3 +209,17 @@ Open in browser from the command line: ``` open http://localhost:3000 ``` + +## Contributing + +While interest in contributing to this project is appreciated, it has been open +sourced solely for the purpose of sharing with the community. This means we are +unable to accept outside contributions at this time and pull requests will not +be reviewed or merged. To report a security concern or vulnerability, please +submit a GitHub issue. + +## License + +Licensed under the [Match Group Modified 3-Clause BSD License]( +https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE +). diff --git a/Sources/NodesSocketIO/DebugSocket+UIKit.swift b/Sources/NodesSocketIO/DebugSocket+UIKit.swift index 15210fc..e05bd03 100644 --- a/Sources/NodesSocketIO/DebugSocket+UIKit.swift +++ b/Sources/NodesSocketIO/DebugSocket+UIKit.swift @@ -1,5 +1,10 @@ // -// Copyright © 2024 Tinder (Match Group, LLC) +// All Contributions by Match Group +// +// Copyright © 2025 Tinder (Match Group, LLC) +// +// Licensed under the Match Group Modified 3-Clause BSD License. +// See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information. // #if DEBUG && canImport(UIKit) diff --git a/Sources/NodesSocketIO/DebugSocket.swift b/Sources/NodesSocketIO/DebugSocket.swift index 0beec44..c97f2b0 100644 --- a/Sources/NodesSocketIO/DebugSocket.swift +++ b/Sources/NodesSocketIO/DebugSocket.swift @@ -1,5 +1,10 @@ // -// Copyright © 2024 Tinder (Match Group, LLC) +// All Contributions by Match Group +// +// Copyright © 2025 Tinder (Match Group, LLC) +// +// Licensed under the Match Group Modified 3-Clause BSD License. +// See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information. // #if DEBUG diff --git a/Sources/NodesSocketIO/DebugSocketConstants.swift b/Sources/NodesSocketIO/DebugSocketConstants.swift index cd29ee8..2732f0f 100644 --- a/Sources/NodesSocketIO/DebugSocketConstants.swift +++ b/Sources/NodesSocketIO/DebugSocketConstants.swift @@ -1,5 +1,10 @@ // -// Copyright © 2024 Tinder (Match Group, LLC) +// All Contributions by Match Group +// +// Copyright © 2025 Tinder (Match Group, LLC) +// +// Licensed under the Match Group Modified 3-Clause BSD License. +// See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information. // #if DEBUG diff --git a/Sources/NodesSocketIO/Node.swift b/Sources/NodesSocketIO/Node.swift index bf344ad..fd28143 100644 --- a/Sources/NodesSocketIO/Node.swift +++ b/Sources/NodesSocketIO/Node.swift @@ -1,5 +1,10 @@ // -// Copyright © 2024 Tinder (Match Group, LLC) +// All Contributions by Match Group +// +// Copyright © 2025 Tinder (Match Group, LLC) +// +// Licensed under the Match Group Modified 3-Clause BSD License. +// See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information. // #if DEBUG diff --git a/Sources/NodesSocketIO/String.swift b/Sources/NodesSocketIO/String.swift index 0f3738f..f715ad7 100644 --- a/Sources/NodesSocketIO/String.swift +++ b/Sources/NodesSocketIO/String.swift @@ -1,5 +1,10 @@ // -// Copyright © 2024 Tinder (Match Group, LLC) +// All Contributions by Match Group +// +// Copyright © 2025 Tinder (Match Group, LLC) +// +// Licensed under the Match Group Modified 3-Clause BSD License. +// See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information. // #if DEBUG diff --git a/Tests/NodesSocketIOTests/NodesSocketIOTests.swift b/Tests/NodesSocketIOTests/NodesSocketIOTests.swift index e152e5e..551381c 100644 --- a/Tests/NodesSocketIOTests/NodesSocketIOTests.swift +++ b/Tests/NodesSocketIOTests/NodesSocketIOTests.swift @@ -1,6 +1,11 @@ // +// All Contributions by Match Group +// // Copyright © 2025 Tinder (Match Group, LLC) // +// Licensed under the Match Group Modified 3-Clause BSD License. +// See https://github.com/Tinder/Nodes-Tree-Visualizer/blob/main/LICENSE for license information. +// import Nimble import NodesSocketIO