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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8074d0e37fcf858cacc2b832d8a857ce3b6140d1
4
- data.tar.gz: 49c24aecc8571c4af6261783925220c99f570c8b
3
+ metadata.gz: 335cd07927a66b2234c6d46e3679c36cce4ea8d9
4
+ data.tar.gz: bbf40277daa6034e9a6fa475f6eb87720c639aa1
5
5
  SHA512:
6
- metadata.gz: 2bf3ae31cb9a375dc3758f202fc0c273f556dd0f7d6cda69c318b21474551d969ff10ff37f706a7b27d18381b10cca6e60e48f6608f6c86700b863f21ee2703a
7
- data.tar.gz: 76f3c39e9b8aec2ece8dd7355cd1e1521cd76c685c301afe30195ad9407387b399f274971a1c6012df17638ee0148252dc2ba674bd216b9297f278e6dbc537d4
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, _attribute, value)
9
- value_is_included?(record, :business_type, value, valid_options)
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, :email, value)
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, :grid_reference, value)
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, _attribute, value)
9
- value_is_included?(record, :location, value, valid_options)
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, :phone_number, value)
15
- return false unless value_is_not_too_long?(record, :phone_number, value, MAX_LENGTH)
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, _attribute, value)
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, :position, value)
14
+ return false unless value_has_no_invalid_characters?(record, attribute, value)
15
15
 
16
- value_is_not_too_long?(record, :position, value, MAX_LENGTH)
17
- value_has_no_invalid_characters?(record, :position, value)
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, :token, value)
9
+ return false unless value_is_present?(record, attribute, value)
10
10
 
11
11
  valid_format?(record, attribute, value)
12
12
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module DefraRuby
4
4
  module Validators
5
- VERSION = "2.1.0"
5
+ VERSION = "2.1.1"
6
6
  end
7
7
  end
data/spec/examples.txt CHANGED
@@ -1,153 +1,81 @@
1
- example_id | status | run_time |
2
- ------------------------------------------------------------------------------------ | ------ | --------------- |
3
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:1:1] | passed | 0.00014 seconds |
4
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:1] | passed | 0.00119 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.00022 seconds |
7
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00173 seconds |
8
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00021 seconds |
9
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00805 seconds |
10
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00842 seconds |
11
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00031 seconds |
12
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00019 seconds |
13
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00024 seconds |
14
- ./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00088 seconds |
15
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:1:1] | passed | 0.00012 seconds |
16
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:1] | passed | 0.00048 seconds |
17
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:2] | passed | 0.00046 seconds |
18
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:1] | passed | 0.00053 seconds |
19
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:2] | passed | 0.00053 seconds |
20
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:1] | passed | 0.00051 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.00052 seconds |
23
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:2] | passed | 0.00054 seconds |
24
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.0003 seconds |
25
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00034 seconds |
26
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:3] | passed | 0.00021 seconds |
27
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:4:1] | passed | 0.00088 seconds |
28
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:1] | passed | 0.00025 seconds |
29
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:2] | passed | 0.00021 seconds |
30
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:3] | passed | 0.00034 seconds |
31
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:4:1] | passed | 0.00075 seconds |
32
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:1] | passed | 0.00062 seconds |
33
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:2] | passed | 0.00051 seconds |
34
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:3] | passed | 0.00048 seconds |
35
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:4:1] | passed | 0.00092 seconds |
36
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:1] | passed | 0.00093 seconds |
37
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:2] | passed | 0.00139 seconds |
38
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:3] | passed | 0.00094 seconds |
39
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:4:1] | passed | 0.00161 seconds |
40
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:1] | passed | 0.00069 seconds |
41
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:2] | passed | 0.0006 seconds |
42
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:3] | passed | 0.00056 seconds |
43
- ./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:4:1] | passed | 0.00103 seconds |
44
- ./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:1:1] | passed | 0.27625 seconds |
45
- ./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:2:1] | passed | 0.08751 seconds |
46
- ./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:3:1] | passed | 0.09162 seconds |
47
- ./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.01706 seconds |
48
- ./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.01432 seconds |
49
- ./spec/defra_ruby/validators/configuration_spec.rb[1:1:1] | passed | 0.00304 seconds |
50
- ./spec/defra_ruby/validators/configuration_spec.rb[1:2] | passed | 0.00014 seconds |
51
- ./spec/defra_ruby/validators/configuration_spec.rb[1:3:1:1] | passed | 0.00018 seconds |
52
- ./spec/defra_ruby/validators/configuration_spec.rb[1:3:2:1] | passed | 0.00019 seconds |
53
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:1:1] | passed | 0.00012 seconds |
54
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:2:1] | passed | 0.00012 seconds |
55
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00032 seconds |
56
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00031 seconds |
57
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00019 seconds |
58
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.0002 seconds |
59
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00019 seconds |
60
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00086 seconds |
61
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00044 seconds |
62
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:2] | passed | 0.0003 seconds |
63
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00029 seconds |
64
- ./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00084 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.00011 seconds |
67
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:1] | passed | 0.0007 seconds |
68
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00023 seconds |
69
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00025 seconds |
70
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00017 seconds |
71
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00063 seconds |
72
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00158 seconds |
73
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00021 seconds |
74
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00023 seconds |
75
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00023 seconds |
76
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00123 seconds |
77
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:1] | passed | 0.00029 seconds |
78
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:2] | passed | 0.00036 seconds |
79
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:3] | passed | 0.00063 seconds |
80
- ./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:4:1] | passed | 0.00756 seconds |
81
- ./spec/defra_ruby/validators/location_validator_spec.rb[1:1:1] | passed | 0.00011 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.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.0
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-21 00:00:00.000000000 Z
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/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
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/validators_spec.rb
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/spec_helper.rb
338
- - spec/support/defra_ruby_validators.rb
339
- - spec/support/helpers/text_generator.rb
340
- - spec/support/helpers/translator.rb
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/shared_examples/validators/characters_validator.rb
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/selection_validator.rb
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