whyvalidationssuckin96 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/.document +5 -0
  2. data/.gitignore +22 -0
  3. data/LICENSE +20 -0
  4. data/README.md +121 -0
  5. data/Rakefile +45 -0
  6. data/VERSION +1 -0
  7. data/doc/ActiveRecord/RecordInvalid.html +258 -0
  8. data/doc/ActiveRecord.html +93 -0
  9. data/doc/FalseClass.html +87 -0
  10. data/doc/NilClass.html +87 -0
  11. data/doc/Numeric.html +87 -0
  12. data/doc/Object.html +79 -0
  13. data/doc/String.html +87 -0
  14. data/doc/TrueClass.html +87 -0
  15. data/doc/WhyValidationsSuckIn96/ActiveRecord/InstanceMethods.html +156 -0
  16. data/doc/WhyValidationsSuckIn96/ActiveRecord.html +192 -0
  17. data/doc/WhyValidationsSuckIn96/AttributeBasedValidation.html +464 -0
  18. data/doc/WhyValidationsSuckIn96/SkippableValidation.html +194 -0
  19. data/doc/WhyValidationsSuckIn96/ValidatesAcceptance.html +254 -0
  20. data/doc/WhyValidationsSuckIn96/ValidatesAssociated.html +250 -0
  21. data/doc/WhyValidationsSuckIn96/ValidatesConfirmation.html +251 -0
  22. data/doc/WhyValidationsSuckIn96/ValidatesExclusion.html +388 -0
  23. data/doc/WhyValidationsSuckIn96/ValidatesFormat.html +387 -0
  24. data/doc/WhyValidationsSuckIn96/ValidatesInclusion.html +388 -0
  25. data/doc/WhyValidationsSuckIn96/ValidatesLength.html +469 -0
  26. data/doc/WhyValidationsSuckIn96/ValidatesNumericality.html +267 -0
  27. data/doc/WhyValidationsSuckIn96/ValidatesPresence.html +244 -0
  28. data/doc/WhyValidationsSuckIn96/ValidatesUniqueness.html +289 -0
  29. data/doc/WhyValidationsSuckIn96/Validation.html +934 -0
  30. data/doc/WhyValidationsSuckIn96/ValidationBuilder.html +391 -0
  31. data/doc/WhyValidationsSuckIn96/ValidationSupport/ClassMethods.html +249 -0
  32. data/doc/WhyValidationsSuckIn96/ValidationSupport/InstanceMethods.html +484 -0
  33. data/doc/WhyValidationsSuckIn96/ValidationSupport.html +168 -0
  34. data/doc/WhyValidationsSuckIn96.html +97 -0
  35. data/doc/_index.html +346 -0
  36. data/doc/class_list.html +293 -0
  37. data/doc/css/common.css +1 -0
  38. data/doc/css/full_list.css +23 -0
  39. data/doc/css/style.css +263 -0
  40. data/doc/file.README.html +173 -0
  41. data/doc/file_list.html +29 -0
  42. data/doc/index.html +173 -0
  43. data/doc/js/app.js +91 -0
  44. data/doc/js/full_list.js +39 -0
  45. data/doc/js/jquery.js +19 -0
  46. data/doc/method_list.html +462 -0
  47. data/doc/top-level-namespace.html +81 -0
  48. data/lib/whyvalidationssuckin96/attribute_based_validation.rb +46 -0
  49. data/lib/whyvalidationssuckin96/constants.rb +3 -0
  50. data/lib/whyvalidationssuckin96/ext/blank.rb +47 -0
  51. data/lib/whyvalidationssuckin96/macros/validates_acceptance.rb +36 -0
  52. data/lib/whyvalidationssuckin96/macros/validates_associated.rb +33 -0
  53. data/lib/whyvalidationssuckin96/macros/validates_confirmation.rb +40 -0
  54. data/lib/whyvalidationssuckin96/macros/validates_exclusion.rb +38 -0
  55. data/lib/whyvalidationssuckin96/macros/validates_format.rb +38 -0
  56. data/lib/whyvalidationssuckin96/macros/validates_inclusion.rb +38 -0
  57. data/lib/whyvalidationssuckin96/macros/validates_length.rb +98 -0
  58. data/lib/whyvalidationssuckin96/macros/validates_numericality.rb +56 -0
  59. data/lib/whyvalidationssuckin96/macros/validates_presence.rb +30 -0
  60. data/lib/whyvalidationssuckin96/macros.rb +9 -0
  61. data/lib/whyvalidationssuckin96/rails/active_record.rb +94 -0
  62. data/lib/whyvalidationssuckin96/rails/macros/validates_uniqueness.rb +87 -0
  63. data/lib/whyvalidationssuckin96/rails/macros.rb +1 -0
  64. data/lib/whyvalidationssuckin96/skippable_validation.rb +59 -0
  65. data/lib/whyvalidationssuckin96/validation.rb +88 -0
  66. data/lib/whyvalidationssuckin96/validation_builder.rb +56 -0
  67. data/lib/whyvalidationssuckin96/validation_support.rb +74 -0
  68. data/lib/whyvalidationssuckin96.rb +4 -0
  69. data/test/attribute_based_validation_test.rb +58 -0
  70. data/test/macros/validates_acceptance_test.rb +64 -0
  71. data/test/macros/validates_associated_test.rb +60 -0
  72. data/test/macros/validates_confirmation_test.rb +63 -0
  73. data/test/macros/validates_exclusion_test.rb +37 -0
  74. data/test/macros/validates_format_test.rb +43 -0
  75. data/test/macros/validates_inclusion_test.rb +37 -0
  76. data/test/macros/validates_length_test.rb +179 -0
  77. data/test/macros/validates_numericality_test.rb +129 -0
  78. data/test/macros/validates_presence_test.rb +31 -0
  79. data/test/rails/active_record_test.rb +187 -0
  80. data/test/rails/active_record_test_helper.rb +90 -0
  81. data/test/rails/macros/validates_uniqueness_test.rb +153 -0
  82. data/test/skippable_validation_test.rb +102 -0
  83. data/test/teststrap.rb +4 -0
  84. data/test/validation_builder_test.rb +62 -0
  85. data/test/validation_support_test.rb +209 -0
  86. data/test/validation_test.rb +101 -0
  87. data/whyvalidationssuckin96.gemspec +153 -0
  88. metadata +189 -0
