bh 6.7.0 → 6.8.0

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: 9161e2164dd9b496c6ad7210d47f43ab01c2dba40101e3f4c7ef90da2d782d82
4
- data.tar.gz: df825d0fb572112a3c36d3a82b8035b5005e669affe3da80b1f9c792bc78bafc
3
+ metadata.gz: c459a4f1b4c83f76208288d0fcaa877ff4e90ff22e176db261622070dc7e8baf
4
+ data.tar.gz: c91ff74b63a56449dda82736e3a930596d8c9db1c61b9174dfa856cf7f7d9173
5
5
  SHA512:
6
- metadata.gz: a83fcd4a1403078a9edc6dda158025b2a05033d849f15373d4fec9d1039ae4eccafd7d250e8767a5b3da60c6d8c6b843807d73d4b87c06d709c7196ea5aff897
7
- data.tar.gz: cc5f5495354b1e89e046982febfc44635427b23e9089a43e27867552bdce2e881301277849bc8a963f176a4416f3326312e969ec943de9bacb018627f4ef90f9
6
+ metadata.gz: 44cc5e7e1672de1a525d7ea28f710210129750fcc9d1652eb14ba76879e375f547a5d88fb8b36783d02b11ed5c20812b8835bc11f68be0fc410509cf582ac09b
7
+ data.tar.gz: 38e4622db91c415c7aabb1c8e64bf8c16227e2a44c6ecc08a50186d5ef513db604fe8819044cd44f97c8ab9fcfd5153247d9a33ab5e64df09675268e3366b58b
data/CHANGELOG.md CHANGED
@@ -8,6 +8,15 @@ For more information about changelogs, check
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 6.8.0 - 2026-09-19
12
+
13
+ * [FEATURE] A field a browser keeps an answer for says which
14
+
15
+ `email_field` carries `autocomplete="email"` and `url_field` `autocomplete="url"`, as
16
+ `phone_field` carries `tel` and `pin_field` `one-time-code`. A page saying otherwise keeps
17
+ what it says. A password is left alone: whether a browser should offer the one it holds or
18
+ make a new one is the form's business rather than the field's.
19
+
11
20
  ## 6.7.0 - 2026-09-19
12
21
 
13
22
  * [CHANGE] The signup page goes
data/README.md CHANGED
@@ -21,10 +21,10 @@ gem install bh
21
21
 
22
22
  ```ruby
23
23
  # Gemfile
24
- gem 'bh', '~> 6.7.0'
24
+ gem 'bh', '~> 6.8.0'
25
25
  ```
26
26
 
27
- `~> 6.7.0` stops short of `6.8`, and that is the pin to hold: **until this line settles it
27
+ `~> 6.8.0` stops short of `6.9`, and that is the pin to hold: **until this line settles it
28
28
  breaks on a minor, not on a major.** Rails 8.1 and Ruby 3.2 are the minimum.
29
29
 
30
30
  6.2.0 breaks everything before it and keeps its major anyway. 6.0 through 6.1.4 were an alpha
@@ -10,8 +10,10 @@ module Bh
10
10
  CHECK = 'check'
11
11
  RADIO = 'radio'
12
12
 
13
- # An email address.
14
- def email_field(method, options = {}) = super(method, dressed(method, options))
13
+ # An email address, which a browser offers the one it keeps.
14
+ def email_field(method, options = {})
15
+ super(method, { autocomplete: 'email' }.merge(dressed(method, options)))
16
+ end
15
17
 
16
18
  # A number, which brings the keyboard for one.
17
19
  def number_field(method, options = {}) = super(method, dressed(method, options))
@@ -22,8 +24,10 @@ module Bh
22
24
  # A term to search by.
23
25
  def search_field(method, options = {}) = super(method, dressed(method, options))
24
26
 
25
- # A web address.
26
- def url_field(method, options = {}) = super(method, dressed(method, options))
27
+ # A web address, which a browser offers the one it keeps.
28
+ def url_field(method, options = {})
29
+ super(method, { autocomplete: 'url' }.merge(dressed(method, options)))
30
+ end
27
31
 
28
32
  # A day.
29
33
  def date_field(method, options = {}) = super(method, dressed(method, options))
data/lib/bh/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bh
2
2
  # Version of the gem, read by the gemspec and by hosts checking compatibility.
3
- VERSION = '6.7.0'
3
+ VERSION = '6.8.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bh
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.7.0
4
+ version: 6.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob