formalism-r18n_errors 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/formalism/r18n_errors/validation_helpers.rb +1 -0
- data/lib/formalism/r18n_errors/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28ea12eaced4e6df03894db13fd706b4d6a7395c52b4272fb2c349a1f14b789
|
4
|
+
data.tar.gz: 99eeb3d59c8acc998f734b0782156c1c75adbb6be81dd8a0fadadf5bf3bc1e5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b04f0eccf42a0dca1b2717a5b318cb547cdb4783e415816a1e8035ae57fa16c15d684e71254b6a123e5960ec33a59e3d3dc3151082bceb94ebfc9a1bf8a82d3
|
7
|
+
data.tar.gz: 4b8477398e3504ecb4b4d877edcfc763dfd5dcf17d5b2a80c0a633c6a647f3dcc46d9d64593eaa1e79f1941ada7856249c6d61b9f8589b923dd2a8b4cf7d827e
|
data/CHANGELOG.md
CHANGED
@@ -57,6 +57,7 @@ module Formalism
|
|
57
57
|
|
58
58
|
add_error validation_field, :less_than, args: range.begin if value < range.begin
|
59
59
|
|
60
|
+
return unless range.end
|
60
61
|
return if value.public_send (range.exclude_end? ? :< : :<=), range.end
|
61
62
|
|
62
63
|
add_error validation_field, :greater_than, args: range.end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formalism-r18n_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: formalism
|
@@ -221,9 +221,9 @@ require_paths:
|
|
221
221
|
- lib
|
222
222
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
223
|
requirements:
|
224
|
-
- - "
|
224
|
+
- - "~>"
|
225
225
|
- !ruby/object:Gem::Version
|
226
|
-
version: '2.
|
226
|
+
version: '2.6'
|
227
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
228
|
requirements:
|
229
229
|
- - ">="
|