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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea33dbf007b19181f857847dc0cb7e9c9d505b84b8c421e6949f1f01c25e79b2
4
- data.tar.gz: 390cd060a49ffb1e89c4ac164d1a8286ae786b2ae6e8a736f9fae6a57e4984d2
3
+ metadata.gz: 2b38bd91cc63f7c7b3125ca9d6e8b59328381aeec27e682e69c20a2a2d10f11b
4
+ data.tar.gz: 02c097236332ff9a9754e1b39161c9a651aba45787e35ea37178d41c4ec69394
5
5
  SHA512:
6
- metadata.gz: bca3ae056bf69d856efd25590436b2ab4c04743bf55e00f86513d830c7f6c827f9d1aeb928ad33826fda693ae144c2a938432110ad3abcfb3d585cb3384e3a54
7
- data.tar.gz: 1495b8ab30226d5ac3f614aae92448c59ddbd84b2dac9a1ea4c2983fa86b20aa8b5372a2a2670b2b2c7681ce6b91cf3ff0cab7eda10e1c1bfb265b7be19bcd5b
6
+ metadata.gz: 47c6d1b3269947b377bc65c0d9063d5887d4914f398d2344fcd8510c7f0ad672857f4d5d9d5ff0e9fbdbedb240fe003ebbe902459e0f6d596f0aa652d4d10c23
7
+ data.tar.gz: b590ed412a4dbbd6511829ee06793174877614287e89b59b484c8d4a54800d979ce19354ea6184d6bc456a640dc1da5c0f3b6c8ffc081b4f87715612eedf1534
data/CHANGELOG.md CHANGED
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ## [0.0.2] 2022-06-19
4
+
5
+ ### Fixes
6
+
7
+ - Corrects inputmode
@@ -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")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InputAttributesFromValidators
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2022-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties