hanami-view 1.1.2 → 1.2.0.beta1

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: c37ef9f8c41c52de97e3d5be683bac02f3e1c836063a5f49d951bd59f5f710a1
4
- data.tar.gz: 01baf2e8737cb07af0e350ea3972c622705f3682dfdb313baf37668e12f9d2f2
3
+ metadata.gz: 489db0aa110f231dba641d78cd48cb0b6cce7bbc6767c029929294744ef7b128
4
+ data.tar.gz: 5ae2bf501448b8955d942dd524bfe70429be427e8d5b635c1cd2b9509c67d34b
5
5
  SHA512:
6
- metadata.gz: 0f7efce91d6ec0d426e5a46ce698e4d8ceb3dbc50e403834663f2eeaccbb8197c51edded561962c38358d97ed67b61e2c0a9d81a3561e34d9e55f9ca696d9cfc
7
- data.tar.gz: b71ed07c0993a02f1aed3c41cd24ae0ee6d978faf491fab4a5fa73de6b2ec30a3a0e352977a12b762f22b907176abc25217fb9bfe3925f592b856b1ac371d3b1
6
+ metadata.gz: 61e88ea89267eabda4143afa4dccc694346211edd33266bade1e5d08fe4d60ce64f0c075174409c344483eae4d762166985bfecc0893e83bdd9eda195a043674
7
+ data.tar.gz: f7e0198c8e6691d667598c65a1bfa7b48f11def521c2d9bf2f93a58149532aff333b31b23c6fd0354209b49c09d710d4949fb6b757771cce30ae6c8c98d4c9d1
@@ -1,9 +1,7 @@
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
4
+ ## v1.2.0.beta1 - 2018-02-28
7
5
 
8
6
  ## v1.1.1 - 2018-02-27
9
7
  ### Added
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.required_ruby_version = '>= 2.3.0'
21
21
 
22
22
  spec.add_runtime_dependency 'tilt', '~> 2.0', '>= 2.0.1'
23
- spec.add_runtime_dependency 'hanami-utils', '~> 1.1'
23
+ spec.add_runtime_dependency 'hanami-utils', '1.2.0.beta1'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.5'
26
26
  spec.add_development_dependency 'rspec', '~> 3.7'
@@ -126,7 +126,7 @@ module Hanami
126
126
  #
127
127
  # @since 0.1.0
128
128
  def locals
129
- (@locals || @scope.locals).dup
129
+ Utils::Hash.deep_dup(@locals || @scope.locals)
130
130
  end
131
131
 
132
132
  # It tries to invoke a method for the view or a local for the given key.
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "hanami/utils/hash"
4
+
3
5
  module Hanami
4
6
  module View
5
7
  module Rendering
@@ -11,7 +13,7 @@ module Hanami
11
13
  # @since 1.1.1
12
14
  # @api private
13
15
  def self.build(options, locals, format)
14
- options.dup.tap do |opts|
16
+ Utils::Hash.deep_dup(options).tap do |opts|
15
17
  opts[:format] = format
16
18
  opts[:locals] = locals
17
19
  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.2'.freeze
6
+ VERSION = '1.2.0.beta1'.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.2
4
+ version: 1.2.0.beta1
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-04-10 00:00:00.000000000 Z
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
@@ -34,16 +34,16 @@ dependencies:
34
34
  name: hanami-utils
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: '1.1'
39
+ version: 1.2.0.beta1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: '1.1'
46
+ version: 1.2.0.beta1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -143,12 +143,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: 2.3.0
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ">="
146
+ - - ">"
147
147
  - !ruby/object:Gem::Version
148
- version: '0'
148
+ version: 1.3.1
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.7.6
151
+ rubygems_version: 2.7.5
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: View layer for Hanami, with a separation between views and templates