hanami-view 1.1.1 → 1.1.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: 975282c7d30e5a6826be9afccdebf3f8265f9407eb872849316141ffa6c1ef07
4
- data.tar.gz: b8136cee7472c868d96ab6082a66410b53ef32b1f35bedcfd293c3fe1af12f3c
3
+ metadata.gz: c37ef9f8c41c52de97e3d5be683bac02f3e1c836063a5f49d951bd59f5f710a1
4
+ data.tar.gz: 01baf2e8737cb07af0e350ea3972c622705f3682dfdb313baf37668e12f9d2f2
5
5
  SHA512:
6
- metadata.gz: b8cc401697f3e7cfcdb8f2b37d9ec8cdfdbb3413a274dd7e5e3eb471ebb2a1ca630bae7eab8fce3dd6c429fc922fff35983b6e158ff6069d279257de1c80eb39
7
- data.tar.gz: 623f66b95073220a3a21d9569973cc749618345d4703917e3decae0b245ff8f8f232c4110cfc6bc6a4895bee63a964b282835cd7de0c8136f7bd4208b1983473
6
+ metadata.gz: 0f7efce91d6ec0d426e5a46ce698e4d8ceb3dbc50e403834663f2eeaccbb8197c51edded561962c38358d97ed67b61e2c0a9d81a3561e34d9e55f9ca696d9cfc
7
+ data.tar.gz: b71ed07c0993a02f1aed3c41cd24ae0ee6d978faf491fab4a5fa73de6b2ec30a3a0e352977a12b762f22b907176abc25217fb9bfe3925f592b856b1ac371d3b1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Hanami::View
2
2
  View layer for Hanami
3
3
 
4
+ ## v1.1.2 - 2018-04-10
5
+ ### Fixed
6
+ - [Luca Guidi] Ensure to be able to use `exposures` even when they aren't duplicable objects
7
+
4
8
  ## v1.1.1 - 2018-02-27
5
9
  ### Added
6
10
  - [Luca Guidi] Official support for Ruby: MRI 2.5
@@ -126,7 +126,7 @@ module Hanami
126
126
  #
127
127
  # @since 0.1.0
128
128
  def locals
129
- Utils::Hash.deep_dup(@locals || @scope.locals)
129
+ (@locals || @scope.locals).dup
130
130
  end
131
131
 
132
132
  # It tries to invoke a method for the view or a local for the given key.
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "hanami/utils/hash"
4
-
5
3
  module Hanami
6
4
  module View
7
5
  module Rendering
@@ -13,7 +11,7 @@ module Hanami
13
11
  # @since 1.1.1
14
12
  # @api private
15
13
  def self.build(options, locals, format)
16
- Utils::Hash.deep_dup(options).tap do |opts|
14
+ options.dup.tap do |opts|
17
15
  opts[:format] = format
18
16
  opts[:locals] = locals
19
17
  opts[:locals].merge!(options.fetch(:locals) { ::Hash.new }).merge!(format: format)
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.1.1'.freeze
6
+ VERSION = '1.1.2'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.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-02-27 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.7.5
151
+ rubygems_version: 2.7.6
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: View layer for Hanami, with a separation between views and templates