hanami-view 1.2.0.rc2 → 1.2.0

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: 2acfd7db20b102003c10eb07acef5ce1166190a9ffc25a9e69836d44b7a9c18f
4
- data.tar.gz: 409403e794e770ad7c799d3de66afbbdbea6a03e4d092e3cf73bba8ddd10f654
3
+ metadata.gz: d4c5c33349b33efe1572d221dfd54d860ae04ce1b873a47e5fdfe9612af46387
4
+ data.tar.gz: d60517a35dca1f695b63de1a046f0e15b2af822111cf2b5d33c07ac5c0370781
5
5
  SHA512:
6
- metadata.gz: 36717b38286b8634f979e4465b05a6da98058c749b7176b7f6f5e5db386e495882661dc021942e82ed0da171694193563f3eb55f78a10761826162451d06c8dc
7
- data.tar.gz: e29eaa96cb7f057231d7c6877ecb62f5a8ec678b117abb2a2b4bf90ac1195f51dfe520dec5cd0d4cf60ba97acd74bc36faf3d51e1f661f4be672c8e3d8ca4a67
6
+ metadata.gz: b2cfcf0fe4ea4c177f5b6ecb9e2d4915af6643d6604e4365894e36e70f829105b87cdc09a3eb1bc0730f7b3af6e3fde38fdb94ae196a80cb9f41563acf4e5ce8
7
+ data.tar.gz: c2e700dba8c01b4529d2993ebfa9a3587190f7d2f600400de0ba5209e9dc7490d12cfbea2cd03892d28af8448489f4064c18e4a4bc093b3c6411ba5b9a5a3ed9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hanami::View
2
2
  View layer for Hanami
3
3
 
4
+ ## v1.2.0 - 2018-04-06
5
+
4
6
  ## v1.2.0.rc2 - 2018-04-06
5
7
 
6
8
  ## v1.2.0.rc1 - 2018-03-30
@@ -9,6 +11,10 @@ View layer for Hanami
9
11
 
10
12
  ## v1.2.0.beta1 - 2018-02-28
11
13
 
14
+ ## v1.1.2 - 2018-04-10
15
+ ### Fixed
16
+ - [Luca Guidi] Ensure to be able to use `exposures` even when they aren't duplicable objects
17
+
12
18
  ## v1.1.1 - 2018-02-27
13
19
  ### Added
14
20
  - [Luca Guidi] Official support for Ruby: MRI 2.5
data/hanami-view.gemspec CHANGED
@@ -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.2.0.rc2'
23
+ spec.add_runtime_dependency 'hanami-utils', '~> 1.2'
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
- 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.2.0.rc2'.freeze
6
+ VERSION = '1.2.0'.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.2.0.rc2
4
+ version: 1.2.0
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-06 00:00:00.000000000 Z
11
+ date: 2018-04-11 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.2.0.rc2
39
+ version: '1.2'
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.2.0.rc2
46
+ version: '1.2'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -143,9 +143,9 @@ 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: 1.3.1
148
+ version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
151
  rubygems_version: 2.7.6