weak_parameters 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca7076308dce976d81cd580461945b2a303c95f8
|
4
|
+
data.tar.gz: 998f9b6adc9057895bb3ae0fd7a41ba738d402e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 482ee541c93541de8d589cc0d633e05471a5bf5df86a55384819bf3c91a7e015c5301f38e2efa933d2ef1a0c55ef17f32c6458b3ed059960d0b639280a2fd330
|
7
|
+
data.tar.gz: 2d8e90e7a4d1905a2239720afcac27997b8d1e12aa4ba737b8e009c2857683ef902f3d7edf4364c7b7348e01d9fc625fab757571c3ad7e4f2cb8c5c1c2215c1a
|
@@ -15,14 +15,10 @@ module WeakParameters
|
|
15
15
|
@validators ||= []
|
16
16
|
end
|
17
17
|
|
18
|
-
def type
|
19
|
-
self.class.name.split("::").last.sub(/Validator$/, "").underscore.to_sym
|
20
|
-
end
|
21
|
-
|
22
18
|
private
|
23
19
|
|
24
20
|
def string(key, options = {})
|
25
|
-
validators << WeakParameters::
|
21
|
+
validators << WeakParameters::StringValidator.new(params, key, options)
|
26
22
|
end
|
27
23
|
|
28
24
|
def integer(key, options = {})
|