whyvalidationssuckin96 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +6 -2
- data/VERSION +1 -1
- data/doc/ActiveRecord/RecordInvalid.html +12 -12
- data/doc/ActiveRecord.html +3 -3
- data/doc/FalseClass.html +2 -2
- data/doc/NilClass.html +2 -2
- data/doc/Numeric.html +2 -2
- data/doc/Object.html +2 -2
- data/doc/String.html +2 -2
- data/doc/TrueClass.html +2 -2
- data/doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation/ClassMethods.html +221 -0
- data/doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation.html +166 -0
- data/doc/WhyValidationsSuckIn96/ActiveRecord/ClassMethods.html +166 -0
- data/doc/WhyValidationsSuckIn96/ActiveRecord/InstanceMethods.html +9 -9
- data/doc/WhyValidationsSuckIn96/ActiveRecord.html +90 -7
- data/doc/WhyValidationsSuckIn96/AttributeBasedValidation.html +2 -2
- data/doc/WhyValidationsSuckIn96/SkippableValidation.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesAcceptance.html +4 -4
- data/doc/WhyValidationsSuckIn96/ValidatesAssociated.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesConfirmation.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesExclusion.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesFormat.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesInclusion.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesLength.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesNumericality.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesPresence.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesUniqueness.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidatesUrl.html +2 -2
- data/doc/WhyValidationsSuckIn96/Validation.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidationBuilder.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidationSupport/ClassMethods.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidationSupport/InstanceMethods.html +2 -2
- data/doc/WhyValidationsSuckIn96/ValidationSupport.html +2 -2
- data/doc/WhyValidationsSuckIn96.html +3 -3
- data/doc/_index.html +30 -9
- data/doc/class_list.html +59 -29
- data/doc/file.README.html +9 -5
- data/doc/index.html +9 -5
- data/doc/method_list.html +104 -54
- data/doc/top-level-namespace.html +2 -2
- data/lib/whyvalidationssuckin96/macros/validates_length.rb +1 -0
- data/test/macros/validates_length_test.rb +5 -0
- data/whyvalidationssuckin96.gemspec +5 -2
- metadata +5 -2
@@ -72,9 +72,9 @@
|
|
72
72
|
</div>
|
73
73
|
|
74
74
|
<div id="footer">
|
75
|
-
Generated on Mon Dec 21
|
75
|
+
Generated on Mon Dec 21 23:30:38 2009 by
|
76
76
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
77
|
-
0.5.
|
77
|
+
0.5.2 (ruby-1.8.7).
|
78
78
|
</div>
|
79
79
|
|
80
80
|
</body>
|
@@ -14,6 +14,11 @@ context "validates length" do
|
|
14
14
|
WhyValidationsSuckIn96::ValidatesLength.new(Object.new, :attribute => :text, :is => 3).message
|
15
15
|
end.equals("does not meet the given length restrictions")
|
16
16
|
|
17
|
+
should "not blow up with a nil attribute" do
|
18
|
+
validation = WhyValidationsSuckIn96::ValidatesLength.new(OpenStruct.new(:text => nil), :attribute => :text, :is => 3)
|
19
|
+
validation.validates?
|
20
|
+
end.equals(false)
|
21
|
+
|
17
22
|
context "when specifying the :is option" do
|
18
23
|
should "not raise if solely :is is given" do
|
19
24
|
WhyValidationsSuckIn96::ValidatesLength.new(Object.new, :attribute => :text, :is => 3)
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{whyvalidationssuckin96}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["gabrielg", "douglasmeyer"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-22}
|
13
13
|
s.description = %q{A library for setting up model validations, such as in ActiveRecord.}
|
14
14
|
s.email = %q{gabriel.gironda@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -33,6 +33,9 @@ Gem::Specification.new do |s|
|
|
33
33
|
"doc/TrueClass.html",
|
34
34
|
"doc/WhyValidationsSuckIn96.html",
|
35
35
|
"doc/WhyValidationsSuckIn96/ActiveRecord.html",
|
36
|
+
"doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation.html",
|
37
|
+
"doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation/ClassMethods.html",
|
38
|
+
"doc/WhyValidationsSuckIn96/ActiveRecord/ClassMethods.html",
|
36
39
|
"doc/WhyValidationsSuckIn96/ActiveRecord/InstanceMethods.html",
|
37
40
|
"doc/WhyValidationsSuckIn96/AttributeBasedValidation.html",
|
38
41
|
"doc/WhyValidationsSuckIn96/SkippableValidation.html",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whyvalidationssuckin96
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gabrielg
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-12-
|
13
|
+
date: 2009-12-22 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -69,6 +69,9 @@ files:
|
|
69
69
|
- doc/TrueClass.html
|
70
70
|
- doc/WhyValidationsSuckIn96.html
|
71
71
|
- doc/WhyValidationsSuckIn96/ActiveRecord.html
|
72
|
+
- doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation.html
|
73
|
+
- doc/WhyValidationsSuckIn96/ActiveRecord/AssociationValidation/ClassMethods.html
|
74
|
+
- doc/WhyValidationsSuckIn96/ActiveRecord/ClassMethods.html
|
72
75
|
- doc/WhyValidationsSuckIn96/ActiveRecord/InstanceMethods.html
|
73
76
|
- doc/WhyValidationsSuckIn96/AttributeBasedValidation.html
|
74
77
|
- doc/WhyValidationsSuckIn96/SkippableValidation.html
|