hanami-helpers 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/hanami/helpers/form_helper/form_builder.rb +1 -1
- data/lib/hanami/helpers/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: 16de69974bbb48611f48467fac2081db944da31c8f6646360713138a9528e57d
|
4
|
+
data.tar.gz: 1d6fa1ea5b813ec2ee921bc3652a5184e6730c55bbec797687b066ba34bc296f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ee8e740cc23d31428be035eed5c92c7061a6b35ba693bc039dfba723cb9f4d59485fa55c639c1e4f8971d8aaaabb53565cf18b912ba1ec599eda9b8d1a60d70
|
7
|
+
data.tar.gz: 44e260fc9d99e5bef421f7f22b3ca904d372371f6ae859bda904ae42df1160a8c858fca859b429e444902d485b158d1aa1d503d53dde9d47c370f0a520122ff7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Hanami::Helpers
|
2
2
|
View helpers for Ruby web applications
|
3
3
|
|
4
|
+
## v1.2.1 - 2018-06-04
|
5
|
+
### Fixed
|
6
|
+
- [Lucas Gomes] Ensure to mark `<option>` as selected when `select` helper has a collection of non-`String` values
|
7
|
+
|
4
8
|
## v1.2.0 - 2018-04-11
|
5
9
|
|
6
10
|
## v1.2.0.rc2 - 2018-04-06
|
@@ -1676,7 +1676,7 @@ module Hanami
|
|
1676
1676
|
# @api private
|
1677
1677
|
def _select_option_selected?(value, selected, input_value, multiple)
|
1678
1678
|
if input_value && selected.nil?
|
1679
|
-
value.to_s == input_value
|
1679
|
+
value.to_s == input_value.to_s
|
1680
1680
|
else
|
1681
1681
|
(value == selected) ||
|
1682
1682
|
_is_in_selected_values?(multiple, selected, value) ||
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami-utils
|