hanami-helpers 1.3.0 → 1.3.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: 3417d3a2366bfebf6ce267fa08470c98f57f8d6e1264af8153730ed461dbd20b
4
- data.tar.gz: b8a4ae275bdbde51a26623f9430300d83a9e9c7f3baa7af68883aadddeb258d7
3
+ metadata.gz: 5b8b6087b11385128dca97a30a4b3178c5d087fb533096adf20cc0cb666c6b25
4
+ data.tar.gz: f1bf68d6b197a0f0a89cc85002355d3f13eecbc65d137a959e67c31adb24134a
5
5
  SHA512:
6
- metadata.gz: 751d4de45499cfcbdc424e53c3ab72c406a61d02bc2e5feb240a7ec09f887975016cba57bf859dde8948b13c4bd38482a7eb3694cb0af5306d6986fdd9797fe6
7
- data.tar.gz: bc79d8c228859a08966a91cb155213d0ec07420a706f9aa9e432a99e2117138ab8b30d672552d55e39902aba53e3825be64967530ddfe90615c73a3c938b164f
6
+ metadata.gz: e3faa5e7b7ed1c3dd37452d835938dd7e1a744c90d6587e4642474cd62b97caa3fa4a36ed30194295f65b8ba37e09c09a2a90c1099f0a42310f7604e38626e5d
7
+ data.tar.gz: d9a471c73b03b00d6d8df9a255c1d0cc7177dc31e6640eb2e6162b2eeaecacc8bd71d51569f28e5cefab4b652f9384217829c0481af4974f3f394f8688c8975e
@@ -1,6 +1,11 @@
1
1
  # Hanami::Helpers
2
2
  View helpers for Ruby web applications
3
3
 
4
+ ## v1.3.1 - 2019-01-18
5
+ ### Added
6
+ - [Luca Guidi] Official support for Ruby: MRI 2.6
7
+ - [Luca Guidi] Support `bundler` 2.0+
8
+
4
9
  ## v1.3.0 - 2018-10-24
5
10
 
6
11
  ## v1.3.0.beta1 - 2018-08-08
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_dependency 'hanami-utils', '~> 1.3'
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.6'
25
+ spec.add_development_dependency 'bundler', '>= 1.6', '< 3'
26
26
  spec.add_development_dependency 'dry-struct', '~> 0.3'
27
27
  spec.add_development_dependency 'rake', '~> 12'
28
28
  spec.add_development_dependency 'rspec', '~> 3.7'
@@ -1641,8 +1641,8 @@ module Hanami
1641
1641
  return unless attributes[:value].nil? || !attributes[:unchecked_value].nil?
1642
1642
 
1643
1643
  input(
1644
- type: :hidden,
1645
- name: attributes[:name] || _displayed_input_name(name),
1644
+ type: :hidden,
1645
+ name: attributes[:name] || _displayed_input_name(name),
1646
1646
  value: attributes.delete(:unchecked_value) || DEFAULT_UNCHECKED_VALUE
1647
1647
  )
1648
1648
  end
@@ -1655,9 +1655,9 @@ module Hanami
1655
1655
  # @see Hanami::Helpers::FormHelper::FormBuilder#check_box
1656
1656
  def _attributes_for_check_box(name, attributes)
1657
1657
  attributes = {
1658
- type: :checkbox,
1659
- name: _displayed_input_name(name),
1660
- id: _input_id(name),
1658
+ type: :checkbox,
1659
+ name: _displayed_input_name(name),
1660
+ id: _input_id(name),
1661
1661
  value: attributes.delete(:checked_value) || DEFAULT_CHECKED_VALUE
1662
1662
  }.merge(attributes)
1663
1663
 
@@ -80,7 +80,7 @@ module Hanami
80
80
  # @api private
81
81
  #
82
82
  # @see Hanami::Helpers::NumberFormatter::Formatter#delimitate
83
- DELIMITATION_REGEX = /(\d)(?=(\d{3})+$)/
83
+ DELIMITATION_REGEX = /(\d)(?=(\d{3})+$)/.freeze
84
84
 
85
85
  # Regex to guess if the number is a integer
86
86
  #
@@ -90,7 +90,7 @@ module Hanami
90
90
  # @api private
91
91
  #
92
92
  # @see Hanami::Helpers::NumberFormatter::Formatter#to_number
93
- INTEGER_REGEXP = /\A[\d]+\z/
93
+ INTEGER_REGEXP = /\A[\d]+\z/.freeze
94
94
 
95
95
  # Default separator
96
96
  #
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Define version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.3.0'.freeze
6
+ VERSION = '1.3.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.3.0
4
+ version: 1.3.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-10-24 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami-utils
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.6'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
34
37
  type: :development
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '1.6'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: dry-struct
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -127,8 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
133
  - !ruby/object:Gem::Version
128
134
  version: '0'
129
135
  requirements: []
130
- rubyforge_project:
131
- rubygems_version: 2.7.7
136
+ rubygems_version: 3.0.2
132
137
  signing_key:
133
138
  specification_version: 4
134
139
  summary: Hanami helpers