@@ -0,0 +1,97 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Module: WhyValidationsSuckIn96</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="_index.html">Index (W)</a> &raquo;
23
+
24
+
25
+ <span class="title">WhyValidationsSuckIn96</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Module: WhyValidationsSuckIn96
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ <dt class="r1 last">Defined in:</dt>
54
+ <dd class="r1 last">lib/whyvalidationssuckin96/validation.rb<span class="defines">,<br />
55
+ lib/whyvalidationssuckin96/constants.rb,<br /> lib/whyvalidationssuckin96/validation_support.rb,<br /> lib/whyvalidationssuckin96/validation_builder.rb,<br /> lib/whyvalidationssuckin96/rails/active_record.rb,<br /> lib/whyvalidationssuckin96/skippable_validation.rb,<br /> lib/whyvalidationssuckin96/macros/validates_format.rb,<br /> lib/whyvalidationssuckin96/macros/validates_length.rb,<br /> lib/whyvalidationssuckin96/macros/validates_presence.rb,<br /> lib/whyvalidationssuckin96/attribute_based_validation.rb,<br /> lib/whyvalidationssuckin96/macros/validates_inclusion.rb,<br /> lib/whyvalidationssuckin96/macros/validates_exclusion.rb,<br /> lib/whyvalidationssuckin96/macros/validates_associated.rb,<br /> lib/whyvalidationssuckin96/macros/validates_acceptance.rb,<br /> lib/whyvalidationssuckin96/macros/validates_numericality.rb,<br /> lib/whyvalidationssuckin96/macros/validates_confirmation.rb,<br /> lib/whyvalidationssuckin96/rails/macros/validates_uniqueness.rb</span>
56
+ </dd>
57
+
58
+ </dl>
59
+ <div class="clear"></div>
60
+
61
+ <h2>Overview</h2><div class="docstring">
62
+ <div class="discussion">
63
+ <p>
64
+ WhyValidationsSuckIn96
65
+ </p>
66
+
67
+
68
+ </div>
69
+ </div>
70
+ <div class="tags">
71
+
72
+ </div><h2>Defined Under Namespace</h2>
73
+ <p class="children">
74
+
75
+
76
+ <strong class="modules">Modules:</strong> <a href="WhyValidationsSuckIn96/ActiveRecord.html" title="ActiveRecord">ActiveRecord</a>, <a href="WhyValidationsSuckIn96/AttributeBasedValidation.html" title="AttributeBasedValidation">AttributeBasedValidation</a>, <a href="WhyValidationsSuckIn96/SkippableValidation.html" title="SkippableValidation">SkippableValidation</a>, <a href="WhyValidationsSuckIn96/ValidationSupport.html" title="ValidationSupport">ValidationSupport</a>
77
+
78
+
79
+
80
+ <strong class="classes">Classes:</strong> <a href="WhyValidationsSuckIn96/ValidatesAcceptance.html" title="ValidatesAcceptance">ValidatesAcceptance</a>, <a href="WhyValidationsSuckIn96/ValidatesAssociated.html" title="ValidatesAssociated">ValidatesAssociated</a>, <a href="WhyValidationsSuckIn96/ValidatesConfirmation.html" title="ValidatesConfirmation">ValidatesConfirmation</a>, <a href="WhyValidationsSuckIn96/ValidatesExclusion.html" title="ValidatesExclusion">ValidatesExclusion</a>, <a href="WhyValidationsSuckIn96/ValidatesFormat.html" title="ValidatesFormat">ValidatesFormat</a>, <a href="WhyValidationsSuckIn96/ValidatesInclusion.html" title="ValidatesInclusion">ValidatesInclusion</a>, <a href="WhyValidationsSuckIn96/ValidatesLength.html" title="ValidatesLength">ValidatesLength</a>, <a href="WhyValidationsSuckIn96/ValidatesNumericality.html" title="ValidatesNumericality">ValidatesNumericality</a>, <a href="WhyValidationsSuckIn96/ValidatesPresence.html" title="ValidatesPresence">ValidatesPresence</a>, <a href="WhyValidationsSuckIn96/ValidatesUniqueness.html" title="ValidatesUniqueness">ValidatesUniqueness</a>, <a href="WhyValidationsSuckIn96/Validation.html" title="Validation">Validation</a>, <a href="WhyValidationsSuckIn96/ValidationBuilder.html" title="ValidationBuilder">ValidationBuilder</a>
81
+
82
+
83
+ </p>
84
+
85
+
86
+
87
+
88
+ </div>
89
+
90
+ <div id="footer">
91
+ Generated on Sun Dec 20 19:49:46 2009 by
92
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
93
+ 0.5.2 (ruby-1.8.7).
94
+ </div>
95
+
96
+ </body>
97
+ </html>
data/doc/_index.html ADDED
@@ -0,0 +1,346 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>Documentation by YARD 0.5.2</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <div id="header">
20
+ <div id="menu">
21
+
22
+
23
+ <span class="title"></span>
24
+
25
+ </div>
26
+
27
+ <div id="search">
28
+ <a id="class_list_link" href="#">Namespace List</a>
29
+ <a id="method_list_link" href="#">Method List</a>
30
+ <a id ="file_list_link" href="#">File List</a>
31
+ </div>
32
+
33
+ <div class="clear"></div>
34
+ </div>
35
+
36
+ <iframe id="search_frame"></iframe>
37
+
38
+ <div id="content"><div id="listing">
39
+ <h1 class="noborder title">Documentation by YARD 0.5.2</h1>
40
+ <h1 class="alphaindex">Alphabetic Index</h1>
41
+
42
+
43
+ <h2>File Listing</h2>
44
+ <ul id="files">
45
+
46
+
47
+ <li class="r1"><a href="index.html" title="README">README</a></li>
48
+
49
+
50
+ </ul>
51
+
52
+ <div class="clear"></div>
53
+
54
+ <h2>Namespace Listing A-Z</h2>
55
+
56
+
57
+
58
+
59
+ <table>
60
+ <tr>
61
+ <td valign='top' width="33%">
62
+
63
+
64
+ <ul id="alpha_A" class="alpha">
65
+ <li class="letter">A</li>
66
+ <ul>
67
+
68
+ <li>
69
+ <a href="ActiveRecord.html" title="ActiveRecord">ActiveRecord</a>
70
+
71
+ </li>
72
+
73
+ <li>
74
+ <a href="WhyValidationsSuckIn96/ActiveRecord.html" title="ActiveRecord">ActiveRecord</a>
75
+
76
+ <small>(WhyValidationsSuckIn96)</small>
77
+
78
+ </li>
79
+
80
+ <li>
81
+ <a href="WhyValidationsSuckIn96/AttributeBasedValidation.html" title="AttributeBasedValidation">AttributeBasedValidation</a>
82
+
83
+ <small>(WhyValidationsSuckIn96)</small>
84
+
85
+ </li>
86
+
87
+ </ul>
88
+ </ul>
89
+
90
+
91
+ <ul id="alpha_C" class="alpha">
92
+ <li class="letter">C</li>
93
+ <ul>
94
+
95
+ <li>
96
+ <a href="WhyValidationsSuckIn96/ValidationSupport/ClassMethods.html" title="ClassMethods">ClassMethods</a>
97
+
98
+ <small>(WhyValidationsSuckIn96::ValidationSupport)</small>
99
+
100
+ </li>
101
+
102
+ </ul>
103
+ </ul>
104
+
105
+
106
+ <ul id="alpha_F" class="alpha">
107
+ <li class="letter">F</li>
108
+ <ul>
109
+
110
+ <li>
111
+ <a href="FalseClass.html" title="FalseClass">FalseClass</a>
112
+
113
+ </li>
114
+
115
+ </ul>
116
+ </ul>
117
+
118
+
119
+ <ul id="alpha_I" class="alpha">
120
+ <li class="letter">I</li>
121
+ <ul>
122
+
123
+ <li>
124
+ <a href="WhyValidationsSuckIn96/ActiveRecord/InstanceMethods.html" title="InstanceMethods">InstanceMethods</a>
125
+
126
+ <small>(WhyValidationsSuckIn96::ActiveRecord)</small>
127
+
128
+ </li>
129
+
130
+ <li>
131
+ <a href="WhyValidationsSuckIn96/ValidationSupport/InstanceMethods.html" title="InstanceMethods">InstanceMethods</a>
132
+
133
+ <small>(WhyValidationsSuckIn96::ValidationSupport)</small>
134
+
135
+ </li>
136
+
137
+ </ul>
138
+ </ul>
139
+
140
+
141
+ <ul id="alpha_N" class="alpha">
142
+ <li class="letter">N</li>
143
+ <ul>
144
+
145
+ <li>
146
+ <a href="NilClass.html" title="NilClass">NilClass</a>
147
+
148
+ </li>
149
+
150
+ <li>
151
+ <a href="Numeric.html" title="Numeric">Numeric</a>
152
+
153
+ </li>
154
+
155
+ </ul>
156
+ </ul>
157
+
158
+
159
+ <ul id="alpha_O" class="alpha">
160
+ <li class="letter">O</li>
161
+ <ul>
162
+
163
+ <li>
164
+ <a href="Object.html" title="Object">Object</a>
165
+
166
+ </li>
167
+
168
+ </ul>
169
+ </ul>
170
+
171
+
172
+ <ul id="alpha_R" class="alpha">
173
+ <li class="letter">R</li>
174
+ <ul>
175
+
176
+ <li>
177
+ <a href="ActiveRecord/RecordInvalid.html" title="RecordInvalid">RecordInvalid</a>
178
+
179
+ <small>(ActiveRecord)</small>
180
+
181
+ </li>
182
+
183
+ </ul>
184
+ </ul>
185
+
186
+
187
+ </td><td valign='top' width="33%">
188
+
189
+
190
+ <ul id="alpha_S" class="alpha">
191
+ <li class="letter">S</li>
192
+ <ul>
193
+
194
+ <li>
195
+ <a href="WhyValidationsSuckIn96/SkippableValidation.html" title="SkippableValidation">SkippableValidation</a>
196
+
197
+ <small>(WhyValidationsSuckIn96)</small>
198
+
199
+ </li>
200
+
201
+ <li>
202
+ <a href="String.html" title="String">String</a>
203
+
204
+ </li>
205
+
206
+ </ul>
207
+ </ul>
208
+
209
+
210
+ <ul id="alpha_T" class="alpha">
211
+ <li class="letter">T</li>
212
+ <ul>
213
+
214
+ <li>
215
+ <a href="TrueClass.html" title="TrueClass">TrueClass</a>
216
+
217
+ </li>
218
+
219
+ </ul>
220
+ </ul>
221
+
222
+
223
+ <ul id="alpha_V" class="alpha">
224
+ <li class="letter">V</li>
225
+ <ul>
226
+
227
+ <li>
228
+ <a href="WhyValidationsSuckIn96/ValidatesAcceptance.html" title="ValidatesAcceptance">ValidatesAcceptance</a>
229
+
230
+ <small>(WhyValidationsSuckIn96)</small>
231
+
232
+ </li>
233
+
234
+ <li>
235
+ <a href="WhyValidationsSuckIn96/ValidatesAssociated.html" title="ValidatesAssociated">ValidatesAssociated</a>
236
+
237
+ <small>(WhyValidationsSuckIn96)</small>
238
+
239
+ </li>
240
+
241
+ <li>
242
+ <a href="WhyValidationsSuckIn96/ValidatesConfirmation.html" title="ValidatesConfirmation">ValidatesConfirmation</a>
243
+
244
+ <small>(WhyValidationsSuckIn96)</small>
245
+
246
+ </li>
247
+
248
+ <li>
249
+ <a href="WhyValidationsSuckIn96/ValidatesExclusion.html" title="ValidatesExclusion">ValidatesExclusion</a>
250
+
251
+ <small>(WhyValidationsSuckIn96)</small>
252
+
253
+ </li>
254
+
255
+ <li>
256
+ <a href="WhyValidationsSuckIn96/ValidatesFormat.html" title="ValidatesFormat">ValidatesFormat</a>
257
+
258
+ <small>(WhyValidationsSuckIn96)</small>
259
+
260
+ </li>
261
+
262
+ <li>
263
+ <a href="WhyValidationsSuckIn96/ValidatesInclusion.html" title="ValidatesInclusion">ValidatesInclusion</a>
264
+
265
+ <small>(WhyValidationsSuckIn96)</small>
266
+
267
+ </li>
268
+
269
+ <li>
270
+ <a href="WhyValidationsSuckIn96/ValidatesLength.html" title="ValidatesLength">ValidatesLength</a>
271
+
272
+ <small>(WhyValidationsSuckIn96)</small>
273
+
274
+ </li>
275
+
276
+ <li>
277
+ <a href="WhyValidationsSuckIn96/ValidatesNumericality.html" title="ValidatesNumericality">ValidatesNumericality</a>
278
+
279
+ <small>(WhyValidationsSuckIn96)</small>
280
+
281
+ </li>
282
+
283
+ <li>
284
+ <a href="WhyValidationsSuckIn96/ValidatesPresence.html" title="ValidatesPresence">ValidatesPresence</a>
285
+
286
+ <small>(WhyValidationsSuckIn96)</small>
287
+
288
+ </li>
289
+
290
+ <li>
291
+ <a href="WhyValidationsSuckIn96/ValidatesUniqueness.html" title="ValidatesUniqueness">ValidatesUniqueness</a>
292
+
293
+ <small>(WhyValidationsSuckIn96)</small>
294
+
295
+ </li>
296
+
297
+ <li>
298
+ <a href="WhyValidationsSuckIn96/Validation.html" title="Validation">Validation</a>
299
+
300
+ <small>(WhyValidationsSuckIn96)</small>
301
+
302
+ </li>
303
+
304
+ <li>
305
+ <a href="WhyValidationsSuckIn96/ValidationBuilder.html" title="ValidationBuilder">ValidationBuilder</a>
306
+
307
+ <small>(WhyValidationsSuckIn96)</small>
308
+
309
+ </li>
310
+
311
+ <li>
312
+ <a href="WhyValidationsSuckIn96/ValidationSupport.html" title="ValidationSupport">ValidationSupport</a>
313
+
314
+ <small>(WhyValidationsSuckIn96)</small>
315
+
316
+ </li>
317
+
318
+ </ul>
319
+ </ul>
320
+
321
+
322
+ <ul id="alpha_W" class="alpha">
323
+ <li class="letter">W</li>
324
+ <ul>
325
+
326
+ <li>
327
+ <a href="WhyValidationsSuckIn96.html" title="WhyValidationsSuckIn96">WhyValidationsSuckIn96</a>
328
+
329
+ </li>
330
+
331
+ </ul>
332
+ </ul>
333
+
334
+ </td>
335
+ </tr>
336
+ </table>
337
+ </div></div>
338
+
339
+ <div id="footer">
340
+ Generated on Sun Dec 20 19:49:45 2009 by
341
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
342
+ 0.5.2 (ruby-1.8.7).
343
+ </div>
344
+
345
+ </body>
346
+ </html>