hanami-helpers 1.2.1 → 1.2.2
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.rb +1 -1
- data/lib/hanami/helpers/form_helper.rb +4 -4
- data/lib/hanami/helpers/html_helper/html_builder.rb +7 -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: b74ae8639b6996270e88514da6662b6a939b9c2a2b764dc1b44d6feb65fe65da
|
4
|
+
data.tar.gz: f3c575f9decfcb5f4312df6b107ca3352b11fc43c869f4d57fd53f416930a490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c56d45601170676e68fde518620979b1f99b7ce50acadf8b89760f29c34e1a92a66050b534aefe42736d0eeea7f0b3b04c699750af04e423d944ad55d56516d6
|
7
|
+
data.tar.gz: f01381d4acc78373b86e4ad703ab825d55cdbfada3753a8aec7aa7730b839237c42b287d7e79c363f60a69daedbfac89fb8b781e6942c9b455b128362c44eee7
|
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.2 - 2018-06-12
|
5
|
+
### Fixed
|
6
|
+
- [Sean Collins] Ensure `csrf_meta_tags` helper to generate `<meta>` tags with `content` attribute instead of `value`
|
7
|
+
|
4
8
|
## v1.2.1 - 2018-06-04
|
5
9
|
### Fixed
|
6
10
|
- [Lucas Gomes] Ensure to mark `<option>` as selected when `select` helper has a collection of non-`String` values
|
data/lib/hanami-helpers.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'hanami/helpers'
|
1
|
+
require 'hanami/helpers'
|
@@ -457,16 +457,16 @@ module Hanami
|
|
457
457
|
# <html>
|
458
458
|
# <head>
|
459
459
|
# <!-- ... -->
|
460
|
-
# <meta name="csrf-param"
|
461
|
-
# <meta name="csrf-token"
|
460
|
+
# <meta name="csrf-param" content="_csrf_token">
|
461
|
+
# <meta name="csrf-token" content="4a038be85b7603c406dcbfad4b9cdf91ec6ca138ed6441163a07bb0fdfbe25b5">
|
462
462
|
# </head>
|
463
463
|
# <!-- ... -->
|
464
464
|
# </html>
|
465
465
|
def csrf_meta_tags
|
466
466
|
return if csrf_token.nil?
|
467
467
|
|
468
|
-
html.meta(name: "csrf-param",
|
469
|
-
html.meta(name: "csrf-token",
|
468
|
+
html.meta(name: "csrf-param", content: CSRF_TOKEN) +
|
469
|
+
html.meta(name: "csrf-token", content: csrf_token)
|
470
470
|
end
|
471
471
|
end
|
472
472
|
end
|
@@ -379,9 +379,15 @@ module Hanami
|
|
379
379
|
#
|
380
380
|
# @since 0.1.0
|
381
381
|
# @api private
|
382
|
-
def method_missing(method_name, *args, &blk)
|
382
|
+
def method_missing(method_name, *args, &blk) # rubocop:disable Style/MethodMissingSuper
|
383
383
|
@context.__send__(method_name, *args, &blk)
|
384
384
|
end
|
385
|
+
|
386
|
+
# @since 1.2.2
|
387
|
+
# @api private
|
388
|
+
def respond_to_missing?(method_name, include_all)
|
389
|
+
@context.respond_to?(method_name, include_all)
|
390
|
+
end
|
385
391
|
end
|
386
392
|
end
|
387
393
|
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.
|
4
|
+
version: 1.2.2
|
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-06-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami-utils
|