quality_extensions 1.1.6 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/License +403 -0
  4. data/Rakefile +2 -0
  5. data/Readme.rdoc +2 -3
  6. data/VERSION +1 -0
  7. data/doc_include/ReleaseNotes-0.0.10 +1 -0
  8. data/doc_include/ReleaseNotes-0.0.12 +1 -0
  9. data/doc_include/ReleaseNotes-0.0.13 +2 -0
  10. data/doc_include/ReleaseNotes-0.0.14 +1 -0
  11. data/doc_include/ReleaseNotes-0.0.15 +2 -0
  12. data/doc_include/ReleaseNotes-0.0.16 +1 -0
  13. data/doc_include/ReleaseNotes-0.0.17 +1 -0
  14. data/doc_include/ReleaseNotes-0.0.18 +1 -0
  15. data/doc_include/ReleaseNotes-0.0.19 +1 -0
  16. data/doc_include/ReleaseNotes-0.0.20 +1 -0
  17. data/doc_include/ReleaseNotes-0.0.21 +7 -0
  18. data/doc_include/ReleaseNotes-0.0.22 +2 -0
  19. data/doc_include/ReleaseNotes-0.0.23 +1 -0
  20. data/doc_include/ReleaseNotes-0.0.24 +3 -0
  21. data/doc_include/ReleaseNotes-0.0.25 +3 -0
  22. data/doc_include/ReleaseNotes-0.0.26 +2 -0
  23. data/doc_include/ReleaseNotes-0.0.27 +1 -0
  24. data/doc_include/ReleaseNotes-0.0.28 +1 -0
  25. data/doc_include/ReleaseNotes-0.0.29 +3 -0
  26. data/doc_include/ReleaseNotes-0.0.3 +1 -0
  27. data/doc_include/ReleaseNotes-0.0.30 +4 -0
  28. data/doc_include/ReleaseNotes-0.0.31 +1 -0
  29. data/doc_include/ReleaseNotes-0.0.32 +1 -0
  30. data/doc_include/ReleaseNotes-0.0.33 +1 -0
  31. data/doc_include/ReleaseNotes-0.0.34 +2 -0
  32. data/doc_include/ReleaseNotes-0.0.35 +1 -0
  33. data/doc_include/ReleaseNotes-0.0.36 +1 -0
  34. data/doc_include/ReleaseNotes-0.0.37 +1 -0
  35. data/doc_include/ReleaseNotes-0.0.38 +1 -0
  36. data/doc_include/ReleaseNotes-0.0.39 +1 -0
  37. data/doc_include/ReleaseNotes-0.0.4 +2 -0
  38. data/doc_include/ReleaseNotes-0.0.40 +1 -0
  39. data/doc_include/ReleaseNotes-0.0.41 +1 -0
  40. data/doc_include/ReleaseNotes-0.0.42 +2 -0
  41. data/doc_include/ReleaseNotes-0.0.43 +2 -0
  42. data/doc_include/ReleaseNotes-0.0.44 +3 -0
  43. data/doc_include/ReleaseNotes-0.0.45 +1 -0
  44. data/doc_include/ReleaseNotes-0.0.46 +1 -0
  45. data/doc_include/ReleaseNotes-0.0.47 +1 -0
  46. data/doc_include/ReleaseNotes-0.0.48 +2 -0
  47. data/doc_include/ReleaseNotes-0.0.49 +2 -0
  48. data/doc_include/ReleaseNotes-0.0.5 +1 -0
  49. data/doc_include/ReleaseNotes-0.0.50 +1 -0
  50. data/doc_include/ReleaseNotes-0.0.51 +1 -0
  51. data/doc_include/ReleaseNotes-0.0.52 +1 -0
  52. data/doc_include/ReleaseNotes-0.0.53 +3 -0
  53. data/doc_include/ReleaseNotes-0.0.54 +1 -0
  54. data/doc_include/ReleaseNotes-0.0.55 +2 -0
  55. data/doc_include/ReleaseNotes-0.0.56 +1 -0
  56. data/doc_include/ReleaseNotes-0.0.57 +3 -0
  57. data/doc_include/ReleaseNotes-0.0.58 +1 -0
  58. data/doc_include/ReleaseNotes-0.0.59 +1 -0
  59. data/doc_include/ReleaseNotes-0.0.6 +3 -0
  60. data/doc_include/ReleaseNotes-0.0.60 +3 -0
  61. data/doc_include/ReleaseNotes-0.0.61 +1 -0
  62. data/doc_include/ReleaseNotes-0.0.62 +1 -0
  63. data/doc_include/ReleaseNotes-0.0.63 +1 -0
  64. data/doc_include/ReleaseNotes-0.0.64 +1 -0
  65. data/doc_include/ReleaseNotes-0.0.7 +1 -0
  66. data/doc_include/ReleaseNotes-0.0.8 +2 -0
  67. data/doc_include/ReleaseNotes-0.0.9 +1 -0
  68. data/doc_include/ReleaseNotes-0.1.1 +1 -0
  69. data/doc_include/ReleaseNotes-0.1.2 +1 -0
  70. data/doc_include/ReleaseNotes-0.1.3 +1 -0
  71. data/doc_include/ReleaseNotes-0.1.4 +1 -0
  72. data/doc_include/ReleaseNotes-0.1.5 +0 -0
  73. data/doc_include/ReleaseNotes-1.0.0 +1 -0
  74. data/doc_include/ReleaseNotes-1.0.1 +1 -0
  75. data/doc_include/ReleaseNotes-1.0.2 +1 -0
  76. data/doc_include/ReleaseNotes-1.0.3 +1 -0
  77. data/doc_include/ReleaseNotes-1.1.0 +1 -0
  78. data/doc_include/ReleaseNotes-1.1.1 +1 -0
  79. data/doc_include/ReleaseNotes-1.1.6 +1 -0
  80. data/doc_include/assert_equal_with_difference_highlighting-there_he_is.png +0 -0
  81. data/doc_include/assert_equal_with_difference_highlighting-wheres_waldo.png +0 -0
  82. data/escape/Rakefile +62 -0
  83. data/escape/Readme +16 -0
  84. data/escape/doc_include/ReleaseNotes-0.0.1 +1 -0
  85. data/escape/doc_include/ReleaseNotes-0.0.3 +1 -0
  86. data/escape/doc_include/ReleaseNotes-0.0.4 +1 -0
  87. data/escape/doc_include/ReleaseNotes-0.0.5 +1 -0
  88. data/escape/doc_include/template/qualitysmith.rb +631 -0
  89. data/escape/lib/escape.rb +302 -0
  90. data/escape/pkg/escape-0.0.5.tgz +0 -0
  91. data/escape/pkg/escape-0.0.5.zip +0 -0
  92. data/escape/pkg/escape-0.0.5/Readme +16 -0
  93. data/escape/pkg/escape-0.0.5/doc_include/template/qualitysmith.rb +631 -0
  94. data/escape/pkg/escape-0.0.5/lib/escape.rb +302 -0
  95. data/lib/quality_extensions.rb +3 -1
  96. data/lib/quality_extensions/array/average.rb +45 -0
  97. data/lib/quality_extensions/array/expand_ranges.rb +2 -2
  98. data/lib/quality_extensions/array/shell_escape.rb +2 -2
  99. data/lib/quality_extensions/color/gradiate.rb +5 -5
  100. data/lib/quality_extensions/enumerable/every.rb +2 -2
  101. data/lib/quality_extensions/enumerable/grep_with_index.rb +51 -0
  102. data/lib/quality_extensions/enumerable/grepv.rb +1 -0
  103. data/lib/quality_extensions/enumerable/map_with_index.rb +2 -0
  104. data/lib/quality_extensions/enumerable/max_by_value.rb +72 -0
  105. data/lib/quality_extensions/enumerable/select_while.rb +7 -2
  106. data/lib/quality_extensions/enumerable/select_with_index.rb +2 -2
  107. data/lib/quality_extensions/float/truncate.rb +2 -1
  108. data/lib/quality_extensions/hash/except.rb +2 -2
  109. data/lib/quality_extensions/hash/to_query_string.rb +6 -6
  110. data/lib/quality_extensions/helpers/numbers.rb +259 -0
  111. data/lib/quality_extensions/kernel/die.rb +2 -2
  112. data/lib/quality_extensions/kernel/filter_output.rb +1 -0
  113. data/lib/quality_extensions/kernel/require_all.rb +7 -7
  114. data/lib/quality_extensions/module/guard_method.rb +3 -3
  115. data/lib/quality_extensions/object/non.rb +10 -4
  116. data/lib/quality_extensions/pathname.rb +51 -3
  117. data/lib/quality_extensions/regexp/named_captures.rb +7 -6
  118. data/lib/quality_extensions/regexp/to_plain_s.rb +116 -0
  119. data/lib/quality_extensions/safe_method.rb +100 -0
  120. data/lib/quality_extensions/safe_nil.rb +87 -11
  121. data/lib/quality_extensions/string/chomped_lines.rb +0 -0
  122. data/lib/quality_extensions/string/integer_eh.rb +2 -2
  123. data/lib/quality_extensions/string/prefix.rb +120 -0
  124. data/lib/quality_extensions/string/prefix_lines.rb +4 -69
  125. data/lib/quality_extensions/string/safe_numeric_conversion.rb +5 -5
  126. data/lib/quality_extensions/string/shell_escape.rb +3 -3
  127. data/lib/quality_extensions/string/to_proc.rb +119 -0
  128. data/lib/quality_extensions/template.rb +2 -2
  129. data/lib/quality_extensions/test/difference_highlighting.rb +2 -2
  130. data/lib/quality_extensions/version.rb +3 -0
  131. data/quality_extensions.gemspec +21 -0
  132. metadata +249 -145
  133. data/lib/Xfind_bug_test.rb +0 -28
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in quality_extensions.gemspec
4
+ gemspec
data/License ADDED
@@ -0,0 +1,403 @@
1
+
2
+ THE RUBY LICENSE
3
+ (http://www.ruby-lang.org/en/LICENSE.txt)
4
+
5
+ You may redistribute this software and/or modify it under either the terms of
6
+ the GPL (see below), or the conditions below:
7
+
8
+ 1. You may make and give away verbatim copies of the source form of the
9
+ software without restriction, provided that you duplicate all of the
10
+ original copyright notices and associated disclaimers.
11
+
12
+ 2. You may modify your copy of the software in any way, provided that
13
+ you do at least ONE of the following:
14
+
15
+ a) place your modifications in the Public Domain or otherwise
16
+ make them Freely Available, such as by posting said
17
+ modifications to Usenet or an equivalent medium, or by allowing
18
+ the author to include your modifications in the software.
19
+
20
+ b) use the modified software only within your corporation or
21
+ organization.
22
+
23
+ c) rename any non-standard executables so the names do not conflict
24
+ with standard executables, which must also be provided.
25
+
26
+ d) make other distribution arrangements with the author.
27
+
28
+ 3. You may distribute the software in object code or executable
29
+ form, provided that you do at least ONE of the following:
30
+
31
+ a) distribute the executables and library files of the software,
32
+ together with instructions (in the manual page or equivalent)
33
+ on where to get the original distribution.
34
+
35
+ b) accompany the distribution with the machine-readable source of
36
+ the software.
37
+
38
+ c) give non-standard executables non-standard names, with
39
+ instructions on where to get the original software distribution.
40
+
41
+ d) make other distribution arrangements with the author.
42
+
43
+ 4. You may modify and include the part of the software into any other
44
+ software (possibly commercial). But some files in the distribution
45
+ are not written by the author, so that they are not under these terms.
46
+
47
+ For the list of those files and their copying conditions, see the
48
+ file LEGAL.
49
+
50
+ 5. The scripts and library files supplied as input to or produced as
51
+ output from the software do not automatically fall under the
52
+ copyright of the software, but belong to whomever generated them,
53
+ and may be sold commercially, and may be aggregated with this
54
+ software.
55
+
56
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
57
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
58
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
59
+ PURPOSE.
60
+
61
+ ----------------------------------------------------------------------------
62
+
63
+
64
+ GNU GENERAL PUBLIC LICENSE
65
+ Version 2, June 1991
66
+
67
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
68
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
69
+ Everyone is permitted to copy and distribute verbatim copies
70
+ of this license document, but changing it is not allowed.
71
+
72
+ Preamble
73
+
74
+ The licenses for most software are designed to take away your
75
+ freedom to share and change it. By contrast, the GNU General Public
76
+ License is intended to guarantee your freedom to share and change free
77
+ software--to make sure the software is free for all its users. This
78
+ General Public License applies to most of the Free Software
79
+ Foundation's software and to any other program whose authors commit to
80
+ using it. (Some other Free Software Foundation software is covered by
81
+ the GNU Library General Public License instead.) You can apply it to
82
+ your programs, too.
83
+
84
+ When we speak of free software, we are referring to freedom, not
85
+ price. Our General Public Licenses are designed to make sure that you
86
+ have the freedom to distribute copies of free software (and charge for
87
+ this service if you wish), that you receive source code or can get it
88
+ if you want it, that you can change the software or use pieces of it
89
+ in new free programs; and that you know you can do these things.
90
+
91
+ To protect your rights, we need to make restrictions that forbid
92
+ anyone to deny you these rights or to ask you to surrender the rights.
93
+ These restrictions translate to certain responsibilities for you if you
94
+ distribute copies of the software, or if you modify it.
95
+
96
+ For example, if you distribute copies of such a program, whether
97
+ gratis or for a fee, you must give the recipients all the rights that
98
+ you have. You must make sure that they, too, receive or can get the
99
+ source code. And you must show them these terms so they know their
100
+ rights.
101
+
102
+ We protect your rights with two steps: (1) copyright the software, and
103
+ (2) offer you this license which gives you legal permission to copy,
104
+ distribute and/or modify the software.
105
+
106
+ Also, for each author's protection and ours, we want to make certain
107
+ that everyone understands that there is no warranty for this free
108
+ software. If the software is modified by someone else and passed on, we
109
+ want its recipients to know that what they have is not the original, so
110
+ that any problems introduced by others will not reflect on the original
111
+ authors' reputations.
112
+
113
+ Finally, any free program is threatened constantly by software
114
+ patents. We wish to avoid the danger that redistributors of a free
115
+ program will individually obtain patent licenses, in effect making the
116
+ program proprietary. To prevent this, we have made it clear that any
117
+ patent must be licensed for everyone's free use or not licensed at all.
118
+
119
+ The precise terms and conditions for copying, distribution and
120
+ modification follow.
121
+
122
+ GNU GENERAL PUBLIC LICENSE
123
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
124
+
125
+ 0. This License applies to any program or other work which contains
126
+ a notice placed by the copyright holder saying it may be distributed
127
+ under the terms of this General Public License. The "Program", below,
128
+ refers to any such program or work, and a "work based on the Program"
129
+ means either the Program or any derivative work under copyright law:
130
+ that is to say, a work containing the Program or a portion of it,
131
+ either verbatim or with modifications and/or translated into another
132
+ language. (Hereinafter, translation is included without limitation in
133
+ the term "modification".) Each licensee is addressed as "you".
134
+
135
+ Activities other than copying, distribution and modification are not
136
+ covered by this License; they are outside its scope. The act of
137
+ running the Program is not restricted, and the output from the Program
138
+ is covered only if its contents constitute a work based on the
139
+ Program (independent of having been made by running the Program).
140
+ Whether that is true depends on what the Program does.
141
+
142
+ 1. You may copy and distribute verbatim copies of the Program's
143
+ source code as you receive it, in any medium, provided that you
144
+ conspicuously and appropriately publish on each copy an appropriate
145
+ copyright notice and disclaimer of warranty; keep intact all the
146
+ notices that refer to this License and to the absence of any warranty;
147
+ and give any other recipients of the Program a copy of this License
148
+ along with the Program.
149
+
150
+ You may charge a fee for the physical act of transferring a copy, and
151
+ you may at your option offer warranty protection in exchange for a fee.
152
+
153
+ 2. You may modify your copy or copies of the Program or any portion
154
+ of it, thus forming a work based on the Program, and copy and
155
+ distribute such modifications or work under the terms of Section 1
156
+ above, provided that you also meet all of these conditions:
157
+
158
+ a) You must cause the modified files to carry prominent notices
159
+ stating that you changed the files and the date of any change.
160
+
161
+ b) You must cause any work that you distribute or publish, that in
162
+ whole or in part contains or is derived from the Program or any
163
+ part thereof, to be licensed as a whole at no charge to all third
164
+ parties under the terms of this License.
165
+
166
+ c) If the modified program normally reads commands interactively
167
+ when run, you must cause it, when started running for such
168
+ interactive use in the most ordinary way, to print or display an
169
+ announcement including an appropriate copyright notice and a
170
+ notice that there is no warranty (or else, saying that you provide
171
+ a warranty) and that users may redistribute the program under
172
+ these conditions, and telling the user how to view a copy of this
173
+ License. (Exception: if the Program itself is interactive but
174
+ does not normally print such an announcement, your work based on
175
+ the Program is not required to print an announcement.)
176
+
177
+ These requirements apply to the modified work as a whole. If
178
+ identifiable sections of that work are not derived from the Program,
179
+ and can be reasonably considered independent and separate works in
180
+ themselves, then this License, and its terms, do not apply to those
181
+ sections when you distribute them as separate works. But when you
182
+ distribute the same sections as part of a whole which is a work based
183
+ on the Program, the distribution of the whole must be on the terms of
184
+ this License, whose permissions for other licensees extend to the
185
+ entire whole, and thus to each and every part regardless of who wrote it.
186
+
187
+ Thus, it is not the intent of this section to claim rights or contest
188
+ your rights to work written entirely by you; rather, the intent is to
189
+ exercise the right to control the distribution of derivative or
190
+ collective works based on the Program.
191
+
192
+ In addition, mere aggregation of another work not based on the Program
193
+ with the Program (or with a work based on the Program) on a volume of
194
+ a storage or distribution medium does not bring the other work under
195
+ the scope of this License.
196
+
197
+ 3. You may copy and distribute the Program (or a work based on it,
198
+ under Section 2) in object code or executable form under the terms of
199
+ Sections 1 and 2 above provided that you also do one of the following:
200
+
201
+ a) Accompany it with the complete corresponding machine-readable
202
+ source code, which must be distributed under the terms of Sections
203
+ 1 and 2 above on a medium customarily used for software interchange; or,
204
+
205
+ b) Accompany it with a written offer, valid for at least three
206
+ years, to give any third party, for a charge no more than your
207
+ cost of physically performing source distribution, a complete
208
+ machine-readable copy of the corresponding source code, to be
209
+ distributed under the terms of Sections 1 and 2 above on a medium
210
+ customarily used for software interchange; or,
211
+
212
+ c) Accompany it with the information you received as to the offer
213
+ to distribute corresponding source code. (This alternative is
214
+ allowed only for noncommercial distribution and only if you
215
+ received the program in object code or executable form with such
216
+ an offer, in accord with Subsection b above.)
217
+
218
+ The source code for a work means the preferred form of the work for
219
+ making modifications to it. For an executable work, complete source
220
+ code means all the source code for all modules it contains, plus any
221
+ associated interface definition files, plus the scripts used to
222
+ control compilation and installation of the executable. However, as a
223
+ special exception, the source code distributed need not include
224
+ anything that is normally distributed (in either source or binary
225
+ form) with the major components (compiler, kernel, and so on) of the
226
+ operating system on which the executable runs, unless that component
227
+ itself accompanies the executable.
228
+
229
+ If distribution of executable or object code is made by offering
230
+ access to copy from a designated place, then offering equivalent
231
+ access to copy the source code from the same place counts as
232
+ distribution of the source code, even though third parties are not
233
+ compelled to copy the source along with the object code.
234
+
235
+ 4. You may not copy, modify, sublicense, or distribute the Program
236
+ except as expressly provided under this License. Any attempt
237
+ otherwise to copy, modify, sublicense or distribute the Program is
238
+ void, and will automatically terminate your rights under this License.
239
+ However, parties who have received copies, or rights, from you under
240
+ this License will not have their licenses terminated so long as such
241
+ parties remain in full compliance.
242
+
243
+ 5. You are not required to accept this License, since you have not
244
+ signed it. However, nothing else grants you permission to modify or
245
+ distribute the Program or its derivative works. These actions are
246
+ prohibited by law if you do not accept this License. Therefore, by
247
+ modifying or distributing the Program (or any work based on the
248
+ Program), you indicate your acceptance of this License to do so, and
249
+ all its terms and conditions for copying, distributing or modifying
250
+ the Program or works based on it.
251
+
252
+ 6. Each time you redistribute the Program (or any work based on the
253
+ Program), the recipient automatically receives a license from the
254
+ original licensor to copy, distribute or modify the Program subject to
255
+ these terms and conditions. You may not impose any further
256
+ restrictions on the recipients' exercise of the rights granted herein.
257
+ You are not responsible for enforcing compliance by third parties to
258
+ this License.
259
+
260
+ 7. If, as a consequence of a court judgment or allegation of patent
261
+ infringement or for any other reason (not limited to patent issues),
262
+ conditions are imposed on you (whether by court order, agreement or
263
+ otherwise) that contradict the conditions of this License, they do not
264
+ excuse you from the conditions of this License. If you cannot
265
+ distribute so as to satisfy simultaneously your obligations under this
266
+ License and any other pertinent obligations, then as a consequence you
267
+ may not distribute the Program at all. For example, if a patent
268
+ license would not permit royalty-free redistribution of the Program by
269
+ all those who receive copies directly or indirectly through you, then
270
+ the only way you could satisfy both it and this License would be to
271
+ refrain entirely from distribution of the Program.
272
+
273
+ If any portion of this section is held invalid or unenforceable under
274
+ any particular circumstance, the balance of the section is intended to
275
+ apply and the section as a whole is intended to apply in other
276
+ circumstances.
277
+
278
+ It is not the purpose of this section to induce you to infringe any
279
+ patents or other property right claims or to contest validity of any
280
+ such claims; this section has the sole purpose of protecting the
281
+ integrity of the free software distribution system, which is
282
+ implemented by public license practices. Many people have made
283
+ generous contributions to the wide range of software distributed
284
+ through that system in reliance on consistent application of that
285
+ system; it is up to the author/donor to decide if he or she is willing
286
+ to distribute software through any other system and a licensee cannot
287
+ impose that choice.
288
+
289
+ This section is intended to make thoroughly clear what is believed to
290
+ be a consequence of the rest of this License.
291
+
292
+ 8. If the distribution and/or use of the Program is restricted in
293
+ certain countries either by patents or by copyrighted interfaces, the
294
+ original copyright holder who places the Program under this License
295
+ may add an explicit geographical distribution limitation excluding
296
+ those countries, so that distribution is permitted only in or among
297
+ countries not thus excluded. In such case, this License incorporates
298
+ the limitation as if written in the body of this License.
299
+
300
+ 9. The Free Software Foundation may publish revised and/or new versions
301
+ of the General Public License from time to time. Such new versions will
302
+ be similar in spirit to the present version, but may differ in detail to
303
+ address new problems or concerns.
304
+
305
+ Each version is given a distinguishing version number. If the Program
306
+ specifies a version number of this License which applies to it and "any
307
+ later version", you have the option of following the terms and conditions
308
+ either of that version or of any later version published by the Free
309
+ Software Foundation. If the Program does not specify a version number of
310
+ this License, you may choose any version ever published by the Free Software
311
+ Foundation.
312
+
313
+ 10. If you wish to incorporate parts of the Program into other free
314
+ programs whose distribution conditions are different, write to the author
315
+ to ask for permission. For software which is copyrighted by the Free
316
+ Software Foundation, write to the Free Software Foundation; we sometimes
317
+ make exceptions for this. Our decision will be guided by the two goals
318
+ of preserving the free status of all derivatives of our free software and
319
+ of promoting the sharing and reuse of software generally.
320
+
321
+ NO WARRANTY
322
+
323
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
324
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
325
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
326
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
327
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
328
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
329
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
330
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
331
+ REPAIR OR CORRECTION.
332
+
333
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
334
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
335
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
336
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
337
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
338
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
339
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
340
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
341
+ POSSIBILITY OF SUCH DAMAGES.
342
+
343
+ END OF TERMS AND CONDITIONS
344
+
345
+ How to Apply These Terms to Your New Programs
346
+
347
+ If you develop a new program, and you want it to be of the greatest
348
+ possible use to the public, the best way to achieve this is to make it
349
+ free software which everyone can redistribute and change under these terms.
350
+
351
+ To do so, attach the following notices to the program. It is safest
352
+ to attach them to the start of each source file to most effectively
353
+ convey the exclusion of warranty; and each file should have at least
354
+ the "copyright" line and a pointer to where the full notice is found.
355
+
356
+ <one line to give the program's name and a brief idea of what it does.>
357
+ Copyright (C) <year> <name of author>
358
+
359
+ This program is free software; you can redistribute it and/or modify
360
+ it under the terms of the GNU General Public License as published by
361
+ the Free Software Foundation; either version 2 of the License, or
362
+ (at your option) any later version.
363
+
364
+ This program is distributed in the hope that it will be useful,
365
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
366
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
367
+ GNU General Public License for more details.
368
+
369
+ You should have received a copy of the GNU General Public License
370
+ along with this program; if not, write to the Free Software
371
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
372
+
373
+
374
+ Also add information on how to contact you by electronic and paper mail.
375
+
376
+ If the program is interactive, make it output a short notice like this
377
+ when it starts in an interactive mode:
378
+
379
+ Gnomovision version 69, Copyright (C) year name of author
380
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
381
+ This is free software, and you are welcome to redistribute it
382
+ under certain conditions; type `show c' for details.
383
+
384
+ The hypothetical commands `show w' and `show c' should show the appropriate
385
+ parts of the General Public License. Of course, the commands you use may
386
+ be called something other than `show w' and `show c'; they could even be
387
+ mouse-clicks or menu items--whatever suits your program.
388
+
389
+ You should also get your employer (if you work as a programmer) or your
390
+ school, if any, to sign a "copyright disclaimer" for the program, if
391
+ necessary. Here is a sample; alter the names:
392
+
393
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
394
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
395
+
396
+ <signature of Ty Coon>, 1 April 1989
397
+ Ty Coon, President of Vice
398
+
399
+ This General Public License does not permit incorporating your program into
400
+ proprietary programs. If your program is a subroutine library, you may
401
+ consider it more useful to permit linking proprietary applications with the
402
+ library. If this is what you want to do, use the GNU Library General
403
+ Public License instead of this License.
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -1,14 +1,13 @@
1
1
  = Quality Ruby Extensions
