license_scout 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +4 -0
  5. data/.travis.yml +11 -0
  6. data/Gemfile +24 -0
  7. data/LICENSE +201 -0
  8. data/README.md +26 -0
  9. data/Rakefile +39 -0
  10. data/bin/license_scout +39 -0
  11. data/lib/license_scout/collector.rb +137 -0
  12. data/lib/license_scout/dependency.rb +20 -0
  13. data/lib/license_scout/dependency_manager/base.rb +55 -0
  14. data/lib/license_scout/dependency_manager/bundler/LICENSE.md +23 -0
  15. data/lib/license_scout/dependency_manager/bundler/_bundler_script.rb +47 -0
  16. data/lib/license_scout/dependency_manager/bundler.rb +159 -0
  17. data/lib/license_scout/dependency_manager/rebar.rb +92 -0
  18. data/lib/license_scout/dependency_manager.rb +27 -0
  19. data/lib/license_scout/exceptions.rb +74 -0
  20. data/lib/license_scout/license_file_analyzer/any_matcher.rb +37 -0
  21. data/lib/license_scout/license_file_analyzer/definitions.rb +212 -0
  22. data/lib/license_scout/license_file_analyzer/header_matcher.rb +34 -0
  23. data/lib/license_scout/license_file_analyzer/matcher.rb +46 -0
  24. data/lib/license_scout/license_file_analyzer/template.rb +45 -0
  25. data/lib/license_scout/license_file_analyzer/templates/Apache2-short.txt +11 -0
  26. data/lib/license_scout/license_file_analyzer/templates/Apache2.txt +172 -0
  27. data/lib/license_scout/license_file_analyzer/templates/BSD-2-Clause-bullets.txt +18 -0
  28. data/lib/license_scout/license_file_analyzer/templates/BSD-2-Clause.txt +19 -0
  29. data/lib/license_scout/license_file_analyzer/templates/BSD-3-Clause-alt-format.txt +24 -0
  30. data/lib/license_scout/license_file_analyzer/templates/BSD-3-Clause.txt +21 -0
  31. data/lib/license_scout/license_file_analyzer/templates/BSD.txt +24 -0
  32. data/lib/license_scout/license_file_analyzer/templates/EPLICENSE.txt +286 -0
  33. data/lib/license_scout/license_file_analyzer/templates/GPL-2.0.txt +339 -0
  34. data/lib/license_scout/license_file_analyzer/templates/GPL-3.0.txt +674 -0
  35. data/lib/license_scout/license_file_analyzer/templates/ISC.txt +2 -0
  36. data/lib/license_scout/license_file_analyzer/templates/LGPL-3.0.txt +165 -0
  37. data/lib/license_scout/license_file_analyzer/templates/MIT.txt +9 -0
  38. data/lib/license_scout/license_file_analyzer/templates/MPL2.txt +373 -0
  39. data/lib/license_scout/license_file_analyzer/templates/Python-2.0.txt +47 -0
  40. data/lib/license_scout/license_file_analyzer/templates/Ruby.txt +52 -0
  41. data/lib/license_scout/license_file_analyzer/text.rb +46 -0
  42. data/lib/license_scout/license_file_analyzer.rb +26 -0
  43. data/lib/license_scout/net_fetcher.rb +104 -0
  44. data/lib/license_scout/options.rb +45 -0
  45. data/lib/license_scout/overrides.rb +149 -0
  46. data/lib/license_scout/version.rb +20 -0
  47. data/lib/license_scout.rb +19 -0
  48. data/license_scout.gemspec +46 -0
  49. metadata +190 -0
