input_attributes_from_validators 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/app/helpers/input_mode_helper.rb +1 -1
- data/lib/input_attributes_from_validators/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b38bd91cc63f7c7b3125ca9d6e8b59328381aeec27e682e69c20a2a2d10f11b
|
4
|
+
data.tar.gz: 02c097236332ff9a9754e1b39161c9a651aba45787e35ea37178d41c4ec69394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c6d1b3269947b377bc65c0d9063d5887d4914f398d2344fcd8510c7f0ad672857f4d5d9d5ff0e9fbdbedb240fe003ebbe902459e0f6d596f0aa652d4d10c23
|
7
|
+
data.tar.gz: b590ed412a4dbbd6511829ee06793174877614287e89b59b484c8d4a54800d979ce19354ea6184d6bc456a640dc1da5c0f3b6c8ffc081b4f87715612eedf1534
|
data/CHANGELOG.md
CHANGED
@@ -11,7 +11,7 @@ module InputModeHelper
|
|
11
11
|
# validated_inputmode @rating, :score #=> "numeric"
|
12
12
|
#
|
13
13
|
def validated_inputmode(record, attr)
|
14
|
-
v_types = validators_for_attr(record, attr).map(&:kind)
|
14
|
+
v_types = validators_for_attr(record, attr).map(&:kind).map(&:to_s)
|
15
15
|
|
16
16
|
# TODO: try using pattern matching instead
|
17
17
|
if v_types.include?("numericality")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: input_attributes_from_validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Pedan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|