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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b8b6087b11385128dca97a30a4b3178c5d087fb533096adf20cc0cb666c6b25
|
4
|
+
data.tar.gz: f1bf68d6b197a0f0a89cc85002355d3f13eecbc65d137a959e67c31adb24134a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3faa5e7b7ed1c3dd37452d835938dd7e1a744c90d6587e4642474cd62b97caa3fa4a36ed30194295f65b8ba37e09c09a2a90c1099f0a42310f7604e38626e5d
|
7
|
+
data.tar.gz: d9a471c73b03b00d6d8df9a255c1d0cc7177dc31e6640eb2e6162b2eeaecacc8bd71d51569f28e5cefab4b652f9384217829c0481af4974f3f394f8688c8975e
|
data/CHANGELOG.md
CHANGED
data/hanami-helpers.gemspec
CHANGED
@@ -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', '
|
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:
|
1645
|
-
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:
|
1659
|
-
name:
|
1660
|
-
id:
|
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
|
#
|
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.
|
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:
|
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
|
-
|
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
|