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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16de69974bbb48611f48467fac2081db944da31c8f6646360713138a9528e57d
4
- data.tar.gz: 1d6fa1ea5b813ec2ee921bc3652a5184e6730c55bbec797687b066ba34bc296f
3
+ metadata.gz: b74ae8639b6996270e88514da6662b6a939b9c2a2b764dc1b44d6feb65fe65da
4
+ data.tar.gz: f3c575f9decfcb5f4312df6b107ca3352b11fc43c869f4d57fd53f416930a490
5
5
  SHA512:
6
- metadata.gz: 3ee8e740cc23d31428be035eed5c92c7061a6b35ba693bc039dfba723cb9f4d59485fa55c639c1e4f8971d8aaaabb53565cf18b912ba1ec599eda9b8d1a60d70
7
- data.tar.gz: 44e260fc9d99e5bef421f7f22b3ca904d372371f6ae859bda904ae42df1160a8c858fca859b429e444902d485b158d1aa1d503d53dde9d47c370f0a520122ff7
6
+ metadata.gz: c56d45601170676e68fde518620979b1f99b7ce50acadf8b89760f29c34e1a92a66050b534aefe42736d0eeea7f0b3b04c699750af04e423d944ad55d56516d6
7
+ data.tar.gz: f01381d4acc78373b86e4ad703ab825d55cdbfada3753a8aec7aa7730b839237c42b287d7e79c363f60a69daedbfac89fb8b781e6942c9b455b128362c44eee7
@@ -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
@@ -1 +1 @@
1
- require 'hanami/helpers' # rubocop:disable Naming/FileName
1
+ require 'hanami/helpers'
@@ -457,16 +457,16 @@ module Hanami
457
457
  # <html>
458
458
  # <head>
459
459
  # <!-- ... -->
460
- # <meta name="csrf-param" value="_csrf_token">
461
- # <meta name="csrf-token" value="4a038be85b7603c406dcbfad4b9cdf91ec6ca138ed6441163a07bb0fdfbe25b5">
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", value: CSRF_TOKEN) +
469
- html.meta(name: "csrf-token", value: 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
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Define version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.2.1'.freeze
6
+ VERSION = '1.2.2'.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.1
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-04 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami-utils