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 +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +2 -2
- data/lib/bh/form_builder/controls.rb +8 -4
- data/lib/bh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c459a4f1b4c83f76208288d0fcaa877ff4e90ff22e176db261622070dc7e8baf
|
|
4
|
+
data.tar.gz: c91ff74b63a56449dda82736e3a930596d8c9db1c61b9174dfa856cf7f7d9173
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
24
|
+
gem 'bh', '~> 6.8.0'
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
`~> 6.
|
|
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 = {})
|
|
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 = {})
|
|
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