hanami-helpers 1.3.0.beta1 → 1.3.0

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: d6a8e270adefe18c93f67f6b65f646ce99352a3b9716298371669dcc270660b3
4
- data.tar.gz: aed6b144c86f2a32ce4ec39e64da38887cc695fa68085ae3fdcacf67d9657528
3
+ metadata.gz: 3417d3a2366bfebf6ce267fa08470c98f57f8d6e1264af8153730ed461dbd20b
4
+ data.tar.gz: b8a4ae275bdbde51a26623f9430300d83a9e9c7f3baa7af68883aadddeb258d7
5
5
  SHA512:
6
- metadata.gz: 0c2d86b9875877de6fdef3edf4caa1918d489cbd31c28a2c12524150a3dcb3d23e7ac893635264af3bedde7bec50517274ed90537a4e5845c12ccd6ed18f765a
7
- data.tar.gz: 1dff43a855d4cfc11c6987a97b819003ad792a67163d710ef92cd8526fec29275801eb47b469ae6a338133ccdf52ea255b5b5afd17eecb6aff358d9d6c77fdc9
6
+ metadata.gz: 751d4de45499cfcbdc424e53c3ab72c406a61d02bc2e5feb240a7ec09f887975016cba57bf859dde8948b13c4bd38482a7eb3694cb0af5306d6986fdd9797fe6
7
+ data.tar.gz: bc79d8c228859a08966a91cb155213d0ec07420a706f9aa9e432a99e2117138ab8b30d672552d55e39902aba53e3825be64967530ddfe90615c73a3c938b164f
@@ -1,6 +1,8 @@
1
1
  # Hanami::Helpers
2
2
  View helpers for Ruby web applications
3
3
 
4
+ ## v1.3.0 - 2018-10-24
5
+
4
6
  ## v1.3.0.beta1 - 2018-08-08
5
7
  ### Added
6
8
  - [Luca Guidi] Official support for JRuby 9.2.0.0
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
  spec.required_ruby_version = '>= 2.3.0'
22
22
 
23
- spec.add_dependency 'hanami-utils', '~> 1.2.beta'
23
+ spec.add_dependency 'hanami-utils', '~> 1.3'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.6'
26
26
  spec.add_development_dependency 'dry-struct', '~> 0.3'
@@ -1689,6 +1689,7 @@ module Hanami
1689
1689
  # @since 1.2.0
1690
1690
  def _is_current_value?(input_value, value)
1691
1691
  return unless input_value
1692
+
1692
1693
  value.to_s == input_value.to_s
1693
1694
  end
1694
1695
 
@@ -1696,6 +1697,7 @@ module Hanami
1696
1697
  # @since 1.2.0
1697
1698
  def _is_in_selected_values?(multiple, selected, value)
1698
1699
  return unless multiple && selected.is_a?(Array)
1700
+
1699
1701
  selected.include?(value)
1700
1702
  end
1701
1703
 
@@ -1703,6 +1705,7 @@ module Hanami
1703
1705
  # @since 1.2.0
1704
1706
  def _is_in_input_values?(multiple, input_value, value)
1705
1707
  return unless multiple && input_value.is_a?(Array)
1708
+
1706
1709
  input_value.include?(value)
1707
1710
  end
1708
1711
 
@@ -48,6 +48,7 @@ module Hanami
48
48
 
49
49
  tail.each do |k|
50
50
  break if result.nil?
51
+
51
52
  result = _dig(result, k)
52
53
  end
53
54
 
@@ -101,6 +101,7 @@ module Hanami
101
101
  # @api private
102
102
  def attributes
103
103
  return unless defined?(@attributes) && !@attributes.nil?
104
+
104
105
  result = ''
105
106
 
106
107
  @attributes.each do |attribute_name, value|
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Define version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.3.0.beta1'.freeze
6
+ VERSION = '1.3.0'.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.3.0.beta1
4
+ version: 1.3.0
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-08-08 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami-utils
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.beta
19
+ version: '1.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.beta
26
+ version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -123,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: 2.3.0
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ">"
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: 1.3.1
128
+ version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
131
  rubygems_version: 2.7.7