hanami-view 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/hanami-view.gemspec +1 -1
- data/lib/hanami/view/rendering/layout_scope.rb +16 -2
- data/lib/hanami/view/rendering/registry.rb +1 -1
- data/lib/hanami/view/rendering/template.rb +2 -2
- data/lib/hanami/view/rendering/template_name.rb +1 -1
- data/lib/hanami/view/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72a528dac2dcd264c024a20cfdb74eeed51ffe1a94afa29ea407e273f16add51
|
4
|
+
data.tar.gz: 699740c375290f05449c8daed600cd8e64ececfeb9b5bf4e107ff83092f17cfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29c5e88308af381939a32cc1516a4fad5b4522117f82a0dd1c7c6dcf1ef81e37a08b15d6d82f1b7dff564c22dff17eafa89f9aceade70365545929396a6b7b8
|
7
|
+
data.tar.gz: ccb17de1053dcf123762cf2b10ee680e0c0a0998a05469b0dc4e9f8dea23ea26df1d34432fca3975c571690d51138160d74cad0bedf2ccc27e4032c1f9f474ca
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Hanami::View
|
2
2
|
View layer for Hanami
|
3
3
|
|
4
|
+
## v1.3.3 - 2019-01-07
|
5
|
+
### Added
|
6
|
+
- [Luca Guidi] Official support for Ruby: MRI 2.7
|
7
|
+
- [unleashy] Allow `LayoutScope#render` to accept a block (e.g. `<%= render(partial: "shared/sidebar") { %(<div id="sidebar"></div>) } %>` or `<%= render(partial: "shared/sidebar", &Sidebar.new) %>`)
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
- [MITSUBOSHI] `Hanami::View::Rendering::TemplateName`: Fix frozen string literal error
|
11
|
+
|
4
12
|
## v1.3.2 - 2019-09-27
|
5
13
|
### Fixed
|
6
14
|
- [Luca Guidi] Ensure rendering scope to work with latest `tilt` changes (`2.0.10`)
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ Like all the other Hanami components, it can be used as a standalone framework o
|
|
17
17
|
## Status
|
18
18
|
|
19
19
|
[![Gem Version](https://badge.fury.io/rb/hanami-view.svg)](https://badge.fury.io/rb/hanami-view)
|
20
|
-
[![
|
20
|
+
[![Build Status](https://ci.hanamirb.org/api/badges/hanami/view/status.svg)](https://ci.hanamirb.org/hanami/view)
|
21
21
|
[![CircleCI](https://circleci.com/gh/hanami/view/tree/master.svg?style=svg)](https://circleci.com/gh/hanami/view/tree/master)
|
22
22
|
[![Test Coverage](https://codecov.io/gh/hanami/view/branch/master/graph/badge.svg)](https://codecov.io/gh/hanami/view)
|
23
23
|
[![Depfu](https://badges.depfu.com/badges/4f5c8868d047d206f33893bc9194812d/overview.svg)](https://depfu.com/github/hanami/view?project=Bundler)
|
data/hanami-view.gemspec
CHANGED
@@ -78,8 +78,22 @@ module Hanami
|
|
78
78
|
#
|
79
79
|
# #
|
80
80
|
# # `user` will be available in the scope of the sidebar rendering
|
81
|
-
|
82
|
-
|
81
|
+
#
|
82
|
+
# @example Rendering partial, passing a block
|
83
|
+
# # Given a partial under:
|
84
|
+
# # templates/shared/_sidebar.html.erb
|
85
|
+
# #
|
86
|
+
# # In the layout template:
|
87
|
+
# # templates/application.html.erb
|
88
|
+
# #
|
89
|
+
# # Use like this:
|
90
|
+
# <%= render(partial: 'shared/sidebar') { ... } %>
|
91
|
+
#
|
92
|
+
# #
|
93
|
+
# # Then if you call `yield` inside the partial, it will call the
|
94
|
+
# # passed block.
|
95
|
+
def render(options, &block)
|
96
|
+
renderer(options).render(&block)
|
83
97
|
end
|
84
98
|
|
85
99
|
# Returns the requested format.
|
data/lib/hanami/view/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilt
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
87
|
+
version: '13'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
94
|
+
version: '13'
|
95
95
|
description: View layer for Hanami
|
96
96
|
email:
|
97
97
|
- me@lucaguidi.com
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
- !ruby/object:Gem::Version
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
157
|
+
rubygems_version: 3.1.2
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: View layer for Hanami, with a separation between views and templates
|