defra_ruby_validators 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -1
- data/Rakefile +4 -2
- data/bin/console +3 -7
- data/config/locales/defra_ruby/validators/past_date_validator/en.yml +5 -0
- data/lib/defra_ruby/validators.rb +1 -0
- data/lib/defra_ruby/validators/past_date_validator.rb +17 -0
- data/lib/defra_ruby/validators/version.rb +1 -1
- data/spec/cassettes/company_no_inactive.yml +5 -5
- data/spec/cassettes/company_no_not_found.yml +6 -6
- data/spec/cassettes/company_no_valid.yml +8 -8
- data/spec/defra_ruby/validators/past_date_validator_spec.rb +28 -0
- data/spec/examples.txt +176 -81
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9ba4d07bb3d5c11c1ab241e4121d64004a0e8c2
|
4
|
+
data.tar.gz: 4b16fc9065a8d4072e55f4529d0ab04a9d905006
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91e943e088401c6c5345cc30c2a7710b65e09b01ae85cc97626a5f2959087ff1ee004cadaf137dd78a4c7a8d499b64e2c1972e2ae24a892c67cf68e95bdcc033
|
7
|
+
data.tar.gz: 94c9eb588a7916a290e66dd9f1a2d628ffecde5db21c7ee55fd84b857a78f55088ab02935307f85ca5fd9679855fc00673f24b714e4636286115d2afefb374c6
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# Defra Ruby Validators
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.com/DEFRA/defra-ruby-validators.svg?branch=master)](https://travis-ci.com/DEFRA/defra-ruby-validators)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/a0f8611f1a879786f642/maintainability)](https://codeclimate.com/github/DEFRA/defra-ruby-validators/maintainability)
|
@@ -117,6 +117,16 @@ If you want to include `overseas` in the accepted locations, you can enable this
|
|
117
117
|
validates :location, "defra_ruby/validators/location": { allow_overseas: true }
|
118
118
|
```
|
119
119
|
|
120
|
+
### Past date
|
121
|
+
|
122
|
+
This validator checks the value provided is present and not a date in the future (`<= Date.today`).
|
123
|
+
|
124
|
+
Add it to your model or form object using
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
validates :date_received, "defra_ruby/validators/past_date_validator": true
|
128
|
+
```
|
129
|
+
|
120
130
|
### Phone number
|
121
131
|
|
122
132
|
This validator checks the value is present, is not too long (15 is th maximum length for any phone number), and is in the correct format as per [E.164](https://en.wikipedia.org/wiki/E.164) (we use [phonelib](https://github.com/daddyz/phonelib) to check the format).
|
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ Bundler::GemHelper.install_tasks
|
|
11
11
|
# This is wrapped to prevent an error when rake is called in environments where
|
12
12
|
# rspec may not be available, e.g. production. As such we don't need to handle
|
13
13
|
# the error.
|
14
|
-
# rubocop:disable Lint/
|
14
|
+
# rubocop:disable Lint/SuppressedException
|
15
15
|
begin
|
16
16
|
require "rspec/core/rake_task"
|
17
17
|
|
@@ -26,8 +26,10 @@ begin
|
|
26
26
|
require "github_changelog_generator/task"
|
27
27
|
|
28
28
|
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
29
|
+
config.user = "defra"
|
30
|
+
config.project = "defra-ruby-validators"
|
29
31
|
end
|
30
32
|
rescue LoadError
|
31
33
|
# no changelog available
|
32
34
|
end
|
33
|
-
# rubocop:enable Lint/
|
35
|
+
# rubocop:enable Lint/SuppressedException
|
data/bin/console
CHANGED
@@ -1,14 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "bundler/setup"
|
4
|
-
require "
|
4
|
+
require "defra_ruby/validators"
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
9
|
+
require "pry"
|
10
|
+
Pry.start
|
@@ -21,6 +21,7 @@ require_relative "validators/phone_number_validator"
|
|
21
21
|
require_relative "validators/position_validator"
|
22
22
|
require_relative "validators/token_validator"
|
23
23
|
require_relative "validators/true_false_validator"
|
24
|
+
require_relative "validators/past_date_validator"
|
24
25
|
|
25
26
|
module DefraRuby
|
26
27
|
module Validators
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module DefraRuby
|
4
|
+
module Validators
|
5
|
+
class PastDateValidator < BaseValidator
|
6
|
+
def validate_each(record, attribute, value)
|
7
|
+
return false if value.blank?
|
8
|
+
|
9
|
+
return true if value.to_date <= Date.today
|
10
|
+
|
11
|
+
record.errors[attribute] << error_message(:past_date)
|
12
|
+
|
13
|
+
false
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- "*/*"
|
12
12
|
User-Agent:
|
13
|
-
- rest-client/2.1.0 (
|
13
|
+
- rest-client/2.1.0 (darwin19.0.0 x86_64) ruby/2.4.2p198
|
14
14
|
Accept-Encoding:
|
15
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
16
|
Host:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Tue, 18 Feb 2020 14:22:20 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
Content-Length:
|
@@ -49,9 +49,9 @@ http_interactions:
|
|
49
49
|
X-Ratelimit-Limit:
|
50
50
|
- '600'
|
51
51
|
X-Ratelimit-Remain:
|
52
|
-
- '
|
52
|
+
- '593'
|
53
53
|
X-Ratelimit-Reset:
|
54
|
-
- '
|
54
|
+
- '1582035975'
|
55
55
|
X-Ratelimit-Window:
|
56
56
|
- 5m
|
57
57
|
Server:
|
@@ -63,5 +63,5 @@ http_interactions:
|
|
63
63
|
Elizabeth House","address_line_2":"54-58 High Street"},"undeliverable_registered_office_address":false,"company_name":"DIRECT
|
64
64
|
SKIPS UK LTD","annual_return":{"last_made_up_to":"2014-06-11"},"jurisdiction":"england-wales","etag":"1cdef5bc2a020b3e9003b086033b64b78bcb28f6","company_status":"dissolved","has_insolvency_history":false,"has_charges":false,"links":{"self":"/company/07281919","filing_history":"/company/07281919/filing-history","officers":"/company/07281919/officers"},"date_of_cessation":"2016-01-05","can_file":false}'
|
65
65
|
http_version:
|
66
|
-
recorded_at:
|
66
|
+
recorded_at: Tue, 18 Feb 2020 14:22:20 GMT
|
67
67
|
recorded_with: VCR 4.0.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- "*/*"
|
12
12
|
User-Agent:
|
13
|
-
- rest-client/2.1.0 (
|
13
|
+
- rest-client/2.1.0 (darwin19.0.0 x86_64) ruby/2.4.2p198
|
14
14
|
Accept-Encoding:
|
15
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
16
|
Host:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: Not Found
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Tue, 18 Feb 2020 14:22:19 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
Content-Length:
|
@@ -49,16 +49,16 @@ http_interactions:
|
|
49
49
|
X-Ratelimit-Limit:
|
50
50
|
- '600'
|
51
51
|
X-Ratelimit-Remain:
|
52
|
-
- '
|
52
|
+
- '594'
|
53
53
|
X-Ratelimit-Reset:
|
54
|
-
- '
|
54
|
+
- '1582035975'
|
55
55
|
X-Ratelimit-Window:
|
56
56
|
- 5m
|
57
57
|
Server:
|
58
58
|
- CompaniesHouse
|
59
59
|
body:
|
60
60
|
encoding: UTF-8
|
61
|
-
string: '{"errors":[{"error":"company-profile-not-found"
|
61
|
+
string: '{"errors":[{"type":"ch:service","error":"company-profile-not-found"}]}'
|
62
62
|
http_version:
|
63
|
-
recorded_at:
|
63
|
+
recorded_at: Tue, 18 Feb 2020 14:22:19 GMT
|
64
64
|
recorded_with: VCR 4.0.0
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- "*/*"
|
12
12
|
User-Agent:
|
13
|
-
- rest-client/2.1.0 (
|
13
|
+
- rest-client/2.1.0 (darwin19.0.0 x86_64) ruby/2.4.2p198
|
14
14
|
Accept-Encoding:
|
15
15
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
16
|
Host:
|
@@ -23,11 +23,11 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Tue, 18 Feb 2020 14:22:19 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '1266'
|
31
31
|
Connection:
|
32
32
|
- keep-alive
|
33
33
|
Access-Control-Allow-Credentials:
|
@@ -49,17 +49,17 @@ http_interactions:
|
|
49
49
|
X-Ratelimit-Limit:
|
50
50
|
- '600'
|
51
51
|
X-Ratelimit-Remain:
|
52
|
-
- '
|
52
|
+
- '595'
|
53
53
|
X-Ratelimit-Reset:
|
54
|
-
- '
|
54
|
+
- '1582035975'
|
55
55
|
X-Ratelimit-Window:
|
56
56
|
- 5m
|
57
57
|
Server:
|
58
58
|
- CompaniesHouse
|
59
59
|
body:
|
60
60
|
encoding: UTF-8
|
61
|
-
string: '{"type":"ltd","company_name":"0800 WASTE LTD.","has_insolvency_history":false,"accounts":{"
|
62
|
-
9ND","
|
61
|
+
string: '{"type":"ltd","company_name":"0800 WASTE LTD.","has_insolvency_history":false,"accounts":{"next_made_up_to":"2019-12-31","next_due":"2020-09-30","last_accounts":{"made_up_to":"2018-12-31","period_start_on":"2018-01-01","period_end_on":"2018-12-31"},"next_accounts":{"due_on":"2020-09-30","period_start_on":"2019-01-01","period_end_on":"2019-12-31","overdue":false},"overdue":false,"accounting_reference_date":{"month":"12","day":"31"}},"undeliverable_registered_office_address":false,"etag":"73621f5f3d59c8eb519bcbaac46f850c92018216","company_number":"09360070","registered_office_address":{"postal_code":"SM3
|
62
|
+
9ND","locality":"Sutton","address_line_1":"21 Haslam Avenue","region":"Surrey"},"jurisdiction":"england-wales","date_of_creation":"2014-12-18","company_status":"active","has_charges":false,"sic_codes":["38110"],"last_full_members_list_date":"2015-12-18","confirmation_statement":{"next_due":"2021-02-03","next_made_up_to":"2021-01-20","overdue":false,"last_made_up_to":"2020-01-20"},"links":{"self":"/company/09360070","filing_history":"/company/09360070/filing-history","officers":"/company/09360070/officers","persons_with_significant_control":"/company/09360070/persons-with-significant-control"},"registered_office_is_in_dispute":false,"can_file":true}'
|
63
63
|
http_version:
|
64
|
-
recorded_at:
|
64
|
+
recorded_at: Tue, 18 Feb 2020 14:22:19 GMT
|
65
65
|
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
|
5
|
+
module Test
|
6
|
+
PastDateValidatable = Struct.new(:date) do
|
7
|
+
include ActiveModel::Validations
|
8
|
+
|
9
|
+
validates :date, "defra_ruby/validators/past_date": true
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module DefraRuby
|
14
|
+
module Validators
|
15
|
+
RSpec.describe PastDateValidator, type: :model do
|
16
|
+
|
17
|
+
valid_date = Date.today
|
18
|
+
invalid_date = Date.today + 1
|
19
|
+
|
20
|
+
it_behaves_like "a valid record", Test::PastDateValidatable.new(valid_date)
|
21
|
+
it_behaves_like "an invalid record",
|
22
|
+
validatable: Test::PastDateValidatable.new(invalid_date),
|
23
|
+
attribute: :date,
|
24
|
+
error: :past_date,
|
25
|
+
error_message: Helpers::Translator.error_message(PastDateValidator, :past_date)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/spec/examples.txt
CHANGED
@@ -1,81 +1,176 @@
|
|
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/
|
16
|
-
./spec/defra_ruby/validators/
|
17
|
-
./spec/defra_ruby/validators/
|
18
|
-
./spec/defra_ruby/validators/
|
19
|
-
./spec/defra_ruby/validators/
|
20
|
-
./spec/defra_ruby/validators/
|
21
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[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:
|
26
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:
|
27
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:
|
28
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:
|
29
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1: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:4:1
|
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/
|
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.00013 seconds |
|
5
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00013 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.00089 seconds |
|
8
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.0003 seconds |
|
9
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00026 seconds |
|
10
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.0015 seconds |
|
11
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00016 seconds |
|
12
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00016 seconds |
|
13
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00026 seconds |
|
14
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00108 seconds |
|
15
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:1:1:1] | passed | 0.00089 seconds |
|
16
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:1:1:2] | passed | 0.00077 seconds |
|
17
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:1] | passed | 0.00093 seconds |
|
18
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:2] | passed | 0.00074 seconds |
|
19
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:3] | passed | 0.00082 seconds |
|
20
|
+
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:4:1] | passed | 0.00089 seconds |
|
21
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:1:1] | passed | 0.00013 seconds |
|
22
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:1] | passed | 0.00038 seconds |
|
23
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:2] | passed | 0.00043 seconds |
|
24
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:1] | passed | 0.00079 seconds |
|
25
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:2] | passed | 0.00069 seconds |
|
26
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:1] | passed | 0.00041 seconds |
|
27
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:2] | passed | 0.00039 seconds |
|
28
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:1] | passed | 0.00047 seconds |
|
29
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:2] | passed | 0.00043 seconds |
|
30
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00015 seconds |
|
31
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00013 seconds |
|
32
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:3] | passed | 0.00023 seconds |
|
33
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:4:1] | passed | 0.00064 seconds |
|
34
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:1] | passed | 0.00021 seconds |
|
35
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:2] | passed | 0.00023 seconds |
|
36
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:3] | passed | 0.00033 seconds |
|
37
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:4:1] | passed | 0.00075 seconds |
|
38
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:1] | passed | 0.0005 seconds |
|
39
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:2] | passed | 0.00046 seconds |
|
40
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:3] | passed | 0.00048 seconds |
|
41
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:4:1] | passed | 0.00078 seconds |
|
42
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:1] | passed | 0.00054 seconds |
|
43
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:2] | passed | 0.0004 seconds |
|
44
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:3] | passed | 0.00044 seconds |
|
45
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:4:1] | passed | 0.00074 seconds |
|
46
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:1] | passed | 0.00059 seconds |
|
47
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:2] | passed | 0.00043 seconds |
|
48
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:3] | passed | 0.00075 seconds |
|
49
|
+
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:4:1] | passed | 0.00118 seconds |
|
50
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:1:1] | passed | 0.28869 seconds |
|
51
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:2:1] | passed | 0.10622 seconds |
|
52
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:3:1] | passed | 0.11826 seconds |
|
53
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.0201 seconds |
|
54
|
+
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.01928 seconds |
|
55
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:1:1] | passed | 0.00452 seconds |
|
56
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:2] | passed | 0.00389 seconds |
|
57
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:3:1:1] | passed | 0.0054 seconds |
|
58
|
+
./spec/defra_ruby/validators/configuration_spec.rb[1:3:2:1] | passed | 0.00017 seconds |
|
59
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:1:1] | passed | 0.0002 seconds |
|
60
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:1] | passed | 0.00014 seconds |
|
61
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00031 seconds |
|
62
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00028 seconds |
|
63
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00024 seconds |
|
64
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00049 seconds |
|
65
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00055 seconds |
|
66
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00081 seconds |
|
67
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00051 seconds |
|
68
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:2] | passed | 0.0002 seconds |
|
69
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00036 seconds |
|
70
|
+
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00127 seconds |
|
71
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:1:1] | passed | 0.00012 seconds |
|
72
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:1] | passed | 0.00031 seconds |
|
73
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:1] | passed | 0.0002 seconds |
|
74
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00025 seconds |
|
75
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00017 seconds |
|
76
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00014 seconds |
|
77
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00055 seconds |
|
78
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00096 seconds |
|
79
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00018 seconds |
|
80
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00049 seconds |
|
81
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00019 seconds |
|
82
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00133 seconds |
|
83
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:1] | passed | 0.0006 seconds |
|
84
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:2] | passed | 0.00046 seconds |
|
85
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:3] | passed | 0.00028 seconds |
|
86
|
+
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:4:1] | passed | 0.00116 seconds |
|
87
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:1:1] | passed | 0.00012 seconds |
|
88
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
89
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00028 seconds |
|
90
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00019 seconds |
|
91
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00032 seconds |
|
92
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00028 seconds |
|
93
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00068 seconds |
|
94
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00326 seconds |
|
95
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00022 seconds |
|
96
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00026 seconds |
|
97
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00016 seconds |
|
98
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00074 seconds |
|
99
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:1:1:1] | passed | 0.00062 seconds |
|
100
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:1:1:2] | passed | 0.00049 seconds |
|
101
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:1] | passed | 0.0011 seconds |
|
102
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:2] | passed | 0.00082 seconds |
|
103
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:3] | passed | 0.00077 seconds |
|
104
|
+
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:4:1] | passed | 0.00899 seconds |
|
105
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:1:1] | passed | 0.00014 seconds |
|
106
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
107
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00299 seconds |
|
108
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00288 seconds |
|
109
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00043 seconds |
|
110
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00026 seconds |
|
111
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00085 seconds |
|
112
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.0015 seconds |
|
113
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:1] | passed | 0.00016 seconds |
|
114
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:1] | passed | 0.0034 seconds |
|
115
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:2] | passed | 0.05423 seconds |
|
116
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.0003 seconds |
|
117
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00025 seconds |
|
118
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00033 seconds |
|
119
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00086 seconds |
|
120
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00027 seconds |
|
121
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00035 seconds |
|
122
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:3] | passed | 0.0002 seconds |
|
123
|
+
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:4:1] | passed | 0.00105 seconds |
|
124
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:1:1] | passed | 0.00009 seconds |
|
125
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:1] | passed | 0.00032 seconds |
|
126
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00015 seconds |
|
127
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00027 seconds |
|
128
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00019 seconds |
|
129
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00023 seconds |
|
130
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00048 seconds |
|
131
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00105 seconds |
|
132
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:1] | passed | 0.00017 seconds |
|
133
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00011 seconds |
|
134
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00035 seconds |
|
135
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00047 seconds |
|
136
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00036 seconds |
|
137
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00022 seconds |
|
138
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00124 seconds |
|
139
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00028 seconds |
|
140
|
+
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00011 seconds |
|
141
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:1:1] | passed | 0.00016 seconds |
|
142
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:1] | passed | 0.00013 seconds |
|
143
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00014 seconds |
|
144
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00024 seconds |
|
145
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00018 seconds |
|
146
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00024 seconds |
|
147
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00019 seconds |
|
148
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00091 seconds |
|
149
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00044 seconds |
|
150
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00031 seconds |
|
151
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00058 seconds |
|
152
|
+
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00099 seconds |
|
153
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:1:1] | passed | 0.00012 seconds |
|
154
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:1] | passed | 0.0001 seconds |
|
155
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00025 seconds |
|
156
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00022 seconds |
|
157
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00021 seconds |
|
158
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00019 seconds |
|
159
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00021 seconds |
|
160
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00116 seconds |
|
161
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00018 seconds |
|
162
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00021 seconds |
|
163
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00017 seconds |
|
164
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00068 seconds |
|
165
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:1] | passed | 0.00477 seconds |
|
166
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00018 seconds |
|
167
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00015 seconds |
|
168
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00306 seconds |
|
169
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.0158 seconds |
|
170
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00021 seconds |
|
171
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.02551 seconds |
|
172
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:1] | passed | 0.00023 seconds |
|
173
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:2] | passed | 0.00039 seconds |
|
174
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:3] | passed | 0.0002 seconds |
|
175
|
+
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:4:1] | passed | 0.00076 seconds |
|
176
|
+
./spec/defra_ruby/validators_spec.rb[1:1:1] | passed | 0.0064 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.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -182,16 +182,16 @@ dependencies:
|
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 0.17.1
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 0.17.1
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: vcr
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,6 +237,7 @@ files:
|
|
237
237
|
- config/locales/defra_ruby/validators/email_validator/en.yml
|
238
238
|
- config/locales/defra_ruby/validators/grid_reference_validator/en.yml
|
239
239
|
- config/locales/defra_ruby/validators/location_validator/en.yml
|
240
|
+
- config/locales/defra_ruby/validators/past_date_validator/en.yml
|
240
241
|
- config/locales/defra_ruby/validators/phone_number_validator/en.yml
|
241
242
|
- config/locales/defra_ruby/validators/position_validator/en.yml
|
242
243
|
- config/locales/defra_ruby/validators/token_validator/en.yml
|
@@ -255,6 +256,7 @@ files:
|
|
255
256
|
- lib/defra_ruby/validators/engine.rb
|
256
257
|
- lib/defra_ruby/validators/grid_reference_validator.rb
|
257
258
|
- lib/defra_ruby/validators/location_validator.rb
|
259
|
+
- lib/defra_ruby/validators/past_date_validator.rb
|
258
260
|
- lib/defra_ruby/validators/phone_number_validator.rb
|
259
261
|
- lib/defra_ruby/validators/position_validator.rb
|
260
262
|
- lib/defra_ruby/validators/token_validator.rb
|
@@ -271,6 +273,7 @@ files:
|
|
271
273
|
- spec/defra_ruby/validators/email_validator_spec.rb
|
272
274
|
- spec/defra_ruby/validators/grid_reference_validator_spec.rb
|
273
275
|
- spec/defra_ruby/validators/location_validator_spec.rb
|
276
|
+
- spec/defra_ruby/validators/past_date_validator_spec.rb
|
274
277
|
- spec/defra_ruby/validators/phone_number_validator_spec.rb
|
275
278
|
- spec/defra_ruby/validators/position_validator_spec.rb
|
276
279
|
- spec/defra_ruby/validators/token_validator_spec.rb
|
@@ -320,6 +323,7 @@ summary: Defra ruby on rails validations
|
|
320
323
|
test_files:
|
321
324
|
- spec/spec_helper.rb
|
322
325
|
- spec/defra_ruby/validators_spec.rb
|
326
|
+
- spec/defra_ruby/validators/past_date_validator_spec.rb
|
323
327
|
- spec/defra_ruby/validators/companies_house_service_spec.rb
|
324
328
|
- spec/defra_ruby/validators/configuration_spec.rb
|
325
329
|
- spec/defra_ruby/validators/phone_number_validator_spec.rb
|