2
2
 
3
- [<b>Home page</b>:] http://quality-ext.rubyforge.org/
4
- [<b>Project site</b>:] http://github.com/TylerRick/quality_extensions/tree/master / http://rubyforge.org/projects/quality-ext/
3
+ [<b>Project site</b>:] http://github.com/TylerRick/quality_extensions/tree/master
5
4
  [<b>Gem install</b>:] <tt>gem install quality_extensions</tt>
6
5
  [<b>Author</b>:] Tyler Rick <github.com|tylerrick.com> and others
7
6
  [<b>License</b>:] {Ruby License}[link:files/License.html]
8
7
 
9
8
  == Introduction
10
9
 
11
- QualityExtensions is a library of general-purpose, reusable methods/classes that are compatible with/built-upon Facets (2.4.4) but not (yet) included in Facets... including FileTest.binary_file?, Enumerable#enum, String#digits_only, send_if_not_nil, send_if_true, send_unless, Kernel#capture_output, Kernel#backtrace, Symbol#=~, Hash#hash_select, Hash#delete_unless, Array#expand_ranges, assert_changed, assert_contains, and many more.
10
+ QualityExtensions is a library of general-purpose, reusable methods/classes that are compatible with/built-upon Facets but not (yet) included in Facets... including FileTest.binary_file?, String#digits_only, send_if_not_nil, send_if_true, send_unless, Kernel#capture_output, Kernel#backtrace, Symbol#=~, Hash#hash_select, Hash#delete_unless, Array#expand_ranges, assert_changed, assert_contains, and many more.
12
11
 
13
12
  It is similar in purpose and layout to {Ruby Facets}[http://facets.rubyforge.org/] but not intended _compete_ with Facets.
14
13
 
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.2.2
@@ -0,0 +1 @@
1
+ * Added Object#ignore_access
@@ -0,0 +1 @@
1
+ * Added string/colored_string_manipulation.rb
@@ -0,0 +1,2 @@
1
+ * Added Symbol#match/=~
2
+ * Added Object#send_if_not_nil
@@ -0,0 +1 @@
1
+ Exception#inspect_with_backtrace