tty 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +2 -2
  3. data/.travis.yml +15 -4
  4. data/CHANGELOG.md +22 -0
  5. data/Gemfile +4 -7
  6. data/README.md +648 -58
  7. data/appveyor.yml +3 -4
  8. data/exe/teletype +18 -0
  9. data/lib/tty.rb +7 -4
  10. data/lib/tty/cli.rb +140 -0
  11. data/lib/tty/cmd.rb +132 -0
  12. data/lib/tty/commands/add.rb +321 -0
  13. data/lib/tty/commands/new.rb +256 -0
  14. data/lib/tty/gemspec.rb +30 -0
  15. data/lib/tty/licenses.rb +34 -0
  16. data/lib/tty/path_helpers.rb +38 -0
  17. data/lib/tty/plugins.rb +20 -12
  18. data/lib/tty/templater.rb +54 -0
  19. data/lib/tty/templates/add/command.rb.tt +31 -0
  20. data/lib/tty/templates/add/gitkeep.tt +1 -0
  21. data/lib/tty/templates/add/namespace.rb.tt +17 -0
  22. data/lib/tty/templates/add/spec/integration/command_spec.rb.tt +20 -0
  23. data/lib/tty/templates/add/spec/integration/sub_command_spec.rb.tt +16 -0
  24. data/lib/tty/templates/add/spec/unit/command_spec.rb.tt +15 -0
  25. data/lib/tty/templates/add/spec/unit/sub_command_spec.rb.tt +15 -0
  26. data/lib/tty/templates/add/test/integration/command_test.rb.tt +23 -0
  27. data/lib/tty/templates/add/test/integration/sub_command_test.rb.tt +19 -0
  28. data/lib/tty/templates/add/test/unit/command_test.rb.tt +16 -0
  29. data/lib/tty/templates/add/test/unit/sub_command_test.rb.tt +16 -0
  30. data/lib/tty/templates/new/agplv3_LICENSE.txt.tt +555 -0
  31. data/lib/tty/templates/new/apache_LICENSE.txt.tt +157 -0
  32. data/lib/tty/templates/new/bsd2_LICENSE.txt.tt +22 -0
  33. data/lib/tty/templates/new/bsd3_LICENSE.txt.tt +26 -0
  34. data/lib/tty/templates/new/exe/newcli.tt +18 -0
  35. data/lib/tty/templates/new/gitkeep.tt +1 -0
  36. data/lib/tty/templates/new/gplv2_LICENSE.txt.tt +255 -0
  37. data/lib/tty/templates/new/gplv3_LICENSE.txt.tt +543 -0
  38. data/lib/tty/templates/new/lgplv3_LICENSE.txt.tt +143 -0
  39. data/lib/tty/templates/new/lib/newcli/cli.rb.tt +24 -0
  40. data/lib/tty/templates/new/lib/newcli/command.rb.tt +124 -0
  41. data/lib/tty/templates/new/mit_LICENSE.txt.tt +20 -0
  42. data/lib/tty/templates/new/mplv2_LICENSE.txt.tt +277 -0
  43. data/lib/tty/version.rb +1 -1
  44. data/spec/fixtures/foo-0.0.1.gemspec +4 -4
  45. data/spec/integration/add_desc_args_spec.rb +341 -0
  46. data/spec/integration/add_force_spec.rb +98 -0
  47. data/spec/integration/add_namespaced_spec.rb +291 -0
  48. data/spec/integration/add_spec.rb +535 -0
  49. data/spec/integration/add_subcommand_spec.rb +259 -0
  50. data/spec/integration/new_author_spec.rb +19 -0
  51. data/spec/integration/new_license_spec.rb +39 -0
  52. data/spec/integration/new_namespaced_spec.rb +228 -0
  53. data/spec/integration/new_spec.rb +354 -0
  54. data/spec/integration/new_test_spec.rb +21 -0
  55. data/spec/integration/start_spec.rb +21 -0
  56. data/spec/spec_helper.rb +47 -16
  57. data/spec/unit/gemspec_spec.rb +17 -0
  58. data/spec/{tty/plugins/load_spec.rb → unit/plugins/activate_spec.rb} +2 -4
  59. data/spec/unit/plugins/load_from_spec.rb +28 -0
  60. data/spec/{tty → unit}/plugins/plugin/load_spec.rb +1 -3
  61. data/spec/{tty → unit}/plugins/plugin/new_spec.rb +1 -3
  62. data/spec/{tty → unit}/tty_spec.rb +1 -3
  63. data/tty.gemspec +25 -15
  64. metadata +186 -49
  65. data/spec/tty/plugins/find_spec.rb +0 -20
  66. data/tasks/metrics/cane.rake +0 -14
  67. data/tasks/metrics/flog.rake +0 -17
  68. data/tasks/metrics/heckle.rake +0 -15
  69. data/tasks/metrics/reek.rake +0 -13
