defra_ruby_validators 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/defra_ruby/validators/business_type_validator.rb +2 -2
- data/lib/defra_ruby/validators/email_validator.rb +1 -1
- data/lib/defra_ruby/validators/grid_reference_validator.rb +1 -1
- data/lib/defra_ruby/validators/location_validator.rb +2 -2
- data/lib/defra_ruby/validators/phone_number_validator.rb +2 -2
- data/lib/defra_ruby/validators/position_validator.rb +4 -4
- data/lib/defra_ruby/validators/token_validator.rb +1 -1
- data/lib/defra_ruby/validators/version.rb +1 -1
- data/spec/examples.txt +81 -153
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335cd07927a66b2234c6d46e3679c36cce4ea8d9
|
4
|
+
data.tar.gz: bbf40277daa6034e9a6fa475f6eb87720c639aa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bcf3e27a98c5cf07824a7d2b65b882163fb793aa7db0f9b065c5e30a32688ca5c9342dda9a2ad2ce3bea9871953c9434ba32353c22dd12958ed280ccc4bf45a
|
7
|
+
data.tar.gz: e8aff732a95ac9952b6f4360e1f0014d1203ff1dd0581b87c0d18427fd0910df986d48718ef4f311bdbf83cbf32347c7a69485aef6dea413b678b281ab54077e
|
@@ -5,8 +5,8 @@ module DefraRuby
|
|
5
5
|
class BusinessTypeValidator < BaseValidator
|
6
6
|
include CanValidateSelection
|
7
7
|
|
8
|
-
def validate_each(record,
|
9
|
-
value_is_included?(record,
|
8
|
+
def validate_each(record, attribute, value)
|
9
|
+
value_is_included?(record, attribute, value, valid_options)
|
10
10
|
end
|
11
11
|
|
12
12
|
private
|
@@ -8,7 +8,7 @@ module DefraRuby
|
|
8
8
|
include CanValidatePresence
|
9
9
|
|
10
10
|
def validate_each(record, attribute, value)
|
11
|
-
return false unless value_is_present?(record,
|
11
|
+
return false unless value_is_present?(record, attribute, value)
|
12
12
|
|
13
13
|
valid_format?(record, attribute, value)
|
14
14
|
end
|
@@ -8,7 +8,7 @@ module DefraRuby
|
|
8
8
|
include CanValidatePresence
|
9
9
|
|
10
10
|
def validate_each(record, attribute, value)
|
11
|
-
return false unless value_is_present?(record,
|
11
|
+
return false unless value_is_present?(record, attribute, value)
|
12
12
|
return false unless valid_format?(record, attribute, value)
|
13
13
|
|
14
14
|
valid_coordinate?(record, attribute, value)
|
@@ -5,8 +5,8 @@ module DefraRuby
|
|
5
5
|
class LocationValidator < BaseValidator
|
6
6
|
include CanValidateSelection
|
7
7
|
|
8
|
-
def validate_each(record,
|
9
|
-
value_is_included?(record,
|
8
|
+
def validate_each(record, attribute, value)
|
9
|
+
value_is_included?(record, attribute, value, valid_options)
|
10
10
|
end
|
11
11
|
|
12
12
|
private
|
@@ -11,8 +11,8 @@ module DefraRuby
|
|
11
11
|
MAX_LENGTH = 15
|
12
12
|
|
13
13
|
def validate_each(record, attribute, value)
|
14
|
-
return false unless value_is_present?(record,
|
15
|
-
return false unless value_is_not_too_long?(record,
|
14
|
+
return false unless value_is_present?(record, attribute, value)
|
15
|
+
return false unless value_is_not_too_long?(record, attribute, value, MAX_LENGTH)
|
16
16
|
|
17
17
|
valid_format?(record, attribute, value)
|
18
18
|
end
|
@@ -8,13 +8,13 @@ module DefraRuby
|
|
8
8
|
|
9
9
|
MAX_LENGTH = 70
|
10
10
|
|
11
|
-
def validate_each(record,
|
11
|
+
def validate_each(record, attribute, value)
|
12
12
|
# Position is an optional field so its immediately valid if it's blank
|
13
13
|
return true if value.blank?
|
14
|
-
return false unless value_has_no_invalid_characters?(record,
|
14
|
+
return false unless value_has_no_invalid_characters?(record, attribute, value)
|
15
15
|
|
16
|
-
value_is_not_too_long?(record,
|
17
|
-
value_has_no_invalid_characters?(record,
|
16
|
+
value_is_not_too_long?(record, attribute, value, MAX_LENGTH)
|
17
|
+
value_has_no_invalid_characters?(record, attribute, value)
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
@@ -6,7 +6,7 @@ module DefraRuby
|
|
6
6
|
include CanValidatePresence
|
7
7
|
|
8
8
|
def validate_each(record, attribute, value)
|
9
|
-
return false unless value_is_present?(record,
|
9
|
+
return false unless value_is_present?(record, attribute, value)
|
10
10
|
|
11
11
|
valid_format?(record, attribute, value)
|
12
12
|
end
|
data/spec/examples.txt
CHANGED
@@ -1,153 +1,81 @@
|
|
1
|
-
example_id
|
2
|
-
|
3
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:1:1]
|
4
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:1]
|
5
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:1]
|
6
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:2]
|
7
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:1]
|
8
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:2]
|
9
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:3]
|
10
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:
|
11
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:
|
12
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:
|
13
|
-
./spec/defra_ruby/validators/
|
14
|
-
./spec/defra_ruby/validators/
|
15
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:1:1]
|
16
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
17
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
18
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
19
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
20
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
21
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
22
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
23
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:
|
24
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:
|
25
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1
|
26
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
27
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
28
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
29
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
30
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
31
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
32
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
33
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:
|
34
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:
|
35
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:
|
36
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:
|
37
|
-
./spec/defra_ruby/validators/
|
38
|
-
./spec/defra_ruby/validators/
|
39
|
-
./spec/defra_ruby/validators/
|
40
|
-
./spec/defra_ruby/validators/
|
41
|
-
./spec/defra_ruby/validators/
|
42
|
-
./spec/defra_ruby/validators/
|
43
|
-
./spec/defra_ruby/validators/
|
44
|
-
./spec/defra_ruby/validators/
|
45
|
-
./spec/defra_ruby/validators/
|
46
|
-
./spec/defra_ruby/validators/
|
47
|
-
./spec/defra_ruby/validators/
|
48
|
-
./spec/defra_ruby/validators/
|
49
|
-
./spec/defra_ruby/validators/
|
50
|
-
./spec/defra_ruby/validators/
|
51
|
-
./spec/defra_ruby/validators/
|
52
|
-
./spec/defra_ruby/validators/
|
53
|
-
./spec/defra_ruby/validators/
|
54
|
-
./spec/defra_ruby/validators/
|
55
|
-
./spec/defra_ruby/validators/
|
56
|
-
./spec/defra_ruby/validators/
|
57
|
-
./spec/defra_ruby/validators/
|
58
|
-
./spec/defra_ruby/validators/
|
59
|
-
./spec/defra_ruby/validators/
|
60
|
-
./spec/defra_ruby/validators/
|
61
|
-
./spec/defra_ruby/validators/
|
62
|
-
./spec/defra_ruby/validators/
|
63
|
-
./spec/defra_ruby/validators/
|
64
|
-
./spec/defra_ruby/validators/
|
65
|
-
./spec/defra_ruby/validators/
|
66
|
-
./spec/defra_ruby/validators/
|
67
|
-
./spec/defra_ruby/validators/
|
68
|
-
./spec/defra_ruby/validators/
|
69
|
-
./spec/defra_ruby/validators/
|
70
|
-
./spec/defra_ruby/validators/
|
71
|
-
./spec/defra_ruby/validators/
|
72
|
-
./spec/defra_ruby/validators/
|
73
|
-
./spec/defra_ruby/validators/
|
74
|
-
./spec/defra_ruby/validators/
|
75
|
-
./spec/defra_ruby/validators/
|
76
|
-
./spec/defra_ruby/validators/
|
77
|
-
./spec/defra_ruby/validators/
|
78
|
-
./spec/defra_ruby/validators/
|
79
|
-
./spec/defra_ruby/validators/
|
80
|
-
./spec/defra_ruby/validators/
|
81
|
-
./spec/defra_ruby/
|
82
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:1] | passed | 0.00011 seconds |
|
83
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00017 seconds |
|
84
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00016 seconds |
|
85
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
86
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00019 seconds |
|
87
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00018 seconds |
|
88
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00069 seconds |
|
89
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.0002 seconds |
|
90
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00028 seconds |
|
91
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00019 seconds |
|
92
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00077 seconds |
|
93
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:1:1] | passed | 0.0001 seconds |
|
94
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:1] | passed | 0.0007 seconds |
|
95
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.03767 seconds |
|
96
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00199 seconds |
|
97
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00069 seconds |
|
98
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00028 seconds |
|
99
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00027 seconds |
|
100
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00198 seconds |
|
101
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:1] | passed | 0.00013 seconds |
|
102
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00167 seconds |
|
103
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00175 seconds |
|
104
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00023 seconds |
|
105
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00022 seconds |
|
106
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00018 seconds |
|
107
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00071 seconds |
|
108
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:1] | passed | 0.0002 seconds |
|
109
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:2] | passed | 0.0002 seconds |
|
110
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:3] | passed | 0.0002 seconds |
|
111
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:4:1] | passed | 0.00067 seconds |
|
112
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:1:1] | passed | 0.0001 seconds |
|
113
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
114
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:1] | passed | 0.0002 seconds |
|
115
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00014 seconds |
|
116
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00024 seconds |
|
117
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00026 seconds |
|
118
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00018 seconds |
|
119
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00092 seconds |
|
120
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:1] | passed | 0.00012 seconds |
|
121
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00013 seconds |
|
122
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00016 seconds |
|
123
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00018 seconds |
|
124
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00021 seconds |
|
125
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.0002 seconds |
|
126
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00063 seconds |
|
127
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00018 seconds |
|
128
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00019 seconds |
|
129
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:1:1] | passed | 0.0001 seconds |
|
130
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:1] | passed | 0.00014 seconds |
|
131
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00017 seconds |
|
132
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00014 seconds |
|
133
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
134
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00018 seconds |
|
135
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00021 seconds |
|
136
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00069 seconds |
|
137
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:1] | passed | 0.0002 seconds |
|
138
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00038 seconds |
|
139
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00028 seconds |
|
140
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00071 seconds |
|
141
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:1:1] | passed | 0.00011 seconds |
|
142
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
143
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00015 seconds |
|
144
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00017 seconds |
|
145
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
146
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00024 seconds |
|
147
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00018 seconds |
|
148
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00098 seconds |
|
149
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00018 seconds |
|
150
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00017 seconds |
|
151
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00022 seconds |
|
152
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00063 seconds |
|
153
|
-
./spec/defra_ruby/validators_spec.rb[1:1:1] | passed | 0.00247 seconds |
|
1
|
+
example_id | status | run_time |
|
2
|
+
---------------------------------------------------------------------------------- | ------ | --------------- |
|
3
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:1:1] | passed | 0.00145 seconds |
|
4
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:1] | passed | 0.00011 seconds |
|
5
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00017 seconds |
|
6
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00445 seconds |
|
7
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
8
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00016 seconds |
|
9
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00059 seconds |
|
10
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00016 seconds |
|
11
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.0002 seconds |
|
12
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00018 seconds |
|
13
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:1:1] | passed | 0.00009 seconds |
|
14
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:1] | passed | 0.00043 seconds |
|
15
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:2] | passed | 0.00044 seconds |
|
16
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:1] | passed | 0.00043 seconds |
|
17
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:2] | passed | 0.00041 seconds |
|
18
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:1] | passed | 0.00045 seconds |
|
19
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:2] | passed | 0.00646 seconds |
|
20
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:1] | passed | 0.00042 seconds |
|
21
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:2] | passed | 0.00038 seconds |
|
22
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00015 seconds |
|
23
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00016 seconds |
|
24
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:3] | passed | 0.00017 seconds |
|
25
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:1] | passed | 0.00017 seconds |
|
26
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:2] | passed | 0.00015 seconds |
|
27
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:3] | passed | 0.0002 seconds |
|
28
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:1] | passed | 0.00046 seconds |
|
29
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:2] | passed | 0.00042 seconds |
|
30
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:3] | passed | 0.00043 seconds |
|
31
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:1] | passed | 0.00046 seconds |
|
32
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:2] | passed | 0.00046 seconds |
|
33
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:3] | passed | 0.00044 seconds |
|
34
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:1] | passed | 0.00045 seconds |
|
35
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:2] | passed | 0.00042 seconds |
|
36
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:3] | passed | 0.00046 seconds |
|
37
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:1:1] | passed | 0.10949 seconds |
|
38
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:2:1] | passed | 0.22067 seconds |
|
39
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:3:1] | passed | 0.11422 seconds |
|
40
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.01368 seconds |
|
41
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.01557 seconds |
|
42
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:1:1] | passed | 0.0014 seconds |
|
43
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:2] | passed | 0.00045 seconds |
|
44
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:3:1:1] | passed | 0.00113 seconds |
|
45
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:3:2:1] | passed | 0.00015 seconds |
|
46
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:1:1] | passed | 0.0001 seconds |
|
47
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
48
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00014 seconds |
|
49
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00013 seconds |
|
50
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
51
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00019 seconds |
|
52
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00023 seconds |
|
53
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:1] | passed | 0.00013 seconds |
|
54
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00017 seconds |
|
55
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00015 seconds |
|
56
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00021 seconds |
|
57
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00019 seconds |
|
58
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.0003 seconds |
|
59
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00014 seconds |
|
60
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00018 seconds |
|
61
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:1:1] | passed | 0.00009 seconds |
|
62
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:1] | passed | 0.00012 seconds |
|
63
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:1] | passed | 0.0002 seconds |
|
64
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00012 seconds |
|
65
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
66
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00014 seconds |
|
67
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00017 seconds |
|
68
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00018 seconds |
|
69
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00016 seconds |
|
70
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00015 seconds |
|
71
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:1:1] | passed | 0.0001 seconds |
|
72
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
73
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00014 seconds |
|
74
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00015 seconds |
|
75
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00017 seconds |
|
76
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00016 seconds |
|
77
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00024 seconds |
|
78
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00019 seconds |
|
79
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00018 seconds |
|
80
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00019 seconds |
|
81
|
+
./spec/defra_ruby/validators_spec.rb[1:1:1] | passed | 0.001 seconds |
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defra_ruby_validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -318,34 +318,34 @@ signing_key:
|
|
318
318
|
specification_version: 4
|
319
319
|
summary: Defra ruby on rails validations
|
320
320
|
test_files:
|
321
|
-
- spec/
|
322
|
-
- spec/
|
323
|
-
- spec/cassettes/company_no_valid.yml
|
324
|
-
- spec/defra_ruby/validators/business_type_validator_spec.rb
|
325
|
-
- spec/defra_ruby/validators/companies_house_number_validator_spec.rb
|
321
|
+
- spec/spec_helper.rb
|
322
|
+
- spec/defra_ruby/validators_spec.rb
|
326
323
|
- spec/defra_ruby/validators/companies_house_service_spec.rb
|
327
324
|
- spec/defra_ruby/validators/configuration_spec.rb
|
328
|
-
- spec/defra_ruby/validators/email_validator_spec.rb
|
329
|
-
- spec/defra_ruby/validators/grid_reference_validator_spec.rb
|
330
|
-
- spec/defra_ruby/validators/location_validator_spec.rb
|
331
325
|
- spec/defra_ruby/validators/phone_number_validator_spec.rb
|
332
326
|
- spec/defra_ruby/validators/position_validator_spec.rb
|
327
|
+
- spec/defra_ruby/validators/grid_reference_validator_spec.rb
|
328
|
+
- spec/defra_ruby/validators/business_type_validator_spec.rb
|
329
|
+
- spec/defra_ruby/validators/companies_house_number_validator_spec.rb
|
333
330
|
- spec/defra_ruby/validators/token_validator_spec.rb
|
334
331
|
- spec/defra_ruby/validators/true_false_validator_spec.rb
|
335
|
-
- spec/defra_ruby/
|
332
|
+
- spec/defra_ruby/validators/location_validator_spec.rb
|
333
|
+
- spec/defra_ruby/validators/email_validator_spec.rb
|
336
334
|
- spec/examples.txt
|
337
|
-
- spec/
|
338
|
-
- spec/
|
339
|
-
- spec/
|
340
|
-
- spec/support/
|
335
|
+
- spec/cassettes/company_no_not_found.yml
|
336
|
+
- spec/cassettes/company_no_valid.yml
|
337
|
+
- spec/cassettes/company_no_inactive.yml
|
338
|
+
- spec/support/simplecov.rb
|
341
339
|
- spec/support/i18n.rb
|
340
|
+
- spec/support/vcr.rb
|
342
341
|
- spec/support/pry.rb
|
343
|
-
- spec/support/
|
342
|
+
- spec/support/defra_ruby_validators.rb
|
343
|
+
- spec/support/helpers/translator.rb
|
344
|
+
- spec/support/helpers/text_generator.rb
|
345
|
+
- spec/support/shared_examples/validators/selection_validator.rb
|
344
346
|
- spec/support/shared_examples/validators/invalid_record.rb
|
345
|
-
- spec/support/shared_examples/validators/length_validator.rb
|
346
347
|
- spec/support/shared_examples/validators/presence_validator.rb
|
347
|
-
- spec/support/shared_examples/validators/
|
348
|
+
- spec/support/shared_examples/validators/characters_validator.rb
|
349
|
+
- spec/support/shared_examples/validators/length_validator.rb
|
348
350
|
- spec/support/shared_examples/validators/valid_record.rb
|
349
351
|
- spec/support/shared_examples/validators/validator.rb
|
350
|
-
- spec/support/simplecov.rb
|
351
|
-
- spec/support/vcr.rb
|