Skip to content

Commit 4b8110e

Browse files
committed
Added license and readme
1 parent aedb399 commit 4b8110e

File tree

2 files changed

+175
-0
lines changed

2 files changed

+175
-0
lines changed

LICENSE.txt

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
BLUE HUSKY LICENSE 1 - PUBLIC SHARE - OPUS 2
2+
3+
0: LAYMAN'S TERMS
4+
This section is meant to explain the purpose of this license in Layman's
5+
terms, and should thusly never be seen as legally binding. This disclaimer does
6+
not apply to further sections of this license.
7+
8+
If you made this:
9+
10+
1. This is your product and you can do what you want with it
11+
a. You must make sure that if you use anyone else's stuff in it, you do so
12+
with their permission, or under Fair Use
13+
b. If you do include someone else's stuff, you can't claim you made that
14+
c. You guarantee you're providing this product for free
15+
2. You must let others do what they want with it
16+
a. They still have to say you made it in the first place
17+
b. You have to include this license along with your product for it to count
18+
c. They have to include this license when they redistribute your product
19+
3. This license is overridden by governmental laws
20+
4. You're not responsible for bad things that might happen because someone
21+
used your product
22+
23+
If you got this:
24+
25+
1. This is not your product, and you need to respect that
26+
a. You must make sure that if you put anyone else's stuff in it, you do so
27+
with their permission, or under Fair Use
28+
b. If you do include someone else's stuff, you can't claim you made that
29+
c. You are guaranteed you're getting this product for free
30+
2. You can still do what you want with this
31+
a. You still have to say who made it in the first place
32+
b. You get all the freedoms in this license along with this product
33+
c. You have to include this license when you redistribute this product
34+
3. This license is overridden by governmental laws
35+
4. The original creator is not responsible for bad things that might happen
36+
because you used this product
37+
38+
1: DECLARATION OF COPYRIGHT
39+
This Product is copyright Blue Husky Studios (c) 2018 BH-1-PS
40+
41+
2: DEFINITIONS
42+
- "License": this text
43+
- "Product": the product with which this License was distributed, and any
44+
assets necessary for its use
45+
- "Creator": any entity or entities who originally invented the Product,
46+
withstanding related and contributing parties
47+
- "Licensee": any entity or entities involved in consumption of the Product
48+
- "Licensor": any entity or entities involved in distribution of the Product
49+
and of this License
50+
51+
3: NOTICE OF PERMISSIONS
52+
Permission is hereby granted to any entity obtaining a copy of the Product,
53+
to use, copy, modify, host, redistribute, sublicense, sell copies of, and/or
54+
otherwise handle the Product, and to permit Licensees to also do so, given the
55+
following conditions are obeyed:
56+
57+
- The above copyright notice and this permission notice shall be included in
58+
all copies and/or substantial portions of the Product.
59+
- This License shall be blatantly provided, unmodified, along with the Product
60+
- Attribution to the Creator must be blatantly stated, modifications of the
61+
Product notwithstanding
62+
63+
4: DECLARATION OF OWNERSHIP
64+
The Creator hereby declares that the Product is the intellectual property
65+
solely of the Creator, and of no other party. The Creator maintains that any
66+
intellectual property which falls under § 5.1 of this License is considered
67+
fair use as described in § 5.4 of this License.
68+
69+
5: THE RIGHTS OF THE CREATOR
70+
1. The Creator reserves no rights to any previously-established intellectual
71+
property contained within the Product which is implicitly or explicitly
72+
owned by any other entity or entities.
73+
2. The Creator will not gain any profit through the creation or distribution
74+
of the Product.
75+
a. The Creator forfeits the right to request compensation for any use of the
76+
Product which adheres to the restrictions described by this License.
77+
3. The Creator reserves the right to freely create, edit, distribute, destroy,
78+
or otherwise interact with the whole of, or any part of, the Product.
79+
4. In the case that any entity other than the Creator claims to own
80+
intellectual property contained within the Product and wishes to be
81+
compensated for the use of such, the Creator reserves the right to refuse
82+
such compensation as allowed by the following legal documents:
83+
a. Amendment I of the United States Constitution
84+
b. Article 19 of the Universal Declaration of Human Rights
85+
c. 17 USC § 107 - Limitations on exclusive rights: Fair use
86+
5. In cases where all of the documents listed under § 5.4 of this
87+
License are not legally recognized, the Creator agrees to pay the owner of
88+
the disputed intellectual property a sum which equals the proportion of the
89+
prevalence that the disputed intellectual property maintains in the Product
90+
out of the total sum of profits garnered by the Creator for creating the
91+
Product.
92+
6. The Creator reserves the right to waive any conditions of this License at
93+
the Creator's discretion.
94+
7. The Licensor reserves the right to edit this License at any time.
95+
a. The Licensor agrees to update the Opus number of this License to
96+
correspond with version changes.
97+
b. The Licensor agrees to never publish two or more versions of this License
98+
under the same Opus number.
99+
8. In no way are any of the Creator's moral rights affected by this License
100+
101+
6: RIGHTS AND RESTRICTIONS OF LICENSEES AND LICENSORS ("YOU")
102+
1. You maintain the following rights and restrictions:
103+
a. You are free to copy, distribute and transmit the work.
104+
i. For any reuse or distribution, You must make clear to others the
105+
License terms of the License.
106+
b. You are free to adapt the work.
107+
i. If You alter, transform, or build upon the Product, You may distribute
108+
the resulting work only under this License.
109+
c. You are free to make commercial use of the work.
110+
d. You must attribute the work in the manner specified by the Creator (but
111+
not in any way that suggests that the Creator endorses You or such use of
112+
the work).
113+
e. The Creator and any Licensors or Licensees previous to You are not
114+
responsible for any changes made to the Product, or any effects arising
115+
thereof.
116+
f. You can be granted special rights by the Creator as described in
117+
section 5.6 of the License
118+
2. In no way are any of the following rights affected by the License:
119+
a. The fair dealing or fair use rights afforded to You, or other applicable
120+
copyright exceptions and limitations.
121+
b. Rights another entity may have, either in the Product itself or in how
122+
the Product is used, such as publicity or privacy rights.
123+
124+
7: ACCORDANCE WITH THE LAW
125+
The terms that make up the whole and parts of this License shall not apply
126+
where local, state, provincial, federal, national, or any other law prohibits
127+
such terms.
128+
129+
8: DISCLAIMER
130+
THE PRODUCT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
131+
IMPLIED. IN NO EVENT SHALL THE CREATORS, LICENSEES, OR LICENSORS BE LIABLE FOR
132+
ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT,
133+
OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE PRODUCT OR THE
134+
USE OR OTHER DEALINGS IN OR WITH THE PRODUCT.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Swift Semantic Versioning #
2+
A small library that implements [SemVer 2.0.0](https://semver.org/spec/v2.0.0.html). This is designed to be simple to
3+
use and to easily fit into any Swift codebase.
4+
5+
6+
## Examples ##
7+
Let's say you have a release candidate of version 2.0 of your app. The following are all equivalent:
8+
9+
```Swift
10+
_ = SemVer(major: 2, minor: 0, preRelease: ["RC", 1])
11+
_ = SemVer(2,0,0, preRelease: ["RC",1])
12+
_ = SemVer("2.0-RC.1")
13+
_ = SemVer("2.0.0-RC.1")
14+
```
15+
16+
These can also be compared using Swift comparison operators. For instance, all these are true:
17+
18+
```Swift
19+
SemVer("2.0") == SemVer("2.0.0")
20+
SemVer("1.2.0") < SemVer("2.0.0")
21+
SemVer("1.2.0") <= SemVer("2.0.0")
22+
SemVer("12.0") > SemVer("2.9.9")
23+
```
24+
25+
Since this conforms to Semantic Version 2.0.0, attempting to use an invalid semantic version as a string will result in
26+
a `nil` object:
27+
28+
```Swift
29+
nil == SemVer("Obviously Bad")
30+
nil == SemVer("1")
31+
nil == SemVer("-2.0")
32+
nil == SemVer("2.0-β")
33+
nil == SemVer("2.0-beta_1")
34+
nil == SemVer("1.-2")
35+
nil == SemVer("1.2.-3")
36+
nil == SemVer("1.2.3.4")
37+
```
38+
39+
40+
# License #
41+
This is licensed under [BH-1-PS Opus 2](https://github.com/BlueHuskyStudios/Licenses/blob/dc25f90c72d0b88771db773c506f78a10c9699d2/Licenses/BH-1-PS.txt).

0 commit comments

Comments
 (0)