defra_ruby_validators 2.7.1 → 2.7.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6206b70eb2b95385d8ee3eaae2600048973784b8d0aec0d6ed8ad6b7160a09c1
|
4
|
+
data.tar.gz: 9882d021eef58fe6912b86df0a464e71efd2b3a366a16fe8a7b327a54aba3e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8030181c4ca547e313e626b90eea3955935d186ee9703011e319de10fe4bd4bec133ae75a84e9509ae04199448c72086e1e64de28078e006fe4d174b53eb863
|
7
|
+
data.tar.gz: 0f77ecfb97c54d08817461737c07b5d926995e2c37c5d968495e8b52e83b3b7ed482b2725645a5aca2316ddada502972c310256b475a023993963925ef7fea24
|
@@ -14,7 +14,7 @@ module DefraRuby
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def valid_format?(record, attribute, value)
|
17
|
-
return true if value.match?(/\A\d{1,10}(\.\d{1,2})?\z/)
|
17
|
+
return true if value.to_s.match?(/\A\d{1,10}(\.\d{1,2})?\z/)
|
18
18
|
|
19
19
|
add_validation_error(record, attribute, :invalid_format)
|
20
20
|
false
|
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.7.
|
4
|
+
version: 2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -177,7 +177,7 @@ licenses:
|
|
177
177
|
metadata:
|
178
178
|
allowed_push_host: https://rubygems.org
|
179
179
|
rubygems_mfa_required: 'true'
|
180
|
-
post_install_message:
|
180
|
+
post_install_message:
|
181
181
|
rdoc_options: []
|
182
182
|
require_paths:
|
183
183
|
- lib
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
195
|
rubygems_version: 3.3.7
|
196
|
-
signing_key:
|
196
|
+
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Defra ruby on rails validations
|
199
199
|
test_files: []
|