formatic 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e5a571e59a9dfb02109fb6ca17387ab764da6164e7ecafb1a474137116d652d
4
- data.tar.gz: 552b409f5488a61c448217c16e17cd737bd3c5983d87a74aa1cefc7a9ae18f91
3
+ metadata.gz: 687ee85ecfa183d400cf541d63658c3b28cb0f05e90025f02b3fbf8546f152f2
4
+ data.tar.gz: f5c8b8a96e972e101cc1c1c97fb800ed928e6371ba91425f6d22088da9232bbf
5
5
  SHA512:
6
- metadata.gz: 4fa55a925ebb598cfbec965ac612f7275469f68fb38c185e108b3c661bb3bb620688cc5ff0ee8530cd49d84930d235708f7a309705e4e2916c1e3ac82cee798e
7
- data.tar.gz: 94e68e620fa2b4c036e52d3e34f9d24b18d18530fe397e95a63c01b18c957b87fb35e9a124fb6d1090d099ca59535db00d661a004ac0e5c17cbb0379e26afa52
6
+ metadata.gz: fb155b07034cdd4a969073a5dd5c4178865c5d921c5be29c91d310cf1c1383d5d77cf10dad5f01909b8d6e875531b820a45b58eccbc222dcf124c3d4f62b673b
7
+ data.tar.gz: 2a5740a62b035fc4662c3d50dba2a23d29a76a5e38678aa6aff2c2179d41a0a340131d5357e58fa5ef2da83da333ec1e9a2f9b39b1033de4bc8c1bd23beab87d
@@ -32,6 +32,7 @@ module Formatic
32
32
 
33
33
  # See `Formatic::Wrapper`
34
34
  option :label, default: -> { true }
35
+ option :hint, optional: true
35
36
  option :label_for_id, optional: true
36
37
  option :readonly, as: :readonly, default: -> { false }
37
38
  option :required, optional: true
@@ -42,6 +43,7 @@ module Formatic
42
43
  f:,
43
44
  attribute_name:,
44
45
  label:,
46
+ hint:,
45
47
  required:,
46
48
  prevent_submit_on_enter:,
47
49
  label_for_id:,
@@ -87,6 +87,8 @@ module Formatic
87
87
  end
88
88
 
89
89
  def hint
90
+ return manual_hint if manual_hint != true && manual_hint != false
91
+
90
92
  @hint ||= ::Formatic::Wrappers::Translate.call(
91
93
  prefix: :'helpers.hint',
92
94
  object:,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Formatic
4
- VERSION = '0.1.9'
4
+ VERSION = '0.1.10'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-18 00:00:00.000000000 Z
11
+ date: 2025-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview