Skip to content

Commit

Permalink
Add license and update copyright (#11)
Browse files Browse the repository at this point in the history
* Add license and update copyright

* Escape parentheses
  • Loading branch information
tinder-cfuller authored Jan 26, 2025
1 parent 7a9cc2e commit 784bbe3
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/CollectionBuilders/blob/main/LICENSE for license information.
\/\/
private_over_fileprivate:
Expand Down
46 changes: 46 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,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/CollectionBuilders/blob/main/LICENSE for license information.\n//'; \
/usr/libexec/PlistBuddy -c \
"Add :FILEHEADER string $$header" \
"$(XCSHAREDDATA)/IDETemplateMacros.plist" >/dev/null 2>&1
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,17 @@ cancellables.insert {
publisherB.assign(to: \.keyPath, on: object)
}
```

## 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/CollectionBuilders/blob/main/LICENSE
).
7 changes: 6 additions & 1 deletion Sources/CollectionBuilders/Array.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//
// Copyright © 2023 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/CollectionBuilders/blob/main/LICENSE for license information.
//

extension Array {
Expand Down
7 changes: 6 additions & 1 deletion Sources/CollectionBuilders/Set.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//
// Copyright © 2023 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/CollectionBuilders/blob/main/LICENSE for license information.
//

extension Set {
Expand Down
7 changes: 6 additions & 1 deletion Tests/CollectionBuildersTests/ArrayTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//
// Copyright © 2023 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/CollectionBuilders/blob/main/LICENSE for license information.
//

import CollectionBuilders
Expand Down
7 changes: 6 additions & 1 deletion Tests/CollectionBuildersTests/SetTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//
// Copyright © 2023 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/CollectionBuilders/blob/main/LICENSE for license information.
//

import CollectionBuilders
Expand Down

0 comments on commit 784bbe3

Please sign in to comment.