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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edc28617942410537665243e69a0b66f94fe7d71b7590124e97f59e2474d2c27
4
- data.tar.gz: 57c4f35d353388d732044773199bb5cb6c424d1dd348c79fe441bc3d8d9f6dab
3
+ metadata.gz: 16de69974bbb48611f48467fac2081db944da31c8f6646360713138a9528e57d
4
+ data.tar.gz: 1d6fa1ea5b813ec2ee921bc3652a5184e6730c55bbec797687b066ba34bc296f
5
5
  SHA512:
6
- metadata.gz: fe5a92d3052a48edb6afa7059c4f15565423634f29bf21a5ff599e7683d17e353887da9ee5fbdda77aad56c10cbfe6580545ee3c0e18604aaba2c2aaea4cf599
7
- data.tar.gz: a85790a432d885e3314752e138359f5e8e45b7f7f33da840783c6adeeb3e8cdce7237b93c5007eb1b126ce8ccbe951671569cf0ce1653340810489c7a8f94d2d
6
+ metadata.gz: 3ee8e740cc23d31428be035eed5c92c7061a6b35ba693bc039dfba723cb9f4d59485fa55c639c1e4f8971d8aaaabb53565cf18b912ba1ec599eda9b8d1a60d70
7
+ data.tar.gz: 44e260fc9d99e5bef421f7f22b3ca904d372371f6ae859bda904ae42df1160a8c858fca859b429e444902d485b158d1aa1d503d53dde9d47c370f0a520122ff7
@@ -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) ||
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Define version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.2.0'.freeze
6
+ VERSION = '1.2.1'.freeze
7
7
  end
8
8
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2018-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami-utils