defra_ruby_validators 1.2.0 → 1.2.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/true_false_validator.rb +2 -2
- data/lib/defra_ruby/validators/version.rb +1 -1
- data/spec/examples.txt +153 -81
- 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: b1607394697eb8982eaa80e5c06f92070092e683
|
4
|
+
data.tar.gz: b009d70231ecf73dc50b836111930bd925b2f9bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b61b38bdbd8aee48f1f2296811002ee211db164fb9d2756622a6413d84f4f8aeb56ccdd4c5af3ccb12a21ef177d5fa7d3b8a253b0865e5c530fb601d0d3ceed
|
7
|
+
data.tar.gz: ecb29f5897c9d3772f0c44e6e90025948647f637c402cd81d5e2527c691b69e77ea77ede7dc17762d4b97bc653fbb460a1a059347cc5e8c1b8cb0fd465c3306a
|
@@ -5,10 +5,10 @@ module DefraRuby
|
|
5
5
|
class TrueFalseValidator < BaseValidator
|
6
6
|
include CanValidateSelection
|
7
7
|
|
8
|
-
def validate_each(record,
|
8
|
+
def validate_each(record, attribute, value)
|
9
9
|
valid_options = %w[true false]
|
10
10
|
|
11
|
-
value_is_included?(record,
|
11
|
+
value_is_included?(record, attribute, value, valid_options)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/spec/examples.txt
CHANGED
@@ -1,81 +1,153 @@
|
|
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:
|
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:
|
23
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:
|
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:
|
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:3:1:
|
35
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:
|
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/
|
1
|
+
example_id | status | run_time |
|
2
|
+
------------------------------------------------------------------------------------ | ------ | --------------- |
|
3
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:1:1] | passed | 0.0001 seconds |
|
4
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
5
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00026 seconds |
|
6
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:2] | passed | 0.0002 seconds |
|
7
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00026 seconds |
|
8
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00018 seconds |
|
9
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00028 seconds |
|
10
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00099 seconds |
|
11
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00023 seconds |
|
12
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00056 seconds |
|
13
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00027 seconds |
|
14
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00072 seconds |
|
15
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:1:1] | passed | 0.00011 seconds |
|
16
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:1] | passed | 0.00155 seconds |
|
17
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:2] | passed | 0.00066 seconds |
|
18
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:1] | passed | 0.00065 seconds |
|
19
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:2] | passed | 0.00055 seconds |
|
20
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:1] | passed | 0.0005 seconds |
|
21
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:2] | passed | 0.00063 seconds |
|
22
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:1] | passed | 0.00066 seconds |
|
23
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:2] | passed | 0.00062 seconds |
|
24
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00022 seconds |
|
25
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00013 seconds |
|
26
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:3] | passed | 0.00018 seconds |
|
27
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:4:1] | passed | 0.00054 seconds |
|
28
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:1] | passed | 0.00018 seconds |
|
29
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:2] | passed | 0.00014 seconds |
|
30
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:3] | passed | 0.00016 seconds |
|
31
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:4:1] | passed | 0.00104 seconds |
|
32
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:1] | passed | 0.00053 seconds |
|
33
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:2] | passed | 0.00054 seconds |
|
34
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:3] | passed | 0.00067 seconds |
|
35
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:4:1] | passed | 0.00083 seconds |
|
36
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:1] | passed | 0.00048 seconds |
|
37
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:2] | passed | 0.00047 seconds |
|
38
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:3] | passed | 0.00043 seconds |
|
39
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:4:1] | passed | 0.00073 seconds |
|
40
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:1] | passed | 0.00086 seconds |
|
41
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:2] | passed | 0.00048 seconds |
|
42
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:3] | passed | 0.001 seconds |
|
43
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:4:1] | passed | 0.00079 seconds |
|
44
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:1:1] | passed | 0.02746 seconds |
|
45
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:2:1] | passed | 0.0166 seconds |
|
46
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:3:1] | passed | 0.01613 seconds |
|
47
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.01377 seconds |
|
48
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.0128 seconds |
|
49
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:1:1] | passed | 0.00445 seconds |
|
50
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:2] | passed | 0.00013 seconds |
|
51
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:3:1:1] | passed | 0.00023 seconds |
|
52
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:3:2:1] | passed | 0.00037 seconds |
|
53
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:1:1] | passed | 0.00008 seconds |
|
54
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
55
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00018 seconds |
|
56
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00028 seconds |
|
57
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
58
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00013 seconds |
|
59
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00018 seconds |
|
60
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00103 seconds |
|
61
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00026 seconds |
|
62
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00037 seconds |
|
63
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00024 seconds |
|
64
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00068 seconds |
|
65
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:1:1] | passed | 0.00014 seconds |
|
66
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:1] | passed | 0.00024 seconds |
|
67
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00032 seconds |
|
68
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00309 seconds |
|
69
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00032 seconds |
|
70
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00016 seconds |
|
71
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00021 seconds |
|
72
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00088 seconds |
|
73
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00026 seconds |
|
74
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00053 seconds |
|
75
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00028 seconds |
|
76
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.0011 seconds |
|
77
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:1] | passed | 0.0005 seconds |
|
78
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:2] | passed | 0.00048 seconds |
|
79
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:3] | passed | 0.00059 seconds |
|
80
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:4:1] | passed | 0.00457 seconds |
|
81
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:1:1] | passed | 0.00021 seconds |
|
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.00021 seconds |
|
84
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00013 seconds |
|
85
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00251 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.00027 seconds |
|
88
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00117 seconds |
|
89
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00028 seconds |
|
90
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00025 seconds |
|
91
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00032 seconds |
|
92
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.0011 seconds |
|
93
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:1:1] | passed | 0.00014 seconds |
|
94
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:1] | passed | 0.00017 seconds |
|
95
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00299 seconds |
|
96
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00085 seconds |
|
97
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.0004 seconds |
|
98
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00045 seconds |
|
99
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00024 seconds |
|
100
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00113 seconds |
|
101
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:1] | passed | 0.00011 seconds |
|
102
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:1] | passed | 0.01332 seconds |
|
103
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:2] | passed | 0.0004 seconds |
|
104
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00021 seconds |
|
105
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00025 seconds |
|
106
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00021 seconds |
|
107
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00076 seconds |
|
108
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00815 seconds |
|
109
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00024 seconds |
|
110
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:3] | passed | 0.00029 seconds |
|
111
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:4:1] | passed | 0.00077 seconds |
|
112
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:1:1] | passed | 0.00008 seconds |
|
113
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:1] | passed | 0.00008 seconds |
|
114
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:1] | passed | 0.0001 seconds |
|
115
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00021 seconds |
|
116
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00016 seconds |
|
117
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00025 seconds |
|
118
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00014 seconds |
|
119
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00055 seconds |
|
120
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:1] | passed | 0.00008 seconds |
|
121
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:1] | passed | 0.0001 seconds |
|
122
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00014 seconds |
|
123
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00021 seconds |
|
124
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.0002 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.00054 seconds |
|
127
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00036 seconds |
|
128
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00018 seconds |
|
129
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:1:1] | passed | 0.00018 seconds |
|
130
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:1] | passed | 0.00018 seconds |
|
131
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00023 seconds |
|
132
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00044 seconds |
|
133
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00025 seconds |
|
134
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00364 seconds |
|
135
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00031 seconds |
|
136
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00152 seconds |
|
137
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00024 seconds |
|
138
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00016 seconds |
|
139
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00024 seconds |
|
140
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00064 seconds |
|
141
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:1:1] | passed | 0.00141 seconds |
|
142
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:1] | passed | 0.00013 seconds |
|
143
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00011 seconds |
|
144
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00018 seconds |
|
145
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00031 seconds |
|
146
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00029 seconds |
|
147
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00022 seconds |
|
148
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00091 seconds |
|
149
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.03095 seconds |
|
150
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00026 seconds |
|
151
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00153 seconds |
|
152
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.01248 seconds |
|
153
|
+
./spec/defra_ruby/validators_spec.rb[1:1:1] | passed | 0.00432 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: 1.2.
|
4
|
+
version: 1.2.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-07 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/
|
321
|
+
- spec/cassettes/company_no_inactive.yml
|
322
|
+
- spec/cassettes/company_no_not_found.yml
|
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
|
323
326
|
- spec/defra_ruby/validators/companies_house_service_spec.rb
|
324
327
|
- 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
|
325
331
|
- spec/defra_ruby/validators/phone_number_validator_spec.rb
|
326
332
|
- 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
|
330
333
|
- spec/defra_ruby/validators/token_validator_spec.rb
|
331
334
|
- spec/defra_ruby/validators/true_false_validator_spec.rb
|
332
|
-
- spec/defra_ruby/
|
333
|
-
- spec/defra_ruby/validators/email_validator_spec.rb
|
335
|
+
- spec/defra_ruby/validators_spec.rb
|
334
336
|
- spec/examples.txt
|
335
|
-
- spec/
|
336
|
-
- spec/cassettes/company_no_valid.yml
|
337
|
-
- spec/cassettes/company_no_inactive.yml
|
338
|
-
- spec/support/simplecov.rb
|
339
|
-
- spec/support/i18n.rb
|
340
|
-
- spec/support/vcr.rb
|
341
|
-
- spec/support/pry.rb
|
337
|
+
- spec/spec_helper.rb
|
342
338
|
- spec/support/defra_ruby_validators.rb
|
343
|
-
- spec/support/helpers/translator.rb
|
344
339
|
- spec/support/helpers/text_generator.rb
|
345
|
-
- spec/support/
|
346
|
-
- spec/support/
|
347
|
-
- spec/support/
|
340
|
+
- spec/support/helpers/translator.rb
|
341
|
+
- spec/support/i18n.rb
|
342
|
+
- spec/support/pry.rb
|
348
343
|
- spec/support/shared_examples/validators/characters_validator.rb
|
344
|
+
- spec/support/shared_examples/validators/invalid_record.rb
|
349
345
|
- spec/support/shared_examples/validators/length_validator.rb
|
346
|
+
- spec/support/shared_examples/validators/presence_validator.rb
|
347
|
+
- spec/support/shared_examples/validators/selection_validator.rb
|
350
348
|
- spec/support/shared_examples/validators/valid_record.rb
|
351
349
|
- spec/support/shared_examples/validators/validator.rb
|
350
|
+
- spec/support/simplecov.rb
|
351
|
+
- spec/support/vcr.rb
|