@@ -0,0 +1,543 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+
3
+ Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc.
4
+ <http://fsf.org/>
5
+
6
+ Everyone is permitted to copy and distribute verbatim copies of this license
7
+ document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The GNU General Public License is a free, copyleft license for software and
12
+ other kinds of works.
13
+
14
+ The licenses for most software and other practical works are designed to take
15
+ away your freedom to share and change the works. By contrast, the GNU General
16
+ Public License is intended to guarantee your freedom to share and change all
17
+ versions of a program--to make sure it remains free software for all its users.
18
+ We, the Free Software Foundation, use the GNU General Public License for most of
19
+ our software; it applies also to any other work released this way by its
20
+ authors. You can apply it to your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not price. Our
23
+ General Public Licenses are designed to make sure that you have the freedom to
24
+ distribute copies of free software (and charge for them if you wish), that you
25
+ receive source code or can get it if you want it, that you can change the
26
+ software or use pieces of it in new free programs, and that you know you can do
27
+ these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you these rights
30
+ or asking you to surrender the rights. Therefore, you have certain
31
+ responsibilities if you distribute copies of the software, or if you modify it:
32
+ responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether gratis or for a
35
+ fee, you must pass on to the recipients the same freedoms that you received. You
36
+ must make sure that they, too, receive or can get the source code. And you must
37
+ show them these terms so they know their rights.
38
+
39
+ Developers that use the GNU GPL protect your rights with two steps: (1) assert
40
+ copyright on the software, and (2) offer you this License giving you legal
41
+ permission to copy, distribute and/or modify it.
42
+
43
+ For the developers' and authors' protection, the GPL clearly explains that there
44
+ is no warranty for this free software. For both users' and authors' sake, the
45
+ GPL requires that modified versions be marked as changed, so that their problems
46
+ will not be attributed erroneously to authors of previous versions.
47
+
48
+ Some devices are designed to deny users access to install or run modified
49
+ versions of the software inside them, although the manufacturer can do so. This
50
+ is fundamentally incompatible with the aim of protecting users' freedom to
51
+ change the software. The systematic pattern of such abuse occurs in the area of
52
+ products for individuals to use, which is precisely where it is most
53
+ unacceptable. Therefore, we have designed this version of the GPL to prohibit
54
+ the practice for those products. If such problems arise substantially in other
55
+ domains, we stand ready to extend this provision to those domains in future
56
+ versions of the GPL, as needed to protect the freedom of users.
57
+
58
+ Finally, every program is threatened constantly by software patents. States
59
+ should not allow patents to restrict development and use of software on
60
+ general-purpose computers, but in those that do, we wish to avoid the special
61
+ danger that patents applied to a free program could make it effectively
62
+ proprietary. To prevent this, the GPL assures that patents cannot be used to
63
+ render the program non-free.
64
+
65
+ The precise terms and conditions for copying, distribution and modification
66
+ follow.
67
+
68
+ TERMS AND CONDITIONS
69
+
70
+ 0. Definitions.
71
+
72
+ “This License” refers to version 3 of the GNU General Public License.
73
+
74
+ “Copyright” also means copyright-like laws that apply to other kinds of works,
75
+ such as semiconductor masks.
76
+
77
+ “The Program” refers to any copyrightable work licensed under this License. Each
78
+ licensee is addressed as “you”. “Licensees” and “recipients” may be individuals
79
+ or organizations.
80
+
81
+ To “modify” a work means to copy from or adapt all or part of the work in a
82
+ fashion requiring copyright permission, other than the making of an exact copy.
83
+ The resulting work is called a “modified version” of the earlier work or a work
84
+ “based on” the earlier work.
85
+
86
+ A “covered work” means either the unmodified Program or a work based on the
87
+ Program.
88
+
89
+ To “propagate” a work means to do anything with it that, without permission,
90
+ would make you directly or secondarily liable for infringement under applicable
91
+ copyright law, except executing it on a computer or modifying a private copy.
92
+ Propagation includes copying, distribution (with or without modification),
93
+ making available to the public, and in some countries other activities as well.
94
+
95
+ To “convey” a work means any kind of propagation that enables other parties to
96
+ make or receive copies. Mere interaction with a user through a computer network,
97
+ with no transfer of a copy, is not conveying.
98
+
99
+ An interactive user interface displays “Appropriate Legal Notices” to the extent
100
+ that it includes a convenient and prominently visible feature that (1) displays
101
+ an appropriate copyright notice, and (2) tells the user that there is no
102
+ warranty for the work (except to the extent that warranties are provided), that
103
+ licensees may convey the work under this License, and how to view a copy of this
104
+ License. If the interface presents a list of user commands or options, such as a
105
+ menu, a prominent item in the list meets this criterion.
106
+
107
+ 1. Source Code. The “source code” for a work means the preferred form of the
108
+ work for making modifications to it. “Object code” means any non-source form of
109
+ a work.
110
+
111
+ A “Standard Interface” means an interface that either is an official standard
112
+ defined by a recognized standards body, or, in the case of interfaces specified
113
+ for a particular programming language, one that is widely used among developers
114
+ working in that language.
115
+
116
+ The “System Libraries” of an executable work include anything, other than the
117
+ work as a whole, that (a) is included in the normal form of packaging a Major
118
+ Component, but which is not part of that Major Component, and (b) serves only to
119
+ enable use of the work with that Major Component, or to implement a Standard
120
+ Interface for which an implementation is available to the public in source code
121
+ form. A “Major Component”, in this context, means a major essential component
122
+ (kernel, window system, and so on) of the specific operating system (if any) on
123
+ which the executable work runs, or a compiler used to produce the work, or an
124
+ object code interpreter used to run it.
125
+
126
+ The “Corresponding Source” for a work in object code form means all the source
127
+ code needed to generate, install, and (for an executable work) run the object
128
+ code and to modify the work, including scripts to control those activities.
129
+ However, it does not include the work's System Libraries, or general-purpose
130
+ tools or generally available free programs which are used unmodified in
131
+ performing those activities but which are not part of the work. For example,
132
+ Corresponding Source includes interface definition files associated with source
133
+ files for the work, and the source code for shared libraries and dynamically
134
+ linked subprograms that the work is specifically designed to require, such as by
135
+ intimate data communication or control flow between those subprograms and other
136
+ parts of the work.
137
+
138
+ The Corresponding Source need not include anything that users can regenerate
139
+ automatically from other parts of the Corresponding Source.
140
+
141
+ The Corresponding Source for a work in source code form is that same work.
142
+
143
+ 2. Basic Permissions. All rights granted under this License are granted for the
144
+ term of copyright on the Program, and are irrevocable provided the stated
145
+ conditions are met. This License explicitly affirms your unlimited permission to
146
+ run the unmodified Program. The output from running a covered work is covered by
147
+ this License only if the output, given its content, constitutes a covered work.
148
+ This License acknowledges your rights of fair use or other equivalent, as
149
+ provided by copyright law.
150
+
151
+ You may make, run and propagate covered works that you do not convey, without
152
+ conditions so long as your license otherwise remains in force. You may convey
153
+ covered works to others for the sole purpose of having them make modifications
154
+ exclusively for you, or provide you with facilities for running those works,
155
+ provided that you comply with the terms of this License in conveying all
156
+ material for which you do not control copyright. Those thus making or running
157
+ the covered works for you must do so exclusively on your behalf, under your
158
+ direction and control, on terms that prohibit them from making any copies of
159
+ your copyrighted material outside their relationship with you.
160
+
161
+ Conveying under any other circumstances is permitted solely under the conditions
162
+ stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
163
+
164
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work
165
+ shall be deemed part of an effective technological measure under any applicable
166
+ law fulfilling obligations under article 11 of the WIPO copyright treaty adopted
167
+ on 20 December 1996, or similar laws prohibiting or restricting circumvention of
168
+ such measures.
169
+
170
+ When you convey a covered work, you waive any legal power to forbid
171
+ circumvention of technological measures to the extent such circumvention is
172
+ effected by exercising rights under this License with respect to the covered
173
+ work, and you disclaim any intention to limit operation or modification of the
174
+ work as a means of enforcing, against the work's users, your or third parties'
175
+ legal rights to forbid circumvention of technological measures.
176
+
177
+ 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's
178
+ source code as you receive it, in any medium, provided that you conspicuously
179
+ and appropriately publish on each copy an appropriate copyright notice; keep
180
+ intact all notices stating that this License and any non-permissive terms added
181
+ in accord with section 7 apply to the code; keep intact all notices of the
182
+ absence of any warranty; and give all recipients a copy of this License along
183
+ with the Program.
184
+
185
+ You may charge any price or no price for each copy that you convey, and you may
186
+ offer support or warranty protection for a fee.
187
+
188
+ 5. Conveying Modified Source Versions. You may convey a work based on the
189
+ Program, or the modifications to produce it from the Program, in the form of
190
+ source code under the terms of section 4, provided that you also meet all of
191
+ these conditions:
192
+
193
+ a) The work must carry prominent notices stating that you modified it, and
194
+ giving a relevant date.
195
+
196
+ b) The work must carry prominent notices stating that it is released under
197
+ this License and any conditions added under section 7. This requirement
198
+ modifies the requirement in section 4 to “keep intact all notices”.
199
+
200
+ c) You must license the entire work, as a whole, under this License to anyone
201
+ who comes into possession of a copy. This License will therefore apply, along
202
+ with any applicable section 7 additional terms, to the whole of the work, and
203
+ all its parts, regardless of how they are packaged. This License gives no
204
+ permission to license the work in any other way, but it does not invalidate
205
+ such permission if you have separately received it.
206
+
207
+ d) If the work has interactive user interfaces, each must display Appropriate
208
+ Legal Notices; however, if the Program has interactive interfaces that do not
209
+ display Appropriate Legal Notices, your work need not make them do so.
210
+
211
+ A compilation of a covered work with other separate and independent works, which
212
+ are not by their nature extensions of the covered work, and which are not
213
+ combined with it such as to form a larger program, in or on a volume of a
214
+ storage or distribution medium, is called an “aggregate” if the compilation and
215
+ its resulting copyright are not used to limit the access or legal rights of the
216
+ compilation's users beyond what the individual works permit. Inclusion of a
217
+ covered work in an aggregate does not cause this License to apply to the other
218
+ parts of the aggregate.
219
+
220
+ 6. Conveying Non-Source Forms. You may convey a covered work in object code
221
+ form under the terms of sections 4 and 5, provided that you also convey the
222
+ machine-readable Corresponding Source under the terms of this License, in one of
223
+ these ways:
224
+
225
+ a) Convey the object code in, or embodied in, a physical product (including a
226
+ physical distribution medium), accompanied by the Corresponding Source fixed
227
+ on a durable physical medium customarily used for software interchange.
228
+
229
+ b) Convey the object code in, or embodied in, a physical product (including a
230
+ physical distribution medium), accompanied by a written offer, valid for at
231
+ least three years and valid for as long as you offer spare parts or customer
232
+ support for that product model, to give anyone who possesses the object code
233
+ either (1) a copy of the Corresponding Source for all the software in the
234
+ product that is covered by this License, on a durable physical medium
235
+ customarily used for software interchange, for a price no more than your
236
+ reasonable cost of physically performing this conveying of source, or (2)
237
+ access to copy the Corresponding Source from a network server at no charge.
238
+
239
+ c) Convey individual copies of the object code with a copy of the written
240
+ offer to provide the Corresponding Source. This alternative is allowed only
241
+ occasionally and noncommercially, and only if you received the object code
242
+ with such an offer, in accord with subsection 6b.
243
+
244
+ d) Convey the object code by offering access from a designated place (gratis
245
+ or for a charge), and offer equivalent access to the Corresponding Source in
246
+ the same way through the same place at no further charge. You need not require
247
+ recipients to copy the Corresponding Source along with the object code. If the
248
+ place to copy the object code is a network server, the Corresponding Source
249
+ may be on a different server (operated by you or a third party) that supports
250
+ equivalent copying facilities, provided you maintain clear directions next to
251
+ the object code saying where to find the Corresponding Source. Regardless of
252
+ what server hosts the Corresponding Source, you remain obligated to ensure
253
+ that it is available for as long as needed to satisfy these requirements.
254
+
255
+ e) Convey the object code using peer-to-peer transmission, provided you inform
256
+ other peers where the object code and Corresponding Source of the work are
257
+ being offered to the general public at no charge under subsection 6d.
258
+
259
+ A separable portion of the object code, whose source code is excluded from the
260
+ Corresponding Source as a System Library, need not be included in conveying the
261
+ object code work.
262
+
263
+ A “User Product” is either (1) a “consumer product”, which means any tangible
264
+ personal property which is normally used for personal, family, or household
265
+ purposes, or (2) anything designed or sold for incorporation into a dwelling. In
266
+ determining whether a product is a consumer product, doubtful cases shall be
267
+ resolved in favor of coverage. For a particular product received by a particular
268
+ user, “normally used” refers to a typical or common use of that class of
269
+ product, regardless of the status of the particular user or of the way in which
270
+ the particular user actually uses, or expects or is expected to use, the
271
+ product. A product is a consumer product regardless of whether the product has
272
+ substantial commercial, industrial or non-consumer uses, unless such uses
273
+ represent the only significant mode of use of the product.
274
+
275
+ “Installation Information” for a User Product means any methods, procedures,
276
+ authorization keys, or other information required to install and execute
277
+ modified versions of a covered work in that User Product from a modified version
278
+ of its Corresponding Source. The information must suffice to ensure that the
279
+ continued functioning of the modified object code is in no case prevented or
280
+ interfered with solely because modification has been made.
281
+
282
+ If you convey an object code work under this section in, or with, or
283
+ specifically for use in, a User Product, and the conveying occurs as part of a
284
+ transaction in which the right of possession and use of the User Product is
285
+ transferred to the recipient in perpetuity or for a fixed term (regardless of
286
+ how the transaction is characterized), the Corresponding Source conveyed under
287
+ this section must be accompanied by the Installation Information. But this
288
+ requirement does not apply if neither you nor any third party retains the
289
+ ability to install modified object code on the User Product (for example, the
290
+ work has been installed in ROM).
291
+
292
+ The requirement to provide Installation Information does not include a
293
+ requirement to continue to provide support service, warranty, or updates for a
294
+ work that has been modified or installed by the recipient, or for the User
295
+ Product in which it has been modified or installed. Access to a network may be
296
+ denied when the modification itself materially and adversely affects the
297
+ operation of the network or violates the rules and protocols for communication
298
+ across the network.
299
+
300
+ Corresponding Source conveyed, and Installation Information provided, in accord
301
+ with this section must be in a format that is publicly documented (and with an
302
+ implementation available to the public in source code form), and must require no
303
+ special password or key for unpacking, reading or copying.
304
+
305
+ 7. Additional Terms. “Additional permissions” are terms that supplement the
306
+ terms of this License by making exceptions from one or more of its conditions.
307
+ Additional permissions that are applicable to the entire Program shall be
308
+ treated as though they were included in this License, to the extent that they
309
+ are valid under applicable law. If additional permissions apply only to part of
310
+ the Program, that part may be used separately under those permissions, but the
311
+ entire Program remains governed by this License without regard to the additional
312
+ permissions.
313
+
314
+ When you convey a copy of a covered work, you may at your option remove any
315
+ additional permissions from that copy, or from any part of it. (Additional
316
+ permissions may be written to require their own removal in certain cases when
317
+ you modify the work.) You may place additional permissions on material, added by
318
+ you to a covered work, for which you have or can give appropriate copyright
319
+ permission.
320
+
321
+ Notwithstanding any other provision of this License, for material you add to a
322
+ covered work, you may (if authorized by the copyright holders of that material)
323
+ supplement the terms of this License with terms:
324
+
325
+ a) Disclaiming warranty or limiting liability differently from the terms of
326
+ sections 15 and 16 of this License; or
327
+
328
+ b) Requiring preservation of specified reasonable legal notices or author
329
+ attributions in that material or in the Appropriate Legal Notices displayed by
330
+ works containing it; or
331
+
332
+ c) Prohibiting misrepresentation of the origin of that material, or requiring
333
+ that modified versions of such material be marked in reasonable ways as
334
+ different from the original version; or
335
+
336
+ d) Limiting the use for publicity purposes of names of licensors or authors of
337
+ the material; or
338
+
339
+ e) Declining to grant rights under trademark law for use of some trade names,
340
+ trademarks, or service marks; or
341
+
342
+ f) Requiring indemnification of licensors and authors of that material by
343
+ anyone who conveys the material (or modified versions of it) with contractual
344
+ assumptions of liability to the recipient, for any liability that these
345
+ contractual assumptions directly impose on those licensors and authors.
346
+
347
+ All other non-permissive additional terms are considered “further restrictions”
348
+ within the meaning of section 10. If the Program as you received it, or any part
349
+ of it, contains a notice stating that it is governed by this License along with
350
+ a term that is a further restriction, you may remove that term. If a license
351
+ document contains a further restriction but permits relicensing or conveying
352
+ under this License, you may add to a covered work material governed by the terms
353
+ of that license document, provided that the further restriction does not survive
354
+ such relicensing or conveying.
355
+
356
+ If you add terms to a covered work in accord with this section, you must place,
357
+ in the relevant source files, a statement of the additional terms that apply to
358
+ those files, or a notice indicating where to find the applicable terms.
359
+
360
+ Additional terms, permissive or non-permissive, may be stated in the form of a
361
+ separately written license, or stated as exceptions; the above requirements
362
+ apply either way.
363
+
364
+ 8. Termination. You may not propagate or modify a covered work except as
365
+ expressly provided under this License. Any attempt otherwise to propagate or
366
+ modify it is void, and will automatically terminate your rights under this
367
+ License (including any patent licenses granted under the third paragraph of
368
+ section 11).
369
+
370
+ However, if you cease all violation of this License, then your license from a
371
+ particular copyright holder is reinstated (a) provisionally, unless and until
372
+ the copyright holder explicitly and finally terminates your license, and (b)
373
+ permanently, if the copyright holder fails to notify you of the violation by
374
+ some reasonable means prior to 60 days after the cessation.
375
+
376
+ Moreover, your license from a particular copyright holder is reinstated
377
+ permanently if the copyright holder notifies you of the violation by some
378
+ reasonable means, this is the first time you have received notice of violation
379
+ of this License (for any work) from that copyright holder, and you cure the
380
+ violation prior to 30 days after your receipt of the notice.
381
+
382
+ Termination of your rights under this section does not terminate the licenses of
383
+ parties who have received copies or rights from you under this License. If your
384
+ rights have been terminated and not permanently reinstated, you do not qualify
385
+ to receive new licenses for the same material under section 10.
386
+
387
+ 9. Acceptance Not Required for Having Copies. You are not required to accept
388
+ this License in order to receive or run a copy of the Program. Ancillary
389
+ propagation of a covered work occurring solely as a consequence of using
390
+ peer-to-peer transmission to receive a copy likewise does not require
391
+ acceptance. However, nothing other than this License grants you permission to
392
+ propagate or modify any covered work. These actions infringe copyright if you do
393
+ not accept this License. Therefore, by modifying or propagating a covered work,
394
+ you indicate your acceptance of this License to do so.
395
+
396
+ 10. Automatic Licensing of Downstream Recipients. Each time you convey a
397
+ covered work, the recipient automatically receives a license from the original
398
+ licensors, to run, modify and propagate that work, subject to this License. You
399
+ are not responsible for enforcing compliance by third parties with this License.
400
+
401
+ An “entity transaction” is a transaction transferring control of an
402
+ organization, or substantially all assets of one, or subdividing an
403
+ organization, or merging organizations. If propagation of a covered work results
404
+ from an entity transaction, each party to that transaction who receives a copy
405
+ of the work also receives whatever licenses to the work the party's predecessor
406
+ in interest had or could give under the previous paragraph, plus a right to
407
+ possession of the Corresponding Source of the work from the predecessor in
408
+ interest, if the predecessor has it or can get it with reasonable efforts.
409
+
410
+ You may not impose any further restrictions on the exercise of the rights
411
+ granted or affirmed under this License. For example, you may not impose a
412
+ license fee, royalty, or other charge for exercise of rights granted under this
413
+ License, and you may not initiate litigation (including a cross-claim or
414
+ counterclaim in a lawsuit) alleging that any patent claim is infringed by
415
+ making, using, selling, offering for sale, or importing the Program or any
416
+ portion of it.
417
+
418
+ 11. Patents. A “contributor” is a copyright holder who authorizes use under
419
+ this License of the Program or a work on which the Program is based. The work
420
+ thus licensed is called the contributor's “contributor version”.
421
+
422
+ A contributor's “essential patent claims” are all patent claims owned or
423
+ controlled by the contributor, whether already acquired or hereafter acquired,
424
+ that would be infringed by some manner, permitted by this License, of making,
425
+ using, or selling its contributor version, but do not include claims that would
426
+ be infringed only as a consequence of further modification of the contributor
427
+ version. For purposes of this definition, “control” includes the right to grant
428
+ patent sublicenses in a manner consistent with the requirements of this License.
429
+
430
+ Each contributor grants you a non-exclusive, worldwide, royalty-free patent
431
+ license under the contributor's essential patent claims, to make, use, sell,
432
+ offer for sale, import and otherwise run, modify and propagate the contents of
433
+ its contributor version.
434
+
435
+ In the following three paragraphs, a “patent license” is any express agreement
436
+ or commitment, however denominated, not to enforce a patent (such as an express
437
+ permission to practice a patent or covenant not to sue for patent infringement).
438
+ To “grant” such a patent license to a party means to make such an agreement or
439
+ commitment not to enforce a patent against the party.
440
+
441
+ If you convey a covered work, knowingly relying on a patent license, and the
442
+ Corresponding Source of the work is not available for anyone to copy, free of
443
+ charge and under the terms of this License, through a publicly available network
444
+ server or other readily accessible means, then you must either (1) cause the
445
+ Corresponding Source to be so available, or (2) arrange to deprive yourself of
446
+ the benefit of the patent license for this particular work, or (3) arrange, in a
447
+ manner consistent with the requirements of this License, to extend the patent
448
+ license to downstream recipients. “Knowingly relying” means you have actual
449
+ knowledge that, but for the patent license, your conveying the covered work in a
450
+ country, or your recipient's use of the covered work in a country, would
451
+ infringe one or more identifiable patents in that country that you have reason
452
+ to believe are valid.
453
+
454
+ If, pursuant to or in connection with a single transaction or arrangement, you
455
+ convey, or propagate by procuring conveyance of, a covered work, and grant a
456
+ patent license to some of the parties receiving the covered work authorizing
457
+ them to use, propagate, modify or convey a specific copy of the covered work,
458
+ then the patent license you grant is automatically extended to all recipients of
459
+ the covered work and works based on it.
460
+
461
+ A patent license is “discriminatory” if it does not include within the scope of
462
+ its coverage, prohibits the exercise of, or is conditioned on the non-exercise
463
+ of one or more of the rights that are specifically granted under this License.
464
+ You may not convey a covered work if you are a party to an arrangement with a
465
+ third party that is in the business of distributing software, under which you
466
+ make payment to the third party based on the extent of your activity of
467
+ conveying the work, and under which the third party grants, to any of the
468
+ parties who would receive the covered work from you, a discriminatory patent
469
+ license (a) in connection with copies of the covered work conveyed by you (or
470
+ copies made from those copies), or (b) primarily for and in connection with
471
+ specific products or compilations that contain the covered work, unless you
472
+ entered into that arrangement, or that patent license was granted, prior to 28
473
+ March 2007.
474
+
475
+ Nothing in this License shall be construed as excluding or limiting any implied
476
+ license or other defenses to infringement that may otherwise be available to you
477
+ under applicable patent law.
478
+
479
+ 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether
480
+ by court order, agreement or otherwise) that contradict the conditions of this
481
+ License, they do not excuse you from the conditions of this License. If you
482
+ cannot convey a covered work so as to satisfy simultaneously your obligations
483
+ under this License and any other pertinent obligations, then as a consequence
484
+ you may not convey it at all. For example, if you agree to terms that obligate
485
+ you to collect a royalty for further conveying from those to whom you convey the
486
+ Program, the only way you could satisfy both those terms and this License would
487
+ be to refrain entirely from conveying the Program.
488
+
489
+ 13. Use with the GNU Affero General Public License. Notwithstanding any other
490
+ provision of this License, you have permission to link or combine any covered
491
+ work with a work licensed under version 3 of the GNU Affero General Public
492
+ License into a single combined work, and to convey the resulting work. The terms
493
+ of this License will continue to apply to the part which is the covered work,
494
+ but the special requirements of the GNU Affero General Public License, section
495
+ 13, concerning interaction through a network will apply to the combination as
496
+ such.
497
+
498
+ 14. Revised Versions of this License. The Free Software Foundation may publish
499
+ revised and/or new versions of the GNU General Public License from time to time.
500
+ Such new versions will be similar in spirit to the present version, but may
501
+ differ in detail to address new problems or concerns.
502
+
503
+ Each version is given a distinguishing version number. If the Program specifies
504
+ that a certain numbered version of the GNU General Public License “or any later
505
+ version” applies to it, you have the option of following the terms and
506
+ conditions either of that numbered version or of any later version published by
507
+ the Free Software Foundation. If the Program does not specify a version number
508
+ of the GNU General Public License, you may choose any version ever published by
509
+ the Free Software Foundation.
510
+
511
+ If the Program specifies that a proxy can decide which future versions of the
512
+ GNU General Public License can be used, that proxy's public statement of
513
+ acceptance of a version permanently authorizes you to choose that version for
514
+ the Program.
515
+
516
+ Later license versions may give you additional or different permissions.
517
+ However, no additional obligations are imposed on any author or copyright holder
518
+ as a result of your choosing to follow a later version.
519
+
520
+ 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT
521
+ PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
522
+ COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT
523
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED
524
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
525
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
526
+ WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
527
+ NECESSARY SERVICING, REPAIR OR CORRECTION.
528
+
529
+ 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR
530
+ AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
531
+ AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
532
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
533
+ OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
534
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
535
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
536
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
537
+
538
+ 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and
539
+ limitation of liability provided above cannot be given local legal effect
540
+ according to their terms, reviewing courts shall apply local law that most
541
+ closely approximates an absolute waiver of all civil liability in connection
542
+ with the Program, unless a warranty or assumption of liability accompanies a
543
+ copy of the Program in return for a fee.