@@ -0,0 +1,45 @@
1
+ # Copied verbatim from https://github.com/pivotal/LicenseFinder
2
+ #
3
+ # The MIT License
4
+ #
5
+ # Copyright (c) 2012 Pivotal Labs
6
+ #
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ # THE SOFTWARE.
24
+
25
+ require "pathname"
26
+
27
+ require "license_scout/license_file_analyzer/text"
28
+
29
+ module LicenseScout
30
+ module LicenseFileAnalyzer
31
+ class Template
32
+ TEMPLATE_PATH = Pathname.new(File.expand_path("../templates", __FILE__))
33
+
34
+ def self.named(name)
35
+ new TEMPLATE_PATH.join("#{name}.txt").read
36
+ end
37
+
38
+ attr_reader :content
39
+
40
+ def initialize(raw_content)
41
+ @content = Text.normalize_punctuation(raw_content)
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,11 @@
1
+ Licensed under the Apache License, Version 2.0 (the "License");
2
+ you may not use this file except in compliance with the License.
3
+ You may obtain a copy of the License at
4
+
5
+ http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
@@ -0,0 +1,172 @@
1
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
2
+
3
+ 1. Definitions.
4
+
5
+ "License" shall mean the terms and conditions for use, reproduction,
6
+ and distribution as defined by Sections 1 through 9 of this document.
7
+
8
+ "Licensor" shall mean the copyright owner or entity authorized by
9
+ the copyright owner that is granting the License.
10
+
11
+ "Legal Entity" shall mean the union of the acting entity and all
12
+ other entities that control, are controlled by, or are under common
13
+ control with that entity. For the purposes of this definition,
14
+ "control" means (i) the power, direct or indirect, to cause the
15
+ direction or management of such entity, whether by contract or
16
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
17
+ outstanding shares, or (iii) beneficial ownership of such entity.
18
+
19
+ "You" (or "Your") shall mean an individual or Legal Entity
20
+ exercising permissions granted by this License.
21
+
22
+ "Source" form shall mean the preferred form for making modifications,
23
+ including but not limited to software source code, documentation
24
+ source, and configuration files.
25
+
26
+ "Object" form shall mean any form resulting from mechanical
27
+ transformation or translation of a Source form, including but
28
+ not limited to compiled object code, generated documentation,
29
+ and conversions to other media types.
30
+
31
+ "Work" shall mean the work of authorship, whether in Source or
32
+ Object form, made available under the License, as indicated by a
33
+ copyright notice that is included in or attached to the work
34
+ (an example is provided in the Appendix below).
35
+
36
+ "Derivative Works" shall mean any work, whether in Source or Object
37
+ form, that is based on (or derived from) the Work and for which the
38
+ editorial revisions, annotations, elaborations, or other modifications
39
+ represent, as a whole, an original work of authorship. For the purposes
40
+ of this License, Derivative Works shall not include works that remain
41
+ separable from, or merely link (or bind by name) to the interfaces of,
42
+ the Work and Derivative Works thereof.
43
+
44
+ "Contribution" shall mean any work of authorship, including
45
+ the original version of the Work and any modifications or additions
46
+ to that Work or Derivative Works thereof, that is intentionally
47
+ submitted to Licensor for inclusion in the Work by the copyright owner
48
+ or by an individual or Legal Entity authorized to submit on behalf of
49
+ the copyright owner. For the purposes of this definition, "submitted"
50
+ means any form of electronic, verbal, or written communication sent
51
+ to the Licensor or its representatives, including but not limited to
52
+ communication on electronic mailing lists, source code control systems,
53
+ and issue tracking systems that are managed by, or on behalf of, the
54
+ Licensor for the purpose of discussing and improving the Work, but
55
+ excluding communication that is conspicuously marked or otherwise
56
+ designated in writing by the copyright owner as "Not a Contribution."
57
+
58
+ "Contributor" shall mean Licensor and any individual or Legal Entity
59
+ on behalf of whom a Contribution has been received by Licensor and
60
+ subsequently incorporated within the Work.
61
+
62
+ 2. Grant of Copyright License. Subject to the terms and conditions of
63
+ this License, each Contributor hereby grants to You a perpetual,
64
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
65
+ copyright license to reproduce, prepare Derivative Works of,
66
+ publicly display, publicly perform, sublicense, and distribute the
67
+ Work and such Derivative Works in Source or Object form.
68
+
69
+ 3. Grant of Patent License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ (except as stated in this section) patent license to make, have made,
73
+ use, offer to sell, sell, import, and otherwise transfer the Work,
74
+ where such license applies only to those patent claims licensable
75
+ by such Contributor that are necessarily infringed by their
76
+ Contribution(s) alone or by combination of their Contribution(s)
77
+ with the Work to which such Contribution(s) was submitted. If You
78
+ institute patent litigation against any entity (including a
79
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
80
+ or a Contribution incorporated within the Work constitutes direct
81
+ or contributory patent infringement, then any patent licenses
82
+ granted to You under this License for that Work shall terminate
83
+ as of the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the
86
+ Work or Derivative Works thereof in any medium, with or without
87
+ modifications, and in Source or Object form, provided that You
88
+ meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or
91
+ Derivative Works a copy of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices
94
+ stating that You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works
97
+ that You distribute, all copyright, patent, trademark, and
98
+ attribution notices from the Source form of the Work,
99
+ excluding those notices that do not pertain to any part of
100
+ the Derivative Works; and
101
+
102
+ (d) If the Work includes a "NOTICE" text file as part of its
103
+ distribution, then any Derivative Works that You distribute must
104
+ include a readable copy of the attribution notices contained
105
+ within such NOTICE file, excluding those notices that do not
106
+ pertain to any part of the Derivative Works, in at least one
107
+ of the following places: within a NOTICE text file distributed
108
+ as part of the Derivative Works; within the Source form or
109
+ documentation, if provided along with the Derivative Works; or,
110
+ within a display generated by the Derivative Works, if and
111
+ wherever such third-party notices normally appear. The contents
112
+ of the NOTICE file are for informational purposes only and
113
+ do not modify the License. You may add Your own attribution
114
+ notices within Derivative Works that You distribute, alongside
115
+ or as an addendum to the NOTICE text from the Work, provided
116
+ that such additional attribution notices cannot be construed
117
+ as modifying the License.
118
+
119
+ You may add Your own copyright statement to Your modifications and
120
+ may provide additional or different license terms and conditions
121
+ for use, reproduction, or distribution of Your modifications, or
122
+ for any such Derivative Works as a whole, provided Your use,
123
+ reproduction, and distribution of the Work otherwise complies with
124
+ the conditions stated in this License.
125
+
126
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
127
+ any Contribution intentionally submitted for inclusion in the Work
128
+ by You to the Licensor shall be under the terms and conditions of
129
+ this License, without any additional terms or conditions.
130
+ Notwithstanding the above, nothing herein shall supersede or modify
131
+ the terms of any separate license agreement you may have executed
132
+ with Licensor regarding such Contributions.
133
+
134
+ 6. Trademarks. This License does not grant permission to use the trade
135
+ names, trademarks, service marks, or product names of the Licensor,
136
+ except as required for reasonable and customary use in describing the
137
+ origin of the Work and reproducing the content of the NOTICE file.
138
+
139
+ 7. Disclaimer of Warranty. Unless required by applicable law or
140
+ agreed to in writing, Licensor provides the Work (and each
141
+ Contributor provides its Contributions) on an "AS IS" BASIS,
142
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
143
+ implied, including, without limitation, any warranties or conditions
144
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
145
+ PARTICULAR PURPOSE. You are solely responsible for determining the
146
+ appropriateness of using or redistributing the Work and assume any
147
+ risks associated with Your exercise of permissions under this License.
148
+
149
+ 8. Limitation of Liability. In no event and under no legal theory,
150
+ whether in tort (including negligence), contract, or otherwise,
151
+ unless required by applicable law (such as deliberate and grossly
152
+ negligent acts) or agreed to in writing, shall any Contributor be
153
+ liable to You for damages, including any direct, indirect, special,
154
+ incidental, or consequential damages of any character arising as a
155
+ result of this License or out of the use or inability to use the
156
+ Work (including but not limited to damages for loss of goodwill,
157
+ work stoppage, computer failure or malfunction, or any and all
158
+ other commercial damages or losses), even if such Contributor
159
+ has been advised of the possibility of such damages.
160
+
161
+ 9. Accepting Warranty or Additional Liability. While redistributing
162
+ the Work or Derivative Works thereof, You may choose to offer,
163
+ and charge a fee for, acceptance of support, warranty, indemnity,
164
+ or other liability obligations and/or rights consistent with this
165
+ License. However, in accepting such obligations, You may act only
166
+ on Your own behalf and on Your sole responsibility, not on behalf
167
+ of any other Contributor, and only if You agree to indemnify,
168
+ defend, and hold each Contributor harmless for any liability
169
+ incurred by, or claims asserted against, such Contributor by reason
170
+ of your accepting any such warranty or additional liability.
171
+
172
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,18 @@
1
+ Redistribution and use in source and binary forms, with or without
2
+ modification, are permitted provided that the following conditions are met:
3
+ * Redistributions of source code must retain the above copyright
4
+ notice, this list of conditions and the following disclaimer.
5
+ * Redistributions in binary form must reproduce the above copyright
6
+ notice, this list of conditions and the following disclaimer in the
7
+ documentation and/or other materials provided with the distribution.
8
+
9
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
10
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
11
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
12
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
13
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
14
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
15
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
16
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
17
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
18
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,19 @@
1
+ Redistribution and use in source and binary forms, with or without
2
+ modification, are permitted provided that the following conditions are met:
3
+
4
+ 1. Redistributions of source code must retain the above copyright notice, this
5
+ list of conditions and the following disclaimer.
6
+ 2. Redistributions in binary form must reproduce the above copyright notice,
7
+ this list of conditions and the following disclaimer in the documentation
8
+ and/or other materials provided with the distribution.
9
+
10
+ THIS SOFTWARE IS PROVIDED BY THE <COPYRIGHT HOLDERS> "AS IS" AND
11
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
12
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
13
+ DISCLAIMED. IN NO EVENT SHALL THE <COPYRIGHT HOLDERS> BE LIABLE FOR
14
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
15
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
16
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
17
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,24 @@
1
+ Redistribution and use in source and binary forms, with or without
2
+ modification, are permitted provided that the following conditions are met:
3
+
4
+ Redistributions of source code must retain the above copyright
5
+ notice, this list of conditions and the following disclaimer.
6
+
7
+ Redistributions in binary form must reproduce the above copyright
8
+ notice, this list of conditions and the following disclaimer in the
9
+ documentation and/or other materials provided with the distribution.
10
+
11
+ Neither the name of <organization> nor the
12
+ names of <possessive> contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,21 @@
1
+ Redistribution and use in source and binary forms, with or without
2
+ modification, are permitted provided that the following conditions are met:
3
+ * Redistributions of source code must retain the above copyright
4
+ notice, this list of conditions and the following disclaimer.
5
+ * Redistributions in binary form must reproduce the above copyright
6
+ notice, this list of conditions and the following disclaimer in the
7
+ documentation and/or other materials provided with the distribution.
8
+ * Neither the name of <organization> nor the
9
+ names of <possessive> contributors may be used to endorse or promote products
10
+ derived from this software without specific prior written permission.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
16
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
19
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,24 @@
1
+ Redistribution and use in source and binary forms, with or without
2
+ modification, are permitted provided that the following conditions are met:
3
+ 1. Redistributions of source code must retain the above copyright
4
+ notice, this list of conditions and the following disclaimer.
5
+ 2. Redistributions in binary form must reproduce the above copyright
6
+ notice, this list of conditions and the following disclaimer in the
7
+ documentation and/or other materials provided with the distribution.
8
+ 3. All advertising materials mentioning features or use of this software
9
+ must display the following acknowledgement:
10
+ This product includes software developed by <organization>.
11
+ 4. Neither the name of <organization> nor the
12
+ names of its contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY
16
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,286 @@
1
+ ERLANG PUBLIC LICENSE
2
+ Version 1.1
3
+
4
+ 1. Definitions.
5
+
6
+ 1.1. ``Contributor'' means each entity that creates or contributes to
7
+ the creation of Modifications.
8
+
9
+ 1.2. ``Contributor Version'' means the combination of the Original
10
+ Code, prior Modifications used by a Contributor, and the Modifications
11
+ made by that particular Contributor.
12
+
13
+ 1.3. ``Covered Code'' means the Original Code or Modifications or the
14
+ combination of the Original Code and Modifications, in each case
15
+ including portions thereof.
16
+
17
+ 1.4. ``Electronic Distribution Mechanism'' means a mechanism generally
18
+ accepted in the software development community for the electronic
19
+ transfer of data.
20
+
21
+ 1.5. ``Executable'' means Covered Code in any form other than Source
22
+ Code.
23
+
24
+ 1.6. ``Initial Developer'' means the individual or entity identified
25
+ as the Initial Developer in the Source Code notice required by Exhibit
26
+ A.
27
+
28
+ 1.7. ``Larger Work'' means a work which combines Covered Code or
29
+ portions thereof with code not governed by the terms of this License.
30
+
31
+ 1.8. ``License'' means this document.
32
+
33
+ 1.9. ``Modifications'' means any addition to or deletion from the
34
+ substance or structure of either the Original Code or any previous
35
+ Modifications. When Covered Code is released as a series of files, a
36
+ Modification is:
37
+
38
+ A. Any addition to or deletion from the contents of a file containing
39
+ Original Code or previous Modifications.
40
+
41
+ B. Any new file that contains any part of the Original Code or
42
+ previous Modifications.
43
+
44
+ 1.10. ``Original Code'' means Source Code of computer software code
45
+ which is described in the Source Code notice required by Exhibit A as
46
+ Original Code, and which, at the time of its release under this
47
+ License is not already Covered Code governed by this License.
48
+
49
+ 1.11. ``Source Code'' means the preferred form of the Covered Code for
50
+ making modifications to it, including all modules it contains, plus
51
+ any associated interface definition files, scripts used to control
52
+ compilation and installation of an Executable, or a list of source
53
+ code differential comparisons against either the Original Code or
54
+ another well known, available Covered Code of the Contributor's
55
+ choice. The Source Code can be in a compressed or archival form,
56
+ provided the appropriate decompression or de-archiving software is
57
+ widely available for no charge.
58
+
59
+ 1.12. ``You'' means an individual or a legal entity exercising rights
60
+ under, and complying with all of the terms of, this License. For legal
61
+ entities,``You'' includes any entity which controls, is controlled by,
62
+ or is under common control with You. For purposes of this definition,
63
+ ``control'' means (a) the power, direct or indirect, to cause the
64
+ direction or management of such entity, whether by contract or
65
+ otherwise, or (b) ownership of fifty percent (50%) or more of the
66
+ outstanding shares or beneficial ownership of such entity.
67
+
68
+ 2. Source Code License.
69
+
70
+ 2.1. The Initial Developer Grant.
71
+ The Initial Developer hereby grants You a world-wide, royalty-free,
72
+ non-exclusive license, subject to third party intellectual property
73
+ claims:
74
+
75
+ (a) to use, reproduce, modify, display, perform, sublicense and
76
+ distribute the Original Code (or portions thereof) with or without
77
+ Modifications, or as part of a Larger Work; and
78
+
79
+ (b) under patents now or hereafter owned or controlled by Initial
80
+ Developer, to make, have made, use and sell (``Utilize'') the
81
+ Original Code (or portions thereof), but solely to the extent that
82
+ any such patent is reasonably necessary to enable You to Utilize
83
+ the Original Code (or portions thereof) and not to any greater
84
+ extent that may be necessary to Utilize further Modifications or
85
+ combinations.
86
+
87
+ 2.2. Contributor Grant.
88
+ Each Contributor hereby grants You a world-wide, royalty-free,
89
+ non-exclusive license, subject to third party intellectual property
90
+ claims:
91
+
92
+ (a) to use, reproduce, modify, display, perform, sublicense and
93
+ distribute the Modifications created by such Contributor (or
94
+ portions thereof) either on an unmodified basis, with other
95
+ Modifications, as Covered Code or as part of a Larger Work; and
96
+
97
+ (b) under patents now or hereafter owned or controlled by Contributor,
98
+ to Utilize the Contributor Version (or portions thereof), but
99
+ solely to the extent that any such patent is reasonably necessary
100
+ to enable You to Utilize the Contributor Version (or portions
101
+ thereof), and not to any greater extent that may be necessary to
102
+ Utilize further Modifications or combinations.
103
+
104
+ 3. Distribution Obligations.
105
+
106
+ 3.1. Application of License.
107
+ The Modifications which You contribute are governed by the terms of
108
+ this License, including without limitation Section 2.2. The Source
109
+ Code version of Covered Code may be distributed only under the terms
110
+ of this License, and You must include a copy of this License with
111
+ every copy of the Source Code You distribute. You may not offer or
112
+ impose any terms on any Source Code version that alters or restricts
113
+ the applicable version of this License or the recipients' rights
114
+ hereunder. However, You may include an additional document offering
115
+ the additional rights described in Section 3.5.
116
+
117
+ 3.2. Availability of Source Code.
118
+ Any Modification which You contribute must be made available in Source
119
+ Code form under the terms of this License either on the same media as
120
+ an Executable version or via an accepted Electronic Distribution
121
+ Mechanism to anyone to whom you made an Executable version available;
122
+ and if made available via Electronic Distribution Mechanism, must
123
+ remain available for at least twelve (12) months after the date it
124
+ initially became available, or at least six (6) months after a
125
+ subsequent version of that particular Modification has been made
126
+ available to such recipients. You are responsible for ensuring that
127
+ the Source Code version remains available even if the Electronic
128
+ Distribution Mechanism is maintained by a third party.
129
+
130
+ 3.3. Description of Modifications.
131
+ You must cause all Covered Code to which you contribute to contain a
132
+ file documenting the changes You made to create that Covered Code and
133
+ the date of any change. You must include a prominent statement that
134
+ the Modification is derived, directly or indirectly, from Original
135
+ Code provided by the Initial Developer and including the name of the
136
+ Initial Developer in (a) the Source Code, and (b) in any notice in an
137
+ Executable version or related documentation in which You describe the
138
+ origin or ownership of the Covered Code.
139
+
140
+ 3.4. Intellectual Property Matters
141
+
142
+ (a) Third Party Claims.
143
+ If You have knowledge that a party claims an intellectual property
144
+ right in particular functionality or code (or its utilization
145
+ under this License), you must include a text file with the source
146
+ code distribution titled ``LEGAL'' which describes the claim and
147
+ the party making the claim in sufficient detail that a recipient
148
+ will know whom to contact. If you obtain such knowledge after You
149
+ make Your Modification available as described in Section 3.2, You
150
+ shall promptly modify the LEGAL file in all copies You make
151
+ available thereafter and shall take other steps (such as notifying
152
+ appropriate mailing lists or newsgroups) reasonably calculated to
153
+ inform those who received the Covered Code that new knowledge has
154
+ been obtained.
155
+
156
+ (b) Contributor APIs.
157
+ If Your Modification is an application programming interface and
158
+ You own or control patents which are reasonably necessary to
159
+ implement that API, you must also include this information in the
160
+ LEGAL file.
161
+
162
+ 3.5. Required Notices.
163
+ You must duplicate the notice in Exhibit A in each file of the Source
164
+ Code, and this License in any documentation for the Source Code, where
165
+ You describe recipients' rights relating to Covered Code. If You
166
+ created one or more Modification(s), You may add your name as a
167
+ Contributor to the notice described in Exhibit A. If it is not
168
+ possible to put such notice in a particular Source Code file due to
169
+ its structure, then you must include such notice in a location (such
170
+ as a relevant directory file) where a user would be likely to look for
171
+ such a notice. You may choose to offer, and to charge a fee for,
172
+ warranty, support, indemnity or liability obligations to one or more
173
+ recipients of Covered Code. However, You may do so only on Your own
174
+ behalf, and not on behalf of the Initial Developer or any
175
+ Contributor. You must make it absolutely clear than any such warranty,
176
+ support, indemnity or liability obligation is offered by You alone,
177
+ and You hereby agree to indemnify the Initial Developer and every
178
+ Contributor for any liability incurred by the Initial Developer or
179
+ such Contributor as a result of warranty, support, indemnity or
180
+ liability terms You offer.
181
+
182
+ 3.6. Distribution of Executable Versions.
183
+ You may distribute Covered Code in Executable form only if the
184
+ requirements of Section 3.1-3.5 have been met for that Covered Code,
185
+ and if You include a notice stating that the Source Code version of
186
+ the Covered Code is available under the terms of this License,
187
+ including a description of how and where You have fulfilled the
188
+ obligations of Section 3.2. The notice must be conspicuously included
189
+ in any notice in an Executable version, related documentation or
190
+ collateral in which You describe recipients' rights relating to the
191
+ Covered Code. You may distribute the Executable version of Covered
192
+ Code under a license of Your choice, which may contain terms different
193
+ from this License, provided that You are in compliance with the terms
194
+ of this License and that the license for the Executable version does
195
+ not attempt to limit or alter the recipient's rights in the Source
196
+ Code version from the rights set forth in this License. If You
197
+ distribute the Executable version under a different license You must
198
+ make it absolutely clear that any terms which differ from this License
199
+ are offered by You alone, not by the Initial Developer or any
200
+ Contributor. You hereby agree to indemnify the Initial Developer and
201
+ every Contributor for any liability incurred by the Initial Developer
202
+ or such Contributor as a result of any such terms You offer.
203
+
204
+ 3.7. Larger Works.
205
+ You may create a Larger Work by combining Covered Code with other code
206
+ not governed by the terms of this License and distribute the Larger
207
+ Work as a single product. In such a case, You must make sure the
208
+ requirements of this License are fulfilled for the Covered Code.
209
+
210
+ 4. Inability to Comply Due to Statute or Regulation.
211
+ If it is impossible for You to comply with any of the terms of this
212
+ License with respect to some or all of the Covered Code due to statute
213
+ or regulation then You must: (a) comply with the terms of this License
214
+ to the maximum extent possible; and (b) describe the limitations and
215
+ the code they affect. Such description must be included in the LEGAL
216
+ file described in Section 3.4 and must be included with all
217
+ distributions of the Source Code. Except to the extent prohibited by
218
+ statute or regulation, such description must be sufficiently detailed
219
+ for a recipient of ordinary skill to be able to understand it.
220
+
221
+ 5. Application of this License.
222
+
223
+ This License applies to code to which the Initial Developer has
224
+ attached the notice in Exhibit A, and to related Covered Code.
225
+
226
+ 6. CONNECTION TO MOZILLA PUBLIC LICENSE
227
+
228
+ This Erlang License is a derivative work of the Mozilla Public
229
+ License, Version 1.0. It contains terms which differ from the Mozilla
230
+ Public License, Version 1.0.
231
+
232
+ 7. DISCLAIMER OF WARRANTY.
233
+
234
+ COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS,
235
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
236
+ WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
237
+ DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
238
+ NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
239
+ THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE
240
+ IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER
241
+ CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR
242
+ CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART
243
+ OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER
244
+ EXCEPT UNDER THIS DISCLAIMER.
245
+
246
+ 8. TERMINATION.
247
+ This License and the rights granted hereunder will terminate
248
+ automatically if You fail to comply with terms herein and fail to cure
249
+ such breach within 30 days of becoming aware of the breach. All
250
+ sublicenses to the Covered Code which are properly granted shall
251
+ survive any termination of this License. Provisions which, by their
252
+ nature, must remain in effect beyond the termination of this License
253
+ shall survive.
254
+
255
+ 9. DISCLAIMER OF LIABILITY
256
+ Any utilization of Covered Code shall not cause the Initial Developer
257
+ or any Contributor to be liable for any damages (neither direct nor
258
+ indirect).
259
+
260
+ 10. MISCELLANEOUS
261
+ This License represents the complete agreement concerning the subject
262
+ matter hereof. If any provision is held to be unenforceable, such
263
+ provision shall be reformed only to the extent necessary to make it
264
+ enforceable. This License shall be construed by and in accordance with
265
+ the substantive laws of Sweden. Any dispute, controversy or claim
266
+ arising out of or relating to this License, or the breach, termination
267
+ or invalidity thereof, shall be subject to the exclusive jurisdiction
268
+ of Swedish courts, with the Stockholm City Court as the first
269
+ instance.
270
+
271
+ EXHIBIT A.
272
+
273
+ ``The contents of this file are subject to the Erlang Public License,
274
+ Version 1.1, (the "License"); you may not use this file except in
275
+ compliance with the License. You should have received a copy of the
276
+ Erlang Public License along with this software. If not, it can be
277
+ retrieved via the world wide web at http://www.erlang.org/.
278
+
279
+ Software distributed under the License is distributed on an "AS IS"
280
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
281
+ the License for the specific language governing rights and limitations
282
+ under the License.
283
+
284
+ The Initial Developer of the Original Code is Ericsson Utvecklings AB.
285
+ Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
286
+ AB. All Rights Reserved.''