test-unit-runner-tap 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.ruby ADDED
@@ -0,0 +1,40 @@
1
+ ---
2
+ source:
3
+ - Profile
4
+ authors:
5
+ - name: Thomas Sawyer
6
+ email: transfire@gmail.com
7
+ - name: Kouhei Sutou
8
+ email: kou@cozmixng.org
9
+ copyrights:
10
+ - holder: Thomas Sawyer
11
+ year: '2012'
12
+ license: GPL-2
13
+ - holder: Kouhei Sutou
14
+ year: '2012'
15
+ license: GPL-2
16
+ replacements: []
17
+ alternatives: []
18
+ requirements:
19
+ - name: test-unit
20
+ - name: rake
21
+ groups:
22
+ - build
23
+ development: true
24
+ dependencies: []
25
+ conflicts: []
26
+ repositories: []
27
+ resources:
28
+ home: https://github.com/test-unit/test-unit-runner-tap
29
+ code: https://github.com/test-unit/test-unit-runner-tap
30
+ extra: {}
31
+ load_path:
32
+ - lib
33
+ revision: 0
34
+ name: test-unit-runner-tap
35
+ title: TestUnit TAP
36
+ version: 1.0.0
37
+ summary: TAP runners for TestUnit.
38
+ description: This project provides TAP and TAP-Y/J test output formats for the TestUnit
39
+ test framework.
40
+ date: '2012-02-05'
data/COPYING ADDED
@@ -0,0 +1,814 @@
1
+
2
+ Test::Unit::Runner::Tap - TAP and TAP-Y/J formats for TestUnit
3
+
4
+ Copyright (c) 2012 Trans <transfire@gmail.com> & Kouhei Sutou <kou@cozmixng.org>
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Lesser General Public License as published
8
+ by the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+
20
+ -------------------------------------------------------------------------------
21
+
22
+
23
+ GNU LESSER GENERAL PUBLIC LICENSE
24
+ Version 3, 29 June 2007
25
+
26
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
27
+ Everyone is permitted to copy and distribute verbatim copies
28
+ of this license document, but changing it is not allowed.
29
+
30
+
31
+ This version of the GNU Lesser General Public License incorporates
32
+ the terms and conditions of version 3 of the GNU General Public
33
+ License, supplemented by the additional permissions listed below.
34
+
35
+ 0. Additional Definitions.
36
+
37
+ As used herein, "this License" refers to version 3 of the GNU Lesser
38
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
39
+ General Public License.
40
+
41
+ "The Library" refers to a covered work governed by this License,
42
+ other than an Application or a Combined Work as defined below.
43
+
44
+ An "Application" is any work that makes use of an interface provided
45
+ by the Library, but which is not otherwise based on the Library.
46
+ Defining a subclass of a class defined by the Library is deemed a mode
47
+ of using an interface provided by the Library.
48
+
49
+ A "Combined Work" is a work produced by combining or linking an
50
+ Application with the Library. The particular version of the Library
51
+ with which the Combined Work was made is also called the "Linked
52
+ Version".
53
+
54
+ The "Minimal Corresponding Source" for a Combined Work means the
55
+ Corresponding Source for the Combined Work, excluding any source code
56
+ for portions of the Combined Work that, considered in isolation, are
57
+ based on the Application, and not on the Linked Version.
58
+
59
+ The "Corresponding Application Code" for a Combined Work means the
60
+ object code and/or source code for the Application, including any data
61
+ and utility programs needed for reproducing the Combined Work from the
62
+ Application, but excluding the System Libraries of the Combined Work.
63
+
64
+ 1. Exception to Section 3 of the GNU GPL.
65
+
66
+ You may convey a covered work under sections 3 and 4 of this License
67
+ without being bound by section 3 of the GNU GPL.
68
+
69
+ 2. Conveying Modified Versions.
70
+
71
+ If you modify a copy of the Library, and, in your modifications, a
72
+ facility refers to a function or data to be supplied by an Application
73
+ that uses the facility (other than as an argument passed when the
74
+ facility is invoked), then you may convey a copy of the modified
75
+ version:
76
+
77
+ a) under this License, provided that you make a good faith effort to
78
+ ensure that, in the event an Application does not supply the
79
+ function or data, the facility still operates, and performs
80
+ whatever part of its purpose remains meaningful, or
81
+
82
+ b) under the GNU GPL, with none of the additional permissions of
83
+ this License applicable to that copy.
84
+
85
+ 3. Object Code Incorporating Material from Library Header Files.
86
+
87
+ The object code form of an Application may incorporate material from
88
+ a header file that is part of the Library. You may convey such object
89
+ code under terms of your choice, provided that, if the incorporated
90
+ material is not limited to numerical parameters, data structure
91
+ layouts and accessors, or small macros, inline functions and templates
92
+ (ten or fewer lines in length), you do both of the following:
93
+
94
+ a) Give prominent notice with each copy of the object code that the
95
+ Library is used in it and that the Library and its use are
96
+ covered by this License.
97
+
98
+ b) Accompany the object code with a copy of the GNU GPL and this license
99
+ document.
100
+
101
+ 4. Combined Works.
102
+
103
+ You may convey a Combined Work under terms of your choice that,
104
+ taken together, effectively do not restrict modification of the
105
+ portions of the Library contained in the Combined Work and reverse
106
+ engineering for debugging such modifications, if you also do each of
107
+ the following:
108
+
109
+ a) Give prominent notice with each copy of the Combined Work that
110
+ the Library is used in it and that the Library and its use are
111
+ covered by this License.
112
+
113
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
114
+ document.
115
+
116
+ c) For a Combined Work that displays copyright notices during
117
+ execution, include the copyright notice for the Library among
118
+ these notices, as well as a reference directing the user to the
119
+ copies of the GNU GPL and this license document.
120
+
121
+ d) Do one of the following:
122
+
123
+ 0) Convey the Minimal Corresponding Source under the terms of this
124
+ License, and the Corresponding Application Code in a form
125
+ suitable for, and under terms that permit, the user to
126
+ recombine or relink the Application with a modified version of
127
+ the Linked Version to produce a modified Combined Work, in the
128
+ manner specified by section 6 of the GNU GPL for conveying
129
+ Corresponding Source.
130
+
131
+ 1) Use a suitable shared library mechanism for linking with the
132
+ Library. A suitable mechanism is one that (a) uses at run time
133
+ a copy of the Library already present on the user's computer
134
+ system, and (b) will operate properly with a modified version
135
+ of the Library that is interface-compatible with the Linked
136
+ Version.
137
+
138
+ e) Provide Installation Information, but only if you would otherwise
139
+ be required to provide such information under section 6 of the
140
+ GNU GPL, and only to the extent that such information is
141
+ necessary to install and execute a modified version of the
142
+ Combined Work produced by recombining or relinking the
143
+ Application with a modified version of the Linked Version. (If
144
+ you use option 4d0, the Installation Information must accompany
145
+ the Minimal Corresponding Source and Corresponding Application
146
+ Code. If you use option 4d1, you must provide the Installation
147
+ Information in the manner specified by section 6 of the GNU GPL
148
+ for conveying Corresponding Source.)
149
+
150
+ 5. Combined Libraries.
151
+
152
+ You may place library facilities that are a work based on the
153
+ Library side by side in a single library together with other library
154
+ facilities that are not Applications and are not covered by this
155
+ License, and convey such a combined library under terms of your
156
+ choice, if you do both of the following:
157
+
158
+ a) Accompany the combined library with a copy of the same work based
159
+ on the Library, uncombined with any other library facilities,
160
+ conveyed under the terms of this License.
161
+
162
+ b) Give prominent notice with the combined library that part of it
163
+ is a work based on the Library, and explaining where to find the
164
+ accompanying uncombined form of the same work.
165
+
166
+ 6. Revised Versions of the GNU Lesser General Public License.
167
+
168
+ The Free Software Foundation may publish revised and/or new versions
169
+ of the GNU Lesser General Public License from time to time. Such new
170
+ versions will be similar in spirit to the present version, but may
171
+ differ in detail to address new problems or concerns.
172
+
173
+ Each version is given a distinguishing version number. If the
174
+ Library as you received it specifies that a certain numbered version
175
+ of the GNU Lesser General Public License "or any later version"
176
+ applies to it, you have the option of following the terms and
177
+ conditions either of that published version or of any later version
178
+ published by the Free Software Foundation. If the Library as you
179
+ received it does not specify a version number of the GNU Lesser
180
+ General Public License, you may choose any version of the GNU Lesser
181
+ General Public License ever published by the Free Software Foundation.
182
+
183
+ If the Library as you received it specifies that a proxy can decide
184
+ whether future versions of the GNU Lesser General Public License shall
185
+ apply, that proxy's public statement of acceptance of any version is
186
+ permanent authorization for you to choose that version for the
187
+ Library.
188
+
189
+
190
+ -------------------------------------------------------------------------------
191
+
192
+
193
+ GNU GENERAL PUBLIC LICENSE
194
+ Version 3, 29 June 2007
195
+
196
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
197
+ Everyone is permitted to copy and distribute verbatim copies
198
+ of this license document, but changing it is not allowed.
199
+
200
+ Preamble
201
+
202
+ The GNU General Public License is a free, copyleft license for
203
+ software and other kinds of works.
204
+
205
+ The licenses for most software and other practical works are designed
206
+ to take away your freedom to share and change the works. By contrast,
207
+ the GNU General Public License is intended to guarantee your freedom to
208
+ share and change all versions of a program--to make sure it remains free
209
+ software for all its users. We, the Free Software Foundation, use the
210
+ GNU General Public License for most of our software; it applies also to
211
+ any other work released this way by its authors. You can apply it to
212
+ your programs, too.
213
+
214
+ When we speak of free software, we are referring to freedom, not
215
+ price. Our General Public Licenses are designed to make sure that you
216
+ have the freedom to distribute copies of free software (and charge for
217
+ them if you wish), that you receive source code or can get it if you
218
+ want it, that you can change the software or use pieces of it in new
219
+ free programs, and that you know you can do these things.
220
+
221
+ To protect your rights, we need to prevent others from denying you
222
+ these rights or asking you to surrender the rights. Therefore, you have
223
+ certain responsibilities if you distribute copies of the software, or if
224
+ you modify it: responsibilities to respect the freedom of others.
225
+
226
+ For example, if you distribute copies of such a program, whether
227
+ gratis or for a fee, you must pass on to the recipients the same
228
+ freedoms that you received. You must make sure that they, too, receive
229
+ or can get the source code. And you must show them these terms so they
230
+ know their rights.
231
+
232
+ Developers that use the GNU GPL protect your rights with two steps:
233
+ (1) assert copyright on the software, and (2) offer you this License
234
+ giving you legal permission to copy, distribute and/or modify it.
235
+
236
+ For the developers' and authors' protection, the GPL clearly explains
237
+ that there is no warranty for this free software. For both users' and
238
+ authors' sake, the GPL requires that modified versions be marked as
239
+ changed, so that their problems will not be attributed erroneously to
240
+ authors of previous versions.
241
+
242
+ Some devices are designed to deny users access to install or run
243
+ modified versions of the software inside them, although the manufacturer
244
+ can do so. This is fundamentally incompatible with the aim of
245
+ protecting users' freedom to change the software. The systematic
246
+ pattern of such abuse occurs in the area of products for individuals to
247
+ use, which is precisely where it is most unacceptable. Therefore, we
248
+ have designed this version of the GPL to prohibit the practice for those
249
+ products. If such problems arise substantially in other domains, we
250
+ stand ready to extend this provision to those domains in future versions
251
+ of the GPL, as needed to protect the freedom of users.
252
+
253
+ Finally, every program is threatened constantly by software patents.
254
+ States should not allow patents to restrict development and use of
255
+ software on general-purpose computers, but in those that do, we wish to
256
+ avoid the special danger that patents applied to a free program could
257
+ make it effectively proprietary. To prevent this, the GPL assures that
258
+ patents cannot be used to render the program non-free.
259
+
260
+ The precise terms and conditions for copying, distribution and
261
+ modification follow.
262
+
263
+ TERMS AND CONDITIONS
264
+
265
+ 0. Definitions.
266
+
267
+ "This License" refers to version 3 of the GNU General Public License.
268
+
269
+ "Copyright" also means copyright-like laws that apply to other kinds of
270
+ works, such as semiconductor masks.
271
+
272
+ "The Program" refers to any copyrightable work licensed under this
273
+ License. Each licensee is addressed as "you". "Licensees" and
274
+ "recipients" may be individuals or organizations.
275
+
276
+ To "modify" a work means to copy from or adapt all or part of the work
277
+ in a fashion requiring copyright permission, other than the making of an
278
+ exact copy. The resulting work is called a "modified version" of the
279
+ earlier work or a work "based on" the earlier work.
280
+
281
+ A "covered work" means either the unmodified Program or a work based
282
+ on the Program.
283
+
284
+ To "propagate" a work means to do anything with it that, without
285
+ permission, would make you directly or secondarily liable for
286
+ infringement under applicable copyright law, except executing it on a
287
+ computer or modifying a private copy. Propagation includes copying,
288
+ distribution (with or without modification), making available to the
289
+ public, and in some countries other activities as well.
290
+
291
+ To "convey" a work means any kind of propagation that enables other
292
+ parties to make or receive copies. Mere interaction with a user through
293
+ a computer network, with no transfer of a copy, is not conveying.
294
+
295
+ An interactive user interface displays "Appropriate Legal Notices"
296
+ to the extent that it includes a convenient and prominently visible
297
+ feature that (1) displays an appropriate copyright notice, and (2)
298
+ tells the user that there is no warranty for the work (except to the
299
+ extent that warranties are provided), that licensees may convey the
300
+ work under this License, and how to view a copy of this License. If
301
+ the interface presents a list of user commands or options, such as a
302
+ menu, a prominent item in the list meets this criterion.
303
+
304
+ 1. Source Code.
305
+
306
+ The "source code" for a work means the preferred form of the work
307
+ for making modifications to it. "Object code" means any non-source
308
+ form of a work.
309
+
310
+ A "Standard Interface" means an interface that either is an official
311
+ standard defined by a recognized standards body, or, in the case of
312
+ interfaces specified for a particular programming language, one that
313
+ is widely used among developers working in that language.
314
+
315
+ The "System Libraries" of an executable work include anything, other
316
+ than the work as a whole, that (a) is included in the normal form of
317
+ packaging a Major Component, but which is not part of that Major
318
+ Component, and (b) serves only to enable use of the work with that
319
+ Major Component, or to implement a Standard Interface for which an
320
+ implementation is available to the public in source code form. A
321
+ "Major Component", in this context, means a major essential component
322
+ (kernel, window system, and so on) of the specific operating system
323
+ (if any) on which the executable work runs, or a compiler used to
324
+ produce the work, or an object code interpreter used to run it.
325
+
326
+ The "Corresponding Source" for a work in object code form means all
327
+ the source code needed to generate, install, and (for an executable
328
+ work) run the object code and to modify the work, including scripts to
329
+ control those activities. However, it does not include the work's
330
+ System Libraries, or general-purpose tools or generally available free
331
+ programs which are used unmodified in performing those activities but
332
+ which are not part of the work. For example, Corresponding Source
333
+ includes interface definition files associated with source files for
334
+ the work, and the source code for shared libraries and dynamically
335
+ linked subprograms that the work is specifically designed to require,
336
+ such as by intimate data communication or control flow between those
337
+ subprograms and other parts of the work.
338
+
339
+ The Corresponding Source need not include anything that users
340
+ can regenerate automatically from other parts of the Corresponding
341
+ Source.
342
+
343
+ The Corresponding Source for a work in source code form is that
344
+ same work.
345
+
346
+ 2. Basic Permissions.
347
+
348
+ All rights granted under this License are granted for the term of
349
+ copyright on the Program, and are irrevocable provided the stated
350
+ conditions are met. This License explicitly affirms your unlimited
351
+ permission to run the unmodified Program. The output from running a
352
+ covered work is covered by this License only if the output, given its
353
+ content, constitutes a covered work. This License acknowledges your
354
+ rights of fair use or other equivalent, as provided by copyright law.
355
+
356
+ You may make, run and propagate covered works that you do not
357
+ convey, without conditions so long as your license otherwise remains
358
+ in force. You may convey covered works to others for the sole purpose
359
+ of having them make modifications exclusively for you, or provide you
360
+ with facilities for running those works, provided that you comply with
361
+ the terms of this License in conveying all material for which you do
362
+ not control copyright. Those thus making or running the covered works
363
+ for you must do so exclusively on your behalf, under your direction
364
+ and control, on terms that prohibit them from making any copies of
365
+ your copyrighted material outside their relationship with you.
366
+
367
+ Conveying under any other circumstances is permitted solely under
368
+ the conditions stated below. Sublicensing is not allowed; section 10
369
+ makes it unnecessary.
370
+
371
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
372
+
373
+ No covered work shall be deemed part of an effective technological
374
+ measure under any applicable law fulfilling obligations under article
375
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
376
+ similar laws prohibiting or restricting circumvention of such
377
+ measures.
378
+
379
+ When you convey a covered work, you waive any legal power to forbid
380
+ circumvention of technological measures to the extent such circumvention
381
+ is effected by exercising rights under this License with respect to
382
+ the covered work, and you disclaim any intention to limit operation or
383
+ modification of the work as a means of enforcing, against the work's
384
+ users, your or third parties' legal rights to forbid circumvention of
385
+ technological measures.
386
+
387
+ 4. Conveying Verbatim Copies.
388
+
389
+ You may convey verbatim copies of the Program's source code as you
390
+ receive it, in any medium, provided that you conspicuously and
391
+ appropriately publish on each copy an appropriate copyright notice;
392
+ keep intact all notices stating that this License and any
393
+ non-permissive terms added in accord with section 7 apply to the code;
394
+ keep intact all notices of the absence of any warranty; and give all
395
+ recipients a copy of this License along with the Program.
396
+
397
+ You may charge any price or no price for each copy that you convey,
398
+ and you may offer support or warranty protection for a fee.
399
+
400
+ 5. Conveying Modified Source Versions.
401
+
402
+ You may convey a work based on the Program, or the modifications to
403
+ produce it from the Program, in the form of source code under the
404
+ terms of section 4, provided that you also meet all of these conditions:
405
+
406
+ a) The work must carry prominent notices stating that you modified
407
+ it, and giving a relevant date.
408
+
409
+ b) The work must carry prominent notices stating that it is
410
+ released under this License and any conditions added under section
411
+ 7. This requirement modifies the requirement in section 4 to
412
+ "keep intact all notices".
413
+
414
+ c) You must license the entire work, as a whole, under this
415
+ License to anyone who comes into possession of a copy. This
416
+ License will therefore apply, along with any applicable section 7
417
+ additional terms, to the whole of the work, and all its parts,
418
+ regardless of how they are packaged. This License gives no
419
+ permission to license the work in any other way, but it does not
420
+ invalidate such permission if you have separately received it.
421
+
422
+ d) If the work has interactive user interfaces, each must display
423
+ Appropriate Legal Notices; however, if the Program has interactive
424
+ interfaces that do not display Appropriate Legal Notices, your
425
+ work need not make them do so.
426
+
427
+ A compilation of a covered work with other separate and independent
428
+ works, which are not by their nature extensions of the covered work,
429
+ and which are not combined with it such as to form a larger program,
430
+ in or on a volume of a storage or distribution medium, is called an
431
+ "aggregate" if the compilation and its resulting copyright are not
432
+ used to limit the access or legal rights of the compilation's users
433
+ beyond what the individual works permit. Inclusion of a covered work
434
+ in an aggregate does not cause this License to apply to the other
435
+ parts of the aggregate.
436
+
437
+ 6. Conveying Non-Source Forms.
438
+
439
+ You may convey a covered work in object code form under the terms
440
+ of sections 4 and 5, provided that you also convey the
441
+ machine-readable Corresponding Source under the terms of this License,
442
+ in one of these ways:
443
+
444
+ a) Convey the object code in, or embodied in, a physical product
445
+ (including a physical distribution medium), accompanied by the
446
+ Corresponding Source fixed on a durable physical medium
447
+ customarily used for software interchange.
448
+
449
+ b) Convey the object code in, or embodied in, a physical product
450
+ (including a physical distribution medium), accompanied by a
451
+ written offer, valid for at least three years and valid for as
452
+ long as you offer spare parts or customer support for that product
453
+ model, to give anyone who possesses the object code either (1) a
454
+ copy of the Corresponding Source for all the software in the
455
+ product that is covered by this License, on a durable physical
456
+ medium customarily used for software interchange, for a price no
457
+ more than your reasonable cost of physically performing this
458
+ conveying of source, or (2) access to copy the
459
+ Corresponding Source from a network server at no charge.
460
+
461
+ c) Convey individual copies of the object code with a copy of the
462
+ written offer to provide the Corresponding Source. This
463
+ alternative is allowed only occasionally and noncommercially, and
464
+ only if you received the object code with such an offer, in accord
465
+ with subsection 6b.
466
+
467
+ d) Convey the object code by offering access from a designated
468
+ place (gratis or for a charge), and offer equivalent access to the
469
+ Corresponding Source in the same way through the same place at no
470
+ further charge. You need not require recipients to copy the
471
+ Corresponding Source along with the object code. If the place to
472
+ copy the object code is a network server, the Corresponding Source
473
+ may be on a different server (operated by you or a third party)
474
+ that supports equivalent copying facilities, provided you maintain
475
+ clear directions next to the object code saying where to find the
476
+ Corresponding Source. Regardless of what server hosts the
477
+ Corresponding Source, you remain obligated to ensure that it is
478
+ available for as long as needed to satisfy these requirements.
479
+
480
+ e) Convey the object code using peer-to-peer transmission, provided
481
+ you inform other peers where the object code and Corresponding
482
+ Source of the work are being offered to the general public at no
483
+ charge under subsection 6d.
484
+
485
+ A separable portion of the object code, whose source code is excluded
486
+ from the Corresponding Source as a System Library, need not be
487
+ included in conveying the object code work.
488
+
489
+ A "User Product" is either (1) a "consumer product", which means any
490
+ tangible personal property which is normally used for personal, family,
491
+ or household purposes, or (2) anything designed or sold for incorporation
492
+ into a dwelling. In determining whether a product is a consumer product,
493
+ doubtful cases shall be resolved in favor of coverage. For a particular
494
+ product received by a particular user, "normally used" refers to a
495
+ typical or common use of that class of product, regardless of the status
496
+ of the particular user or of the way in which the particular user
497
+ actually uses, or expects or is expected to use, the product. A product
498
+ is a consumer product regardless of whether the product has substantial
499
+ commercial, industrial or non-consumer uses, unless such uses represent
500
+ the only significant mode of use of the product.
501
+
502
+ "Installation Information" for a User Product means any methods,
503
+ procedures, authorization keys, or other information required to install
504
+ and execute modified versions of a covered work in that User Product from
505
+ a modified version of its Corresponding Source. The information must
506
+ suffice to ensure that the continued functioning of the modified object
507
+ code is in no case prevented or interfered with solely because
508
+ modification has been made.
509
+
510
+ If you convey an object code work under this section in, or with, or
511
+ specifically for use in, a User Product, and the conveying occurs as
512
+ part of a transaction in which the right of possession and use of the
513
+ User Product is transferred to the recipient in perpetuity or for a
514
+ fixed term (regardless of how the transaction is characterized), the
515
+ Corresponding Source conveyed under this section must be accompanied
516
+ by the Installation Information. But this requirement does not apply
517
+ if neither you nor any third party retains the ability to install
518
+ modified object code on the User Product (for example, the work has
519
+ been installed in ROM).
520
+
521
+ The requirement to provide Installation Information does not include a
522
+ requirement to continue to provide support service, warranty, or updates
523
+ for a work that has been modified or installed by the recipient, or for
524
+ the User Product in which it has been modified or installed. Access to a
525
+ network may be denied when the modification itself materially and
526
+ adversely affects the operation of the network or violates the rules and
527
+ protocols for communication across the network.
528
+
529
+ Corresponding Source conveyed, and Installation Information provided,
530
+ in accord with this section must be in a format that is publicly
531
+ documented (and with an implementation available to the public in
532
+ source code form), and must require no special password or key for
533
+ unpacking, reading or copying.
534
+
535
+ 7. Additional Terms.
536
+
537
+ "Additional permissions" are terms that supplement the terms of this
538
+ License by making exceptions from one or more of its conditions.
539
+ Additional permissions that are applicable to the entire Program shall
540
+ be treated as though they were included in this License, to the extent
541
+ that they are valid under applicable law. If additional permissions
542
+ apply only to part of the Program, that part may be used separately
543
+ under those permissions, but the entire Program remains governed by
544
+ this License without regard to the additional permissions.
545
+
546
+ When you convey a copy of a covered work, you may at your option
547
+ remove any additional permissions from that copy, or from any part of
548
+ it. (Additional permissions may be written to require their own
549
+ removal in certain cases when you modify the work.) You may place
550
+ additional permissions on material, added by you to a covered work,
551
+ for which you have or can give appropriate copyright permission.
552
+
553
+ Notwithstanding any other provision of this License, for material you
554
+ add to a covered work, you may (if authorized by the copyright holders of
555
+ that material) supplement the terms of this License with terms:
556
+
557
+ a) Disclaiming warranty or limiting liability differently from the
558
+ terms of sections 15 and 16 of this License; or
559
+
560
+ b) Requiring preservation of specified reasonable legal notices or
561
+ author attributions in that material or in the Appropriate Legal
562
+ Notices displayed by works containing it; or
563
+
564
+ c) Prohibiting misrepresentation of the origin of that material, or
565
+ requiring that modified versions of such material be marked in
566
+ reasonable ways as different from the original version; or
567
+
568
+ d) Limiting the use for publicity purposes of names of licensors or
569
+ authors of the material; or
570
+
571
+ e) Declining to grant rights under trademark law for use of some
572
+ trade names, trademarks, or service marks; or
573
+
574
+ f) Requiring indemnification of licensors and authors of that
575
+ material by anyone who conveys the material (or modified versions of
576
+ it) with contractual assumptions of liability to the recipient, for
577
+ any liability that these contractual assumptions directly impose on
578
+ those licensors and authors.
579
+
580
+ All other non-permissive additional terms are considered "further
581
+ restrictions" within the meaning of section 10. If the Program as you
582
+ received it, or any part of it, contains a notice stating that it is
583
+ governed by this License along with a term that is a further
584
+ restriction, you may remove that term. If a license document contains
585
+ a further restriction but permits relicensing or conveying under this
586
+ License, you may add to a covered work material governed by the terms
587
+ of that license document, provided that the further restriction does
588
+ not survive such relicensing or conveying.
589
+
590
+ If you add terms to a covered work in accord with this section, you
591
+ must place, in the relevant source files, a statement of the
592
+ additional terms that apply to those files, or a notice indicating
593
+ where to find the applicable terms.
594
+
595
+ Additional terms, permissive or non-permissive, may be stated in the
596
+ form of a separately written license, or stated as exceptions;
597
+ the above requirements apply either way.
598
+
599
+ 8. Termination.
600
+
601
+ You may not propagate or modify a covered work except as expressly
602
+ provided under this License. Any attempt otherwise to propagate or
603
+ modify it is void, and will automatically terminate your rights under
604
+ this License (including any patent licenses granted under the third
605
+ paragraph of section 11).
606
+
607
+ However, if you cease all violation of this License, then your
608
+ license from a particular copyright holder is reinstated (a)
609
+ provisionally, unless and until the copyright holder explicitly and
610
+ finally terminates your license, and (b) permanently, if the copyright
611
+ holder fails to notify you of the violation by some reasonable means
612
+ prior to 60 days after the cessation.
613
+
614
+ Moreover, your license from a particular copyright holder is
615
+ reinstated permanently if the copyright holder notifies you of the
616
+ violation by some reasonable means, this is the first time you have
617
+ received notice of violation of this License (for any work) from that
618
+ copyright holder, and you cure the violation prior to 30 days after
619
+ your receipt of the notice.
620
+
621
+ Termination of your rights under this section does not terminate the
622
+ licenses of parties who have received copies or rights from you under
623
+ this License. If your rights have been terminated and not permanently
624
+ reinstated, you do not qualify to receive new licenses for the same
625
+ material under section 10.
626
+
627
+ 9. Acceptance Not Required for Having Copies.
628
+
629
+ You are not required to accept this License in order to receive or
630
+ run a copy of the Program. Ancillary propagation of a covered work
631
+ occurring solely as a consequence of using peer-to-peer transmission
632
+ to receive a copy likewise does not require acceptance. However,
633
+ nothing other than this License grants you permission to propagate or
634
+ modify any covered work. These actions infringe copyright if you do
635
+ not accept this License. Therefore, by modifying or propagating a
636
+ covered work, you indicate your acceptance of this License to do so.
637
+
638
+ 10. Automatic Licensing of Downstream Recipients.
639
+
640
+ Each time you convey a covered work, the recipient automatically
641
+ receives a license from the original licensors, to run, modify and
642
+ propagate that work, subject to this License. You are not responsible
643
+ for enforcing compliance by third parties with this License.
644
+
645
+ An "entity transaction" is a transaction transferring control of an
646
+ organization, or substantially all assets of one, or subdividing an
647
+ organization, or merging organizations. If propagation of a covered
648
+ work results from an entity transaction, each party to that
649
+ transaction who receives a copy of the work also receives whatever
650
+ licenses to the work the party's predecessor in interest had or could
651
+ give under the previous paragraph, plus a right to possession of the
652
+ Corresponding Source of the work from the predecessor in interest, if
653
+ the predecessor has it or can get it with reasonable efforts.
654
+
655
+ You may not impose any further restrictions on the exercise of the
656
+ rights granted or affirmed under this License. For example, you may
657
+ not impose a license fee, royalty, or other charge for exercise of
658
+ rights granted under this License, and you may not initiate litigation
659
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
660
+ any patent claim is infringed by making, using, selling, offering for
661
+ sale, or importing the Program or any portion of it.
662
+
663
+ 11. Patents.
664
+
665
+ A "contributor" is a copyright holder who authorizes use under this
666
+ License of the Program or a work on which the Program is based. The
667
+ work thus licensed is called the contributor's "contributor version".
668
+
669
+ A contributor's "essential patent claims" are all patent claims
670
+ owned or controlled by the contributor, whether already acquired or
671
+ hereafter acquired, that would be infringed by some manner, permitted
672
+ by this License, of making, using, or selling its contributor version,
673
+ but do not include claims that would be infringed only as a
674
+ consequence of further modification of the contributor version. For
675
+ purposes of this definition, "control" includes the right to grant
676
+ patent sublicenses in a manner consistent with the requirements of
677
+ this License.
678
+
679
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
680
+ patent license under the contributor's essential patent claims, to
681
+ make, use, sell, offer for sale, import and otherwise run, modify and
682
+ propagate the contents of its contributor version.
683
+
684
+ In the following three paragraphs, a "patent license" is any express
685
+ agreement or commitment, however denominated, not to enforce a patent
686
+ (such as an express permission to practice a patent or covenant not to
687
+ sue for patent infringement). To "grant" such a patent license to a
688
+ party means to make such an agreement or commitment not to enforce a
689
+ patent against the party.
690
+
691
+ If you convey a covered work, knowingly relying on a patent license,
692
+ and the Corresponding Source of the work is not available for anyone
693
+ to copy, free of charge and under the terms of this License, through a
694
+ publicly available network server or other readily accessible means,
695
+ then you must either (1) cause the Corresponding Source to be so
696
+ available, or (2) arrange to deprive yourself of the benefit of the
697
+ patent license for this particular work, or (3) arrange, in a manner
698
+ consistent with the requirements of this License, to extend the patent
699
+ license to downstream recipients. "Knowingly relying" means you have
700
+ actual knowledge that, but for the patent license, your conveying the
701
+ covered work in a country, or your recipient's use of the covered work
702
+ in a country, would infringe one or more identifiable patents in that
703
+ country that you have reason to believe are valid.
704
+
705
+ If, pursuant to or in connection with a single transaction or
706
+ arrangement, you convey, or propagate by procuring conveyance of, a
707
+ covered work, and grant a patent license to some of the parties
708
+ receiving the covered work authorizing them to use, propagate, modify
709
+ or convey a specific copy of the covered work, then the patent license
710
+ you grant is automatically extended to all recipients of the covered
711
+ work and works based on it.
712
+
713
+ A patent license is "discriminatory" if it does not include within
714
+ the scope of its coverage, prohibits the exercise of, or is
715
+ conditioned on the non-exercise of one or more of the rights that are
716
+ specifically granted under this License. You may not convey a covered
717
+ work if you are a party to an arrangement with a third party that is
718
+ in the business of distributing software, under which you make payment
719
+ to the third party based on the extent of your activity of conveying
720
+ the work, and under which the third party grants, to any of the
721
+ parties who would receive the covered work from you, a discriminatory
722
+ patent license (a) in connection with copies of the covered work
723
+ conveyed by you (or copies made from those copies), or (b) primarily
724
+ for and in connection with specific products or compilations that
725
+ contain the covered work, unless you entered into that arrangement,
726
+ or that patent license was granted, prior to 28 March 2007.
727
+
728
+ Nothing in this License shall be construed as excluding or limiting
729
+ any implied license or other defenses to infringement that may
730
+ otherwise be available to you under applicable patent law.
731
+
732
+ 12. No Surrender of Others' Freedom.
733
+
734
+ If conditions are imposed on you (whether by court order, agreement or
735
+ otherwise) that contradict the conditions of this License, they do not
736
+ excuse you from the conditions of this License. If you cannot convey a
737
+ covered work so as to satisfy simultaneously your obligations under this
738
+ License and any other pertinent obligations, then as a consequence you may
739
+ not convey it at all. For example, if you agree to terms that obligate you
740
+ to collect a royalty for further conveying from those to whom you convey
741
+ the Program, the only way you could satisfy both those terms and this
742
+ License would be to refrain entirely from conveying the Program.
743
+
744
+ 13. Use with the GNU Affero General Public License.
745
+
746
+ Notwithstanding any other provision of this License, you have
747
+ permission to link or combine any covered work with a work licensed
748
+ under version 3 of the GNU Affero General Public License into a single
749
+ combined work, and to convey the resulting work. The terms of this
750
+ License will continue to apply to the part which is the covered work,
751
+ but the special requirements of the GNU Affero General Public License,
752
+ section 13, concerning interaction through a network will apply to the
753
+ combination as such.
754
+
755
+ 14. Revised Versions of this License.
756
+
757
+ The Free Software Foundation may publish revised and/or new versions of
758
+ the GNU General Public License from time to time. Such new versions will
759
+ be similar in spirit to the present version, but may differ in detail to
760
+ address new problems or concerns.
761
+
762
+ Each version is given a distinguishing version number. If the
763
+ Program specifies that a certain numbered version of the GNU General
764
+ Public License "or any later version" applies to it, you have the
765
+ option of following the terms and conditions either of that numbered
766
+ version or of any later version published by the Free Software
767
+ Foundation. If the Program does not specify a version number of the
768
+ GNU General Public License, you may choose any version ever published
769
+ by the Free Software Foundation.
770
+
771
+ If the Program specifies that a proxy can decide which future
772
+ versions of the GNU General Public License can be used, that proxy's
773
+ public statement of acceptance of a version permanently authorizes you
774
+ to choose that version for the Program.
775
+
776
+ Later license versions may give you additional or different
777
+ permissions. However, no additional obligations are imposed on any
778
+ author or copyright holder as a result of your choosing to follow a
779
+ later version.
780
+
781
+ 15. Disclaimer of Warranty.
782
+
783
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
784
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
785
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
786
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
787
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
788
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
789
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
790
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
791
+
792
+ 16. Limitation of Liability.
793
+
794
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
795
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
796
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
797
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
798
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
799
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
800
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
801
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
802
+ SUCH DAMAGES.
803
+
804
+ 17. Interpretation of Sections 15 and 16.
805
+
806
+ If the disclaimer of warranty and limitation of liability provided
807
+ above cannot be given local legal effect according to their terms,
808
+ reviewing courts shall apply local law that most closely approximates
809
+ an absolute waiver of all civil liability in connection with the
810
+ Program, unless a warranty or assumption of liability accompanies a
811
+ copy of the Program in return for a fee.
812
+
813
+ END OF TERMS AND CONDITIONS
814
+
data/History.txt ADDED
@@ -0,0 +1,6 @@
1
+ === 0.0.1 / 2012-02-05
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday (as a gem)!
6
+
data/README.rdoc ADDED
@@ -0,0 +1,42 @@
1
+ = Test::Unit::Runner::Tap
2
+
3
+ * http://test-unit.rubyforge.org
4
+
5
+ == DESCRIPTION:
6
+
7
+ <b>Test::Unit::Runner::Tap</b> - A console Test::Unit UI supporting TAP and TAP-Y/J
8
+ format.
9
+
10
+ See {TAP}[http://testanything.org] for more information about TAP format.
11
+
12
+ See {TAPOUT}[http://rubyworks.github.com/tapout] for more information about
13
+ TAP-Y/J format.
14
+
15
+ == INSTALL:
16
+
17
+ $ sudo gem install test-unit-runner-tap
18
+
19
+ == USAGE:
20
+
21
+ require 'test/unit/runner/tap'
22
+
23
+ == LICENSE:
24
+
25
+ (LGPL v3.0 License)
26
+
27
+ Copyright (c) 2012 Trans & Kouhei Sutou
28
+
29
+ This program is free software: you can redistribute it and/or modify
30
+ it under the terms of the GNU General Public License as published by
31
+ the Free Software Foundation, either version 3 of the License, or
32
+ (at your option) any later version.
33
+
34
+ This program is distributed in the hope that it will be useful,
35
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
36
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37
+ GNU General Public License for more details.
38
+
39
+ You should have received a copy of the GNU General Public License
40
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
41
+
42
+ (See COPYING file for more details.)
@@ -0,0 +1,11 @@
1
+ module Test
2
+ module Unit
3
+ module Runner
4
+ module Tap
5
+ VERSION = "1.0.0"
6
+ end
7
+ end
8
+ end
9
+ end
10
+
11
+ # Copyright (c) 2012 Trans & Kouhei Sutou (LGPL v3.0)
@@ -0,0 +1,13 @@
1
+ require 'test/unit'
2
+ require 'test/unit/runner/tap-version'
3
+
4
+ module Test
5
+ module Unit
6
+ AutoRunner.register_runner(:tap) do |auto_runner|
7
+ require 'test/unit/ui/tap/testrunner'
8
+ Test::Unit::UI::Tap::TestRunner
9
+ end
10
+ end
11
+ end
12
+
13
+ # Copyright (c) 2012 Trans & Kouhei Sutou (LGPL v3.0)
@@ -0,0 +1,84 @@
1
+ #--
2
+ #
3
+ # Author:: Kouhei Sutou.
4
+ # Copyright:: Copyright (c) 2009-2010 Kouhei Sutou <kou@clear-code.com>.
5
+ # License:: Ruby license.
6
+
7
+ require 'test/unit/ui/testrunner'
8
+ require 'test/unit/ui/testrunnermediator'
9
+
10
+ module Test
11
+ module Unit
12
+ module UI
13
+ module Tap
14
+
15
+ # Runs a Test::Unit::TestSuite and outputs result
16
+ # as TAP format.
17
+ class TestRunner < UI::TestRunner
18
+ def initialize(suite, options={})
19
+ super
20
+ @output = @options[:output] || STDOUT
21
+ @n_tests = 0
22
+ @already_outputted = false
23
+ end
24
+
25
+ # Begins the test run.
26
+ def start
27
+ result = super
28
+ def result.passed?
29
+ true # for prove commend :<
30
+ end
31
+ result
32
+ end
33
+
34
+ private
35
+ def attach_to_mediator
36
+ @mediator.add_listener(TestResult::FAULT, &method(:add_fault))
37
+ @mediator.add_listener(TestRunnerMediator::STARTED, &method(:started))
38
+ @mediator.add_listener(TestRunnerMediator::FINISHED, &method(:finished))
39
+ @mediator.add_listener(TestCase::STARTED, &method(:test_started))
40
+ @mediator.add_listener(TestCase::FINISHED, &method(:test_finished))
41
+ end
42
+
43
+ def add_fault(fault)
44
+ puts("not ok #{@n_tests} - #{fault.short_display}")
45
+ fault.long_display.each_line do |line|
46
+ puts("# #{line}")
47
+ end
48
+ @already_outputted = true
49
+ end
50
+
51
+ def started(result)
52
+ @result = result
53
+ puts("1..#{@suite.size}")
54
+ end
55
+
56
+ def finished(elapsed_time)
57
+ puts("# Finished in #{elapsed_time} seconds.")
58
+ @result.to_s.each_line do |line|
59
+ puts("# #{line}")
60
+ end
61
+ end
62
+
63
+ def test_started(name)
64
+ @n_tests += 1
65
+ end
66
+
67
+ def test_finished(name)
68
+ unless @already_outputted
69
+ puts("ok #{@n_tests} - #{name}")
70
+ end
71
+ @already_outputted = false
72
+ end
73
+
74
+ def puts(*args)
75
+ @output.puts(*args)
76
+ @output.flush
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
83
+
84
+ # Copyright (c) 2012 Trans & Kouhei Sutou (LGPL v3.0)
data/test/test_tap.rb ADDED
@@ -0,0 +1,37 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'stringio'
4
+ require 'test/unit/ui/tap/testrunner'
5
+
6
+ class TestTap < Test::Unit::TestCase
7
+ def test_run
8
+ fail_line = nil
9
+ test_case = Class.new(Test::Unit::TestCase) do
10
+ def test_success
11
+ assert_equal(3, 1 + 2)
12
+ end
13
+
14
+ def test_fail; assert_equal(3, 1 - 2); end; fail_line = __LINE__
15
+ end
16
+ output = StringIO.new
17
+ runner = Test::Unit::UI::Tap::TestRunner.new(test_case.suite,
18
+ :output => output)
19
+ result = runner.start; start_line = __LINE__
20
+ assert_equal(<<-EOR, output.string.gsub(/[\d\.]+ seconds/, "0.001 seconds"))
21
+ 1..2
22
+ not ok 1 - test_fail(): <3> expected but was
23
+ # Failure:
24
+ # test_fail()
25
+ # [#{__FILE__}:#{fail_line}:in `test_fail'
26
+ # #{File.expand_path(__FILE__+'/../..')}/lib/test/unit/ui/tap/testrunner.rb:27:in `start'
27
+ # #{__FILE__}:#{start_line}:in `test_run']:
28
+ # <3> expected but was
29
+ # <-1>.
30
+ ok 2 - test_success()
31
+ # Finished in 0.001 seconds.
32
+ # 2 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
33
+ EOR
34
+ assert_true(result.passed?)
35
+ end
36
+ end
37
+
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: test-unit-runner-tap
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Thomas Sawyer
9
+ - Kouhei Sutou
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-02-06 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: test-unit
17
+ requirement: &9861420 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *9861420
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: &9860420 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *9860420
37
+ description: This project provides TAP and TAP-Y/J test output formats for the TestUnit
38
+ test framework.
39
+ email:
40
+ - transfire@gmail.com
41
+ - kou@cozmixng.org
42
+ executables: []
43
+ extensions: []
44
+ extra_rdoc_files:
45
+ - History.txt
46
+ - README.rdoc
47
+ files:
48
+ - .ruby
49
+ - lib/test/unit/runner/tap.rb
50
+ - lib/test/unit/runner/tap-version.rb
51
+ - lib/test/unit/ui/tap/testrunner.rb
52
+ - test/test_tap.rb
53
+ - COPYING
54
+ - History.txt
55
+ - README.rdoc
56
+ homepage: https://github.com/test-unit/test-unit-runner-tap
57
+ licenses:
58
+ - GPL-2
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.11
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: TAP runners for TestUnit.
81
+ test_files: []
82
+ has_rdoc: