ea-validation 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.codeclimate.yml +21 -0
- data/.gitignore +0 -7
- data/.rubocop.yml +109 -0
- data/.travis.yml +19 -2
- data/Gemfile +3 -0
- data/README.md +37 -16
- data/Rakefile +1 -9
- data/ea-validation.gemspec +5 -6
- data/lib/ea/validation/version.rb +1 -1
- metadata +32 -44
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MDg4MzA3NGEyNGQyOTY4YWVmZDdkOWU5YzBkOWY0ODM0YTQ5NzY1Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MmYyZmZkZmY0YjdjOGMwZTg3MWI4YjcxMTFjNjc2YWFhN2UxYjRiYw==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWU1MmQwMjZhYmJkMDZlMmI3NTExMWM1MjFhYzRhMWU3ZDY0OTA5OWFkZmVj
|
10
|
+
NWVhZTJkOTAyYjQ1NzBmYmI4M2E2NzQ0ZGZlYzJlNzFhYTkyNmFlMDg1MTkw
|
11
|
+
MGVmNDVjYWE1YTE1NjliYzY5NmZlODUyNmExMWJiZWRhODVhNTY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NjU2NzBkMjI1NGIzOTRhMDQzYmU4YjY2ZmY5MTRlZjliYzUwZDk0YjM3ODAw
|
14
|
+
Yzk4NWZlZDMzYmM2YTg5ZjE3Njg5ODI2M2RiNjBmOTFiZDA2NjQzNzE4ZmY2
|
15
|
+
OGJkNWI3NDhkNDUwYWYxMWEzNjk2MDY4YmIxNmQyMDY5MWFiYmQ=
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
engines:
|
3
|
+
duplication:
|
4
|
+
enabled: true
|
5
|
+
config:
|
6
|
+
languages:
|
7
|
+
- ruby
|
8
|
+
fixme:
|
9
|
+
enabled: true
|
10
|
+
rubocop:
|
11
|
+
enabled: true
|
12
|
+
brakeman:
|
13
|
+
enabled: false
|
14
|
+
rubymotion:
|
15
|
+
enabled: false
|
16
|
+
ratings:
|
17
|
+
paths:
|
18
|
+
- "**.module"
|
19
|
+
- "**.rb"
|
20
|
+
exclude_paths:
|
21
|
+
- spec/
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.3
|
3
|
+
# Cop names are not displayed in offense messages by default. We find it useful to include this information so we can
|
4
|
+
# use it to investigate what the fix may be.
|
5
|
+
DisplayCopNames: true
|
6
|
+
# Style guide URLs are not displayed in offense messages by default. Again we find it useful to go straight to the
|
7
|
+
# documentation for a rule when investigating what the fix may be.
|
8
|
+
DisplayStyleGuide: true
|
9
|
+
Include:
|
10
|
+
- "**/*.gemspec"
|
11
|
+
- "**/*.rake"
|
12
|
+
- "**/*.rb"
|
13
|
+
- "**/Gemfile"
|
14
|
+
- "**/Rakefile"
|
15
|
+
- "**/bin/*"
|
16
|
+
- "**/config.ru"
|
17
|
+
Exclude:
|
18
|
+
- "config/**/*"
|
19
|
+
- "script/**/*"
|
20
|
+
- !ruby/regexp /old_and_unused\.rb$/
|
21
|
+
# Rubocop is accidentally linting HTML ERB files in Atom Editor https://github.com/AtomLinter/linter-rubocop/issues/48
|
22
|
+
- "**/*.html.erb"
|
23
|
+
# Bin contains standard files created when Rails is initialised and therefore they should be left as is
|
24
|
+
- "bin/**/*"
|
25
|
+
# Rakefile is generated when Rails is initialised and therefore should be left as is
|
26
|
+
- "Rakefile"
|
27
|
+
# spec_helper is generated when rspec is initialised and therefore should be left as is
|
28
|
+
- "spec/spec_helper.rb"
|
29
|
+
- "**/db/schema.rb"
|
30
|
+
- "**/db/migrate/*"
|
31
|
+
- .git-hooks/**/*
|
32
|
+
|
33
|
+
# When using Ruby >= 2.3, Rubocop wants to add a comment to the top of *.rb
|
34
|
+
# to aid migration to frozen literals in Ruby 3.0. We are not interested in
|
35
|
+
# modifying every file at this point, so this cop is disabled for now.
|
36
|
+
Style/FrozenStringLiteralComment:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
# TODO: Understand what the issue is and whether this needs to be more formally disabled (i.e. the dev team agree)
|
40
|
+
# We don't understand this for now - seems to prevent perfectly reasonable meta-programming
|
41
|
+
Lint/NestedMethodDefinition:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
# We felt as a team that the default size of 15 was too low, and blocked what to us are sound methods which would not
|
45
|
+
# add any value if broken up, for exampler composer type methods. Therefore we agreed to up the score to 20 to allow
|
46
|
+
# for these types of methods
|
47
|
+
Metrics/AbcSize:
|
48
|
+
Max: 20
|
49
|
+
|
50
|
+
# We believe the default of 10 lines for a method length is too restrictive and often quickly hit just because we need
|
51
|
+
# to specify the namesspace, class and method before then doing something with it.
|
52
|
+
Metrics/MethodLength:
|
53
|
+
Max: 15
|
54
|
+
|
55
|
+
# Specs can get large and with good reason, no benefit splitting them up
|
56
|
+
Metrics/ModuleLength:
|
57
|
+
Max: 200
|
58
|
+
Exclude:
|
59
|
+
- spec/**/*_spec.rb
|
60
|
+
|
61
|
+
# We believe the default 80 characters is too restrictive and that lines can still be readable and maintainable
|
62
|
+
# when no more than 120 characters. This also allows us to maximise our scree space.
|
63
|
+
Metrics/LineLength:
|
64
|
+
Max: 120
|
65
|
+
Exclude:
|
66
|
+
- spec/factories/*.rb
|
67
|
+
- spec/features/*_spec.rb
|
68
|
+
- spec/routing/*_spec.rb
|
69
|
+
|
70
|
+
# Turn these off as can totally mess with the expect{...}.to syntax
|
71
|
+
# Also reports on model validations using Proc.new { style blocks but trying to use do .. end raises invalid syntax
|
72
|
+
Style/BlockDelimiters:
|
73
|
+
Exclude:
|
74
|
+
- spec/**/*_spec.rb
|
75
|
+
|
76
|
+
# Rubymine disagrees and not sure how to fix Rubymine indentation right now
|
77
|
+
Style/CaseIndentation:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
# As a web app, as long as the team commit to using well named classes for
|
81
|
+
# controllers, models etc it should not be necessary to add top-level class
|
82
|
+
# documentation.
|
83
|
+
Style/Documentation:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
# Looks cluttered/ugly having your first method directly after the module/class declaration
|
87
|
+
Style/EmptyLinesAroundModuleBody:
|
88
|
+
Enabled: false
|
89
|
+
Style/EmptyLinesAroundClassBody:
|
90
|
+
Enabled: false
|
91
|
+
|
92
|
+
# We've found the sprintf style for formatting strings can be useful when storing a formatted string as a template,
|
93
|
+
# and passing in strings that can vary with context. Therefore we chose to disable this rule.
|
94
|
+
Style/FormatString:
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
Style/MethodCalledOnDoEndBlock:
|
98
|
+
Exclude:
|
99
|
+
- spec/**/*_spec.rb
|
100
|
+
|
101
|
+
# There are no relative performance improvements using '' over "", therefore we believe there is more
|
102
|
+
# value in using "" for all strings irrespective of whether string interpolation is used
|
103
|
+
Style/StringLiterals:
|
104
|
+
EnforcedStyle: double_quotes
|
105
|
+
|
106
|
+
# Rubocop 0.42 introduced this cop - disabling for now until we have time to resolve
|
107
|
+
# the issues it raises.
|
108
|
+
Style/MethodMissing:
|
109
|
+
Enabled: false
|
data/.travis.yml
CHANGED
@@ -1,4 +1,21 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
|
-
|
2
|
+
cache: bundler
|
3
|
+
rvm: 2.2.4
|
4
4
|
before_install: gem install bundler -v 1.11.2
|
5
|
+
|
6
|
+
# This section was added as per https://docs.travis-ci.com/user/code-climate/
|
7
|
+
# To protect our codeclimate stats rather than adding the Codeclimate API key for ea-area_lookup
|
8
|
+
# in the open we used this guide https://docs.travis-ci.com/user/encryption-keys/ to encryt the
|
9
|
+
# value. Essentially install travis gem, then run `travis encrypt <my_code_climate_api_key>`
|
10
|
+
addons:
|
11
|
+
code_climate:
|
12
|
+
repo_token:
|
13
|
+
secure: "Z/CQJouf45LH6D34mYc0a0mwTk2iHkMRnqMcPWO4Qm5Ov7KQ4e/Echi4lNHSYwODLsnxfTz0ZEhFKXHhPTSWffQ2y4UxE8wko9EeWaTQ/4G+IwRiphfuLZcqwG2Gz/X0PBEBMperVHewrL5lXkd966+wR7Ej/+q95VikM6ePQiKchVt722rxPmdRyEWzRNZaJGIN2RHY/8m9/TPURovUjERMF57LsuaeGBY/9wBBQgWftd6C8iO0QSU7sN+geq67PXQQmVA2Sv/WoQLJ7ZyRDCUTntFv8prKWlDx8s7JAJgkN7/zuCzeI+lbdidEzaQZAyNjPBaIMZSf9q3wefhS0ctlXyIR69JULOJqc/UVWg57cuP3gXXhBiWETTGBKjMyIh8zvqLDApEe6yqtRaq+Vg3Pv5N041e+pyDiNuDnOWUMHb8ObD8HUXqwR9XsXQNGb7c8ut/Ml6+ZwDVLOhR6fGY6ykUD7gFCwOCKw156Ko6XBefDhoWv0oCQ16o4LU/yHXFiPY2mXIvHw1HPzG8cLNvc5jGzJoFDZ7xr4Ck3YUIOwwx2RsgFEUPeSoEbvJuhTn90oa77dQ2CAEe/XF1JNVjW706PHjdvIGy54+htP483ECKw/TnXds6JIK3nUPXM/zLGn5uzHAx1wXAS7RX75ICH9mJjt+kDK3cnwSIodZQ="
|
14
|
+
deploy:
|
15
|
+
provider: rubygems
|
16
|
+
api_key:
|
17
|
+
secure: "nbNsjHBSar7aWuqUPLuAJ2iNHgJrqn/8fBNL7PYjljjH1hxFzoT+cfT/oNHlFi/Evt9gnEDUuIdsvRsoYHPHwp9r8WUdjMQorNd4KEqElBYTyBOoJ01CLkoxqMae/30c4U9judDsNZNS5UjRpO4r+rCGKFhZatFDxL1Rbpi9MXGYP9M6zMi5NJSFxy6O86Nwn48lXeHJ26keo4NriyxtB/clONepHfPTMY3owSQGs+lZ+5HRVGQgFM7nYwlbaBp9OWco5jrOFpnJFJmftwpBjWQ/miplZLFx+C/vc9Omz4XKeA2aPKBH3N9wdPuzSUMSkL24NuFL3yI4Byg3qCX4Nf/SLgFcoTA/SLtmN1aZhx70iulxOfRB8uFNay9vd3sz8KubBHKg+Pdo59743LkUC+5HgYkvcQJYCLb6J9cY2lSiVbYRFkVefbuZjm/70+qL7sTMZKBSNpBuBjuV4gIRBFUCsdwZFRSjwEyN3wNmLksdNNdUAL76AB1FV1kbbOOLYrs1K7cLbhmYNXn2GUhtBuNK27hNtjmHl90Pr55aN/B4wOQHFsgPhSlN27Fy0op4frhudED14ZJJeIkjnqP0lGstjz0ararXnLhric3R1pg8hEnd2EqIxpQs/lZdBaNBxtgZfpIrBlM04rf+fs92hyFIXpL2YvFF0a+S9ja0mx4="
|
18
|
+
on:
|
19
|
+
tags: true
|
20
|
+
repo: EnvironmentAgency/ea-validation
|
21
|
+
all_branches: true
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,40 +1,41 @@
|
|
1
1
|
# Ea::Validation
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/EnvironmentAgency/ea-validation.svg?branch=master)](https://travis-ci.org/EnvironmentAgency/ea-validation)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/EnvironmentAgency/ea-validation/badges/gpa.svg)](https://codeclimate.com/github/EnvironmentAgency/ea-validation)
|
5
|
+
[![Test Coverage](https://codeclimate.com/github/EnvironmentAgency/ea-validation/badges/coverage.svg)](https://codeclimate.com/github/EnvironmentAgency/ea-validation/coverage)
|
6
|
+
[![security](https://hakiri.io/github/EnvironmentAgency/ea-validation/master.svg)](https://hakiri.io/github/EnvironmentAgency/ea-validation/master)
|
7
|
+
[![Dependency Status](https://dependencyci.com/github/EnvironmentAgency/ea-validation/badge)](https://dependencyci.com/github/EnvironmentAgency/ea-validation)
|
8
|
+
|
3
9
|
## Installation
|
4
10
|
|
5
|
-
Add this line to your application's Gemfile
|
11
|
+
Add this line to your application's Gemfile
|
6
12
|
|
7
13
|
```ruby
|
8
14
|
gem 'ea-validation'
|
9
15
|
```
|
10
16
|
|
11
|
-
And then execute
|
17
|
+
And then execute
|
12
18
|
|
13
19
|
$ bundle
|
14
20
|
|
15
|
-
Or install it yourself as
|
21
|
+
Or install it yourself as
|
16
22
|
|
17
23
|
$ gem install ea-validation
|
18
24
|
|
19
25
|
## Usage
|
20
26
|
|
21
|
-
With this gem installed, a number of active model based validators become
|
22
|
-
available:
|
27
|
+
With this gem installed, a number of active model based validators become available.
|
23
28
|
|
24
29
|
### Companies House Name
|
25
30
|
|
26
|
-
There are a number of restrictions as to what comprises a company name valid
|
27
|
-
for Companies House registration. This validator checks that the name complies
|
28
|
-
to these restrictions.
|
31
|
+
There are a number of restrictions as to what comprises a company name valid for Companies House registration. This validator checks that the name complies to these restrictions.
|
29
32
|
|
30
33
|
```ruby
|
31
34
|
validates :company_name, "ea/validation/companies_house_name" => true
|
32
35
|
```
|
33
36
|
### Companies House number
|
34
37
|
|
35
|
-
As with company names, there are also restrictions to the form of a company
|
36
|
-
registration number. This validator checks that the company registration
|
37
|
-
number complies to these restrictions.
|
38
|
+
As with company names, there are also restrictions to the form of a company registration number. This validator checks that the company registration number complies to these restrictions.
|
38
39
|
|
39
40
|
```ruby
|
40
41
|
validates :number, "ea/validation/companies_house_number" => true
|
@@ -42,8 +43,7 @@ validates :number, "ea/validation/companies_house_number" => true
|
|
42
43
|
|
43
44
|
### Grid Reference
|
44
45
|
|
45
|
-
A grid reference should be of the form AA 12345 67890 (spaces optional).
|
46
|
-
The validator checks the format, and the the grid reference is valid.
|
46
|
+
A grid reference should be of the form AA 12345 67890 (spaces optional). The validator checks the format, and the the grid reference is valid.
|
47
47
|
|
48
48
|
```ruby
|
49
49
|
validates :grid_reference, "ea/validation/grid_reference" => true
|
@@ -51,8 +51,7 @@ validates :grid_reference, "ea/validation/grid_reference" => true
|
|
51
51
|
|
52
52
|
## Modifications
|
53
53
|
|
54
|
-
Options can be passed into validation by replacing `true` with an options
|
55
|
-
hash. For example:
|
54
|
+
Options can be passed into validation by replacing `true` with an options hash. For example
|
56
55
|
|
57
56
|
```ruby
|
58
57
|
validates(
|
@@ -62,4 +61,26 @@ validates(
|
|
62
61
|
allow_blank: true
|
63
62
|
}
|
64
63
|
)
|
65
|
-
```
|
64
|
+
```
|
65
|
+
|
66
|
+
## Contributing to this project
|
67
|
+
|
68
|
+
If you have an idea you'd like to contribute please log an issue.
|
69
|
+
|
70
|
+
All contributions should be submitted via a pull request.
|
71
|
+
|
72
|
+
## License
|
73
|
+
|
74
|
+
THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:
|
75
|
+
|
76
|
+
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3
|
77
|
+
|
78
|
+
The following attribution statement MUST be cited in your products and applications when using this information.
|
79
|
+
|
80
|
+
> Contains public sector information licensed under the Open Government license v3
|
81
|
+
|
82
|
+
### About the license
|
83
|
+
|
84
|
+
The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.
|
85
|
+
|
86
|
+
It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.
|
data/Rakefile
CHANGED
@@ -3,14 +3,6 @@ require "rspec/core/rake_task"
|
|
3
3
|
|
4
4
|
RSpec::Core::RakeTask.new(:spec)
|
5
5
|
|
6
|
-
require "before_commit"
|
7
|
-
spec = Gem::Specification.find_by_name "before_commit"
|
8
|
-
load "#{spec.gem_dir}/lib/tasks/before_commit.rake"
|
9
|
-
|
10
6
|
task test: :spec
|
11
7
|
|
12
|
-
task :
|
13
|
-
sh 'rubocop -D'
|
14
|
-
end
|
15
|
-
|
16
|
-
task default: [:rubocop, :test]
|
8
|
+
task default: :test
|
data/ea-validation.gemspec
CHANGED
@@ -6,12 +6,12 @@ require "ea/validation/version"
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "ea-validation"
|
8
8
|
spec.version = Ea::Validation::VERSION
|
9
|
-
spec.authors = ["
|
10
|
-
spec.email = ["
|
11
|
-
spec.license = "
|
9
|
+
spec.authors = ["Environment Agency"]
|
10
|
+
spec.email = ["alan.cruikshanks@environment-agency.gov.uk"]
|
11
|
+
spec.license = "The Open Government Licence (OGL) Version 3"
|
12
12
|
spec.summary = "Package of validations commonly used in EA projects"
|
13
13
|
spec.description = "Package containing validations: ."
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/EnvironmentAgency/ea-validation"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.bindir = "exe"
|
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.11"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
26
|
-
spec.add_development_dependency "
|
26
|
+
spec.add_development_dependency "rubocop", "~> 0.42"
|
27
27
|
spec.add_development_dependency "virtus"
|
28
|
-
spec.add_development_dependency "rubocop"
|
29
28
|
end
|
metadata
CHANGED
@@ -1,137 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ea-validation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Environment Agency
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07
|
11
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os_map_ref
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.11'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.11'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '10.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '3.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '0.42'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '0.42'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: virtus
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
101
|
+
- - ! '>='
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- -
|
108
|
+
- - ! '>='
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '0'
|
125
|
-
description: 'Package containing validations: .'
|
111
|
+
description: ! 'Package containing validations: .'
|
126
112
|
email:
|
127
|
-
-
|
113
|
+
- alan.cruikshanks@environment-agency.gov.uk
|
128
114
|
executables: []
|
129
115
|
extensions: []
|
130
116
|
extra_rdoc_files: []
|
131
117
|
files:
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
118
|
+
- .codeclimate.yml
|
119
|
+
- .gitignore
|
120
|
+
- .rspec
|
121
|
+
- .rubocop.yml
|
122
|
+
- .travis.yml
|
135
123
|
- Gemfile
|
136
124
|
- LICENSE
|
137
125
|
- README.md
|
@@ -144,9 +132,9 @@ files:
|
|
144
132
|
- lib/ea/validation/companies_house_number_validator.rb
|
145
133
|
- lib/ea/validation/grid_reference_validator.rb
|
146
134
|
- lib/ea/validation/version.rb
|
147
|
-
homepage: https://github.com/
|
135
|
+
homepage: https://github.com/EnvironmentAgency/ea-validation
|
148
136
|
licenses:
|
149
|
-
-
|
137
|
+
- The Open Government Licence (OGL) Version 3
|
150
138
|
metadata: {}
|
151
139
|
post_install_message:
|
152
140
|
rdoc_options: []
|
@@ -154,17 +142,17 @@ require_paths:
|
|
154
142
|
- lib
|
155
143
|
required_ruby_version: !ruby/object:Gem::Requirement
|
156
144
|
requirements:
|
157
|
-
- -
|
145
|
+
- - ! '>='
|
158
146
|
- !ruby/object:Gem::Version
|
159
147
|
version: '0'
|
160
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
149
|
requirements:
|
162
|
-
- -
|
150
|
+
- - ! '>='
|
163
151
|
- !ruby/object:Gem::Version
|
164
152
|
version: '0'
|
165
153
|
requirements: []
|
166
154
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.4.
|
155
|
+
rubygems_version: 2.4.5
|
168
156
|
signing_key:
|
169
157
|
specification_version: 4
|
170
158
|
summary: Package of validations commonly used in EA projects
|